Forms2OleControlType

Inheritance: java.lang.Object

public class Forms2OleControlType

Enumerates types of Forms 2.0 controls.

Examples:

Shows how to change state of the CheckBox control.


 Document doc = new Document(getMyDir() + "ActiveX controls.docx");

 Shape shape = (Shape)doc.getChild(NodeType.SHAPE, 0, true);
 CheckBoxControl checkBoxControl = (CheckBoxControl)shape.getOleFormat().getOleControl();
 checkBoxControl.setChecked(true);

 Assert.assertEquals(true, checkBoxControl.getChecked());
 Assert.assertEquals(Forms2OleControlType.CHECK_BOX, checkBoxControl.getType());
 

Fields

FieldDescription
CHECK_BOXA control that allows the user to select or deselect an option.
COMBO_BOXA control that allows the user to select an item from a list.
COMMAND_BUTTONA button that triggers an action when clicked.
FORMA container for other controls.
FRAMEA control that groups other controls.
IMAGEA control that displays an image.
LABELA control that displays text.
LIST_BOXA control that displays a list of items.
MULTI_PAGEA control that displays multiple pages of content.
OPTION_BUTTONA radio button control.
SCROLL_BARA control that allows the user to scroll through content.
SPIN_BUTTONA control that allows the user to increase or decrease a value.
TAB_STRIPA control that allows the user to switch between multiple pages of content.
TEXTBOXA control that allows the user to enter text.
TOGGLE_BUTTONA control that allows the user to toggle between two states.
length

Methods

MethodDescription
fromName(String forms2OleControlTypeName)
getName(int forms2OleControlType)
getValues()
toString(int forms2OleControlType)

CHECK_BOX

public static int CHECK_BOX

A control that allows the user to select or deselect an option.

COMBO_BOX

public static int COMBO_BOX

A control that allows the user to select an item from a list.

COMMAND_BUTTON

public static int COMMAND_BUTTON

A button that triggers an action when clicked.

FORM

public static int FORM

A container for other controls.

FRAME

public static int FRAME

A control that groups other controls.

IMAGE

public static int IMAGE

A control that displays an image.

LABEL

public static int LABEL

A control that displays text.

LIST_BOX

public static int LIST_BOX

A control that displays a list of items.

MULTI_PAGE

public static int MULTI_PAGE

A control that displays multiple pages of content.

OPTION_BUTTON

public static int OPTION_BUTTON

A radio button control.

SCROLL_BAR

public static int SCROLL_BAR

A control that allows the user to scroll through content.

SPIN_BUTTON

public static int SPIN_BUTTON

A control that allows the user to increase or decrease a value.

TAB_STRIP

public static int TAB_STRIP

A control that allows the user to switch between multiple pages of content.

TEXTBOX

public static int TEXTBOX

A control that allows the user to enter text.

TOGGLE_BUTTON

public static int TOGGLE_BUTTON

A control that allows the user to toggle between two states.

length

public static int length

fromName(String forms2OleControlTypeName)

public static int fromName(String forms2OleControlTypeName)

Parameters:

ParameterTypeDescription
forms2OleControlTypeNamejava.lang.String

Returns: int

getName(int forms2OleControlType)

public static String getName(int forms2OleControlType)

Parameters:

ParameterTypeDescription
forms2OleControlTypeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int forms2OleControlType)

public static String toString(int forms2OleControlType)

Parameters:

ParameterTypeDescription
forms2OleControlTypeint

Returns: java.lang.String