Class: Glimmer::DSL::SWT::TrayItemExpression

Inherits:
StaticExpression
  • Object
show all
Includes:
ParentExpression
Defined in:
lib/glimmer/dsl/swt/tray_item_expression.rb

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


36
37
38
39
40
# File 'lib/glimmer/dsl/swt/tray_item_expression.rb', line 36

def can_interpret?(parent, keyword, *args, &block)
  super and
    parent.swt_widget.is_a?(Shell) and
    args.empty?
end

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



42
43
44
# File 'lib/glimmer/dsl/swt/tray_item_expression.rb', line 42

def interpret(parent, keyword, *args, &block)
  Glimmer::SWT::TrayItemProxy.new(parent, *args)
end