public class Forms2OleControlType
extends java.lang.Object
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());
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECK_BOX
A control that allows the user to select or deselect an option.
|
static int |
COMBO_BOX
A control that allows the user to select an item from a list.
|
static int |
COMMAND_BUTTON
A button that triggers an action when clicked.
|
static int |
FORM
A container for other controls.
|
static int |
FRAME
A control that groups other controls.
|
static int |
IMAGE
A control that displays an image.
|
static int |
LABEL
A control that displays text.
|
static int |
length |
static int |
LIST_BOX
A control that displays a list of items.
|
static int |
MULTI_PAGE
A control that displays multiple pages of content.
|
static int |
OPTION_BUTTON
A radio button control.
|
static int |
SCROLL_BAR
A control that allows the user to scroll through content.
|
static int |
SPIN_BUTTON
A control that allows the user to increase or decrease a value.
|
static int |
TAB_STRIP
A control that allows the user to switch between multiple pages of content.
|
static int |
TEXTBOX
A control that allows the user to enter text.
|
static int |
TOGGLE_BUTTON
A control that allows the user to toggle between two states.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String forms2OleControlTypeName) |
static java.lang.String |
getName(int forms2OleControlType) |
static int[] |
getValues() |
static java.lang.String |
toString(int forms2OleControlType) |
public static int OPTION_BUTTON
public static int LABEL
public static int TEXTBOX
public static int CHECK_BOX
public static int TOGGLE_BUTTON
public static int SPIN_BUTTON
public static int COMBO_BOX
public static int FRAME
public static int MULTI_PAGE
public static int TAB_STRIP
public static int COMMAND_BUTTON
public static int IMAGE
public static int SCROLL_BAR
public static int FORM
public static int LIST_BOX
public static int length