|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.DefaultBoundedRangeModel
Default Implementation of BoundedRangeModel.
Nested Class Summary | |
static class |
DefaultBoundedRangeModel.EmptyModel
Empty Model. |
Field Summary | |
protected ChangeEvent |
changeEvent
|
protected EventListenerList |
listenerList
|
Constructor Summary | |
DefaultBoundedRangeModel()
Constructs new DefaultBoundedRangeModel object. |
|
DefaultBoundedRangeModel(int value,
int extent,
int minimum,
int maximum)
Constructs new DefaultBoundedRangeModel object. |
Method Summary | |
void |
addChangeListener(ChangeListener listener)
Adds change listener. |
protected void |
fireStateChanged()
Fires state changed event. |
ChangeListener[] |
getChangeListeners()
Returns change listeners. |
int |
getExtent()
Returns the current extent. |
int |
getMaximum()
Returns the maximum value for the model. |
int |
getMinimum()
Returns the minimum value for the model. |
int |
getValue()
Returns the current value for the model. |
boolean |
getValueIsAdjusting()
Returns the value of the valueIsAdjusting property. |
void |
removeChangeListener(ChangeListener listener)
Removes change listener. |
void |
setExtent(int extent)
Sets the current extent. |
void |
setMaximum(int maximum)
Sets the maximum value for the model. |
void |
setMinimum(int minimum)
Sets the minimum value for the model. |
void |
setRangeProperties(int value,
int extent,
int minimum,
int maximum,
boolean adjusting)
Sets all the properties for the model. |
void |
setValue(int value)
Sets the current value for the model. |
void |
setValueIsAdjusting(boolean adjusting)
Sets the value of the valueIsAdjusting property. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final ChangeEvent changeEvent
protected final EventListenerList listenerList
Constructor Detail |
public DefaultBoundedRangeModel()
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum)
value
- the valueextent
- the extentminimum
- the minimummaximum
- the maximumMethod Detail |
public ChangeListener[] getChangeListeners()
protected void fireStateChanged()
public int getValue()
getValue
in interface BoundedRangeModel
public void setValue(int value)
setValue
in interface BoundedRangeModel
value
- the valuepublic int getMinimum()
getMinimum
in interface BoundedRangeModel
public void setMinimum(int minimum)
setMinimum
in interface BoundedRangeModel
minimum
- the minimum valuepublic int getMaximum()
getMaximum
in interface BoundedRangeModel
public void setMaximum(int maximum)
setMaximum
in interface BoundedRangeModel
maximum
- the maximum valuepublic int getExtent()
getExtent
in interface BoundedRangeModel
public void setExtent(int extent)
setExtent
in interface BoundedRangeModel
extent
- the extentpublic boolean getValueIsAdjusting()
getValueIsAdjusting
in interface BoundedRangeModel
public void setValueIsAdjusting(boolean adjusting)
setValueIsAdjusting
in interface BoundedRangeModel
adjusting
- the value of the valueIsAdjusting propertypublic void setRangeProperties(int value, int extent, int minimum, int maximum, boolean adjusting)
setRangeProperties
in interface BoundedRangeModel
value
- the valueextent
- the extentminimum
- the minimum valuemaximum
- the maximum valueadjusting
- the adjusting flagpublic void addChangeListener(ChangeListener listener)
addChangeListener
in interface BoundedRangeModel
listener
- the change listenerpublic void removeChangeListener(ChangeListener listener)
removeChangeListener
in interface BoundedRangeModel
listener
- the change listenerpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |