public class

Cell

extends Object
implements IActionableCell
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.table.impl.Cell

Class Overview

A simple implementation of an actionable visual cell item.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.output.IActionableItem
Public Constructors
Cell(String label)
Create 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.
Public Methods
ItemClassIdentifiers getClassId()
Retrieve the item class id, if any.
int getItemFlags()
Retrieve the item flags.
long getItemId()
Retrieve the item id.
String getLabel()
Get the label for that cell.
void setClassId(ItemClassIdentifiers classId)
void setItemFlags(int flags)
void setItemId(long itemId)
void setLabel(String label)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.IActionableItem
From interface com.pnfsoftware.jeb.core.output.IVisualItem
From interface com.pnfsoftware.jeb.core.output.table.ICell

Public Constructors

public Cell (String label)

Create a new cell.

Parameters
label the label, without new-line characters

public Cell (String label, ItemClassIdentifiers classId)

Create a new cell.

Parameters
label the label, without new-line characters
classId optional class identifier

public Cell (String label, ItemClassIdentifiers classId, long itemId, int flags)

Create a new cell.

Parameters
label the label, without new-line characters
classId optional class identifier
itemId optional item identifier
flags optional flags

Public Methods

public ItemClassIdentifiers getClassId ()

Retrieve the item class id, if any.

Returns
  • the class id, null if none

public int getItemFlags ()

Retrieve the item flags. Currently, allowed flags are:
- ROLE_MASTER
- #MULTIPLE_ITEMS

For code nodes, this is not to be confused with the generic flags.

Returns
  • the items flags

public long getItemId ()

Retrieve the item id.

Returns
  • the item id, 0 if none

public String getLabel ()

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.

Returns
  • the label

public void setClassId (ItemClassIdentifiers classId)

public void setItemFlags (int flags)

public void setItemId (long itemId)

public void setLabel (String label)