All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.desktop.ModelView
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----COM.ibm.desktop.ModelView
- public class ModelView
- extends Panel
- implements IView, ModelChangeListener, ModelSelectionChangeListener
ModelView provides a convenience container View class with the knowledge
of a model. It automatically listens to the model for model change
notification and to the component controller for model selection change
notification.
Copyright (c) Taligent, Inc. 1996 - 1997.
Copyright (c) IBM Corporation 1996 - 1997.
All Rights Reserved.
-
ModelView()
- Default constructor.
-
ModelView(IModel)
- Constructor that takes a model.
-
getComponentController()
- Return the component controller.
-
getModel()
- Return the model.
-
handleModelChange(ModelChangeEvent)
- Invoked when a model change event is sent.
-
handleModelSelectionChange(ModelSelectionChangeEvent)
- Invoked when a model change selection event is sent.
-
initialize()
- Initialize the ModelView to receive model change notification from
the model and model selection change notification from
the component controller.
-
setModel(IModel)
-
ModelView
public ModelView()
- Default constructor.
ModelView
public ModelView(IModel model)
- Constructor that takes a model.
initialize
public void initialize()
- Initialize the ModelView to receive model change notification from
the model and model selection change notification from
the component controller.
Override this method to perform view initialization and remember
to invoke super.initialize().
getModel
public IModel getModel()
- Return the model.
setModel
public void setModel(IModel model)
getComponentController
public ComponentController getComponentController()
- Return the component controller.
handleModelChange
public void handleModelChange(ModelChangeEvent event)
- Invoked when a model change event is sent. Override this method to
handle the event. Default implementation enables/disables the save
menu item and the save tool button depending on whether the model
has changed.
handleModelSelectionChange
public void handleModelSelectionChange(ModelSelectionChangeEvent event)
- Invoked when a model change selection event is sent. Override this
method to handle the event. There is no default implementation.
All Packages Class Hierarchy This Package Previous Next Index