|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Convenience "Form" to quickly get hold of a container with bound widgets. It's usable f.i. with FormUtils to add/show in a JFrame or with JFormDialog to add/show in a JDialog.
Main responsibilities
Method Summary | |
void |
commit()
|
void |
flush()
|
javax.swing.JComponent |
getFormComponent()
return the built container. |
java.lang.String |
getResource()
return the resource to load from. |
java.lang.Object |
getTarget()
return the target data. |
void |
registerActionsAsHandlers(java.util.List actions,
java.util.List actionIDs)
a hook to register actions to buttons loaded by this form. |
void |
registerHandler(java.util.List list,
java.lang.Object handler)
a hook to register callback methods in an external handler to buttons loaded by this form. |
void |
setTarget(java.lang.Object target)
set the target data. |
Method Detail |
public javax.swing.JComponent getFormComponent()
public java.lang.String getResource()
PENDING: really needed to expose publicly? Used only in FormUtils as default title ...
public void setTarget(java.lang.Object target)
target
- public java.lang.Object getTarget()
public void registerHandler(java.util.List list, java.lang.Object handler)
list
- a list of methods nameshandler
- the object implementing the methodspublic void registerActionsAsHandlers(java.util.List actions, java.util.List actionIDs)
NOTE: it's the responsibility of the calling code to keep the two parameter lists in synch.
actions
- a list of actionsactionIDs
- a list of corresponding button idspublic void commit()
public void flush()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |