com.qoppa.pdfViewer.actions
Class HideShowAction

java.lang.Object
  extended by com.qoppa.pdfViewer.actions.Action
      extended by com.qoppa.pdfViewer.actions.HideShowAction

public class HideShowAction
extends Action

Action that tells the viewer to show or hide fields.


Field Summary
static String ACTION_TYPE_DESCRIPTION
           
 
Constructor Summary
HideShowAction(Vector fieldNames, boolean hide)
          Constructs the action to work on the given field names.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_TYPE_DESCRIPTION

public static String ACTION_TYPE_DESCRIPTION
Constructor Detail

HideShowAction

public HideShowAction(Vector fieldNames,
                      boolean hide)
Constructs the action to work on the given field names.

Parameters:
fieldNames - The names of the fields that this action works on.
hide - Boolean variable that determines whether to hide or show the fields.
Method Detail

getFieldNames

public Vector getFieldNames()
Returns the field names that this action refers to.

Returns:
The field names.

isHide

public boolean isHide()
Returns a boolean flag indicating whether to hide the fields (true) or to show them (false).

Returns:
The flag.

getActionType

public String getActionType()
Returns the action type.

Specified by:
getActionType in class Action
Returns:
The action type.

getFields

public Vector getFields()
Returns fields associated with this action.

Returns:
The fields.

setFields

public void setFields(Vector fields)
Set the fields for this action.


getActionTypeDesc

public String getActionTypeDesc()
Returns the action type description

Specified by:
getActionTypeDesc in class Action

toString

public String toString()
Returns the description of the action.

Overrides:
toString in class Object