Class: Glimmer::DSL::ColumnPropertiesExpression

Inherits:
StaticExpression show all
Defined in:
lib/glimmer/dsl/column_properties_expression.rb

Overview

Responsible for providing a readable keyword (command symbol) to capture and return column properties for use in TreeItemsDataBindingCommandHandler

Instance Method Summary collapse

Methods inherited from StaticExpression

inherited

Methods inherited from Expression

#add_content, #textual?, #widget?

Instance Method Details

#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
14
15
# File 'lib/glimmer/dsl/column_properties_expression.rb', line 10

def can_interpret?(parent, keyword, *args, &block)
  keyword == 'column_properties' and
    block.nil? and
    widget?(parent) and
    parent.swt_widget.is_a?(Table)
end

#interpret(parent, keyword, *args, &block) ⇒ Object



17
18
19
# File 'lib/glimmer/dsl/column_properties_expression.rb', line 17

def interpret(parent, keyword, *args, &block)
  args
end