|
||||||||||
| 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
org.jurvis.swing.form.JvAbstractView
public abstract class JvAbstractView
Abstract formalization of the View component of the Model-View-Controller
paradigm. Classes extending JvAbstractView are expected to
implement the JvForm.setModel(java.lang.Object) and JvForm.getModel() methods. Stubs are
provided for JvAbstractForm.isValid(org.jurvis.util.JvErrorList) and JvAbstractForm.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 |
|---|
| Fields inherited from class org.jurvis.swing.form.JvAbstractForm |
|---|
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 org.jurvis.swing.form.JvView |
|---|
CANCEL_OPTION, NO_OPTION, YES_OPTION |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
JvAbstractView(JvApplication application)
Construct an instance of JvAbstractView. |
| Method Summary | |
|---|---|
void |
close(int status)
Called to notify the view that it is being permanently closed. |
JvApplication |
getApplication()
Return the application containing this view. |
JMenuBar |
getMenuBar()
Return the view's JMenuBar. |
JComponent |
getStatusBar()
Return the view's status bar. |
String |
getTitle()
Return the title of this view. |
JToolBar |
getToolBar()
Return the view's JToolBar. |
void |
printModel()
Print the current model in a format respecting the current view. |
boolean |
revertModel()
Revert the current view's model to its original values. |
boolean |
saveModel()
Save the current view's model. |
void |
setMenuBar(JMenuBar menuBar)
Set the view's menu bar. |
void |
setStatusBar(JComponent statusBar)
Set the view's status bar. |
void |
setTitle(String title)
Set the view's title. |
void |
setToolBar(JToolBar toolBar)
Set the view's tool bar. |
| Methods inherited from class org.jurvis.swing.form.JvAbstractForm |
|---|
commit, getActiveObject, getComponent, isEnabled, isModified, isValid, registerFields, rollback, setEnabled, setModified |
| 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.JvView |
|---|
getName, setName |
| Methods inherited from interface org.jurvis.swing.form.JvForm |
|---|
commit, getActiveObject, getComponent, getModel, isEnabled, isModified, isValid, rollback, setEnabled, setModel, setModified |
| Methods inherited from interface org.jurvis.beans.JvJavaBean |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
protected JvAbstractView(JvApplication application)
JvAbstractView.
| Method Detail |
|---|
public JvApplication getApplication()
public void setTitle(String title)
title - the new titlepublic String getTitle()
getTitle in interface JvViewpublic void setMenuBar(JMenuBar menuBar)
menuBar - the new menu barpublic JMenuBar getMenuBar()
JMenuBar.
getMenuBar in interface JvViewpublic void setToolBar(JToolBar toolBar)
toolBar - the new tool barpublic JToolBar getToolBar()
JToolBar.
getToolBar in interface JvViewpublic void setStatusBar(JComponent statusBar)
statusBar - the new status barpublic JComponent getStatusBar()
getStatusBar in interface JvViewpublic void printModel()
printModel in interface JvViewpublic boolean saveModel()
saveModel in interface JvViewpublic boolean revertModel()
revertModel in interface JvViewpublic void close(int status)
close in interface JvViewstatus - exit status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||