public class nUIWindowDisplay extends nUIDisplayObject
Modifier and Type | Field and Description |
---|---|
static int |
SV_LEFT
A position constant for side view indicating the left side.
|
static int |
SV_RIGHT
A position constant for side view indicating the right side.
|
static int |
SV_STYLE_BELOW
A style for side view indicating the side view is located below the window.
|
static int |
SV_STYLE_OVER
A style for a side view indicating the side view is located over the window.
|
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 |
---|
nUIWindowDisplay(int nuiid)
Default window constructor
|
Modifier and Type | Method and Description |
---|---|
static int |
getDefaultSideViewPosition()
Returns the default side view position for the current platform.
|
static int |
getDefaultSideViewStyle()
Returns the default side view style for the current platform.
|
int |
getHeight()
Gets the height of this object.
|
int |
getInnerHeight() |
int |
getInnerWidth() |
int |
getInnerX()
Space between the value of getX() and the internal bounding box of this window.
|
int |
getInnerY()
Space between the value of getY() and the internal bounding box of this window.
|
int[] |
getPaneDimensions(int pane) |
int |
getWidth()
Gets the width of this object in pixels.
|
void |
hideSideView(int aPosition)
Closes a side view at the given position.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert a nUIObject as a child of this one, at the given index.
|
boolean |
isSideViewSet(int aPosition)
Checks if a side view is set at the given position.
|
boolean |
isSideViewVisible()
Checks if a side view is visible(open).
|
boolean |
isSideViewVisible(int aPosition)
Checks if a side view is visible(open) at the given position.
|
int |
numPanes() |
void |
resetSideView(int aPosition)
Removes a side view from the left or right side, so that it cannot be open.
|
void |
setFullscreen(boolean fullscreen) |
void |
setPaneDimensions(int pane,
int[] dimensions)
Takes a copy of the supplied x/y/w/h dimensions and records them for this pane
|
void |
setSideView(float aWidth,
nUIViewDisplay aView)
Sets a side view at the the default position with the default style.
|
void |
setSideView(float aWidth,
nUIViewDisplay aView,
int aPosition,
int aStyle)
Sets a side view at the given position with the given style.
|
void |
showSideView(int aLocation)
Opens a side view at the given position.
|
void |
transitionFrom(nUIViewDisplay view)
Transition from an old view, with effect (DIS)"APPEAR" and default pane
|
void |
transitionFrom(nUIViewDisplay view,
int transition)
Transition from an old view, with default pane
|
void |
transitionFrom(nUIViewDisplay view,
int transition,
int pane)
Transition from an old view
|
void |
transitionTo(nUIViewDisplay view)
Transition to a new view, with effect "APPEAR" and in default pane
|
void |
transitionTo(nUIViewDisplay view,
int transition)
Transition to a new view, with default pane
|
void |
transitionTo(nUIViewDisplay view,
int transition,
int pane)
Transition to a new view
|
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getX, getY, 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 SV_LEFT
public static final int SV_RIGHT
public static final int SV_STYLE_OVER
public static final int SV_STYLE_BELOW
public nUIWindowDisplay(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public static int getDefaultSideViewPosition()
public static int getDefaultSideViewStyle()
SV_STYLE_BELOW
or SV_STYLE_OVER
.public void resetSideView(int aPosition)
aPosition
- - which side view to remove, SV_LEFT
or SV_RIGHT
public void setSideView(float aWidth, nUIViewDisplay aView)
showSideView(int)
method.aWidth
- - width of the side view. The range (0, 1.0) will be used as percentage of the screen width,
the values greater than 1.0 will be cobsidered as absolute width in pixels.aView
- - view to be displayed by calling showSideView(int)
method.public void setSideView(float aWidth, nUIViewDisplay aView, int aPosition, int aStyle)
showSideView(int)
method.aWidth
- - width of the side view. The range (0, 1.0) will be used as percentage of the screen width,
the values greater than 1.0 will be cobsidered as absolute width in pixels.aView
- - view to be displayed by calling showSideView(int)
method.
Passing null
removes the previous set side view for the given position.aPosition
- - position of the given side view. It can be SV_LEFT
or SV_RIGHT
.aStyle
- - style of the given side view. it can be SV_STYLE_BELOW
or SV_STYLE_OVER
.public void hideSideView(int aPosition)
public boolean isSideViewSet(int aPosition)
public boolean isSideViewVisible(int aPosition)
public boolean isSideViewVisible()
true
if a side view is open, otherwise false
.public void showSideView(int aLocation)
public boolean insertAt(int index, nUIObject to_add)
public void setFullscreen(boolean fullscreen)
public int getInnerX()
getInnerX
in class nUIDisplayObject
public int getInnerY()
getInnerY
in class nUIDisplayObject
public void transitionTo(nUIViewDisplay view, int transition, int pane)
view
- The view to transition totransition
- The transition effect to usepane
- The pane of this window the view should appear in (-1 if none)public void transitionTo(nUIViewDisplay view, int transition)
view
- The view to transition totransition
- The transition effect to usepublic void transitionTo(nUIViewDisplay view)
view
- The view to transition topublic void transitionFrom(nUIViewDisplay view, int transition, int pane)
view
- The view to transition fromtransition
- The transition effect to usepane
- The pane of this window the view should appear in (-1 if none)public void transitionFrom(nUIViewDisplay view, int transition)
view
- The view to transition fromtransition
- The transition effect to usepublic void transitionFrom(nUIViewDisplay view)
view
- The view to transition frompublic void setPaneDimensions(int pane, int[] dimensions)
pane
- dimensions
- int[4] array supplying x, y, w, h in pixel coordinatespublic int numPanes()
public int[] getPaneDimensions(int pane)
public int getWidth()
nUIDisplayObject
getWidth
in class nUIDisplayObject
public int getHeight()
nUIDisplayObject
getHeight
in class nUIDisplayObject
public int getInnerHeight()
getInnerHeight
in class nUIDisplayObject
public int getInnerWidth()
getInnerWidth
in class nUIDisplayObject