|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface allows things to be chosen
| Field Summary | |
static int |
EXCLUSIVE
Exclusive selection |
static int |
IMPLICIT
Implicit selection |
static int |
MULTIPLE
Multiple selection |
| Method Summary | |
int |
append(java.lang.String string,
Image image)
Append an element to the choice |
void |
delete(int pos)
Delete the element at the specified position |
Image |
getImage(int pos)
Get the image at the position |
int |
getSelectedFlags(boolean[] array)
Return the state of all the selections |
int |
getSelectedIndex()
Return the selected items index |
java.lang.String |
getString(int pos)
Get the string part of the element at the posiotion |
void |
insert(int pos,
java.lang.String string,
Image image)
Insert a new value before the specified element. |
boolean |
isSelected(int pos)
Return true if the item at the position is selected |
void |
set(int pos,
java.lang.String string,
Image image)
Set the element at the specified position to the new string and image |
void |
setSelectedFlags(boolean[] flags)
Set the selected state of every element |
void |
setSelectedIndex(int pos,
boolean selected)
Set the selection state of the item at the specified position |
int |
size()
Get the size of the choice |
| Field Detail |
public static final int EXCLUSIVE
public static final int IMPLICIT
public static final int MULTIPLE
| Method Detail |
public int append(java.lang.String string,
Image image)
string - The string part to appendimage - The image part to append
IllegalArgumentException - if the image is mutable
NullPointerException - if the string is nullpublic void delete(int pos)
pos - The position
IndexOutOfBoundsException - if the element is invalidpublic Image getImage(int pos)
pos - The position
IndexOutOfBoundsException - if the element is invalidpublic int getSelectedFlags(boolean[] array)
IllegalArgumentException - if the array is too short
NullPointerException - if the array is nullpublic int getSelectedIndex()
public java.lang.String getString(int pos)
pos - The position
IndexOutOfBoundsException - if the element is invalid
public void insert(int pos,
java.lang.String string,
Image image)
pos - The position to insert in. The current item at that location is moved upstring - The string part to displayimage - The image part
IndexOutOfBoundsException - if the element is invalid
IllegalArgumentException - if the image is mutable
NullPointerException - if the string is nullpublic boolean isSelected(int pos)
pos - The position
IndexOutOfBoundsException - if the element is invalid
public void set(int pos,
java.lang.String string,
Image image)
pos - The position to setstring - The string part to displayimage - The image part
IndexOutOfBoundsException - if the element is invalid
IllegalArgumentException - if the image is mutable
NullPointerException - if the string is nullpublic void setSelectedFlags(boolean[] flags)
flags - The boolean array containing the selected states
IllegalArgumentException - if the array is too short
NullPointerException - if the array is null
public void setSelectedIndex(int pos,
boolean selected)
pos - The positionselected - True if it is selected, false otherwise
IndexOutOfBoundsException - if the element is invalidpublic int size()
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||