|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jurvis.swing.form.JvAbstractForm
public abstract class JvAbstractForm
Abstract form containing input fields displaying data from a model. Classes
extending JvAbstractForm are expected to implement the
JvForm.setModel(java.lang.Object) and JvForm.getModel() methods. Stubs are provided
for isValid(org.jurvis.util.JvErrorList) and commit(org.jurvis.util.JvErrorList), but most subclasses will
want to provide their own implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
enabled
Flag indicating if the form is enabled. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
JvAbstractForm()
Construct an instance of JvAbstractForm. |
| Method Summary | |
|---|---|
boolean |
commit(JvErrorList errorList)
Commit all the user changes in the form to the form's model. |
Object |
getActiveObject()
Return the active object in the form. |
JComponent |
getComponent()
Return the JComponent containing this form. |
boolean |
isEnabled()
Return whether the form is enabled or not. |
boolean |
isModified()
Returns whether this form has been modified by the user. |
boolean |
isValid(JvErrorList errorList)
Validate all user changes to the form. |
void |
registerFields(JvForm form)
Register all fields within this form to the specified enclosing form. |
boolean |
rollback(JvErrorList errorList)
Rollback all the user changes in the form to their original values. |
void |
setEnabled(boolean enabled)
Set whether form is editable or not. |
void |
setModified(boolean modified)
Sets whether or not this form has been modified by the user. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jurvis.swing.form.JvForm |
|---|
getModel, setModel |
| Methods inherited from interface org.jurvis.beans.JvJavaBean |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected boolean enabled
| Constructor Detail |
|---|
protected JvAbstractForm()
JvAbstractForm.
| Method Detail |
|---|
public JComponent getComponent()
JComponent containing this form.
getComponent in interface JvFormJComponentpublic void registerFields(JvForm form)
form - the enclosing formpublic Object getActiveObject()
getActiveObject in interface JvFormpublic void setModified(boolean modified)
setModified in interface JvFormmodified - new value for the modified propertypublic boolean isModified()
isModified in interface JvFormpublic boolean isEnabled()
isEnabled in interface JvFormisEnabled in class Componentpublic void setEnabled(boolean enabled)
setEnabled in interface JvFormsetEnabled in class JComponentenabled - new value for the modified propertypublic boolean isValid(JvErrorList errorList)
isValid in interface JvFormerrorList - list containing any errors found during validation
public boolean commit(JvErrorList errorList)
commit in interface JvFormerrorList - list containing any errors found during commit
public boolean rollback(JvErrorList errorList)
rollback in interface JvFormerrorList - list containing any errors found during the rollback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||