org.jurvis.swing.form
Interface JvView

All Superinterfaces:
JvForm, JvJavaBean
All Known Implementing Classes:
JvAbstractView

public interface JvView
extends JvForm

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.

Author:
Neil W. Weber
See Also:
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

YES_OPTION

static final int YES_OPTION
Return value from class method if YES is chosen.

See Also:
Constant Field Values

NO_OPTION

static final int NO_OPTION
Return value from class method if NO is chosen.

See Also:
Constant Field Values

CANCEL_OPTION

static final int CANCEL_OPTION
Return value from class method if CANCEL is chosen.

See Also:
Constant Field Values
Method Detail

setName

void setName(String name)
Set the name of this view. The name is used to identify properties unique to this view.

Parameters:
name - the view's name

getName

String getName()
Return the name of this view.

Returns:
the view's name

getTitle

String getTitle()
Return the title of this view.

Returns:
the view's title

getMenuBar

JMenuBar getMenuBar()
Return the view's JMenuBar.

Returns:
the view's menu bar

getToolBar

JToolBar getToolBar()
Return the view's JToolBar.

Returns:
the view's tool bar

getStatusBar

JComponent getStatusBar()
Return the view's status bar.

Returns:
the view's status bar

printModel

void printModel()
Print the current model in a format respecting the current view.


saveModel

boolean saveModel()
Save the current view's model.

Returns:
true if the save was successful; false otherwise.

revertModel

boolean revertModel()
Revert the current view's model to its original values.

Returns:
true if the revert was successful; false otherwise.

close

void close(int status)
Called to notify the view that it is being permanently closed.

Parameters:
status - exit status


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.