|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.base
Class IntHolder
java.lang.Object be.lassi.base.AbstractHolder be.lassi.base.IntHolder
- All Implemented Interfaces:
- NamedValue, java.io.Serializable
public class IntHolder
- extends AbstractHolder
Value holder for integer values.
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
IntHolder()
Constructs a new value holder. |
|
IntHolder(java.lang.String name)
Constructs a new value holder. |
|
IntHolder(java.lang.String name,
int value)
Constructs a new value holder. |
Method Summary | |
---|---|
void |
add(int increment)
Adds a given amount to the value. |
void |
addListener(IntListener listener)
Adds an object that listens to integer value changes. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getStringValue()
Gets the value in string format. |
int |
getValue()
Gets the integer value. |
int |
hashCode()
|
void |
removeListener(IntListener listener)
Removes given listener. |
void |
setStringValue(java.lang.String newValue)
Sets the value in string format. |
void |
setValue(int value)
Sets the integer value. |
void |
setValue(int newValue,
IntListener doNotNotify)
Sets the integer value. |
Methods inherited from class be.lassi.base.AbstractHolder |
---|
getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
IntHolder
public IntHolder()
- Constructs a new value holder.
IntHolder
public IntHolder(java.lang.String name)
- Constructs a new value holder.
- Parameters:
name
- the value holder name
IntHolder
public IntHolder(java.lang.String name, int value)
- Constructs a new value holder.
- Parameters:
name
- the value holder namevalue
- the initial integer value
Method Detail |
---|
add
public void add(int increment)
- Adds a given amount to the value.
- Parameters:
increment
- the value to be added
addListener
public void addListener(IntListener listener)
- Adds an object that listens to integer value changes.
- Parameters:
listener
- the listener to be added
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in classAbstractHolder
getStringValue
public java.lang.String getStringValue()
- Gets the value in string format.
- Returns:
- the value in string format
getValue
public int getValue()
- Gets the integer value.
- Returns:
- the integer value
hashCode
public int hashCode()
-
- Overrides:
hashCode
in classAbstractHolder
removeListener
public void removeListener(IntListener listener)
- Removes given listener.
- Parameters:
listener
- the listener to be removed
setStringValue
public void setStringValue(java.lang.String newValue)
- Sets the value in string format.
- Parameters:
newValue
- the value to be set in string format
setValue
public void setValue(int value)
- Sets the integer value.
- Parameters:
value
- the integer value to set
setValue
public void setValue(int newValue, IntListener doNotNotify)
- Sets the integer value.
- Parameters:
newValue
- the integer value to setdoNotNotify
- the listener that should not be notified of this value change
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |