module Tk::TkTable::ConfigMethod - tk-0.2.0 Documentation

# module Tk::TkTable::ConfigMethod

### Public Instance Methods

current_tag_configinfo(tagOrId, slot=nil) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 93
    def current_tag_configinfo(tagOrId, slot=nil)
      current_itemconfiginfo(['tag', tagid(tagOrId)], slot)
    end

current_window_configinfo(tagOrId, slot=nil) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 120
    def current_window_configinfo(tagOrId, slot=nil)
      current_itemconfiginfo(['window', tagid(tagOrId)], slot)
    end

tag_cget(tagOrId, option) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 81
    def tag_cget(tagOrId, option)
      itemcget(['tag', tagid(tagOrId)], option)
    end

tag_cget_strict(tagOrId, option) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 84
    def tag_cget_strict(tagOrId, option)
      itemcget_strict(['tag', tagid(tagOrId)], option)
    end

tag_cget_tkstring(tagOrId, option) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 78
    def tag_cget_tkstring(tagOrId, option)
      itemcget_tkstring(['tag', tagid(tagOrId)], option)
    end

tag_configinfo(tagOrId, slot=nil) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 90
    def tag_configinfo(tagOrId, slot=nil)
      itemconfiginfo(['tag', tagid(tagOrId)], slot)
    end

tag_configure(tagOrId, slot, value=None) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 87
    def tag_configure(tagOrId, slot, value=None)
      itemconfigure(['tag', tagid(tagOrId)], slot, value)
    end

window_cget(tagOrId, option) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 100
    def window_cget(tagOrId, option)
      itemcget(['window', tagid(tagOrId)], option)
    end

window_cget_strict(tagOrId, option) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 103
    def window_cget_strict(tagOrId, option)
      itemcget_strict(['window', tagid(tagOrId)], option)
    end

window_cget_tkstring(tagOrId, option) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 97
    def window_cget_tkstring(tagOrId, option)
      itemcget_tkstring(['window', tagid(tagOrId)], option)
    end

window_configinfo(tagOrId, slot=nil) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 117
    def window_configinfo(tagOrId, slot=nil)
      itemconfiginfo(['window', tagid(tagOrId)], slot)
    end

window_configure(tagOrId, slot, value=None) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 106
    def window_configure(tagOrId, slot, value=None)
      if slot == :window || slot == 'window'
        value = _epath(value)
      elsif slot.kind_of?(Hash)
        if slot.key?(:window) || slot.key?('window')
          slot = _symbolkey2str(slot)
          slot['window'] = _epath(slot['window'])
        end
      end
      itemconfigure(['window', tagid(tagOrId)], slot, value)
    end

### Private Instance Methods

__item_boolval_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tkextlib/tktable/tktable.rb, line 63
    def __item_boolval_optkeys(id)
      super(id) << 'multiline' << 'showtext' << 'wrap'
    end

__item_cget_cmd(id) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 45
    def __item_cget_cmd(id)  # id := [ type, tagOrId ]
      [self.path, id[0], 'cget', id[1]]
    end

__item_config_cmd(id) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 50
    def __item_config_cmd(id)  # id := [ type, tagOrId ]
      [self.path, id[0], 'configure', id[1]]
    end

__item_pathname(id) click to toggle source

    # File lib/tkextlib/tktable/tktable.rb, line 55
    def __item_pathname(id)
      if id.kind_of?(Array)
        id = tagid(id[1])
      end
      [self.path, id].join(';')
    end

__item_strval_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tkextlib/tktable/tktable.rb, line 68
    def __item_strval_optkeys(id)
      super(id) << 'ellipsis'
    end

__item_val2ruby_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tkextlib/tktable/tktable.rb, line 73
    def __item_val2ruby_optkeys(id)  # { key=>method, ... }
      super(id).update('window'=>proc{|k,v| window(v)})
    end