com.qoppa.pdfViewer.actions
Class HideShowAction

java.lang.Object
  extended bycom.qoppa.pdfViewer.actions.Action
      extended bycom.qoppa.pdfViewer.actions.HideShowAction

public class HideShowAction
extends Action

Action that tells the viewer to show or hide a field.


Field Summary
static String ACTION_TYPE_DESCRIPTION
           
 
Constructor Summary
HideShowAction(String fieldName, boolean hide)
          Constructs the action to work on the given field name.
 
Method Summary
 String getActionType()
          Returns the action type.
 String getActionTypeDesc()
          Returns the action type description
 com.qoppa.pdf.form.priv.QFormField getField()
          Returns field associated with this action.
 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).
 void setField(com.qoppa.pdf.form.priv.QFormField field)
          Set the field 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(String fieldName,
                      boolean hide)
Constructs the action to work on the given field name.

Parameters:
fieldName - The name of the field that this action works on.
hide - Boolean variable that determines whether to hide or show the field.
Method Detail

getFieldName

public String getFieldName()
Returns the field name that this action refers to.

Returns:
The field name.

isHide

public boolean isHide()
Returns a boolean flag indicating wether to hide the field (true) or to show it (false).

Returns:
The flag.

getActionType

public String getActionType()
Returns the action type.

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

getField

public com.qoppa.pdf.form.priv.QFormField getField()
Returns field associated with this action.

Returns:
The field.

setField

public void setField(com.qoppa.pdf.form.priv.QFormField field)
Set the field 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.