|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface of the widged model to represent a list of choises. It can be used with
the SWT-widgets Combo and List. The entries of the list have to be provided by the
programmer. All entries must by Atoms of the same type.
The supported types are T_STRING, T_BCD, T_DATE and T_TIMESTAMP.
There are convinience methods to use Java Strings directly.
These Strings are converted to Atoms of type T_STRING internally.
For domain values please use ListDomWM.
| Field Summary | |
static int |
S_MULTI_SELECT
If the IListWM is used with the SWT-Control List, you can allow multi-selection by specifying this style constant in the constructor. |
static int |
S_NOT_STRICT
If the IListWM is used with the SWT-Control Combo, you can allow entering of values not contained in the list. |
| Method Summary | |
void |
add(Atom entry)
Adds an entry to the list. |
void |
add(Atom[] entries)
Adds the entries to the list. |
void |
add(java.util.Collection entries)
Adds the entries to the list. |
void |
add(int index,
Atom entry)
Inserts an entry into the list at the specified position. |
void |
add(int index,
java.lang.String entry)
Inserts an entry into the list at the specified position. |
void |
add(java.lang.String entry)
Adds an entry to the list. |
void |
add(java.lang.String[] entries)
Adds the entries to the list. |
void |
clear()
Removes all entries from the list and deselects all selected entries. |
boolean |
contains(Atom entry)
Returns true if the list contains the given entry. |
boolean |
contains(java.lang.String entry)
Returns true if the list contains the given entry. |
Atom |
getEntry(int index)
Get the entry at the specified position. |
Atom |
getEntry(java.lang.String key)
Get the entry for the given key. |
java.lang.String |
getStringEntry(int index)
Get the entry at the specified position. |
int |
indexOf(Atom entry)
Get the index of the given entry. |
int |
indexOf(java.lang.String entry)
Get the index of the given entry. |
void |
remove(Atom entry)
Removes an entry from the list. |
void |
remove(int index)
Removes the entry at the given position from the list. |
void |
remove(java.lang.String entry)
Removes an entry from the list. |
void |
replace(int index,
Atom newEntry)
Replaces an entry in the list. |
void |
replace(int index,
java.lang.String newEntry)
Replaces an entry in the list. |
int |
size()
Gets the size of the list. |
| Methods inherited from interface at.spardat.xma.mdl.ISelectable |
deselect, deselectAll, getSelected, getSelection, getSelectionCount, isMultiSelect, isSelected, isStrict, select |
| Field Detail |
public static final int S_MULTI_SELECT
public static final int S_NOT_STRICT
| Method Detail |
public void add(Atom entry)
entry - to add
public void add(int index,
Atom entry)
index - the desired zero base index of the new entryentry - to addpublic void add(Atom[] entries)
entries - to addpublic void add(java.util.Collection entries)
entries - to addpublic Atom getEntry(int index)
index - the index of the desired entry.
public Atom getEntry(java.lang.String key)
key - string representation of the desired entry.
public int indexOf(Atom entry)
entry - the entry of which the index is desired.
public void remove(Atom entry)
entry - to removepublic void remove(int index)
index -
public void replace(int index,
Atom newEntry)
index - the index of the entry to replace.newEntry - the new entry to insert.public boolean contains(Atom entry)
entry -
public void add(java.lang.String entry)
entry - to add
public void add(int index,
java.lang.String entry)
index - the desired zero base index of the new entryentry - to addpublic void add(java.lang.String[] entries)
entries - to addpublic java.lang.String getStringEntry(int index)
index - the index of the desired entry.
public int indexOf(java.lang.String entry)
entry - the entry of which the index is desired.
public void remove(java.lang.String entry)
entry - to remove
public void replace(int index,
java.lang.String newEntry)
index - the index of the entry to replace.newEntry - the new entry to insert.public boolean contains(java.lang.String entry)
entry -
public void clear()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||