| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.io |
Networking, Storage, Filesystem & related API's
|
| com.codename1.io.rest |
Simplified REST API
|
| com.codename1.javascript |
NOTE: The
com.codename1.javascript package is now deprecated. |
| com.codename1.payment |
In-App Billing/Purchase API's are abstracted by this package.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.util |
General utilities classes
|
| com.codename1.util.promise |
| Modifier and Type | Method and Description |
|---|---|
static void |
ToastBar.showConnectionProgress(String message,
ConnectionRequest cr,
SuccessCallback<NetworkEvent> onSuccess,
FailureCallback<NetworkEvent> onError) |
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.downloadImageToCache(String url,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image from a URL to the cache.
|
void |
CodenameOneImplementation.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to file system.
|
void |
CodenameOneImplementation.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to storage.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Util.downloadImageToCache(String url,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to the cache asynchronously.
|
static void |
Util.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess)
Downloads an image to the file system asynchronously.
|
static void |
Util.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to the file system asynchronously.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
boolean useCache)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail,
boolean useCache)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
static void |
Util.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess)
Downloads an image to storage asynchronously.
|
static void |
Util.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to storage asynchronously.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
boolean useCache)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail,
boolean useCache)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
static void |
WebServiceProxyCall.invokeWebserviceASync(WebServiceProxyCall.WSDefinition def,
SuccessCallback scall,
FailureCallback fcall,
Object... arguments)
Invokes a web asynchronously and calls the callback on completion
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionRequest |
RequestBuilder.getAsJsonMap(SuccessCallback<Response<Map>> callback)
Deprecated.
|
ConnectionRequest |
RequestBuilder.getAsJsonMap(SuccessCallback<Response<Map>> callback,
FailureCallback<? extends Object> onError)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
JavascriptContext.call(String jsFunc,
JSObject self,
Object[] params,
boolean async,
SuccessCallback callback)
Deprecated.
Calls a Javascript function with the given parameters, and optionally to make the call asynchronously.
|
void |
JavascriptContext.callAsync(JSObject func,
JSObject self,
Object[] params,
SuccessCallback callback)
Deprecated.
Calls a Javascript function (encapsulated in a JSObject) with a specified
Javascript Object as the "this" context for the function call.
|
void |
JSObject.callAsync(Object[] params,
SuccessCallback callback)
Deprecated.
Calls the object as a function statically.
|
void |
JavascriptContext.callAsync(String jsFunc,
JSObject self,
Object[] params,
SuccessCallback callback)
Deprecated.
Calls a Javascript function with the given parameters asynchronously.
|
void |
JSObject.callAsync(String key,
Object[] params,
SuccessCallback callback)
Deprecated.
Calls a method on the underlying Javascript object asynchronously.
|
void |
JSObject.callAsync(String key,
SuccessCallback callback)
Deprecated.
Calls a method on the underlying Javascript object asynchronously with no arguments.
|
void |
JSObject.callDoubleAsync(String key,
SuccessCallback<Double> callback)
Deprecated.
Calls a method on the underlying Javascript object that returns a double.
|
void |
JSObject.callIntAsync(String key,
SuccessCallback<Integer> callback)
Deprecated.
Calls a method on the underlying Javascript object that returns an int.
|
void |
JSObject.callObjectAsync(String key,
SuccessCallback<JSObject> callback)
Deprecated.
Calls a method on the underlying Javascript object that returns a Javascript object.
|
void |
JSObject.callStringAsync(String key,
SuccessCallback<String> callback)
Deprecated.
Calls a method on the underlying Javascript object that returns a String.
|
void |
JavascriptContext.getAsync(String javascript,
SuccessCallback callback)
Deprecated.
Returns the result of the provided javascript expression asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReceiptStore.fetchReceipts(SuccessCallback<Receipt[]> callback)
Load receipts from the data source.
|
void |
ReceiptStore.submitReceipt(Receipt receipt,
SuccessCallback<Boolean> callback)
Submits a receipt to the data source.
|
void |
Purchase.synchronizeReceipts(long ifOlderThanMs,
SuccessCallback<Boolean> callback)
Synchronize with receipt store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BrowserComponent.addJSCallback(String installJs,
Object[] params,
SuccessCallback<BrowserComponent.JSRef> callback)
Registers Java method as a callback in Javascript.
|
void |
BrowserComponent.addJSCallback(String installJs,
SuccessCallback<BrowserComponent.JSRef> callback)
Registers a Java method as a callback in javascript.
|
ComponentSelector |
ComponentSelector.animateHierarchy(int duration,
SuccessCallback<ComponentSelector> callback)
|
ComponentSelector |
ComponentSelector.animateHierarchyFade(int duration,
int startingOpacity,
SuccessCallback<ComponentSelector> callback)
|
ComponentSelector |
ComponentSelector.animateLayout(int duration,
SuccessCallback<ComponentSelector> callback)
Wraps
Container.animateLayout(int). |
ComponentSelector |
ComponentSelector.animateLayoutFade(int duration,
int startingOpacity,
SuccessCallback<ComponentSelector> callback)
|
ComponentSelector |
ComponentSelector.animateStyle(Style destStyle,
int duration,
SuccessCallback<ComponentSelector> callback)
Animates this set of components, replacing any modified style properties of the
destination style to the components.
|
ComponentSelector |
ComponentSelector.animateUnlayout(int duration,
int opacity,
SuccessCallback<ComponentSelector> callback)
|
void |
BrowserComponent.JSProxy.call(int timeout,
String method,
Object[] args,
SuccessCallback<BrowserComponent.JSRef> callback)
Calls a method on this javascript object.
|
void |
BrowserComponent.JSProxy.call(String method,
Object[] args,
SuccessCallback<BrowserComponent.JSRef> callback)
Calls a method on this javascript object.
|
void |
BrowserComponent.execute(int timeout,
String js,
Object[] params,
SuccessCallback<BrowserComponent.JSRef> callback)
Executes Javascript expression.
|
void |
BrowserComponent.execute(int timeout,
String js,
SuccessCallback<BrowserComponent.JSRef> callback)
Execute javascript with a timeout.
|
void |
BrowserComponent.execute(String js,
Object[] params,
SuccessCallback<BrowserComponent.JSRef> callback)
Executes Javascript expression.
|
void |
BrowserComponent.execute(String js,
SuccessCallback<BrowserComponent.JSRef> callback)
Asynchronously executes the provided javascript expression.
|
ComponentSelector |
ComponentSelector.fadeIn(int duration,
SuccessCallback<ComponentSelector> callback)
Fade in this set of components.
|
ComponentSelector |
ComponentSelector.fadeOut(int duration,
SuccessCallback<ComponentSelector> callback)
Fades out components in this set.
|
void |
BrowserComponent.JSProxy.get(Collection<String> properties,
SuccessCallback<Map<String,BrowserComponent.JSRef>> callback)
Gets a property of this javascript object and waits for the result
using invokeAndBlock.
|
void |
BrowserComponent.JSProxy.get(int timeout,
Collection<String> properties,
SuccessCallback<Map<String,BrowserComponent.JSRef>> callback)
Gets multiple properties as a batch.
|
void |
BrowserComponent.JSProxy.get(int timeout,
String property,
SuccessCallback<BrowserComponent.JSRef> callback)
Gets a property of this javascript object.
|
void |
BrowserComponent.JSProxy.get(String property,
SuccessCallback<BrowserComponent.JSRef> callback)
Gets a property of this javascript object.
|
BrowserComponent |
BrowserComponent.ready(SuccessCallback<BrowserComponent> onReady)
Registers a callback to be run when the BrowserComponent is "ready".
|
void |
BrowserComponent.removeJSCallback(SuccessCallback<BrowserComponent.JSRef> callback) |
void |
BrowserComponent.JSProxy.set(int timeout,
Map<String,Object> properties,
SuccessCallback<BrowserComponent.JSRef> callback)
Sets multiple properties in a single batch.
|
void |
BrowserComponent.JSProxy.set(int timeout,
String property,
Object value,
SuccessCallback<BrowserComponent.JSRef> callback)
Sets a property on this javascript object.
|
void |
BrowserComponent.JSProxy.set(Map<String,Object> properties,
SuccessCallback<BrowserComponent.JSRef> callback)
Sets multiple properties in a single batch.
|
void |
BrowserComponent.JSProxy.set(String property,
Object value,
SuccessCallback<BrowserComponent.JSRef> callback)
Sets a property on this javascript object.
|
ComponentSelector |
ComponentSelector.slideDown(int duration,
SuccessCallback<ComponentSelector> callback)
Display the matched elements with a sliding motion.
|
ComponentSelector |
ComponentSelector.slideUp(int duration,
SuccessCallback<ComponentSelector> callback)
Hide the matched elements with a sliding motion.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Callback<T>
Simple interface that allows asynchronous code to perform a parameterized callback
or failure in a similar way to GWT's callback interface.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CallbackAdapter<T>
Adapter for the {Callback} interface.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
CallbackDispatcher.dispatchSuccess(SuccessCallback<T> success,
T arg)
Calls the given callback's
onSucess(java.lang.Object) method, passing the supplied arg as
a parameter. |
AsyncResource<V> |
AsyncResource.except(SuccessCallback<Throwable> callback)
Sets callback to run if an error occurs.
|
AsyncResource<V> |
AsyncResource.except(SuccessCallback<Throwable> callback,
EasyThread t)
Sets callback to run if an error occurs.
|
AsyncResource<V> |
AsyncResource.ready(SuccessCallback<V> callback)
Runs the provided callback when the resource is ready.
|
AsyncResource<V> |
AsyncResource.ready(SuccessCallback<V> callback,
EasyThread t)
Runs the provided callback when the resource is ready.
|
<T> void |
EasyThread.run(RunnableWithResult<T> r,
SuccessCallback<T> t)
Runs the given object asynchronously on the thread and returns the result object
|
void |
RunnableWithResult.run(SuccessCallback<T> onSuccess)
Similar to the runnable interface but can return a result
|
| Modifier and Type | Method and Description |
|---|---|
Promise |
Promise.onComplete(SuccessCallback handlerFunc)
|
Promise |
Promise.onFail(SuccessCallback<Throwable> rejectionFunc)
|
Promise |
Promise.onSuccess(SuccessCallback<T> resolutionFunc)
|
Promise |
Promise.ready(SuccessCallback<T> resolutionFunc,
SuccessCallback<Throwable> rejectionFunc)
|
Promise |
Promise.ready(SuccessCallback<T> resolutionFunc,
SuccessCallback<Throwable> rejectionFunc)
|
Copyright © 2022. All rights reserved.