Oxygen XML Editor 11.2 Author API

ro.sync.ecss.css
Class CSSCounter

java.lang.Object
  extended by ro.sync.ecss.css.CSSCounter

public class CSSCounter
extends Object

A CSS counter identified by it's name.


Constructor Summary
CSSCounter(String name)
          Constructor.
CSSCounter(String name, int defaultValue)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int getValue()
           
 int hashCode()
           
 void increment(int increment)
          Increment the counter.
 void reset()
          Reset the counter to the initial value.
 void setDefaultValue(int defValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSCounter

public CSSCounter(String name)
Constructor.

Parameters:
name - The name of the counter.

CSSCounter

public CSSCounter(String name,
                  int defaultValue)
Constructor.

Parameters:
name - The name of the counter.
defaultValue - The default value.
Method Detail

increment

public void increment(int increment)
Increment the counter.

Parameters:
increment - The indrement value.

reset

public void reset()
Reset the counter to the initial value.


getValue

public int getValue()
Returns:
The current value of the counter.

getName

public String getName()
Returns:
The counter name.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

setDefaultValue

public void setDefaultValue(int defValue)
Parameters:
defValue -

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.