public abstract class nUIElementDisplay extends nUIDisplayObject
Modifier and Type | Field and Description |
---|---|
static int |
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 |
---|
nUIElementDisplay(int nuiid)
By default, an element is positioned below the previously added item, and at full parent width
|
Modifier and Type | Method and Description |
---|---|
int |
getY()
Gets the current y-position of this object relative to its parent's internal bounding box.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert a nUIObject as a child of this one, at the given index.
|
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getHeight, 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 static final int Y_IDENTIFIER_PREV_BOTTOM
public nUIElementDisplay(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public int getY()
nUIDisplayObject
getY
in class nUIDisplayObject
public boolean insertAt(int index, nUIObject to_add)
nUIObject