Class: Component

Inherits:
Object show all
Defined in:
lib/clevic/swing/extensions.rb

Instance Method Summary collapse

Instance Method Details

#<<(obj) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/clevic/swing/extensions.rb', line 54

def <<( obj )
  case obj
  when Clevic::Separator
    add_separator

  when Clevic::Action
    add obj.menu_item

  when String
    add obj.to_java_string

  else
    add obj
  end
end