public class nUITablecellElement extends nUIElementDisplay
nUITablerowElement
,
nUITableElement
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 |
---|
nUITablecellElement(int nuiid)
Default table-cell constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of this element.
|
int |
getHspan()
Gets the current horizontal span of this table cell.
|
int |
getVAlign()
Gets the current vertical alignment of this table cell.
|
int |
getVspan()
Gets the current vertical span of this table cell.
|
int |
getWidth()
Gets the width of this element.
|
int |
getX()
Gets the literal x-position of this element relative to the internal bounding box of its parent.
|
int |
getY()
Gets the literal y-position of this element relative to the internal bounding box of its parent.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert an element as a child of this one, at a given index.
|
boolean |
remove(nUIObject to_remove)
Remove a child nUIObject from this one.
|
void |
setHspan(int hspan)
Sets the horizontal span of this table cell.
|
void |
setVAlign(int valign)
Sets the vertical alignment of the table cell.
|
void |
setVspan(int vspan)
Sets the vertical span of this table cell.
|
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, insertAtInternal, isEnabled, onRemoved, 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 nUITablecellElement(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public boolean insertAt(int index, nUIObject to_add)
insertAt
in class nUIElementDisplay
index
- the index to insert at.to_add
- the nUIObject to insert.public boolean remove(nUIObject to_remove)
remove
in class nUIDisplayObject
to_remove
- the nUIObject to remove.public void setHspan(int hspan)
java.lang.IllegalArgumentException
- if hspan
is less than 1public int getHspan()
public void setVspan(int vspan)
java.lang.IllegalArgumentException
- if vspan
is less than 1public int getVspan()
public void setVAlign(int valign)
valign
- one of nUIConstants.top
, nUIConstants.bottom
,
or nUIConstants.center
java.lang.IllegalArgumentException
- if valign
is not one of the expected values.public int getVAlign()
public int getX()
getX
in class nUIDisplayObject
public int getY()
getY
in class nUIElementDisplay
public int getWidth()
getWidth
in class nUIDisplayObject
public int getHeight()
getHeight
in class nUIDisplayObject