|
||||||||||
| 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
public abstract class GUIField
GUI presentation of a field.
| Constructor Summary | |
|---|---|
GUIField(Field field)
Constructs a GUIField. |
|
| Method Summary | |
|---|---|
protected void |
addComponent(JComponent component,
Object constraints)
Adds a component. |
protected void |
addDescription()
Adds a field description to the list of UI elements. |
protected void |
addField(JComponent component)
Adds the field. |
protected void |
addLabel()
Adds the label for the field. |
protected void |
addLabel(String label)
Adds a label. |
protected void |
addText(String text)
Adds a static text field. |
protected void |
addTooltip()
Adds the tooltip to each component in this view. |
List<Component> |
getComponents()
Returns the components that make up the view. |
abstract JComponent |
getFirstFocusableComponent()
Return a JComponent of this field which is the primary candidate to gain focus. |
protected InstallData |
getInstallData()
Returns the installation data. |
protected void |
notifyUpdateListener()
Notifies any registered listener that the view has updated. |
protected String |
replaceVariables(String value)
Helper to replace variables in a string. |
void |
setUpdateListener(UpdateListener listener)
Registers a listener to be notified of field updates. |
boolean |
translateStaticText()
Refresh not editable texts to replace variables |
boolean |
updateField(Prompt prompt)
Updates the field from the view. |
boolean |
updateField(Prompt prompt,
boolean skipValidation)
Updates the field from the view. |
boolean |
updateView()
Updates the view from the field. |
protected void |
warning(String message,
Prompt prompt)
Show localized warning message dialog basing on given parameters. |
| 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 GUIField(Field field)
GUIField.
field - the field| Method Detail |
|---|
public boolean updateField(Prompt prompt)
true.
prompt - the prompt to display messages
true if the field was updated, false if the view is invalid
public boolean updateField(Prompt prompt,
boolean skipValidation)
true.
prompt - the prompt to display messages
true if the field was updated, false if the view is invalidpublic boolean updateView()
false.
true if the view was updatedpublic List<Component> getComponents()
public abstract JComponent getFirstFocusableComponent()
JComponent of this field which is the primary candidate to gain focus.
JComponent to gain focuspublic void setUpdateListener(UpdateListener listener)
listener - the listener to notifyprotected void addField(JComponent component)
component - the componentprotected void addLabel()
protected void addLabel(String label)
label - the label
protected void addComponent(JComponent component,
Object constraints)
component - the componentconstraints - the component constraintspublic final boolean translateStaticText()
protected void addTooltip()
protected void addDescription()
protected void addText(String text)
text - the text. May be nullprotected void notifyUpdateListener()
protected InstallData getInstallData()
protected String replaceVariables(String value)
value - the string to perform variable replacement on. May be null
protected void warning(String message,
Prompt prompt)
message - the message to print out in dialog box.prompt - the prompt to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||