| Package | Description |
|---|---|
| com.codename1.impl |
The implementation package should not be used by developers, it is an internal implementation detail
which will break compatibility between major Codename One releases.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| Modifier and Type | Method and Description |
|---|---|
PeerComponent |
CodenameOneImplementation.createBrowserComponent(Object browserComponent)
If the implementation supports the creation of a browser component it should be returned in this
method
|
PeerComponent |
CodenameOneImplementation.createNativePeer(Object nativeComponent)
Creates a peer component for the given lightweight component
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.browserBack(PeerComponent browserPeer)
Navigates back in the history
|
void |
CodenameOneImplementation.browserClearHistory(PeerComponent browserPeer)
Clears navigation history
|
void |
CodenameOneImplementation.browserDestroy(PeerComponent internal)
Release browser native resources
|
void |
CodenameOneImplementation.browserExecute(PeerComponent browserPeer,
String javaScript)
Executes the given JavaScript string within the current context
|
String |
CodenameOneImplementation.browserExecuteAndReturnString(PeerComponent internal,
String javaScript)
Executes javascript and returns string.
|
void |
CodenameOneImplementation.browserExposeInJavaScript(PeerComponent browserPeer,
Object o,
String name)
Deprecated.
This method was never well-supported across platforms other than Android - and it will no longer work
even in Android for SDK >= 17, unless o's class has the @JavascriptInterface annotation which
would only be available if implemented inside a Native Interface. Don't use this.
|
void |
CodenameOneImplementation.browserForward(PeerComponent browserPeer)
Navigates forward in the history
|
boolean |
CodenameOneImplementation.browserHasBack(PeerComponent browserPeer)
Indicates whether back is currently available
|
boolean |
CodenameOneImplementation.browserHasForward(PeerComponent browserPeer)
Indicates whether forward is currently available
|
void |
CodenameOneImplementation.browserReload(PeerComponent browserPeer)
Reload the current page
|
void |
CodenameOneImplementation.browserStop(PeerComponent browserPeer)
Stops loading the current page
|
AsyncResource<Image> |
CodenameOneImplementation.captureBrowserScreenshot(PeerComponent browserPeer)
Captures a screenshot from a browser component asynchronously.
|
String |
CodenameOneImplementation.getBrowserTitle(PeerComponent browserPeer)
The page title
|
String |
CodenameOneImplementation.getBrowserURL(PeerComponent browserPeer)
The page URL
|
void |
CodenameOneImplementation.setBrowserPage(PeerComponent browserPeer,
String html,
String baseUrl)
Shows the given HTML in the native viewer
|
void |
CodenameOneImplementation.setBrowserPageInHierarchy(PeerComponent browserPeer,
String url)
Sets a relative URL from the html hierarchy
|
void |
CodenameOneImplementation.setBrowserProperty(PeerComponent browserPeer,
String key,
Object value)
This method allows customizing the properties of a web view in various ways including platform specific settings.
|
void |
CodenameOneImplementation.setBrowserURL(PeerComponent browserPeer,
String url)
Sets the page URL, jar: URL's must be supported by the implementation
|
void |
CodenameOneImplementation.setBrowserURL(PeerComponent browserPeer,
String url,
Map<String,String> headers)
Sets the page URL, jar: URL's must be supported by the implementation
|
void |
CodenameOneImplementation.setNativeBrowserScrollingEnabled(PeerComponent browserPeer,
boolean e)
Allows disabling the browsers native scrolling on devices that support it
|
void |
CodenameOneImplementation.setPinchToZoomEnabled(PeerComponent browserPeer,
boolean e)
Some platforms require that you enable pinch to zoom explicitly.
|
boolean |
CodenameOneImplementation.supportsBrowserExecuteAndReturnString(PeerComponent internal) |
| Modifier and Type | Method and Description |
|---|---|
static PeerComponent |
PeerComponent.create(Object nativePeer)
Use this method to encapsulate a native UI object
|
Copyright © 2021. All rights reserved.