Oxygen XML Editor 12.2 Author API

ro.sync.ecss.css
Class CSSCounter

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

public class CSSCounter
extends java.lang.Object

A CSS counter identified by it's name.


Constructor Summary
CSSCounter(java.lang.String name)
          Constructor.
CSSCounter(java.lang.String name, int defaultValue)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSCounter

public CSSCounter(java.lang.String name)
Constructor.

Parameters:
name - The name of the counter.

CSSCounter

public CSSCounter(java.lang.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 java.lang.String getName()
Returns:
The counter name.

toString

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

setDefaultValue

public void setDefaultValue(int defValue)
Parameters:
defValue -

equals

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

hashCode

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

Oxygen XML Editor 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.