public class nUITableElement extends nUIElementDisplay
nUITablerowElement
,
nUITablecellElement
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
event_listener, event_listener_exclusive, first_child, last_child, next_sibling, nuiid, parent, prev_sibling, unlink_children_on_removal_from_parent
Constructor and Description |
---|
nUITableElement(int nuiid,
int[] rel_widths)
Default table constructor
|
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.
|
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
|
getY
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, insertAtInternal, isEnabled, onRemoved, remove, setBackgroundDrawable, setBgcolor, setBottom, setChildFocus, setEnabled, setFocus, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getTag, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setTag
public nUITableElement(int nuiid, int[] rel_widths)
nuiid
- Unique Native UI ID (or -1 if unidentified)rel_widths
- The relative widths of the columns (their sum will equal 100% parent width)public boolean insertAt(int index, nUIObject to_add)
insertAt
in class nUIElementDisplay
index
- The index to add a new objectto_add
- The new object to addpublic 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.