|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.AbstractFieldView
com.izforge.izpack.panels.userinput.gui.GUIField
com.izforge.izpack.panels.userinput.gui.text.GUITextField
public class GUITextField
Text field view.
| Constructor Summary | |
|---|---|
GUITextField(TextField field)
Constructs a GUITextField. |
|
| Method Summary | |
|---|---|
void |
changedUpdate(DocumentEvent e)
|
void |
focusGained(FocusEvent event)
|
void |
focusLost(FocusEvent event)
|
JComponent |
getFirstFocusableComponent()
Return a JComponent of this field which is the primary candidate to gain focus. |
void |
insertUpdate(DocumentEvent e)
|
void |
removeUpdate(DocumentEvent e)
|
void |
setChanged(boolean changed)
|
boolean |
updateField(Prompt prompt,
boolean skipValidation)
Updates the field from the view. |
boolean |
updateView()
Updates the view from the field. |
| Methods inherited from class com.izforge.izpack.panels.userinput.gui.GUIField |
|---|
addComponent, addDescription, addField, addLabel, addLabel, addText, addTooltip, getComponents, getInstallData, notifyUpdateListener, replaceVariables, setUpdateListener, translateStaticText, updateField, warning |
| Methods inherited from class com.izforge.izpack.panels.userinput.field.AbstractFieldView |
|---|
getField, getSummaryKey, getVariable, isDisplayed, isReadonly, setDisplayed, setReadonly, setVariable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GUITextField(TextField field)
GUITextField.
field - the field| Method Detail |
|---|
public boolean updateField(Prompt prompt,
boolean skipValidation)
updateField in class GUIFieldprompt - the prompt to display messagesskipValidation - set to true when wanting to save field data without validating
true if the field was updated, false if the view is invalidpublic boolean updateView()
updateView in class GUIFieldtrue if the view was updatedpublic void setChanged(boolean changed)
public void focusGained(FocusEvent event)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent event)
focusLost in interface FocusListenerpublic void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenerpublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic JComponent getFirstFocusableComponent()
GUIFieldJComponent of this field which is the primary candidate to gain focus.
getFirstFocusableComponent in class GUIFieldJComponent to gain focus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||