|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.dialog.ApplicationDialog
org.springframework.richclient.dialog.InputApplicationDialog
public class InputApplicationDialog
Simple input application dialog consisting of a label and a text field for accepting input.
| Field Summary |
|---|
| Fields inherited from class org.springframework.richclient.dialog.ApplicationDialog |
|---|
DEFAULT_CANCEL_COMMAND_ID, DEFAULT_FINISH_COMMAND_ID, DEFAULT_FINISH_SUCCESS_MESSAGE_KEY, DEFAULT_FINISH_SUCCESS_TITLE_KEY, logger, SUCCESS_FINISH_MESSAGE_KEY, SUCCESS_FINISH_TITLE_KEY |
| Fields inherited from interface org.springframework.richclient.dialog.Messagable |
|---|
MESSAGE_PROPERTY |
| Constructor Summary | |
|---|---|
InputApplicationDialog()
|
|
InputApplicationDialog(Object bean,
String propertyName)
|
|
InputApplicationDialog(Object bean,
String propertyName,
boolean bufferChanges)
|
|
InputApplicationDialog(String title,
Window parent)
|
|
InputApplicationDialog(String title,
Window parent,
CloseAction closeAction)
|
|
InputApplicationDialog(ValidatingFormModel formModel,
String propertyName)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener to all properties of this publisher. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Register a listener to a specific property. |
protected JComponent |
createDialogContentPane()
Return the GUI which allows the user to manipulate the business objects related to this dialog. |
protected JComponent |
createInputLabel()
|
protected MessagePane |
createMessagePane()
|
ValidatingFormModel |
getFormModel()
|
JComponent |
getInputField()
|
protected boolean |
onFinish()
Request invocation of the action taken when the user hits the OK (finish) button. |
protected void |
onFinish(Object inputValue)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove the listener from all properties of this publisher. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove the listener from a specific property. |
void |
setFinishAction(Closure procedure)
|
void |
setInputConstraint(Constraint constraint)
|
void |
setInputField(JComponent field)
|
void |
setInputLabelMessage(String inputLabel)
|
void |
setMessage(Message message)
Set the message. |
| Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
|---|
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputApplicationDialog(Object bean,
String propertyName)
public InputApplicationDialog(Object bean,
String propertyName,
boolean bufferChanges)
public InputApplicationDialog(ValidatingFormModel formModel,
String propertyName)
public InputApplicationDialog()
public InputApplicationDialog(String title,
Window parent)
public InputApplicationDialog(String title,
Window parent,
CloseAction closeAction)
| Method Detail |
|---|
public void setInputField(JComponent field)
public void setInputLabelMessage(String inputLabel)
public void setInputConstraint(Constraint constraint)
public void setFinishAction(Closure procedure)
protected MessagePane createMessagePane()
protected JComponent createDialogContentPane()
ApplicationDialogOK
and Cancel buttons, in a standard manner.
Any components/objects created at this point need to be disposed in
ApplicationDialog.disposeDialogContentPane().
createDialogContentPane in class ApplicationDialogApplicationDialog.disposeDialogContentPane()protected JComponent createInputLabel()
protected boolean onFinish()
ApplicationDialogOK (finish) button.
onFinish in class ApplicationDialogprotected void onFinish(Object inputValue)
public ValidatingFormModel getFormModel()
public JComponent getInputField()
public void setMessage(Message message)
Messagable
setMessage in interface Messagablepublic void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener in interface PropertyChangePublisherlistener - the PropertyChangeListener to register.
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener in interface PropertyChangePublisherpropertyName - the property to monitor.listener - the PropertyChangeListener to register.public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener in interface PropertyChangePublisherlistener - the PropertyChangeListener to remove.
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener in interface PropertyChangePublisherpropertyName - the property that was being monitored.listener - the PropertyChangeListener to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||