Oxygen XML Editor 14.2 Author API

ro.sync.ecss.css
Class CSSCounter

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

@API(type=NOT_EXTENDABLE,
     src=PRIVATE)
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 increment(int increment, boolean ignoreNextIncremenet)
          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,
                      boolean ignoreNextIncremenet)
Increment the counter.

Parameters:
increment - The increment value.
ignoreNextIncremenet - true when the current counter is set to an element deleted with track changes, and the next increment should be ignored.

increment

public void increment(int increment)
Increment the counter.

Parameters:
increment - The increment 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 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.