public class nUITableElement extends nUIElementDisplay
Y_IDENTIFIER_PREV_BOTTOM
COLOR_BACKGROUND_NORMAL, COLOR_BLACK, COLOR_FOREGROUND_DARK, COLOR_FOREGROUND_LIGHT, COLOR_FOREGROUND_NORMAL, COLOR_TRANSPARENT, COLOR_WHITE, DIMENSIONS_IDENTIFIER_PARENT_DIMENSIONS
Constructor and Description |
---|
nUITableElement(int[] rel_widths) |
nUITableElement(int[] rel_widths,
java.util.Hashtable properties) |
Modifier and Type | Method and Description |
---|---|
int |
getCellBorderColor()
Gets the cell border color.
|
int |
getCellBorderThickness()
Gets the current cell border thickness.
|
int |
getCellSpacingHeight()
Gets the cell spacing height.
|
int |
getCellSpacingWidth()
Gets the cell spacing width.
|
int |
getColumnWidth(int col)
Returns the pixel width of a particular column
|
int |
getHeight()
The height of a table is the height of all its component rows
|
boolean |
getIgnoreDirectionality()
Determine if directionality settings will be ignored for this table.
|
int[] |
getRelativeWidths()
Get a copy of the array of relative widths for this table.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert an nUIObject at a given index.
|
void |
setCellBorderColor(int cell_border_color)
Set the cell border color.
|
void |
setCellBorderThickness(int cell_border_thickness)
Set the current cell border thickness.
|
void |
setCellSpacingHeight(int cell_spacing_height)
Set the current cell spacing height.
|
void |
setCellSpacingWidth(int cell_spacing_width)
Set the current cell spacing width.
|
void |
setIgnoreDirectionality(boolean ignore_directionality)
Set whether this table ignores application-wide directionality settings when laying out columns.
|
int |
totalRelWidths()
The sum of the relative widths
|
void |
updateRelativeWidths(int[] new_rel_widths)
Update the relative widths of the columns in this table.
|
applyBackground, applyBackground, applyBackground
getBackgroundDrawable, getBottom, getElementIdentifier, getFocusable, getGesturable, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getProperties, getProperty, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, getY, insertAtInternal, isEnabled, isVisible, onRemoved, remove, setBackgroundDrawable, setBottom, setElementIdentifier, setEnabled, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setProperties, setProperty, setRight, setTop, setTriggerable, setVisible, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getFirstChild, getId, getLastChild, getNextSibling, getParent, getPrevSibling, getTag, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setId, setTag, setUnlinkChildrenOnRemoval
public nUITableElement(int[] rel_widths)
public nUITableElement(int[] rel_widths, java.util.Hashtable properties)
public boolean insertAt(int index, nUIObject to_add)
public int getHeight()
getHeight
in class nUIDisplayObject
public int totalRelWidths()
public int getColumnWidth(int col)
col
- The column index, 0 to (max_cols - 1)public boolean getIgnoreDirectionality()
true
if directionality will be ignored.public void setIgnoreDirectionality(boolean ignore_directionality)
ignore_directionality
- true
if the table should retain left-to-right column ordering in right-to-left setups.public int getCellBorderThickness()
public void setCellBorderThickness(int cell_border_thickness)
cell_border_thickness
- thickness in pixels.java.lang.IllegalArgumentException
- if cell_border_thickness
is less than 0public int getCellBorderColor()
public void setCellBorderColor(int cell_border_color)
cell_border_color
- the ARGB colour to set.public int getCellSpacingWidth()
public void setCellSpacingWidth(int cell_spacing_width)
cell_spacing_width
- width in pixels.public int getCellSpacingHeight()
public void setCellSpacingHeight(int cell_spacing_height)
cell_spacing_height
- height in pixels.public void updateRelativeWidths(int[] new_rel_widths)
new_rel_widths
- public int[] getRelativeWidths()