public final class EnabledState extends java.lang.Object implements IEnabledState
Modifier and Type | Field and Description |
---|---|
static EnabledState |
DISABLED
A enabled state constant for enabled = false.
|
static EnabledState |
ENABLED
A enabled state constant for enabled = true
|
Modifier and Type | Method and Description |
---|---|
static EnabledState |
disabled(java.lang.String reason)
Creates a new enabled state that is disabled
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getReason()
If the action is not enabled, this get's the reason why.
|
int |
hashCode() |
boolean |
isEnabled() |
java.lang.String |
toString() |
public static final EnabledState ENABLED
public static final EnabledState DISABLED
disabled(String)
public boolean isEnabled()
isEnabled
in interface IEnabledState
public java.lang.String getReason()
IEnabledState
getReason
in interface IEnabledState
public static EnabledState disabled(java.lang.String reason)
reason
- The reason why it is disabledpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Siehe auch Jowidgets Nutzerhandbuch