public class MultiListSelect extends PropertyList
Modifier and Type | Class and Description |
---|---|
static class |
MultiListSelect.AvailableLists |
static class |
MultiListSelect.SelectedItems |
static class |
MultiListSelect.SingleListSelect |
PropertyList.NullPropertyList
Modifier and Type | Field and Description |
---|---|
String |
_fields |
MultiListSelect.AvailableLists |
availableLists
It is not necessary for this value to be set.
|
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.
|
boolean |
singleItemPerList |
nullPropertyList
capacityIncrement, elementCount, elementData
serialVersionUID
Constructor and Description |
---|
MultiListSelect() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Object other)
This does not make copies of the elements of the other Object.
|
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.
|
_getSetField, add, add, add, add, defaultTo, defaultTo, fromHashtable, fromStrings, get, get, getBoolean, getBoolean, getDouble, getDouble, getInt, getInt, getLong, getNames, getProperties, getProperties, getProperties, getPropertyValues, getSetProperties, getString, getString, getStrings, getValue, getValue, getValue, getValue, getValue, make, readConfigFile, remove, set, set, set, set, setBoolean, setClassValue, setDouble, setInt, setLong, setStrings, toHashtable, toPropertyList
add, add, addAll, addAll, addAll, addAll, addCopiesFrom, cacheAllElements, clear, compareTo, copied, copyCopiesFrom, copyInto, copyInto, del, find, get, getCopy, getCount, getFullCopy, getNew, insert, iterator, newVector, pop, push, size, toArray, toArray, toArray, toArray, toArray, toObjectArray
add, addAll, addAll, addElement, capacity, clone, contains, containsAll, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, setElementAt, setSize, size, trimToSize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public MultiListSelect.AvailableLists availableLists
public boolean singleItemPerList
public boolean createIfNotPresent
public String _fields
public void copyFrom(Object other)
mVector
public int[] getSelectedIndexesFor(String listName)
public void select(String listName, int index, boolean doSet)
public void selectAll(String listName)
public void selectAll(String listName, MultiListSelect.AvailableLists all)
public void selectNone(String listName)
public static Vector toVector(Vector sourceData, int[] indexes)