Module: Tk::BLT::Treeview::ConfigMethod

Includes:
TkItemConfigMethod
Included in:
Tk::BLT::Treeview
Defined in:
lib/tkextlib/blt/treeview.rb,
lib/tkextlib/blt/treeview.rb

Constant Summary

Constants included from TkUtil

TkUtil::None, TkUtil::RELEASE_DATE

Instance Method Summary collapse

Methods included from TkItemConfigMethod

__IGNORE_UNKNOWN_CONFIGURE_OPTION__, #__check_available_itemconfigure_options, #__current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, #tagid

Methods included from TkItemConfigOptkeys

#__conv_item_keyonly_opts, #itemconfig_hash_kv

Methods included from TkUtil

#_conv_args, _conv_args, #_fromUTF8, #_get_eval_enc_str, _get_eval_enc_str, #_get_eval_string, _get_eval_string, _symbolkey2str, #_symbolkey2str, #_toUTF8, #bool, bool, callback, eval_cmd, #hash_kv, hash_kv, install_cmd, #num_or_nil, num_or_nil, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd, untrust

Methods included from TkTreatItemFont

#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy

Instance Method Details

#button_cget(option) ⇒ Object



120
121
122
# File 'lib/tkextlib/blt/treeview.rb', line 120

def button_cget(option)
  itemcget('button', option)
end

#button_cget_strict(option) ⇒ Object



123
124
125
# File 'lib/tkextlib/blt/treeview.rb', line 123

def button_cget_strict(option)
  itemcget_strict('button', option)
end

#button_cget_tkstring(option) ⇒ Object



117
118
119
# File 'lib/tkextlib/blt/treeview.rb', line 117

def button_cget_tkstring(option)
  itemcget_tkstring('button', option)
end

#button_configinfo(slot = nil) ⇒ Object



129
130
131
# File 'lib/tkextlib/blt/treeview.rb', line 129

def button_configinfo(slot=nil)
  itemconfiginfo('button', slot)
end

#button_configure(slot, value = None) ⇒ Object



126
127
128
# File 'lib/tkextlib/blt/treeview.rb', line 126

def button_configure(slot, value=None)
  itemconfigure('button', slot, value)
end

#column_cget(name, option) ⇒ Object



101
102
103
# File 'lib/tkextlib/blt/treeview.rb', line 101

def column_cget(name, option)
  itemcget(['column', name], option)
end

#column_cget_strict(name, option) ⇒ Object



104
105
106
# 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) ⇒ Object



98
99
100
# 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) ⇒ Object



110
111
112
# 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) ⇒ Object



107
108
109
# 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) ⇒ Object



132
133
134
# 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) ⇒ Object



113
114
115
# 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) ⇒ Object



183
184
185
186
187
188
189
190
191
# 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) ⇒ Object



208
209
210
# File 'lib/tkextlib/blt/treeview.rb', line 208

def current_sort_configinfo(slot=nil)
  current_itemconfiginfo('sort', slot)
end

#current_text_configinfo(slot = nil) ⇒ Object



227
228
229
# File 'lib/tkextlib/blt/treeview.rb', line 227

def current_text_configinfo(slot=nil)
  current_itemconfiginfo('text', slot)
end

#entry_cget(option) ⇒ Object



139
140
141
142
143
144
145
146
# 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) ⇒ Object



147
148
149
150
151
152
153
154
# 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) ⇒ Object



136
137
138
# File 'lib/tkextlib/blt/treeview.rb', line 136

def entry_cget_tkstring(option)
  itemcget_tkstring('entry', option)
end

#entry_configinfo(slot = nil) ⇒ Object



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# 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) ⇒ Object



155
156
157
# File 'lib/tkextlib/blt/treeview.rb', line 155

def entry_configure(slot, value=None)
  itemconfigure('entry', slot, value)
end

#sort_cget(option) ⇒ Object



196
197
198
# File 'lib/tkextlib/blt/treeview.rb', line 196

def sort_cget(option)
  itemcget('sort', option)
end

#sort_cget_strict(option) ⇒ Object



199
200
201
# File 'lib/tkextlib/blt/treeview.rb', line 199

def sort_cget_strict(option)
  itemcget_strict('sort', option)
end

#sort_cget_tkstring(option) ⇒ Object



193
194
195
# File 'lib/tkextlib/blt/treeview.rb', line 193

def sort_cget_tkstring(option)
  itemcget_tkstring('sort', option)
end

#sort_configinfo(slot = nil) ⇒ Object



205
206
207
# File 'lib/tkextlib/blt/treeview.rb', line 205

def sort_configinfo(slot=nil)
  itemconfiginfo('sort', slot)
end

#sort_configure(slot, value = None) ⇒ Object



202
203
204
# File 'lib/tkextlib/blt/treeview.rb', line 202

def sort_configure(slot, value=None)
  itemconfigure('sort', slot, value)
end

#text_cget(option) ⇒ Object



215
216
217
# File 'lib/tkextlib/blt/treeview.rb', line 215

def text_cget(option)
  itemcget('text', option)
end

#text_cget_strict(option) ⇒ Object



218
219
220
# File 'lib/tkextlib/blt/treeview.rb', line 218

def text_cget_strict(option)
  itemcget_strict('text', option)
end

#text_cget_tkstring(option) ⇒ Object



212
213
214
# File 'lib/tkextlib/blt/treeview.rb', line 212

def text_cget_tkstring(option)
  itemcget_tkstring('text', option)
end

#text_configinfo(slot = nil) ⇒ Object



224
225
226
# File 'lib/tkextlib/blt/treeview.rb', line 224

def text_configinfo(slot=nil)
  itemconfiginfo('text', slot)
end

#text_configure(slot, value = None) ⇒ Object



221
222
223
# File 'lib/tkextlib/blt/treeview.rb', line 221

def text_configure(slot, value=None)
  itemconfigure('text', slot, value)
end