public abstract class View extends DefaultViewable implements Identifiable
View components display information to the user. A view
obtains the data from the model. There can be multiple views of the model.
Each View has an associated Controller.
Controllers receive requests to handle the commands associated with user
interaction with the view.PROP_ICON_PATH, PROP_LABEL, PROP_VISIBLE| Constructor and Description |
|---|
View() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
activate()
Called when the View gains the input focus.
|
abstract void |
deactivate()
Called when the View looses the input focus.
|
abstract Context |
getContext()
Gets the current view context.
|
abstract Controller |
getController()
Get the
Controller associated with this view. |
abstract GUIPanel |
getGUI()
Get the root graphical user interface component.
|
abstract boolean |
isVisible()
Determine whether the View is visible.
|
abstract View |
parent()
Get the parent view.
|
abstract void |
setVisible(boolean visible)
Show/hide view.
|
addPropertyChangeListener, firePropertyChange, getIcon, getLabel, getToolTip, removePropertyChangeListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIDpublic abstract GUIPanel getGUI()
public abstract void setVisible(boolean visible)
setVisible in class DefaultViewablevisible - The visible state of the view.public abstract boolean isVisible()
isVisible in interface ViewableisVisible in class DefaultViewablepublic abstract Context getContext()
Context.public abstract void activate()
public abstract void deactivate()
public abstract Controller getController()
Controller associated with this view.Controller responsible for handling the actions that
can be executed from this view.public abstract View parent()