public abstract class NamedBoolean
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
NamedBoolean(java.lang.String name)
Create a NamedBoolean object with the specified localized name.
|
protected |
NamedBoolean(java.lang.String name,
java.lang.Enum<?> theEnum)
Create a NamedBoolean object with the specified localized name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Enum<?> |
getEnum()
Returns the enumeration associated with this NamedBoolean (if any).
|
abstract boolean |
isSelected()
Report whether the wrapped property is set or not.
|
abstract void |
setSelected(boolean newValue)
Change the wrapped property's boolean value.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
protected NamedBoolean(java.lang.String name)
name
- String already-localized name to associate with the modifiable boolean valueprotected NamedBoolean(java.lang.String name, java.lang.Enum<?> theEnum)
name
- String already-localized name to associate with the modifiable boolean valuetheEnum
- Enum value to associate with the booleanpublic java.lang.String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.toString
in class java.lang.Object
public java.lang.Enum<?> getEnum()
public abstract boolean isSelected()
public abstract void setSelected(boolean newValue)
newValue
- the new boolean value for the property