Mp3dings 
20100427

net.sourceforge.mp3dings.utils
Class Counter

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.Bean
      extended by net.sourceforge.mp3dings.utils.Counter
All Implemented Interfaces:
Serializable

public class Counter
extends Bean

A simple counter for integers.

Version:
$Revision: 1.2 $ ($Date: 2006/11/24 13:38:17 $)
Author:
Moritz Ringler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.mp3dings.utils.Bean
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME
 
Constructor Summary
Counter()
           
Counter(int start, int increment)
           
 
Method Summary
 String getDecimalFormat()
           
 NumberFormat getFormat()
          Returns the value of format.
 int getIncrement()
          Returns the value of increment.
 String getNextFormattedValue()
           
 int getNextValue()
          Returns the value of value.
 int getValue()
          Returns the value of value.
 void setDecimalFormat(String pattern)
           
 void setFormat(NumberFormat format)
          Sets the value of format.
 void setIncrement(int increment)
          Sets the value of increment.
 void setValue(int value)
          Sets the value of value.
 
Methods inherited from class net.sourceforge.mp3dings.utils.Bean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getConstraints, getId, getName, getPropertyChangeListeners, getPropertyChangeListeners, isSavable, load, load, removePropertyChangeListener, removePropertyChangeListener, save, save, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()

Counter

public Counter(int start,
               int increment)
Method Detail

getValue

public int getValue()
Returns the value of value.


getNextValue

public int getNextValue()
Returns the value of value.


setValue

public void setValue(int value)
Sets the value of value.

Parameters:
value - The value to assign value.

getIncrement

public int getIncrement()
Returns the value of increment.


setIncrement

public void setIncrement(int increment)
Sets the value of increment.

Parameters:
increment - The value to assign increment.

getFormat

public NumberFormat getFormat()
Returns the value of format.


setFormat

public void setFormat(NumberFormat format)
Sets the value of format.

Parameters:
format - The value to assign format.

getNextFormattedValue

public String getNextFormattedValue()

setDecimalFormat

public void setDecimalFormat(String pattern)
Throws:
IllegalArgumentException - if pattern is not a valid decimal format pattern.

getDecimalFormat

public String getDecimalFormat()

Mp3dings 
20100427