|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JvView
Formalization of the View component of the Model-View-Controller paradigm.
A JvView is typically displayed within a
JvApplication.
Extending JvForm, a JvView has all the properties
and behavior of a form. It adds a view specific, menu bar, tool bar, and
status bar. When the view is active, its enclosing
JvApplication will display the view's menu bar, tool bar, and
status bar.
JvApplication| Field Summary | |
|---|---|
static int |
CANCEL_OPTION
Return value from class method if CANCEL is chosen. |
static int |
NO_OPTION
Return value from class method if NO is chosen. |
static int |
YES_OPTION
Return value from class method if YES is chosen. |
| Method Summary | |
|---|---|
void |
close(int status)
Called to notify the view that it is being permanently closed. |
JMenuBar |
getMenuBar()
Return the view's JMenuBar. |
String |
getName()
Return the name of this view. |
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 |
setName(String name)
Set the name of this view. |
| 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 |
| Field Detail |
|---|
static final int YES_OPTION
static final int NO_OPTION
static final int CANCEL_OPTION
| Method Detail |
|---|
void setName(String name)
name - the view's nameString getName()
String getTitle()
JMenuBar getMenuBar()
JMenuBar.
JToolBar getToolBar()
JToolBar.
JComponent getStatusBar()
void printModel()
boolean saveModel()
boolean revertModel()
void close(int status)
status - exit status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||