public class nUIContainerElement extends nUIElementDisplay
Modifier and Type | Field and Description |
---|---|
static int |
SAVED_POINTER_LOCATIONS |
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 |
---|
nUIContainerElement(int nuiid)
Default container constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBgimageScroll()
Determine whether the container will scroll any background image set with the foreground.
|
boolean |
getHscrollable()
Gets the status of horizontal scrolling for this component.
|
int |
getScreenInnerX() |
int |
getScreenInnerY() |
boolean |
getVscrollable()
Gets the status of vertical scrolling for this component.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert a nUIObject as a child of this one, at the given index.
|
void |
setBgimageScroll(boolean bgimage_scroll)
Sets scrolling of the background Image with the foreground.
|
void |
setHscrollable(boolean hscrollable)
Sets this container's ability to scroll horizontally.
|
void |
setVscrollable(boolean vscrollable)
Sets this container's ability to scroll vertically.
|
getY
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, 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 SAVED_POINTER_LOCATIONS
public nUIContainerElement(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public boolean insertAt(int index, nUIObject to_add)
nUIObject
insertAt
in class nUIElementDisplay
index
- The index to add a new objectto_add
- The new object to addpublic void setHscrollable(boolean hscrollable)
hscrollable
- true
if the container should scroll horizontally, false
otherwise.public boolean getHscrollable()
true
if this component will allow horizontal scrolling.public void setVscrollable(boolean vscrollable)
vscrollable
- true
if the container should scroll vertically, false
otherwise.public boolean getVscrollable()
true
if the container will allow vertical scrolling.public void setBgimageScroll(boolean bgimage_scroll)
bgimage_scroll
- true to enable scrolling, false to disable.public boolean getBgimageScroll()
public int getScreenInnerX()
getScreenInnerX
in class nUIDisplayObject
public int getScreenInnerY()
getScreenInnerY
in class nUIDisplayObject