| java.lang.Object com.flexive.shared.structure.FxSelectListItem
All known Subclasses: com.flexive.shared.structure.FxSelectListItemEdit,
Constructor Summary | |
public | FxSelectListItem(long id, ACL acl, FxSelectList list, long parentItemId, FxString label, String data, String color, long iconId, int iconVer, int iconQuality, LifeCycleInfo lifeCycleInfo) | public | FxSelectListItem(long id, FxSelectList list, long parentItemId, FxString label) Creates a new in-memory select list item. |
iconId | protected long iconId(Code) | | |
iconQuality | protected int iconQuality(Code) | | |
iconVer | protected int iconVer(Code) | | |
parentItemId | protected long parentItemId(Code) | | |
FxSelectListItem | public FxSelectListItem(long id, ACL acl, FxSelectList list, long parentItemId, FxString label, String data, String color, long iconId, int iconVer, int iconQuality, LifeCycleInfo lifeCycleInfo)(Code) | | Internal(!) Constructor to be used while loading from storage
Parameters: id - id Parameters: acl - the items acl Parameters: list - the list this item belongs to Parameters: parentItemId - parent item id if >= 0 Parameters: label - this items label Parameters: data - optional data Parameters: color - color for display Parameters: iconId - id of icon (binary reference) Parameters: iconVer - version of icon (binary reference) Parameters: iconQuality - quality of icon (binary reference) Parameters: lifeCycleInfo - life cycle |
FxSelectListItem | public FxSelectListItem(long id, FxSelectList list, long parentItemId, FxString label)(Code) | | Creates a new in-memory select list item. Not suitable for select lists that should
be stored in the database.
Parameters: id - the new select list item ID, possible some external ID Parameters: list - the select list this item should be added to Parameters: parentItemId - the parent item ID, if any Parameters: label - the select item label |
_synchronize | protected void _synchronize(FxEnvironment env)(Code) | | Internal method to synchronize/load parent items
Parameters: env - environment |
_updateList | protected void _updateList(FxSelectList list)(Code) | | Update this items list (internally used when creating new lists to have a valid id)
Parameters: list - new list with a valid id |
getAcl | public ACL getAcl()(Code) | | Get the ACL for this item.
This ACL is treated in a special way:
The only relevant permissions are create and delete for adding and removing entries, all items are readable
and editable (to allow saving set items) by default
ACL for this item |
getColor | public String getColor()(Code) | | Get the color to display for this item
color to display for this item |
getData | public String getData()(Code) | | Get optional data assigned to this item
optional data assigned to this item |
getIconId | public long getIconId()(Code) | | Id of icon used for user interfaces (reference to binaries, internal field!)
id of icon used for user interfaces (reference to binaries, internal field!) |
getIconQuality | public int getIconQuality()(Code) | | Quality of icon used for user interfaces (reference to binaries, internal field!)
quality of icon used for user interfaces (reference to binaries, internal field!) |
getIconVer | public int getIconVer()(Code) | | Version of icon used for user interfaces (reference to binaries, internal field!)
version of icon used for user interfaces (reference to binaries, internal field!) |
getId | public long getId()(Code) | | Get the internal id
internal id |
getLifeCycleInfo | public LifeCycleInfo getLifeCycleInfo()(Code) | | Get this items lifecycle info
lifecycle info |
getList | public FxSelectList getList()(Code) | | Get the list this item belongs to
list this item belongs to |
getParentItem | public FxSelectListItem getParentItem()(Code) | | Get the parent item of this item (check existance with hasParentItem() first!)
parent item of this item |
hasParentItem | public boolean hasParentItem()(Code) | | Does a parent item exist for this item?
parent item exists |
isEmpty | public boolean isEmpty()(Code) | | Is this item used as the "empty" item?
if this is the "empty" item |
|
|