Class: Shoes::Swt::EditLine

Inherits:
InputBox show all
Defined in:
shoes-swt/lib/shoes/swt/input_box.rb

Constant Summary collapse

DEFAULT_STYLES =
::Swt::SWT::SINGLE | ::Swt::SWT::BORDER

Instance Attribute Summary

Attributes inherited from InputBox

#app, #dsl, #readonly, #real

Instance Method Summary collapse

Methods inherited from InputBox

#caret_to, #enabled, #highlight_text, #text, #text=

Methods included from Common::Visibility

#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?

Methods included from Common::Remove

#remove

Methods included from Common::Focus

#focus, #focused?

Constructor Details

#initialize(dsl, app) ⇒ EditLine

Returns a new instance of EditLine.



66
67
68
69
70
# File 'shoes-swt/lib/shoes/swt/input_box.rb', line 66

def initialize(dsl, app)
  styles = DEFAULT_STYLES
  styles |= ::Swt::SWT::PASSWORD if dsl.secret?
  super(dsl, app, styles)
end