public class HideShowAction extends Action
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_TYPE_DESCRIPTION |
Constructor and Description |
---|
HideShowAction(Vector fieldNames,
boolean hide)
Constructs the action to work on the given field names.
|
Modifier and Type | Method and Description |
---|---|
String |
getActionType()
Returns the action type.
|
String |
getActionTypeDesc()
Returns the action type description
|
Vector |
getFieldNames()
Returns the field names that this action refers to.
|
Vector |
getFields()
Returns fields associated with this action.
|
boolean |
isHide()
Returns a boolean flag indicating whether to hide the fields (true) or to show them (false).
|
void |
setFields(Vector fields)
Set the fields for this action.
|
String |
toString()
Returns the description of the action.
|
public static String ACTION_TYPE_DESCRIPTION
public HideShowAction(Vector fieldNames, boolean hide)
fieldNames
- The names of the fields that this action works on.hide
- Boolean variable that determines whether to hide or show the fields.public Vector getFieldNames()
public boolean isHide()
public String getActionType()
getActionType
in class Action
public Vector getFields()
public void setFields(Vector fields)
public String getActionTypeDesc()
getActionTypeDesc
in class Action