Class: SKUI::Textbox
Overview
Instance Attribute Summary
Attributes inherited from Control
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(value = '') ⇒ Textbox
constructor
A new instance of Textbox.
- #multiline ⇒ Boolean
- #password ⇒ Boolean
- #readonly ⇒ Boolean
- #value ⇒ String
Methods inherited from Control
#enabled, #left, #name, #position, #release, #size, #stretch, #tab_index, #tooltip, #visible, #width, #z_index
Methods inherited from Base
#background_color, #font, #foreground_color, #inspect, #parent, #release, #to_js, #typename, #ui_id
Methods included from Events
#add_event_handler, included, #release_events, #trigger_event
Constructor Details
#initialize(value = '') ⇒ Textbox
Returns a new instance of Textbox.
35 36 37 38 |
# File 'src/SKUI/textbox.rb', line 35 def initialize( value = '' ) super() @properties[ :value ] = value end |
Instance Method Details
#multiline ⇒ Boolean
15 |
# File 'src/SKUI/textbox.rb', line 15 prop_bool( :multiline, &TypeCheck::BOOLEAN ) |
#password ⇒ Boolean
23 |
# File 'src/SKUI/textbox.rb', line 23 prop_bool( :password, &TypeCheck::BOOLEAN ) |