| java.lang.Object com.flexive.shared.structure.FxSelectList
All known Subclasses: com.flexive.shared.structure.FxSelectListEdit,
FxSelectList | public class FxSelectList implements Serializable,ObjectWithLabel(Code) | | Select list
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
COUNTRIES | final public static String COUNTRIES(Code) | | A select list containing all countries and their codes.
|
allowDynamicItemCreation | protected boolean allowDynamicItemCreation(Code) | | |
createItemACL | protected ACL createItemACL(Code) | | |
defaultItemId | protected long defaultItemId(Code) | | |
parentListId | protected long parentListId(Code) | | |
FxSelectList | public FxSelectList(long id, long parentListId, String name, FxString label, FxString description, boolean allowDynamicItemCreation, ACL createItemACL, ACL newItemACL, long defaultItemId)(Code) | | Internal(!) Constructor to be used while loading from storage
Parameters: id - internal id Parameters: parentListId - parent list if >= 0 Parameters: name - name (unique) Parameters: label - label Parameters: description - description Parameters: allowDynamicItemCreation - is dynamic item creation allowed? Parameters: createItemACL - ACL whose create flag is checked against for creating new list items Parameters: newItemACL - ACL assigned to new items Parameters: defaultItemId - the id of the default selected item, optional, can be null |
FxSelectList | public FxSelectList(String name)(Code) | | Create a new in-memory select list. Not suitable for creating select lists
that will be stored in the database!
Parameters: name - the select list name |
_setDefaultItem | protected void _setDefaultItem(FxSelectListItem defaultItem)(Code) | | Set a new default item, setting null will clear the default item
To be used internally from FxSelectListEdit only(!)
Parameters: defaultItem - a new default item, setting null will clear the default item |
_synchronize | public void _synchronize(FxEnvironment env)(Code) | | Internal method to synchronize/load parent lists and items
Parameters: env - environment |
containsItem | public boolean containsItem(long id)(Code) | | Check if this list contains an selectlist item with the requested id
Parameters: id - requested item id if the requested item is contained in this list |
createList | public static FxSelectList createList(String name, List<? extends SelectableObjectWithLabel> items)(Code) | | Factory method to create a select list based on a collection of
SelectableObjectWithLabel objects. This select list cannot be persisted
to the DB, but may used e.g. for UI input components.
Parameters: name - name of the select list to be created Parameters: items - selectable objects with label a new select list |
getCreateItemACL | public ACL getCreateItemACL()(Code) | | Get the ACL used to check if a user is allowed to create new items for this list dynamically
ACL used to check if a user is allowed to create new items for this list dynamically |
getDefaultItem | public FxSelectListItem getDefaultItem()(Code) | | Get the (optional!) default item for this list
the (optional!) default item for this list, can be null |
getDescription | public FxString getDescription()(Code) | | Get the description
description |
getId | public long getId()(Code) | | Get the internal id
internal id |
getItem | public FxSelectListItem getItem(long id)(Code) | | Get the selectlist item with the given id
Parameters: id - requested select list item id select list item |
getItemByData | public FxSelectListItem getItemByData(String data)(Code) | | Get the (first) selectlist item with the given data
Parameters: data - requested select list item data select list item |
getItemMap | final protected Map<Long, FxSelectListItem> getItemMap()(Code) | | Getter for the map containing items. Used by FxSelectListItem to "add" itself to a list during construction.
map of all items of this list |
getNewItemACL | public ACL getNewItemACL()(Code) | | Get the default ACL assigned to new created items
default ACL assigned to new created items |
hasDefaultItem | public boolean hasDefaultItem()(Code) | | Is a default item set for this list?
if a default item is set for this list |
hasParentList | public boolean hasParentList()(Code) | | Is a parent list set for this list?
if a parent list is set for this list |
isAllowDynamicItemCreation | public boolean isAllowDynamicItemCreation()(Code) | | May items be created dynamically? (in UI's other than backends!)
if items may be created dynamically |
|
|