ewe.data
Class MultiListSelect
java.lang.Object
ewe.data.DataObject
ewe.util.Vector
ewe.data.PropertyList
ewe.data.MultiListSelect
- All Implemented Interfaces:
- Comparable, Copyable, DataUnit, HasProperties, Textable
- Direct Known Subclasses:
- MultiListSelect.SingleListSelect
- public class MultiListSelect
- extends PropertyList
|
Method Summary |
protected Property |
getOrCreateEntry(String listName,
boolean create)
|
Vector |
getSelectedFor(String listName)
|
Vector |
getSelectedFor(String listName,
boolean createAndAdd)
|
int[] |
getSelectedIndexesFor(String listName)
|
boolean |
isSelected(String listName,
Object value)
|
void |
select(String listName,
int index,
boolean doSet)
|
void |
select(String listName,
Object value,
boolean doSet)
|
void |
selectAll(String listName)
|
void |
selectAll(String listName,
MultiListSelect.AvailableLists all)
|
void |
selectNone(String listName)
|
void |
setSelectedFor(String listName,
Vector v)
|
String |
toString()
Return a String representation of this object. |
static Vector |
toVector(Vector sourceData,
int[] indexes)
Create a Vector that holds the data at the specified indexes from the sourceData Vector. |
| Methods inherited from class ewe.data.PropertyList |
_getSetField, add, add, add, add, defaultTo, defaultTo, fromHashtable, fromStrings, get, get, getBoolean, getBoolean, getDouble, getDouble, getField, getInt, getInt, getNames, getProperties, getProperties, getProperties, getPropertyValues, getSetProperties, getString, getString, getStrings, getText, getValue, getValue, getValue, getValue, make, readConfigFile, remove, set, set, set, setBoolean, setField, setInt, setStrings, setText, toHashtable, toPropertyList |
| Methods inherited from class ewe.util.Vector |
add, add, add, addAll, addAll, addAll, addCopiesFrom, addElement, clear, compare, contains, copyCopiesFrom, copyFrom, copyInto, copyInto, del, elementAt, elements, find, find, get, getCount, getFullCopy, insert, insertElementAt, isEmpty, iterator, iterator, pop, push, remove, removeAllElements, removeElementAt, set, setElementAt, setSize, size, sort, sort, toArray, toArray, toObjectArray, zero |
| Methods inherited from class ewe.data.DataObject |
appendAllFields, compareTo, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
availableLists
public MultiListSelect.AvailableLists availableLists
- It is not necessary for this value to be set. It can be null.
singleItemPerList
public boolean singleItemPerList
createIfNotPresent
public boolean createIfNotPresent
- If this is true then the list will default to adding an empty selection for a list
if there is no entry for that list. By default it is false.
_fields
public String _fields
MultiListSelect
public MultiListSelect()
getOrCreateEntry
protected Property getOrCreateEntry(String listName,
boolean create)
getSelectedFor
public Vector getSelectedFor(String listName)
getSelectedFor
public Vector getSelectedFor(String listName,
boolean createAndAdd)
getSelectedIndexesFor
public int[] getSelectedIndexesFor(String listName)
isSelected
public boolean isSelected(String listName,
Object value)
select
public void select(String listName,
int index,
boolean doSet)
select
public void select(String listName,
Object value,
boolean doSet)
setSelectedFor
public void setSelectedFor(String listName,
Vector v)
selectAll
public void selectAll(String listName)
selectAll
public void selectAll(String listName,
MultiListSelect.AvailableLists all)
selectNone
public void selectNone(String listName)
toVector
public static Vector toVector(Vector sourceData,
int[] indexes)
- Create a Vector that holds the data at the specified indexes from the sourceData Vector.
toString
public String toString()
- Description copied from class:
Object
- Return a String representation of this object.
- Overrides:
toString in class Vector