Class: Glimmer::DSL::Opal::ShineDataBindingExpression
- Inherits:
-
Expression
- Object
- Expression
- Glimmer::DSL::Opal::ShineDataBindingExpression
- Defined in:
- lib/glimmer/dsl/opal/shine_data_binding_expression.rb
Instance Method Summary collapse
- #can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
- #interpret(parent, keyword, *args, &block) ⇒ Object
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/glimmer/dsl/opal/shine_data_binding_expression.rb', line 31 def can_interpret?(parent, keyword, *args, &block) args.size == 0 and block.nil? and ( (parent.respond_to?(:set_attribute) and parent.respond_to?(keyword)) or (parent.is_a?(Glimmer::SWT::TableProxy)) # TODO support tree element ) # TODO support canvas elements # and # !(parent.respond_to?(:swt_widget) && parent.swt_widget.class == org.eclipse.swt.widgets.Canvas && keyword == 'image') end |
#interpret(parent, keyword, *args, &block) ⇒ Object
43 44 45 |
# File 'lib/glimmer/dsl/opal/shine_data_binding_expression.rb', line 43 def interpret(parent, keyword, *args, &block) Glimmer::DataBinding::Shine.new(parent, keyword) end |