module Tk::BLT::Treeview::ConfigMethod - tk-0.2.0 Documentation

# module Tk::BLT::Treeview::ConfigMethod

### Public Instance Methods

button_cget(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 120
    def button_cget(option)
      itemcget('button', option)
    end

button_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 123
    def button_cget_strict(option)
      itemcget_strict('button', option)
    end

button_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 117
    def button_cget_tkstring(option)
      itemcget_tkstring('button', option)
    end

button_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 129
    def button_configinfo(slot=nil)
      itemconfiginfo('button', slot)
    end

button_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 126
    def button_configure(slot, value=None)
      itemconfigure('button', slot, value)
    end

column_cget(name, option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 101
    def column_cget(name, option)
      itemcget(['column', name], option)
    end

column_cget_strict(name, option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 104
    def column_cget_strict(name, option)
      itemcget_strict(['column', name], option)
    end

column_cget_tkstring(name, option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 98
    def column_cget_tkstring(name, option)
      itemcget_tkstring(['column', name], option)
    end

column_configinfo(name, slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 110
    def column_configinfo(name, slot=nil)
      itemconfiginfo(['column', name], slot)
    end

column_configure(name, slot, value=None) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 107
    def column_configure(name, slot, value=None)
      itemconfigure(['column', name], slot, value)
    end

current_button_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 132
    def current_button_configinfo(slot=nil)
      current_itemconfiginfo('button', slot)
    end

current_column_configinfo(name, slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 113
    def current_column_configinfo(name, slot=nil)
      current_itemconfiginfo(['column', name], slot)
    end

current_entry_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 183
    def current_entry_configinfo(slot=nil)
      ret = current_itemconfiginfo('entry', slot)

      if (val = ret['bindtags'])
        ret['bindtags'] = val.collect{|tag| TkBindTag.id2obj(tag)}
      end

      ret
    end

current_sort_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 208
    def current_sort_configinfo(slot=nil)
      current_itemconfiginfo('sort', slot)
    end

current_text_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 227
    def current_text_configinfo(slot=nil)
      current_itemconfiginfo('text', slot)
    end

entry_cget(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 139
    def entry_cget(option)
      ret = itemcget('entry', option)
      if option == 'bindtags' || option == :bindtags
        ret.collect{|tag| TkBindTag.id2obj(tag)}
      else
        ret
      end
    end

entry_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 147
    def entry_cget_strict(option)
      ret = itemcget_strict('entry', option)
      if option == 'bindtags' || option == :bindtags
        ret.collect{|tag| TkBindTag.id2obj(tag)}
      else
        ret
      end
    end

entry_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 136
    def entry_cget_tkstring(option)
      itemcget_tkstring('entry', option)
    end

entry_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 158
    def entry_configinfo(slot=nil)
      ret = itemconfiginfo('entry', slot)

      if TkComm::GET_CONFIGINFO_AS_ARRAY
        if slot
          if slot == 'bindtags' || slot == :bindtags
            ret[-2] = ret[-2].collect{|tag| TkBindTag.id2obj(tag)}
            ret[-1] = ret[-1].collect{|tag| TkBindTag.id2obj(tag)}
          end
        else
          inf = ret.assoc('bindtags')
          inf[-2] = inf[-2].collect{|tag| TkBindTag.id2obj(tag)}
          inf[-1] = inf[-1].collect{|tag| TkBindTag.id2obj(tag)}
        end

      else # ! TkComm::GET_CONFIGINFO_AS_ARRAY
        if (inf = ret['bindtags'])
          inf[-2] = inf[-2].collect{|tag| TkBindTag.id2obj(tag)}
          inf[-1] = inf[-1].collect{|tag| TkBindTag.id2obj(tag)}
          ret['bindtags'] = inf
        end
      end

      ret
    end

entry_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 155
    def entry_configure(slot, value=None)
      itemconfigure('entry', slot, value)
    end

sort_cget(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 196
    def sort_cget(option)
      itemcget('sort', option)
    end

sort_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 199
    def sort_cget_strict(option)
      itemcget_strict('sort', option)
    end

sort_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 193
    def sort_cget_tkstring(option)
      itemcget_tkstring('sort', option)
    end

sort_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 205
    def sort_configinfo(slot=nil)
      itemconfiginfo('sort', slot)
    end

sort_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 202
    def sort_configure(slot, value=None)
      itemconfigure('sort', slot, value)
    end

text_cget(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 215
    def text_cget(option)
      itemcget('text', option)
    end

text_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 218
    def text_cget_strict(option)
      itemcget_strict('text', option)
    end

text_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 212
    def text_cget_tkstring(option)
      itemcget_tkstring('text', option)
    end

text_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 224
    def text_configinfo(slot=nil)
      itemconfiginfo('text', slot)
    end

text_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 221
    def text_configure(slot, value=None)
      itemconfigure('text', slot, value)
    end

### Private Instance Methods

__item_boolval_optkeys(id) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 34
    def __item_boolval_optkeys(id)
      case id
      when Array
        # id := [ 'column', name ]
        ['edit', 'hide']
      when 'sort'
        ['decreasing']
      else
        []
      end
    end

__item_cget_cmd(id) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 70
    def __item_cget_cmd(id)
      if id.kind_of?(Array)
        # id := [ type, name ]
        [self.path, id[0], 'cget', id[1]]
      else
        [self.path, id, 'cget']
      end
    end

__item_config_cmd(id) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 80
    def __item_config_cmd(id)
      if id.kind_of?(Array)
        # id := [ type, name ]
        [self.path, id[0], 'configure', id[1]]
      else
        [self.path, id, 'configure']
      end
    end

__item_listval_optkeys(id) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 60
    def __item_listval_optkeys(id)
      case id
      when 'entry'
        ['bindtags']
      else
        []
      end
    end

__item_pathname(id) click to toggle source

    # File lib/tkextlib/blt/treeview.rb, line 90
    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/blt/treeview.rb, line 47
    def __item_strval_optkeys(id)
      case id
      when Array
        # id := [ 'column', name ]
        super() << 'titleforeground' << 'titleshadow'
      when 'sort'
        ['decreasing']
      else
        []
      end
    end