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 |
---|---|
int |
getBgcolor()
Gets the current background colour.
|
javax.microedition.lcdui.Image |
getBgimage()
Gets the currently set background Image.
|
int |
getBgimageAnchor() |
boolean |
getBgimageScroll()
Determine whether the view will scroll any background image set with the foreground.
|
boolean |
getBgimageTileH()
Determine whether horizontal tiling of the background Image is enabled.
|
boolean |
getBgimageTileV()
Determine whether vertical tiling of the background Image is enabled.
|
int |
getHeaderBgcolor()
Gets the current header colour.
|
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 |
resetHeaderFgColor() |
void |
setBgcolor(int bgcolor)
Sets the background colour of this view.
|
void |
setBgimage(javax.microedition.lcdui.Image bgimage)
Sets a background using an LCDUI Image.
|
void |
setBgimageAnchor(int bgimage_anchor) |
void |
setBgimageScroll(boolean bgimage_scroll)
Sets scrolling of the background Image with the foreground.
|
void |
setBgimageTileH(boolean bgimage_tileh)
Sets tiling of the background image in the horizontal direction.
|
void |
setBgimageTileV(boolean bgimage_tilev)
Sets tiling of the background Image in the vertical direction.
|
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.
|
getBottom, getFocus, getFocusable, getGesturable, getHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, insertAtInternal, remove, setBottom, setChildFocus, setFocus, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace
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 setBgcolor(int bgcolor)
bgcolor
- an ARGB color.public int getBgcolor()
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 setBgimageAnchor(int bgimage_anchor)
public int getBgimageAnchor()
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 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()