Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_HORIZONTAL_CENTER
Align horizontal: center (= 5).
|
static int |
ALIGN_HORIZONTAL_DEFAULT
Align horizontal: default (=0).
|
static int |
ALIGN_HORIZONTAL_LEADING
Align horizontal: leading (= 44).
|
static int |
ALIGN_HORIZONTAL_LEFT
Align horizontal: left (= 4).
|
static int |
ALIGN_HORIZONTAL_RIGHT
Align horizontal: right (= 6).
|
static int |
ALIGN_HORIZONTAL_TRAILING
Align horizontal: trailing (= 66).
|
static int |
ALIGN_VERTICAL_BOTTOM
Align vertical: bottom (= 2).
|
static int |
ALIGN_VERTICAL_DEFAULT
Align vertical: default (= 0).
|
static int |
ALIGN_VERTICAL_MIDDLE
Align vertical: middle (= 5).
|
static int |
ALIGN_VERTICAL_TOP
Align vertical: top (= 2).
|
static int |
CELL_TYPE_Check
Cell type: Checkbox (= 2).
|
static int |
CELL_TYPE_Combo
Cell type: Combobox (= 4).
|
static int |
CELL_TYPE_KString
Cell type: KString (= 1).
|
static int |
CELL_TYPE_Radio
Cell type: Radio button (= 3).
|
static int |
CELL_TYPE_String
Cell type: String (= 0).
|
static TCell |
EMPTY
An empty table cell contents.
|
static TCell |
EMPTY_CELL_SELECTED
An empty table cell contents, but cell is selected.
|
Constructor and Description |
---|
TCell(boolean isSelected)
Creates a new instance of the table cell initialized with a radio button and its state
default-aligned horizontally and vertically.
|
TCell(boolean isSelected,
int horizontalAlign,
int verticalAlign,
int style)
Creates a new instance of the table cell initialized with a checkbox and its state
default-aligned horizontally and vertically.
|
TCell(int checkState)
Creates a new instance of the table cell initialized with a checkbox and its state
default-aligned horizontally and vertically.
|
TCell(int checkState,
int horizontalAlign,
int verticalAlign,
int style)
Creates a new instance of the table cell initialized with a checkbox and its state
default-aligned horizontally and vertically.
|
TCell(KString kstring)
Creates a new instance of the table cell initialized with the KString contents
default-aligned horizontally and vertically.
|
TCell(KString kstring,
boolean isSelected)
Creates a new instance of the table cell initialized with the KString contents
default-aligned horizontally and vertically.
|
TCell(KString kstring,
int horizontalAlign,
int verticalAlign,
int style)
Creates a new instance of the table cell initialized with the KString contents.
|
TCell(String string)
Creates a new instance of the table cell initialized with the String contents
default-aligned horizontally and vertically.
|
TCell(String string,
boolean isSelected)
Creates a new instance of the table cell initialized with the String contents
default-aligned horizontally and vertically.
|
TCell(String string,
int horizontalAlign,
int verticalAlign,
int style)
Creates a new instance of the table cell initialized with the String contents.
|
TCell(String string,
TableCombo combo)
Creates a new instance of the table cell initialized with a string and combobox
default-aligned horizontally and vertically.
|
TCell(String string,
TableCombo combo,
int horizontalAlign,
int verticalAlign,
int style)
Creates a new instance of the table cell initialized with a string and combobox
default-aligned horizontally and vertically.
|
Modifier and Type | Method and Description |
---|---|
TCell |
asCellOwner(TableCell newOwner)
Creates a new GCell instance that is cell selected.
|
TCell |
asCellSelected(boolean on)
Creates a new GCell instance that is cell selected.
|
protected TCell |
clone()
Clones the table cell.
|
boolean |
equals(Object o)
Checks for equality.
|
int |
getCheckState()
Returns if the check state.
|
int |
getColumnIndex()
Gets the column index in a row of the cell in the table.
|
TableCombo |
getCombo()
Gets the combo instance.
|
int |
getHorizontalAlign()
Gets the horizontal alignment of the cell.
|
KString |
getKString()
Gets the text contents when the cell is text.
|
TableRow |
getRow()
Gets the row for the cell.
|
int |
getRowIndex()
Gets the row index of the cell in the table.
|
int |
getSelection()
Gets the selected item for a combobox.
|
String |
getString()
Converts the contents to a string, just the textual plain contents or the check state, or selected state.
|
int |
getStyle()
Gets the style.
|
UITable |
getTable()
Gets the table for the cell.
|
int |
getType()
Gets the cell type.
|
int |
getVerticalAlign()
Gets the vertical alignment of the cell.
|
boolean |
isCellSelected()
Returns if the cell selection state is on or off.
|
boolean |
isSelected()
Returns if the radio button is selected.
|
String |
toString()
The debug string representation of this object.
|
public static final TCell EMPTY
public static final TCell EMPTY_CELL_SELECTED
public static final int CELL_TYPE_String
public static final int CELL_TYPE_KString
public static final int CELL_TYPE_Check
public static final int CELL_TYPE_Radio
public static final int CELL_TYPE_Combo
public static final int ALIGN_HORIZONTAL_DEFAULT
public static final int ALIGN_HORIZONTAL_LEFT
public static final int ALIGN_HORIZONTAL_LEADING
public static final int ALIGN_HORIZONTAL_CENTER
public static final int ALIGN_HORIZONTAL_RIGHT
public static final int ALIGN_HORIZONTAL_TRAILING
public static final int ALIGN_VERTICAL_DEFAULT
public static final int ALIGN_VERTICAL_TOP
public static final int ALIGN_VERTICAL_MIDDLE
public static final int ALIGN_VERTICAL_BOTTOM
public TCell(String string)
string
- The cell String.public TCell(String string, boolean isSelected)
string
- The cell String.isSelected
- Flag for cell selection.public TCell(String string, int horizontalAlign, int verticalAlign, int style)
string
- The cell String.horizontalAlign
- The horizontal alignment.verticalAlign
- The vertical alignment.style
- The style registered with the table, zero for none.IllegalArgumentException
- If the alignment or style values are incorrect.NullPointerException
- If the string is null.public TCell(KString kstring)
kstring
- The cell String.IllegalArgumentException
- If the alignment values are incorrect.NullPointerException
- If the kstring is null.public TCell(KString kstring, boolean isSelected)
kstring
- The cell String.isSelected
- Flag for cell selection.IllegalArgumentException
- If the alignment values are incorrect.NullPointerException
- If the kstring is null.public TCell(KString kstring, int horizontalAlign, int verticalAlign, int style)
kstring
- The cell string.horizontalAlign
- The horizontal alignment.verticalAlign
- The vertical alignment.style
- The style registered with the table, zero for none.IllegalArgumentException
- If the alignment or style values are incorrect.NullPointerException
- If the kstring is null.public TCell(int checkState)
checkState
- The check state (0=unchecked, 1=checked, 2=third state).IllegalArgumentException
- If the alignment values are incorrect.public TCell(int checkState, int horizontalAlign, int verticalAlign, int style)
checkState
- The check state (0=unchecked, 1=checked, 2=third state).horizontalAlign
- The horizontal alignment.verticalAlign
- The vertical alignment.style
- The style registered with the table, zero for none.IllegalArgumentException
- If the checkState, alignment or style values are incorrect.public TCell(boolean isSelected)
isSelected
- The radio button selected state.public TCell(boolean isSelected, int horizontalAlign, int verticalAlign, int style)
isSelected
- The radio button selected state.horizontalAlign
- The horizontal alignment.verticalAlign
- The vertical alignment.style
- The style registered with the table, zero for none.IllegalArgumentException
- If the alignment or style values are incorrect.public TCell(String string, TableCombo combo)
string
- The cell String.combo
- The combobox registered with the table.IllegalArgumentException
- If the alignment values are incorrect.public TCell(String string, TableCombo combo, int horizontalAlign, int verticalAlign, int style)
string
- The cell String.combo
- The combobox registered with the table.horizontalAlign
- The horizontal alignment.verticalAlign
- The vertical alignment.style
- The style registered with the table, zero for none.IllegalArgumentException
- If the alignment or style values are incorrect.protected TCell clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- If the cell fails cloning due to contents.public TableRow getRow()
public UITable getTable()
public int getColumnIndex()
public int getRowIndex()
public int getType()
public boolean isCellSelected()
public String getString()
public KString getKString()
public boolean isSelected()
public int getCheckState()
public int getSelection()
public int getVerticalAlign()
public int getHorizontalAlign()
public int getStyle()
public TableCombo getCombo()
public TCell asCellSelected(boolean on)
on
- The cell selection state.public TCell asCellOwner(TableCell newOwner)
newOwner
- The new GCell owner.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.