| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.io |
Networking, Storage, Filesystem & related API's
|
| com.codename1.io.rest |
Simplified REST API
|
| com.codename1.system |
Low level calls into the Codename One system, including
support for making platform native API calls.
|
| 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 |
|---|---|
static void |
ToastBar.showConnectionProgress(String message,
ConnectionRequest cr,
SuccessCallback<NetworkEvent> onSuccess,
FailureCallback<NetworkEvent> onError) |
static void |
ToastBar.showConnectionProgress(String message,
ConnectionRequest cr,
SuccessCallback<NetworkEvent> onSuccess,
FailureCallback<NetworkEvent> onError) |
| Modifier and Type | Method and Description |
|---|---|
void |
NetworkManager.addErrorListener(ActionListener<NetworkEvent> e)
Adds a generic listener to a network error that is invoked before the exception is propagated.
|
void |
ConnectionRequest.addExceptionListener(ActionListener<NetworkEvent> a)
Adds a listener that would be notified on the CodenameOne thread of an exception
in this connection request
|
void |
NetworkManager.addProgressListener(ActionListener<NetworkEvent> al)
Adds a listener to be notified when progress updates
|
void |
ConnectionRequest.addResponseCodeListener(ActionListener<NetworkEvent> a)
Adds a listener that would be notified on the CodenameOne thread of a response code that
is not a 200 (OK) or 301/2 (redirect) response code.
|
void |
ConnectionRequest.addResponseListener(ActionListener<NetworkEvent> a)
Adds a listener that would be notified on the CodenameOne thread of a response from the server.
|
void |
NetworkManager.removeErrorListener(ActionListener<NetworkEvent> e)
Removes the given error listener
|
void |
ConnectionRequest.removeExceptionListener(ActionListener<NetworkEvent> a)
Removes the given listener
|
void |
NetworkManager.removeProgressListener(ActionListener<NetworkEvent> al)
Adds a listener to be notified when progress updates
|
void |
ConnectionRequest.removeResponseCodeListener(ActionListener<NetworkEvent> a)
Removes the given listener
|
void |
ConnectionRequest.removeResponseListener(ActionListener<NetworkEvent> a)
Removes the given listener
|
| Modifier and Type | Method and Description |
|---|---|
RequestBuilder |
RequestBuilder.onError(ActionListener<NetworkEvent> error)
Invoked for exceptions or failures such as disconnect.
|
RequestBuilder |
RequestBuilder.onError(ActionListener<NetworkEvent> error,
boolean replace)
Invoked for exceptions or failures such as disconnect
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Lifecycle.handleNetworkError(NetworkEvent err)
Invoked on a network error callback
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CN.addNetworkErrorListener(ActionListener<NetworkEvent> e)
Adds a generic listener to a network error that is invoked before the exception is propagated.
|
static void |
CN.addNetworkProgressListener(ActionListener<NetworkEvent> al)
Adds a listener to be notified when progress updates
|
static void |
CN.removeNetworkErrorListener(ActionListener<NetworkEvent> e)
Removes the given error listener
|
static void |
CN.removeNetworkProgressListener(ActionListener<NetworkEvent> al)
Adds a listener to be notified when progress updates
|
Copyright © 2023. All rights reserved.