public class nUIViewDisplay extends nUIDisplayObject
Modifier and Type | Field and Description |
---|---|
static int |
SAVED_POINTER_LOCATIONS |
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 |
---|
nUIViewDisplay(int nuiid)
Default view constructor
|
Modifier and Type | Method and Description |
---|---|
javax.microedition.lcdui.Image |
getBgimage()
Deprecated.
Use nUIDisplayObject.getBackgroundDrawable() instead.
|
boolean |
getBgimageScroll()
Determine whether the view will scroll any background image set with the foreground.
|
boolean |
getBgimageTileH()
Deprecated.
Equivalent methods are available in PatternImage.
|
boolean |
getBgimageTileV()
Deprecated.
Equivalent methods are available in PatternImage.
|
int |
getHeaderBgcolor()
Gets the current header colour.
|
int |
getHeaderHeight() |
javax.microedition.lcdui.Image |
getHeaderimage() |
java.lang.String |
getHeadertext() |
boolean |
getHscrollable()
Determine whether this view will allow scrolling in the horizontal direction.
|
int |
getInnerHeight() |
int |
getInterElementYSpacing()
Gets the spacing between child elements in this view.
|
java.lang.String |
getPopupDismissText()
Gets the text shown by the iOS keyboard/spinner dismissal header button.
|
int |
getScreenInnerX() |
int |
getScreenInnerY() |
boolean |
getVscrollable()
Determine whether the view is vertically scrollable.
|
int |
getX()
Gets the x-position of this nUIViewDisplay relative to its parent's internal bounding box.
|
int |
getY()
Gets the y-position of this nUIViewDisplay relative to its parent's internal bounding box.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert a child nUIObject at a given index.
|
void |
onUISynced()
Gets called immediately after all underlying elements are calculated, but before rendering.
|
void |
resetHeaderFgColor() |
void |
setBgimage(javax.microedition.lcdui.Image bgimage)
Deprecated.
Use nUIDisplayObject.setBackgroundDrawable() instead.
|
void |
setBgimageScroll(boolean bgimage_scroll)
Sets scrolling of the background Image with the foreground.
|
void |
setBgimageTileH(boolean bgimage_tileh)
Deprecated.
Equivalent methods are available in PatternImage.
|
void |
setBgimageTileV(boolean bgimage_tilev)
Deprecated.
Equivalent methods are available in PatternImage.
|
void |
setHeaderBgcolor(int headerbgcolor)
Sets the header colour of this view.
|
void |
setHeaderFgColor(int headerFgcolor)
Sets the header colour of this view.
|
void |
setHeaderimage(javax.microedition.lcdui.Image headerimage) |
void |
setHeadertext(java.lang.String headertext)
Sets the header text for this View.
|
void |
setHscrollable(boolean hscrollable)
Sets whether this view can be scrolled horizontally.
|
void |
setInterElementYSpacing(int inter_element_y_spacing)
Sets the spacing between child elements of this view.
|
void |
setPopupDismissText(java.lang.String popupdismisstext)
Set the text shown by the iOS keyboard/spinner dimissal header button.
|
void |
setVscrollable(boolean vscrollable)
Sets whether vertical scrolling is allowed.
|
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, 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 nUIViewDisplay(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public boolean insertAt(int index, nUIObject to_add)
public void setHeadertext(java.lang.String headertext)
public java.lang.String getHeadertext()
public void setHeaderimage(javax.microedition.lcdui.Image headerimage)
public javax.microedition.lcdui.Image getHeaderimage()
public void setHeaderBgcolor(int headerbgcolor)
headerbgcolor
- an ARGB color.public void setHeaderFgColor(int headerFgcolor)
headerFgcolor
- an ARGB color.public void resetHeaderFgColor()
public int getHeaderBgcolor()
public int getX()
getX
in class nUIDisplayObject
public int getY()
getY
in class nUIDisplayObject
public int getScreenInnerX()
getScreenInnerX
in class nUIDisplayObject
public int getScreenInnerY()
getScreenInnerY
in class nUIDisplayObject
public int getInnerHeight()
getInnerHeight
in class nUIDisplayObject
public void setBgimage(javax.microedition.lcdui.Image bgimage)
bgimage
- the Image to use.public javax.microedition.lcdui.Image getBgimage()
public void setBgimageTileH(boolean bgimage_tileh)
bgimage_tileh
- true to enable tiling, false to disable.public boolean getBgimageTileH()
public void setBgimageTileV(boolean bgimage_tilev)
bgimage_tilev
- true to enable tiling, false to disable.public boolean getBgimageTileV()
public void setBgimageScroll(boolean bgimage_scroll)
bgimage_scroll
- true to enable scrolling, false to disable.public boolean getBgimageScroll()
public void setHscrollable(boolean hscrollable)
hscrollable
- true if the view should scroll horizontally, false if not.public boolean getHscrollable()
public void setVscrollable(boolean vscrollable)
vscrollable
- true if vertical scrolling should be enabled, false if not.public boolean getVscrollable()
public int getHeaderHeight()
public void setInterElementYSpacing(int inter_element_y_spacing)
inter_element_y_spacing
- the space, in pixels.public int getInterElementYSpacing()
public void setPopupDismissText(java.lang.String popupdismisstext)
popupdismisstext
- string to displaypublic java.lang.String getPopupDismissText()
public void onUISynced()