| java.lang.Object org.eclipse.ui.internal.Model org.eclipse.ui.internal.IntModel
IntModel | public class IntModel extends Model (Code) | | Represents a single integer that can send notifications when it changes.
IChangeListeners can be attached which will receive notifications whenever
the integer changes.
|
Constructor Summary | |
public | IntModel(int initialValue) |
Method Summary | |
public int | get() Returns the value of the integer. | public void | set(int newValue, IChangeListener source) Sets the value of the integer and notifies all
change listeners except for the one that caused the change. | public void | set(int newValue) Sets the value of the integer and notifies all change listeners
of the change. |
IntModel | public IntModel(int initialValue)(Code) | | |
get | public int get()(Code) | | Returns the value of the integer.
the value of the integer |
set | public void set(int newValue, IChangeListener source)(Code) | | Sets the value of the integer and notifies all
change listeners except for the one that caused the change.
Parameters: newValue - the new value of the integer |
set | public void set(int newValue)(Code) | | Sets the value of the integer and notifies all change listeners
of the change.
Parameters: newValue - the new value of the integer |
|
|