Class: Glimmer::DSL::SWT::ExpandItemExpression
- Inherits:
-
StaticExpression
- Object
- StaticExpression
- Glimmer::DSL::SWT::ExpandItemExpression
- Includes:
- ParentExpression
- Defined in:
- lib/glimmer/dsl/swt/expand_item_expression.rb
Instance Method Summary collapse
- #add_content(parent, keyword, *args, &block) ⇒ Object
- #can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
- #interpret(parent, keyword, *args, &block) ⇒ Object
Instance Method Details
#add_content(parent, keyword, *args, &block) ⇒ Object
52 53 54 55 |
# File 'lib/glimmer/dsl/swt/expand_item_expression.rb', line 52 def add_content(parent, keyword, *args, &block) super parent.post_add_content end |
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/glimmer/dsl/swt/expand_item_expression.rb', line 36 def can_interpret?(parent, keyword, *args, &block) initial_condition = (keyword == 'expand_item') and parent.respond_to?(:swt_widget) if initial_condition if parent..is_a?(ExpandBar) return true else Glimmer::Config.logger.error {"expand_item widget may only be used directly under a expand_bar widget!"} end end false end |
#interpret(parent, keyword, *args, &block) ⇒ Object
48 49 50 |
# File 'lib/glimmer/dsl/swt/expand_item_expression.rb', line 48 def interpret(parent, keyword, *args, &block) Glimmer::SWT::ExpandItemProxy.new(parent, args) end |