public class nUIWebviewElement extends nUIElementDisplay
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 |
---|
nUIWebviewElement(int nuiid) |
Modifier and Type | Method and Description |
---|---|
boolean |
getHscrollable()
Determine whether this web element will scroll horizontally.
|
boolean |
getVscrollable()
Determine whether this web element will scroll vertically.
|
boolean |
registerCallBack(nUIWebviewCallBack callback)
Register a callback to process url requests from this webview.
|
void |
setHscrollable(boolean hscrollable)
Sets whether this web element should be 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 to visit.
|
void |
setVscrollable(boolean vscrollable)
Sets whether this web element should be allowed to scroll vertically.
|
getY, insertAt
getBottom, getFocus, getFocusable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, insertAtInternal, remove, setBottom, setChildFocus, setFocus, setFocusable, 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 void setHTMLText(java.lang.String html_data)
html_data
- public void setHscrollable(boolean hscrollable)
hscrollable
- true if scrolling should be allowed.public boolean getHscrollable()
public void setVscrollable(boolean vscrollable)
vscrollable
- true to enable scrolling.public boolean getVscrollable()
public boolean registerCallBack(nUIWebviewCallBack callback)
callback
- the nUIWebviewCallBack
to register,
or null
to remove the existing callback.