Module: SwingParadise::BaseModule
- Includes:
- SwingParadise
- Defined in:
- lib/swing_paradise/base_module/base_module.rb
Overview
SwingParadise::BaseModule
Constant Summary
LAST_UDPATE, VERSION
Instance Method Summary
collapse
#do_quit, #entry, #jbutton, #jcombobox, #jframe, #jlabel, #jruby_font, #jtextarea, #jtextview, #new_panel, #quit_button, #show_message_dialog, #swing_dimension, text, #text
Instance Method Details
#commandline_arguments? ⇒ Boolean
#
commandline_arguments?
#
37
38
39
|
# File 'lib/swing_paradise/base_module/base_module.rb', line 37
def commandline_arguments?
@commandline_arguments
end
|
#default_close ⇒ Object
51
52
53
|
# File 'lib/swing_paradise/base_module/base_module.rb', line 51
def default_close
setDefaultCloseOperation(JFrame::EXIT_ON_CLOSE)
end
|
#empty_border(a, b, c, d) ⇒ Object
58
59
60
|
# File 'lib/swing_paradise/base_module/base_module.rb', line 58
def empty_border(a, b, c, d)
EmptyBorder.new(a, b, c, d)
end
|
#first_argument? ⇒ Boolean
Also known as:
first?
44
45
46
|
# File 'lib/swing_paradise/base_module/base_module.rb', line 44
def first_argument?
@commandline_arguments.first
end
|
#set_commandline_arguments(i = '') ⇒ Object
#
set_commandline_arguments
#
29
30
31
32
|
# File 'lib/swing_paradise/base_module/base_module.rb', line 29
def set_commandline_arguments(i = '')
i = [i].flatten.compact
@commandline_arguments = i
end
|