Class: Lore::GUI::Password
- Inherits:
-
Text
- Object
- Form_Element
- Text
- Lore::GUI::Password
- Defined in:
- lib/lore/gui/form_element.rb
Overview
class }}}
Instance Attribute Summary
Attributes inherited from Form_Element
#attribute_id, #attribute_label, #attribute_name, #attribute_range, #attribute_table, #attribute_value, #id, #mode, #on_change, #on_click, #style, #style_class, #template, #template_file
Instance Method Summary collapse
-
#initialize(_table, _attrib_name, _attrib_label, _attrib_range = nil, _attrib_value = nil) ⇒ Password
constructor
A new instance of Password.
Methods inherited from Text
Methods inherited from Form_Element
for, #label, #onblur, #onfocus, #print, #set_attribute_style, #set_attribute_value, #set_mode, #setup, #string
Constructor Details
#initialize(_table, _attrib_name, _attrib_label, _attrib_range = nil, _attrib_value = nil) ⇒ Password
Returns a new instance of Password.
180 181 182 183 184 |
# File 'lib/lore/gui/form_element.rb', line 180 def initialize(_table, _attrib_name, _attrib_label, _attrib_range=nil, _attrib_value=nil) setup(_table, _attrib_name, _attrib_label, _attrib_range, _attrib_value) @template_file = 'password.rhtml' @readonly_template_file = 'password_readonly.rhtml' end |