yu.ac.bg.etf.javaqx.qswing
Class DefaultBoundedRangeModel.EmptyModel

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.DefaultBoundedRangeModel.EmptyModel
All Implemented Interfaces:
BoundedRangeModel
Enclosing class:
DefaultBoundedRangeModel

public static class DefaultBoundedRangeModel.EmptyModel
extends java.lang.Object
implements BoundedRangeModel

Empty Model.


Field Summary
static DefaultBoundedRangeModel.EmptyModel INSTANCE
           
 
Constructor Summary
DefaultBoundedRangeModel.EmptyModel()
           
 
Method Summary
 void addChangeListener(ChangeListener listener)
          Adds change listener.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultBoundedRangeModel.EmptyModel INSTANCE
Constructor Detail

DefaultBoundedRangeModel.EmptyModel

public DefaultBoundedRangeModel.EmptyModel()
Method Detail

getExtent

public int getExtent()
Description copied from interface: BoundedRangeModel
Returns the current extent.

Specified by:
getExtent in interface BoundedRangeModel
Returns:
the extent

getMaximum

public int getMaximum()
Description copied from interface: BoundedRangeModel
Returns the maximum value for the model.

Specified by:
getMaximum in interface BoundedRangeModel
Returns:
the maximum value for the model

getMinimum

public int getMinimum()
Description copied from interface: BoundedRangeModel
Returns the minimum value for the model.

Specified by:
getMinimum in interface BoundedRangeModel
Returns:
the minimum value for the model

getValue

public int getValue()
Description copied from interface: BoundedRangeModel
Returns the current value for the model.

Specified by:
getValue in interface BoundedRangeModel
Returns:
The current value for the model.

getValueIsAdjusting

public boolean getValueIsAdjusting()
Description copied from interface: BoundedRangeModel
Returns the value of the valueIsAdjusting property.

Specified by:
getValueIsAdjusting in interface BoundedRangeModel
Returns:
the value of the valueIsAdjusting property

setExtent

public void setExtent(int extent)
Description copied from interface: BoundedRangeModel
Sets the current extent.

Specified by:
setExtent in interface BoundedRangeModel
Parameters:
extent - the extent

setMaximum

public void setMaximum(int maximum)
Description copied from interface: BoundedRangeModel
Sets the maximum value for the model.

Specified by:
setMaximum in interface BoundedRangeModel
Parameters:
maximum - the maximum value

setMinimum

public void setMinimum(int minimum)
Description copied from interface: BoundedRangeModel
Sets the minimum value for the model.

Specified by:
setMinimum in interface BoundedRangeModel
Parameters:
minimum - the minimum value

setRangeProperties

public void setRangeProperties(int value,
                               int extent,
                               int minimum,
                               int maximum,
                               boolean adjusting)
Description copied from interface: BoundedRangeModel
Sets all the properties for the model.

Specified by:
setRangeProperties in interface BoundedRangeModel
Parameters:
value - the value
extent - the extent
minimum - the minimum value
maximum - the maximum value
adjusting - the adjusting flag

setValue

public void setValue(int value)
Description copied from interface: BoundedRangeModel
Sets the current value for the model.

Specified by:
setValue in interface BoundedRangeModel
Parameters:
value - the value

setValueIsAdjusting

public void setValueIsAdjusting(boolean adjusting)
Description copied from interface: BoundedRangeModel
Sets the value of the valueIsAdjusting property.

Specified by:
setValueIsAdjusting in interface BoundedRangeModel
Parameters:
adjusting - the value of the valueIsAdjusting property

addChangeListener

public void addChangeListener(ChangeListener listener)
Description copied from interface: BoundedRangeModel
Adds change listener.

Specified by:
addChangeListener in interface BoundedRangeModel
Parameters:
listener - the change listener

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Description copied from interface: BoundedRangeModel
Removes change listener.

Specified by:
removeChangeListener in interface BoundedRangeModel
Parameters:
listener - the change listener


Copyright © 2007 ETF and contributors. All Rights Reserved.