HideAction

Inheritance: java.lang.Object, com.aspose.pdf.PdfAction

public class HideAction extends PdfAction

Represents a hide action that hides or shows one or more annotations on the screen by setting or clearing their Hidden flags.

Constructors

ConstructorDescription
HideAction(Annotation annotation)Initializes a new instance of the HideAction class for the specified annotation.
HideAction(Annotation annotation, boolean isHidden)Initializes a new instance of the HideAction class for the specified annotation and invisibility flag.
HideAction(String fieldName)Initializes a new instance of the HideAction class for the specified field name.
HideAction(String fieldName, boolean isHidden)Initializes a new instance of the HideAction class for the specified field name and invisibility flag.
HideAction(Annotation[] annotations)Initializes a new instance of the HideAction class for the specified annotations.
HideAction(Annotation[] annotations, boolean isHidden)Initializes a new instance of the HideAction class for the specified annotations and for invisibility flag.
HideAction(String[] names)Initializes a new instance of the HideAction class for the specified field names.
HideAction(String[] names, boolean isHidden)Initializes a new instance of the HideAction class for the specified field names and for invisibility flag.

Methods

MethodDescription
isHidden()Gets or sets status of the annotation(s) to hide/display.
setHidden(boolean value)Gets or sets status of the annotation(s) to hide/display.

HideAction(Annotation annotation)

public HideAction(Annotation annotation)

Initializes a new instance of the HideAction class for the specified annotation.

Parameters:

ParameterTypeDescription
annotationAnnotationAn annotation to be hidden.

HideAction(Annotation annotation, boolean isHidden)

public HideAction(Annotation annotation, boolean isHidden)

Initializes a new instance of the HideAction class for the specified annotation and invisibility flag.

Parameters:

ParameterTypeDescription
annotationAnnotationAn annotation to be hidden or shown.
isHiddenbooleanA flag indicating whether to hide the annotation (true) or show it (false).

HideAction(String fieldName)

public HideAction(String fieldName)

Initializes a new instance of the HideAction class for the specified field name.

Parameters:

ParameterTypeDescription
fieldNamejava.lang.StringA text string giving the fully qualified field name of an interactive form field.

HideAction(String fieldName, boolean isHidden)

public HideAction(String fieldName, boolean isHidden)

Initializes a new instance of the HideAction class for the specified field name and invisibility flag.

Parameters:

ParameterTypeDescription
fieldNamejava.lang.StringA text string giving the fully qualified field name of an interactive form field.
isHiddenbooleanA flag indicating whether to hide the field (true) or show it (false).

HideAction(Annotation[] annotations)

public HideAction(Annotation[] annotations)

Initializes a new instance of the HideAction class for the specified annotations.

Parameters:

ParameterTypeDescription
annotationsAnnotation[]An array of annotations to be hidden.

HideAction(Annotation[] annotations, boolean isHidden)

public HideAction(Annotation[] annotations, boolean isHidden)

Initializes a new instance of the HideAction class for the specified annotations and for invisibility flag.

Parameters:

ParameterTypeDescription
annotationsAnnotation[]An array of annotations to be hidden or shown.
isHiddenbooleanA flag indicating whether to hide the annotations (true) or show it (false).

HideAction(String[] names)

public HideAction(String[] names)

Initializes a new instance of the HideAction class for the specified field names.

Parameters:

ParameterTypeDescription
namesjava.lang.String[]An array of strings giving the fully qualified field names of an interactive form fields.

HideAction(String[] names, boolean isHidden)

public HideAction(String[] names, boolean isHidden)

Initializes a new instance of the HideAction class for the specified field names and for invisibility flag.

Parameters:

ParameterTypeDescription
namesjava.lang.String[]An array of strings giving the fully qualified field names of an interactive form fields.
isHiddenbooleanA flag indicating whether to hide the fields (true) or show it (false).

isHidden()

public boolean isHidden()

Gets or sets status of the annotation(s) to hide/display.

Returns: boolean - boolean value

setHidden(boolean value)

public void setHidden(boolean value)

Gets or sets status of the annotation(s) to hide/display.

Parameters:

ParameterTypeDescription
valuebooleanboolean value