| |
|
| java.lang.Object org.eclipse.ui.internal.Model
All known Subclasses: org.eclipse.ui.internal.IntModel,
Model | public class Model (Code) | | Represents an object with state that will notifies a set of listeners
whenever its state changes
|
Constructor Summary | |
public | Model(Object initialState) Creates a new model with the given initial state. |
Method Summary | |
public void | addChangeListener(IChangeListener changeListener) Adds the given listener to the set of listeners that will be
notified when the state changes. | public Object | getState() Returns the current state of the model. | public void | removeChangeListener(IChangeListener changeListener) Stops this model from sending change events from the given listener. | public void | setState(Object newState, IChangeListener toOmit) Sets the current state of the model.
Parameters: newState - the new state of the model Parameters: toOmit - change listener that should be omitted from change notifications (or null if alllisteners should be notified). |
Model | public Model(Object initialState)(Code) | | Creates a new model with the given initial state.
Parameters: initialState - |
addChangeListener | public void addChangeListener(IChangeListener changeListener)(Code) | | Adds the given listener to the set of listeners that will be
notified when the state changes.
Parameters: toAdd - |
getState | public Object getState()(Code) | | Returns the current state of the model.
the current model state |
removeChangeListener | public void removeChangeListener(IChangeListener changeListener)(Code) | | Stops this model from sending change events from the given listener.
Parameters: toRemove - |
setState | public void setState(Object newState, IChangeListener toOmit)(Code) | | Sets the current state of the model.
Parameters: newState - the new state of the model Parameters: toOmit - change listener that should be omitted from change notifications (or null if alllisteners should be notified). |
|
|
|