|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tirsen.angkor.Component | +--com.tirsen.angkor.widget.TextInput
Takes input from user as text.
Has the following functionality:
ValueModel
.
ValueModel
.
TextLabel
.
ValueModel
,
TextLabel
,
Serialized FormConstructor Summary | |
TextInput()
|
|
TextInput(java.lang.String id)
|
|
TextInput(java.lang.String prompt,
ValueModel model)
|
|
TextInput(ValueModel model)
|
Method Summary | |
void |
addChangeListener(ChangeListener listener)
|
ValueModel |
getModel()
|
boolean |
isParsing()
This widget is interested in parsing events. |
void |
parse(RenderContext context)
Retrieves the value in the parameter named by Component.getId() and updates
the model with this value. |
void |
removeChangeListener(ChangeListener listener)
|
void |
render(RenderContext context)
Render this view on the given context if the view is visible. |
void |
setModel(ValueModel model)
|
void |
setPassword(boolean password)
|
void |
setPrompt(java.lang.String promptText)
Sets the text of the prompt. |
void |
setPrompt(TextLabel prompt)
Set the prompt as a @{link TextLabel} widget. |
void |
setSize(int size)
|
void |
setVisible(boolean visible)
Specify whether this view is visible or not. |
Methods inherited from class com.tirsen.angkor.Component |
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isVisible, setAttribute, setContainer, setId, uniqueId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextInput(java.lang.String id)
public TextInput()
public TextInput(java.lang.String prompt, ValueModel model)
public TextInput(ValueModel model)
Method Detail |
public void addChangeListener(ChangeListener listener)
addChangeListener
in interface ChangeSource
public void removeChangeListener(ChangeListener listener)
removeChangeListener
in interface ChangeSource
public void setSize(int size)
public void setPrompt(TextLabel prompt)
String
.
The prompt is displayed above the input-box.
public void setPrompt(java.lang.String promptText)
public void setVisible(boolean visible)
View
setVisible
in interface View
setVisible
in class Component
public void setModel(ValueModel model)
public boolean isParsing()
public void parse(RenderContext context)
Component.getId()
and updates
the model with this value. The PropertyEditor specified by the model is used to
parse the String
into an Object
.
public void render(RenderContext context) throws java.io.IOException
View
java.io.IOException
View.setVisible(boolean)
,
View.isVisible()
public void setPassword(boolean password)
public ValueModel getModel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |