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

Constructor Index

 o Model()
Constructs an empty model.

Method Index

 o addModelChangeListener(ModelChangeListener)
Add a listener to subscribe for model change events.
 o getFileExtension()
Return the file extension string (3 or 4 letter string without the .)
 o isModelChanged()
Is the model changed?
 o notifyOfModelChange(Object)
Send a ModelChangeEvent to the registered listeners to notify them of any change in the model.
 o removeModelChangeListener(ModelChangeListener)
Remove a listener from receiving model change events.
 o setModelChanged(boolean)
Set model changed to true or false.

Constructors

 o Model
 public Model()
Constructs an empty model.

Methods

 o getFileExtension
 public abstract String getFileExtension()
Return the file extension string (3 or 4 letter string without the .)

 o isModelChanged
 public synchronized boolean isModelChanged()
Is the model changed?

 o setModelChanged
 public synchronized void setModelChanged(boolean flag)
Set model changed to true or false.

 o 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
 o addModelChangeListener
 public synchronized void addModelChangeListener(ModelChangeListener l)
Add a listener to subscribe for model change events.

 o removeModelChangeListener
 public synchronized void removeModelChangeListener(ModelChangeListener l)
Remove a listener from receiving model change events.


All Packages  Class Hierarchy  This Package  Previous  Next  Index