|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.structure.FxSelectListItem
public class FxSelectListItem
Items for select lists
| Field Summary | |
|---|---|
protected ACL |
acl
|
protected java.lang.String |
color
|
protected java.lang.String |
data
|
static FxSelectListItem |
EMPTY
|
protected long |
iconId
|
protected int |
iconQuality
|
protected int |
iconVer
|
protected long |
id
|
protected FxString |
label
|
protected LifeCycleInfo |
lifeCycleInfo
|
protected FxSelectList |
list
|
protected java.lang.String |
name
|
protected FxSelectListItem |
parentItem
|
protected long |
parentItemId
|
protected int |
position
|
| Constructor Summary | |
|---|---|
FxSelectListItem(long id,
java.lang.String name,
ACL acl,
FxSelectList list,
long parentItemId,
FxString label,
java.lang.String data,
java.lang.String color,
long iconId,
int iconVer,
int iconQuality,
LifeCycleInfo lifeCycleInfo,
int position)
Internal(!) Constructor to be used while loading from storage |
|
FxSelectListItem(long id,
java.lang.String name,
FxSelectList list,
long parentItemId,
FxString label)
Creates a new in-memory select list item. |
|
| Method Summary | |
|---|---|
protected void |
_synchronize(FxEnvironment env)
Internal method to synchronize/load parent items |
FxSelectListItemEdit |
asEditable()
Get this FxSelectListItem as editable |
boolean |
equals(java.lang.Object obj)
|
ACL |
getAcl()
Get the ACL for this item. |
int |
getChildCount()
Get the number of children of this item |
java.util.List<FxSelectListItem> |
getChildren()
Return all child items for this list item |
java.lang.String |
getColor()
Get the color to display for this item |
java.lang.String |
getData()
Get optional data assigned to this item |
boolean |
getHasChildren()
Are child items available for this list item? |
long |
getIconId()
Id of icon used for user interfaces (reference to binaries, internal field!) |
int |
getIconQuality()
Quality of icon used for user interfaces (reference to binaries, internal field!) |
int |
getIconVer()
Version of icon used for user interfaces (reference to binaries, internal field!) |
long |
getId()
Get the internal id |
FxString |
getLabel()
Get label |
java.lang.String |
getLabelBreadcrumbPath()
If this item is cascaded, get the label path up to the root element |
java.lang.String |
getLabelBreadcrumbPath(FxLanguage outputLanguage)
If this item is cascaded, get the label path up to the root element |
LifeCycleInfo |
getLifeCycleInfo()
Get this items lifecycle info |
FxSelectList |
getList()
Get the list this item belongs to |
java.lang.String |
getName()
Get the name of the item. |
FxSelectListItem |
getParentItem()
Get the parent item of this item (check existance with hasParentItem() first!) |
int |
getPosition()
Get the position within the list |
int |
hashCode()
|
boolean |
hasParentItem()
Does a parent item exist for this item? |
boolean |
isEmpty()
Is this item used as the "empty" item? |
boolean |
isValidLabel()
checks if the current listItem is valid |
boolean |
isValidName()
checks if the current listItem is valid |
void |
setList(FxSelectList list)
Update this items list (internally used when creating new lists to have a valid id) |
protected void |
setPosition(int position)
Set the position within the list Only to be called from the list itself |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long id
protected ACL acl
protected FxSelectList list
protected FxSelectListItem parentItem
protected long parentItemId
protected java.lang.String name
protected FxString label
protected java.lang.String data
protected java.lang.String color
protected long iconId
protected int iconVer
protected int iconQuality
protected int position
protected LifeCycleInfo lifeCycleInfo
public static final FxSelectListItem EMPTY
| Constructor Detail |
|---|
public FxSelectListItem(long id,
java.lang.String name,
ACL acl,
FxSelectList list,
long parentItemId,
FxString label,
java.lang.String data,
java.lang.String color,
long iconId,
int iconVer,
int iconQuality,
LifeCycleInfo lifeCycleInfo,
int position)
id - idname - name (unique within the list)acl - the items acllist - the list this item belongs toparentItemId - parent item id if >= 0label - this items labeldata - optional datacolor - color for displayiconId - id of icon (binary reference)iconVer - version of icon (binary reference)iconQuality - quality of icon (binary reference)lifeCycleInfo - life cycleposition - position within list
public FxSelectListItem(long id,
java.lang.String name,
FxSelectList list,
long parentItemId,
FxString label)
id - the new select list item ID, possible some external IDname - name (unique within the list)list - the select list this item should be added toparentItemId - the parent item ID, if anylabel - the select item label| Method Detail |
|---|
protected void _synchronize(FxEnvironment env)
env - environmentpublic void setList(FxSelectList list)
list - new list with a valid idpublic long getId()
getId in interface SelectableObjectpublic java.lang.String getName()
getName in interface SelectableObjectWithNamepublic ACL getAcl()
public boolean isEmpty()
public FxSelectList getList()
public boolean hasParentItem()
public FxSelectListItem getParentItem()
public boolean getHasChildren()
public java.util.List<FxSelectListItem> getChildren()
public int getChildCount()
public FxString getLabel()
getLabel in interface ObjectWithLabelpublic java.lang.String getData()
public java.lang.String getColor()
getColor in interface ObjectWithColorpublic long getIconId()
public int getIconVer()
public int getIconQuality()
public LifeCycleInfo getLifeCycleInfo()
public int getPosition()
protected void setPosition(int position)
position - new positionpublic FxSelectListItemEdit asEditable()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getLabelBreadcrumbPath()
public java.lang.String getLabelBreadcrumbPath(FxLanguage outputLanguage)
outputLanguage - desired output language
public boolean isValidName()
true if the name is validpublic boolean isValidLabel()
true if the label is valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||