All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.desktop.Model
java.lang.Object
|
+----COM.ibm.desktop.Model
- public abstract class Model
- extends Object
- implements IModel
Model is an abstract class that provides default implementation to
persist model data and to register and notify listeners of model
changes.
Copyright (c) Taligent, Inc. 1996 - 1997.
Copyright (c) IBM Corporation 1996 - 1997.
All Rights Reserved.
- See Also:
- IModel
-
Model()
- Constructs an empty model.
-
addModelChangeListener(ModelChangeListener)
- Add a listener to subscribe for model change events.
-
getFileExtension()
- Return the file extension string (3 or 4 letter string without the .)
-
isModelChanged()
- Is the model changed?
-
notifyOfModelChange(Object)
- Send a ModelChangeEvent to the registered listeners to notify them
of any change in the model.
-
removeModelChangeListener(ModelChangeListener)
- Remove a listener from receiving model change events.
-
setModelChanged(boolean)
- Set model changed to true or false.
Model
public Model()
- Constructs an empty model.
getFileExtension
public abstract String getFileExtension()
- Return the file extension string (3 or 4 letter string without the .)
isModelChanged
public synchronized boolean isModelChanged()
- Is the model changed?
setModelChanged
public synchronized void setModelChanged(boolean flag)
- Set model changed to true or false.
notifyOfModelChange
public void notifyOfModelChange(Object data)
- Send a ModelChangeEvent to the registered listeners to notify them
of any change in the model.
- Parameters:
- data - event data for the ModelChangeEvent
- See Also:
- ModelChangeListener, ModelChangeEvent
addModelChangeListener
public synchronized void addModelChangeListener(ModelChangeListener l)
- Add a listener to subscribe for model change events.
removeModelChangeListener
public synchronized void removeModelChangeListener(ModelChangeListener l)
- Remove a listener from receiving model change events.
All Packages Class Hierarchy This Package Previous Next Index