Module: Glimmer::LibUI::Column
- Included in:
- ButtonColumnProxy, CheckboxColumnProxy, CheckboxTextColumnProxy, ImageColumnProxy, ImageTextColumnProxy, ProgressBarColumnProxy, TextColumnProxy
- Defined in:
- lib/glimmer/libui/column.rb
Overview
Common logic for all column proxy objects
Instance Method Summary collapse
-
#column_index ⇒ Object
column index used in table append column API call expanded to ensure DualColumn index accounts for two columns acting as one.
-
#index ⇒ Object
actual index within table columns (disregarding nil fillings that account for DualColumn instances).
- #initialize(keyword, parent, args, &block) ⇒ Object
- #name ⇒ Object
Instance Method Details
#column_index ⇒ Object
column index used in table append column API call expanded to ensure DualColumn index accounts for two columns acting as one
41 42 43 |
# File 'lib/glimmer/libui/column.rb', line 41 def column_index @column_index ||= @parent_proxy.send(:next_column_index) end |
#index ⇒ Object
actual index within table columns (disregarding nil fillings that account for DualColumn instances)
46 47 48 |
# File 'lib/glimmer/libui/column.rb', line 46 def index @parent_proxy.columns.compact.index(self) end |
#initialize(keyword, parent, args, &block) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/glimmer/libui/column.rb', line 26 def initialize(keyword, parent, args, &block) @keyword = keyword @parent_proxy = parent @args = args @block = block @enabled = true post_add_content if @block.nil? end |
#name ⇒ Object
35 36 37 |
# File 'lib/glimmer/libui/column.rb', line 35 def name @args.first end |