|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjform.AbstractPObjForm
de.mguennewig.pobjform.swing.PObjSwingForm
public abstract class PObjSwingForm
A Swing based implementation of the PObjForm interface.
It is advisable to use the provided default actions for the
OK and
Cancel buttons.
| Field Summary |
|---|
| Fields inherited from class de.mguennewig.pobjform.AbstractPObjForm |
|---|
ERROR_INVALID_VALUE, ERROR_MANDATORY |
| Constructor Summary | |
|---|---|
PObjSwingForm(Container db)
Creates a new PObject-enhanced Swing based form/dialog. |
|
| Method Summary | |
|---|---|
void |
addButton(javax.swing.JButton button)
|
void |
addOkCancelButtons(java.lang.String ok,
java.lang.String cancel)
Adds an default capable `OK' button and a `Cancel' button. |
FormElement |
createFormElement(FormEntry entry)
Creates a FormElement for one specified FormEntry. |
void |
enableDefaultButton(javax.swing.JRootPane root)
Enables the first capable button as the default one. |
javax.swing.JDialog |
getDialog()
|
java.util.ResourceBundle |
getResourceBundle()
|
javax.swing.JComponent |
getSwingComponent(FormEntry entry)
|
boolean |
hasUserCancelled()
|
void |
setResourceBundle(java.util.ResourceBundle resourceBundle)
|
javax.swing.JPanel |
write()
Writes this form/dialog into a new JPanel that will be returned. |
void |
write(java.awt.Dialog parent,
java.lang.String title)
Writes this form into a new modal dialog with given parent and title. |
void |
write(java.awt.Dialog parent,
java.lang.String title,
boolean modal)
Writes this form into a dialog with given parent and title. |
javax.swing.JPanel |
write(FormEntry[] entries)
Writes this form/dialog into a new JPanel that will be returned. |
void |
write(java.awt.Frame parent,
java.lang.String title)
Writes this form into a new modal dialog with given parent and title. |
void |
write(java.awt.Frame parent,
java.lang.String title,
boolean modal)
Writes this form into a new modal dialog with given parent and title. |
| Methods inherited from class de.mguennewig.pobjform.AbstractPObjForm |
|---|
addErrorMessage, addInvalidValueMessage, addMandatoryMessage, addMessage, addSuccessMessage, clearMessage, clearMessages, dumpMessages, extractIndexes, getContainer, getElementLabelKey, getElements, getMessageCount, getMessageCount, getMessageProperties, getMessages, getMessages, hasChanged, hasChanged, hasChanged, hasMessages, populateForm, populateForm, populateObject, populateObject, setContainer, setCurrentAsInitialState, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.mguennewig.pobjform.PObjForm |
|---|
getElement, getFormDecl |
| Constructor Detail |
|---|
public PObjSwingForm(Container db)
db - The database container to use to acquire the persistent objects.
PObjReadError - if any database error occurs
for reference elements.| Method Detail |
|---|
public FormElement createFormElement(FormEntry entry)
PObjFormFormElement for one specified FormEntry.
PObjReadError - if any database error occurs
for reference elements.public final javax.swing.JComponent getSwingComponent(FormEntry entry)
public final javax.swing.JDialog getDialog()
public final java.util.ResourceBundle getResourceBundle()
public void setResourceBundle(java.util.ResourceBundle resourceBundle)
public void addButton(javax.swing.JButton button)
public final void addOkCancelButtons(java.lang.String ok,
java.lang.String cancel)
enableDefaultButton(javax.swing.JRootPane)public final boolean hasUserCancelled()
public javax.swing.JPanel write()
JPanel that will be returned.
public final javax.swing.JPanel write(FormEntry[] entries)
JPanel that will be returned.
public final void write(java.awt.Dialog parent,
java.lang.String title)
public final void write(java.awt.Dialog parent,
java.lang.String title,
boolean modal)
public final void write(java.awt.Frame parent,
java.lang.String title)
public final void write(java.awt.Frame parent,
java.lang.String title,
boolean modal)
public final void enableDefaultButton(javax.swing.JRootPane root)
JButton.setDefaultCapable(boolean),
JRootPane.setDefaultButton(javax.swing.JButton)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||