public class nUIWebView extends nUIViewDisplay
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 |
---|
nUIWebView(int nuiid) |
Modifier and Type | Method and Description |
---|---|
boolean |
getHscrollable()
Determine if this web view allows horizontal scrolling.
|
boolean |
getVscrollable()
Determine if this web view allows vertical scrolling.
|
boolean |
insertAt(int index,
nUIObject to_add)
Insert a child nUIObject at a given index.
|
boolean |
registerCallBack(nUIWebviewCallBack callback)
Register a callback to process url requests from this webview.
|
void |
setHscrollable(boolean hscrollable)
Sets whether this web view is allowed to scroll horizontally.
|
void |
setHTMLText(java.lang.String html_data)
Sets the content of the page directly by passing in raw html.
|
void |
setURL(java.lang.String url)
Sets the current URL.
|
void |
setVscrollable(boolean vscrollable)
Sets whether this web view is allowed to scroll vertically.
|
getBgcolor, getBgimage, getBgimageAnchor, getBgimageScroll, getBgimageTileH, getBgimageTileV, getHeaderBgcolor, getHeaderimage, getHeadertext, getInnerHeight, getInterElementYSpacing, getPopupDismissText, getScreenInnerX, getScreenInnerY, getX, getY, resetHeaderFgColor, setBgcolor, setBgimage, setBgimageAnchor, setBgimageScroll, setBgimageTileH, setBgimageTileV, setHeaderBgcolor, setHeaderFgColor, setHeaderimage, setHeadertext, setInterElementYSpacing, setPopupDismissText
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 void setURL(java.lang.String url)
url
- the url to load nowpublic boolean insertAt(int index, nUIObject to_add)
nUIViewDisplay
insertAt
in class nUIViewDisplay
index
- the index (starting from 0) at which the child object should be inserted.to_add
- the nUIObject to add.public void setHTMLText(java.lang.String html_data)
html_data
- public void setHscrollable(boolean hscrollable)
setHscrollable
in class nUIViewDisplay
hscrollable
- true to allow scrolling.public void setVscrollable(boolean vscrollable)
setVscrollable
in class nUIViewDisplay
vscrollable
- true to allow scrolling.public boolean getHscrollable()
getHscrollable
in class nUIViewDisplay
public boolean getVscrollable()
getVscrollable
in class nUIViewDisplay
public boolean registerCallBack(nUIWebviewCallBack callback)
callback
- the nUIWebviewCallBack
to register,
or null
to remove the existing callback.