|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.ContentPane
com.sptci.echo2demo.InputForm
public class InputForm
A ContentPane that builds the form used to input
user and job information.
Copyright 2006 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private java.util.HashMap<java.lang.String,nextapp.echo2.app.CheckBox> |
checkBoxes
|
private nextapp.echo2.app.Button |
delete
|
private nextapp.echo2.app.Button |
first
|
private nextapp.echo2.app.Label |
index
|
private JDOModelPropertyChangeListener |
jdoChangeListener
The property change listener used to synchronise modifications applied to UI components to the model java bean. |
private nextapp.echo2.app.Button |
last
|
private nextapp.echo2.app.ListBox |
listBox
|
private InputFormModel |
model
The java bean used to store the values of the data for the UI components. |
private nextapp.echo2.app.Button |
next
|
private nextapp.echo2.app.Button |
previous
|
private nextapp.echo2.app.Button |
save
|
private nextapp.echo2.app.SelectField |
selectField
|
private nextapp.echo2.app.TextArea |
textArea
|
private nextapp.echo2.app.TextField |
textField
|
private ViewPropertyChangeListener |
uiChangeListener
The property change listener used to synchronise modifications applied to the model java bean to the UI components. |
| Fields inherited from class nextapp.echo2.app.ContentPane |
|---|
PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_VERTICAL_SCROLL |
| Fields inherited from class nextapp.echo2.app.Component |
|---|
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
InputForm()
Create a new instance of the form. |
|
InputForm(InputFormModel model)
Create a new instance of the form using the specified java bean. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(nextapp.echo2.app.event.ActionEvent event)
ActionListener implementation. |
private nextapp.echo2.app.Button |
createButton(java.lang.String name)
Create the button identified by the specified name. |
private nextapp.echo2.app.Component |
createCheckBoxes()
Create the column necessary to display the check boxes and also create the required check boxes. |
private nextapp.echo2.app.Label |
createLabel(java.lang.String name,
nextapp.echo2.app.Component component)
Create a label using the specified name property and add it to the specified component. |
private nextapp.echo2.app.Component |
createListBox()
Create the list box component. |
private nextapp.echo2.app.Component |
createSelectField()
Create the select field component. |
private nextapp.echo2.app.Component |
createTextArea(java.lang.String name)
Create the label and text area necessary to display the UI components. |
private nextapp.echo2.app.Component |
createTextField(java.lang.String name)
Create the label and text field necessary to display the UI components. |
private void |
doDelete()
The action for the delete button. |
private void |
doNavigate(int index)
The action for the navigation buttons. |
private void |
doSave()
The action for the save button. |
JDOModelPropertyChangeListener |
getDataChangeListener()
Returns jdoChangeListener. |
InputFormModel |
getFormData()
Returns model. |
private void |
initForm()
Initialise the UI components for the form. |
private void |
setIndexValue(int index)
Set the text of the index label. |
(package private) void |
setModel(InputFormModel model)
Set model. |
private void |
setText(nextapp.echo2.app.text.TextComponent text)
Set the text for the specified TextComponent from
the value in the model data bean through jdoChangeListener. |
| Methods inherited from class nextapp.echo2.app.ContentPane |
|---|
getBackgroundImage, getHorizontalScroll, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setVerticalScroll |
| Methods inherited from class nextapp.echo2.app.Component |
|---|
add, add, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, remove, remove, removeAll, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private InputFormModel model
private JDOModelPropertyChangeListener jdoChangeListener
model java bean.
private ViewPropertyChangeListener uiChangeListener
model java bean to the UI components.
private nextapp.echo2.app.TextField textField
private nextapp.echo2.app.TextArea textArea
private java.util.HashMap<java.lang.String,nextapp.echo2.app.CheckBox> checkBoxes
private nextapp.echo2.app.ListBox listBox
private nextapp.echo2.app.SelectField selectField
private nextapp.echo2.app.Button first
private nextapp.echo2.app.Button previous
private nextapp.echo2.app.Button last
private nextapp.echo2.app.Button next
private nextapp.echo2.app.Button save
private nextapp.echo2.app.Button delete
private nextapp.echo2.app.Label index
| Constructor Detail |
|---|
public InputForm()
initForm()public InputForm(InputFormModel model)
model - The java bean to use to store the values of the
UI components.initForm()| Method Detail |
|---|
private void initForm()
createTextField(java.lang.String),
createTextArea(java.lang.String),
createCheckBoxes(),
createSelectField(),
createListBox(),
createButton(java.lang.String)private nextapp.echo2.app.Component createTextField(java.lang.String name)
name - The name used to identify the text field to create.
The name must match the name of the appropriate field
without the Field suffix (eg. userName, salary, ...). The
same name must be configured in the configuration file for
the properties and resources.
createLabel(java.lang.String, nextapp.echo2.app.Component),
setText(nextapp.echo2.app.text.TextComponent)
private nextapp.echo2.app.Label createLabel(java.lang.String name,
nextapp.echo2.app.Component component)
name - The name used to identify the label to create. The
same name must be configured in the configuration file for
the properties and resources.private void setText(nextapp.echo2.app.text.TextComponent text)
TextComponent from
the value in the model data bean through jdoChangeListener.
Note: It is mandatory that the ActionCommand
for the TextComponent be set prior to invoking this
method.
text - The text component whose text is to be set.private nextapp.echo2.app.Component createTextArea(java.lang.String name)
name - The name used to identify the text area to create.
The name must match the name of the appropriate area
without the Area suffix (eg. userName, salary, ...). The
same name must be configured in the configuration file for
the properties and resources.
createLabel(java.lang.String, nextapp.echo2.app.Component),
setText(nextapp.echo2.app.text.TextComponent)private nextapp.echo2.app.Component createCheckBoxes()
private nextapp.echo2.app.Component createSelectField()
private nextapp.echo2.app.Component createListBox()
private nextapp.echo2.app.Button createButton(java.lang.String name)
name - The name used to identify the button to create.
The name must match the name of the appropriate button. The
same name must be configured in the configuration file for
the properties and resources.
private void setIndexValue(int index)
index label. Enable or disable
the navigation buttons depending upon the values.
index - The index value to set.public final InputFormModel getFormData()
model.
final void setModel(InputFormModel model)
model.
model - The value to set.public final JDOModelPropertyChangeListener getDataChangeListener()
jdoChangeListener.
public void actionPerformed(nextapp.echo2.app.event.ActionEvent event)
actionPerformed in interface nextapp.echo2.app.event.ActionListenerevent - The event that contains the information
pertaining to the action.private void doSave()
save button.
private void doDelete()
delete button.
private void doNavigate(int index)
index - The index in a List of InputFormModel objects at
which the object is to be retrieved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||