Class Cell
java.lang.Object
com.pnfsoftware.jeb.core.output.table.impl.Cell
- All Implemented Interfaces:
IActionableItem,IItem,IVisualItem,IActionableCell,ICell,IVisualCell
A simple implementation of an actionable visual cell item.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.output.IActionableItem
HAS_RELATED_ITEMS, ITEM_TYPE_IDENTITY, ITEM_TYPE_MASK, ROLE_MASTER -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new cell.Cell(String label, ItemClassIdentifiers classId) Create a new cell.Cell(String label, ItemClassIdentifiers classId, long itemId, int flags) Create a new cell. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the item class id, if any.intRetrieve the item flags.longRetrieve the item id.getLabel()Get the label for that cell.voidsetClassId(ItemClassIdentifiers classId) voidsetItemFlags(int flags) voidsetItemId(long itemId) void
-
Constructor Details
-
Cell
Create a new cell.- Parameters:
label- the label, without new-line characters
-
Cell
Create a new cell.- Parameters:
label- the label, without new-line charactersclassId- optional class identifier
-
Cell
Create a new cell.- Parameters:
label- the label, without new-line charactersclassId- optional class identifieritemId- optional item identifierflags- optional flags
-
-
Method Details
-
getLabel
Description copied from interface:ICellGet the label for that cell.It is recommended to avoid new-line characters in the label. If new line characters are found, what happens to them is client-specific.
-
setLabel
-
getClassId
Description copied from interface:IVisualItemRetrieve the item class id, if any.- Specified by:
getClassIdin interfaceIVisualItem- Returns:
- the class id, null if none
-
setClassId
-
getItemId
public long getItemId()Description copied from interface:IActionableItemRetrieve the item id.- Specified by:
getItemIdin interfaceIActionableItem- Returns:
- the item id, 0 if none
-
setItemId
public void setItemId(long itemId) -
getItemFlags
public int getItemFlags()Description copied from interface:IActionableItemRetrieve the item flags. Currently, allowed flags are:
-IActionableItem.ROLE_MASTER
-IActionableItem.HAS_RELATED_ITEMS
For
code nodes, this is not to be confused with the generic flags.- Specified by:
getItemFlagsin interfaceIActionableItem- Returns:
- the items flags
-
setItemFlags
public void setItemFlags(int flags)
-