Class HtmlEntry
This widget corresponds to an entry in a form where the user can input
one line of text. It supports the following attributes:
- name -
String representing the name that is associated with the component.
- maxlength -
Integer representing the maximum number of character the component
will accept.
- size -
Integer representing the width of the component in characters.
- value -
String that is the contents of the entry.
- isPassword -
Boolean signaling if the entry is for password input or not. By
default it takes the false value.
constructor
Initializes the object.
|
get attribName
Fetches the value of an attribute.
|
init attribList
Initializes the values of a set of attributes.
|
render
Outputs the widget HTML representation.
|
set attribName attribValue
Changes the values of one of the widget attributes.
|
|
constructor
HtmlEntry constructor
Initializes the object.
-
get
HtmlEntry get attribName
Fetches the value of an attribute.
- Parameters:
- attribName -
Symbol identifying the attribute whose value is being fetched.
- Returns:
-
The value of the
attribName attribute.
-
The
attribName argument must be one of the supported
attributes.
init
HtmlEntry init attribList
Initializes the values of a set of attributes.
- Parameters:
- attribList -
A list with the attributes and its values.
- Returns:
-
A reference to the object for which the method was called.
-
Initializes attributes of the widget. These
are attributes known to the
set and
get methods.
The attribList argument contains the attributes
names and values. It is a list where each
element specifies an attribute. Each element
is a two element list: a symbol identifying the attribute and
its new value.
render
HtmlEntry render
Outputs the widget HTML representation.
-
set
HtmlEntry set attribName attribValue
Changes the values of one of the widget attributes.
- Parameters:
- attribName -
Symbol identifying the attribute whose value will be modified.
- attribValue -
The new value of the attribute.
- Returns:
-
A reference to the object for which the method was called.
-
The
attribName argument must be the same as one of the
symbols passed to the init method, otherwise a
runtime error will occur.
Report a bug or request new features
© 2013