public class FormControlShape extends ShapeObj
| Modifier and Type | Field and Description |
|---|---|
static short |
CheckBox
shape check box
|
static short |
CombBox
shape combox
|
static short |
ListBox
shape list box
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCheckState()
return the check box check state
0-uncheck 1-check 2-mixed
|
int |
getCombSelIndex()
return the combox select index
|
boolean[] |
getListBoxSelection()
return the listbox select type 0-single 1-multi 2-extend
|
int |
getListBoxSelType()
return the listbox select type 0-single 1-multi 2-extend
|
java.lang.String |
getText()
lable text.
|
void |
setCellLink(java.lang.String link)
set the link cell of the control
|
void |
setCellRange(java.lang.String source)
set the source range link to the control
|
void |
setCheckState(int state)
set the check box check state
0-uncheck 1-check 2-mixed
|
void |
setCombSelIndex(int state)
set the combox select index
|
void |
setListSelection(int type,
boolean[] sels)
set the listbox selection type and selected index
|
void |
setText(java.lang.String text)
set the lable of the control
|
public static final short CheckBox
public static final short CombBox
public static final short ListBox
public void setCellRange(java.lang.String source)
source - range sourcepublic void setCellLink(java.lang.String link)
link - the link cellpublic java.lang.String getText()
public void setText(java.lang.String text)
text - control lable.public int getCheckState()
public void setCheckState(int state)
state - check statepublic int getCombSelIndex()
public void setCombSelIndex(int state)
state - select indexpublic int getListBoxSelType()
public boolean[] getListBoxSelection()
public void setListSelection(int type,
boolean[] sels)
type - select type 0-single 1-multi 2-extendsels - 1-base boolean array to indicate the selection index