public class HideShowAction extends Action
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_TYPE_DESCRIPTION |
Constructor and Description |
---|
HideShowAction(java.lang.String fieldName,
boolean hide)
Constructs the action to work on the given field name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionType()
Returns the action type.
|
java.lang.String |
getActionTypeDesc()
Returns the action type description
|
java.lang.String |
getFieldName()
Returns the field name that this action refers to.
|
boolean |
isHide()
Returns a boolean flag indicating wether to hide the field (true) or to show it (false).
|
java.lang.String |
toString()
Returns the description of the action.
|
public HideShowAction(java.lang.String fieldName, boolean hide)
fieldName
- The name of the field that this action works on.hide
- Boolean variable that determines whether to hide or show the field.public java.lang.String getFieldName()
public boolean isHide()
public java.lang.String getActionType()
getActionType
in class Action
public java.lang.String getActionTypeDesc()
getActionTypeDesc
in class Action
public java.lang.String toString()
toString
in class java.lang.Object