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.int
Retrieve the item flags.long
Retrieve the item id.getLabel()
Get the label for that cell.void
setClassId
(ItemClassIdentifiers classId) void
setItemFlags
(int flags) void
setItemId
(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:ICell
Get 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:IVisualItem
Retrieve the item class id, if any.- Specified by:
getClassId
in interfaceIVisualItem
- Returns:
- the class id, null if none
-
setClassId
-
getItemId
public long getItemId()Description copied from interface:IActionableItem
Retrieve the item id.- Specified by:
getItemId
in interfaceIActionableItem
- Returns:
- the item id, 0 if none
-
setItemId
public void setItemId(long itemId) -
getItemFlags
public int getItemFlags()Description copied from interface:IActionableItem
Retrieve 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:
getItemFlags
in interfaceIActionableItem
- Returns:
- the items flags
-
setItemFlags
public void setItemFlags(int flags)
-