|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.base
Class BooleanHolder
java.lang.Objectbe.lassi.base.AbstractHolder
be.lassi.base.BooleanHolder
- All Implemented Interfaces:
- NamedValue, java.io.Serializable
public class BooleanHolder
- extends AbstractHolder
Value holder for boolean values.
- See Also:
- Serialized Form
| Constructor Summary | |
|---|---|
BooleanHolder()
Constructs a new instance with the default initial 'false' boolean value. |
|
BooleanHolder(java.lang.String name)
Constructs a new boolean value holder. |
|
BooleanHolder(java.lang.String name,
boolean value)
Constructs a new instance that holds given boolean initial value. |
|
| Method Summary | |
|---|---|
void |
add(BooleanListener listener)
Adds an object that listens to value changes. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getStringValue()
Gets the value in string format. |
boolean |
getValue()
Gets the boolean value. |
int |
hashCode()
|
void |
remove(BooleanListener listener)
Removes given listener that was added before. |
void |
setStringValue(java.lang.String newValue)
Sets the value in string format. |
void |
setValue(boolean value)
Sets a new boolean value. |
void |
setValue(boolean newValue,
BooleanListener doNotNotify)
Sets a new boolean 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 |
|---|
BooleanHolder
public BooleanHolder()
- Constructs a new instance with the default initial 'false' boolean value.
BooleanHolder
public BooleanHolder(java.lang.String name)
- Constructs a new boolean value holder.
- Parameters:
name- the value holder name
BooleanHolder
public BooleanHolder(java.lang.String name,
boolean value)
- Constructs a new instance that holds given boolean initial value.
- Parameters:
name- the value holder namevalue- the initial value
| Method Detail |
|---|
add
public void add(BooleanListener listener)
- Adds an object that listens to value changes.
- Parameters:
listener- the listener to be added
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equalsin classAbstractHolder
getStringValue
public java.lang.String getStringValue()
- Gets the value in string format.
- Returns:
- the value in string format
getValue
public boolean getValue()
- Gets the boolean value.
- Returns:
- the boolean value
hashCode
public int hashCode()
-
- Overrides:
hashCodein classAbstractHolder
remove
public void remove(BooleanListener listener)
- Removes given listener that was added before.
- 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(boolean value)
- Sets a new boolean value.
- Parameters:
value- the new boolean value to be set
setValue
public void setValue(boolean newValue,
BooleanListener doNotNotify)
- Sets a new boolean value.
- Parameters:
newValue- the new boolean value to be setdoNotNotify- the listener that should not be notified of value changes
|
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
