| Package | Description |
|---|---|
| com.codename1.capture |
Package for capturing photos, audio or video from the camera/microphone.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.facebook |
Legacy generic implementation of the Facebook API with simplified OAuth integration to allow social sharing.
|
| com.codename1.facebook.ui |
User interface for integrating with basic Facebook features currently mostly the Like button
|
| 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.io.services |
Default WebService implementations
|
| com.codename1.maps |
The mapping API allows developers to use maps in their applications, add layers
on top of the map and to enhance the API with additional Layers, Providers and functionality.
|
| com.codename1.maps.layers |
The Layers are elements that are displayed on the map.
|
| com.codename1.media |
Video and Audio playback support are handled within this package using the
Media & MediaManager APIs. |
| com.codename1.properties |
High level property objects that allow us to replace getters/setters in business objects with more convenient
storage/parsing mappings while retaining type safety.
|
| com.codename1.share |
Sharing services, that can be registered on the ShareButton
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.events |
Observable pattern event listeners in the spirit of AWT 1.1's event
dispatching architecture, all events are dispatched on the EDT (Event Dispatch Thread).
|
| com.codename1.ui.html |
This package is deprecated and used only for legacy support, use the WebBrowser component
from the components package.
|
| com.codename1.ui.list |
Lists are highly customizable and serve as the basis for
ComboBox and
other components (such as carousels etc) they employ a similar MVC approach to
Swing including the renderer pattern, notice that we strongly
discourage usage of lists...ListCellRenderer
allows us to customize the appearance of a list entry, it works as a
"rubber stamp" by drawing the rendered component and discarding its state thus
allowing very large lists with very little component state overhead. |
| com.codename1.ui.plaf |
Look of the application can be fully customized via this package, it represents
a rendering layer that can be plugged in separately in runtime and themed to
provide any custom look.
|
| com.codename1.ui.tree |
Tree component for displaying hierarchy based information and its related classes
|
| com.codename1.ui.util |
Utility features that are either too domain specific or don't "fit" into any
other packages including the Resource file format loading API.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Capture.captureAudio(ActionListener response)
This method tries to invoke the device native hardware to capture audio.
|
static void |
Capture.captureAudio(MediaRecorderBuilder recorderOptions,
ActionListener response)
This method tries to invoke the device native hardware to capture audio.
|
static void |
Capture.capturePhoto(ActionListener response)
This method tries to invoke the device native camera to capture images.
|
static void |
Capture.captureVideo(ActionListener response)
This method tries to invoke the device native camera to capture video.
|
static void |
Capture.captureVideo(VideoCaptureConstraints constraints,
ActionListener response)
Captures video with some constraints, like width, height, and max length.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ButtonList
An abstract base class for a list of buttons.
|
class |
CheckBoxList
A list of checkboxes.
|
class |
Progress
Displays a progress dialog with the ability to cancel an ongoing operation
|
class |
RadioButtonList
A list of Radio buttons that can be managed as a single component.
|
class |
ShareButton
The share button allows sharing a String or an image either thru the defined
sharing services or thru the native OS sharing support.
|
class |
SwitchList
A list of switches.
|
| Modifier and Type | Method and Description |
|---|---|
ActionListener |
ToastBar.Status.getListener()
Returns the listener added to perform a particular action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Switch.addActionListener(ActionListener l)
Adds a listener to the switch which will cause an event to dispatch on
click
|
void |
MultiButton.addActionListener(ActionListener al)
Adds an action listener
|
void |
ButtonList.addActionListener(ActionListener l)
Add a listener to be notified when any of the buttons in the list are pressed.
|
void |
SpanMultiButton.addActionListener(ActionListener al)
Adds an action listener
|
void |
AudioRecorderComponent.addActionListener(ActionListener l)
Adds a listener to be notified when the state changes.
|
void |
SpanButton.addActionListener(ActionListener l)
Binds an action listener to button events
|
void |
OnOffSwitch.addActionListener(ActionListener l)
Deprecated.
Adds a listener to the switch which will cause an event to dispatch on click
|
void |
SignatureComponent.addActionListener(ActionListener l)
Adds a listener to be notified when the signature image is changed.
|
void |
Switch.addChangeListener(ActionListener l)
Adds a listener to the switch which will cause an event on change
|
void |
MultiButton.addLongPressListener(ActionListener l)
Adds a listener to the pointer event
|
void |
SpanMultiButton.addLongPressListener(ActionListener l)
Adds a listener to the pointer event
|
void |
SpanButton.addLongPressListener(ActionListener l)
Binds long press listener to button events.
|
void |
Accordion.addOnClickItemListener(ActionListener a)
To listen item click in accordion component
|
void |
MultiButton.addPointerPressedListener(ActionListener l)
Adds a listener to the pointer event
|
void |
SpanMultiButton.addPointerPressedListener(ActionListener l)
Adds a listener to the pointer event
|
void |
MultiButton.addPointerReleasedListener(ActionListener l)
Adds a listener to the pointer event
|
void |
SpanMultiButton.addPointerReleasedListener(ActionListener l)
Adds a listener to the pointer event
|
void |
Switch.removeActionListener(ActionListener l)
Removes the given action listener from the switch
|
void |
MultiButton.removeActionListener(ActionListener al)
Removes an action listener
|
void |
ButtonList.removeActionListener(ActionListener l)
Remove a listener so that it no longer is notified when buttons in the list are pressed.
|
void |
SpanMultiButton.removeActionListener(ActionListener al)
Removes an action listener
|
void |
AudioRecorderComponent.removeActionListener(ActionListener l)
Removes an action listener.
|
void |
SpanButton.removeActionListener(ActionListener l)
Removes the listener from tracking button events
|
void |
OnOffSwitch.removeActionListener(ActionListener l)
Deprecated.
Removes the given action listener from the switch
|
void |
SignatureComponent.removeActionListener(ActionListener l)
Removes a listener from being notified when signature image is changed.
|
void |
Switch.removeChangeListener(ActionListener l)
Removes the given change listener from the switch
|
void |
MultiButton.removeLongPressListener(ActionListener l)
Removes the listener from the pointer event
|
void |
SpanMultiButton.removeLongPressListener(ActionListener l)
Removes the listener from the pointer event
|
void |
SpanButton.removeLongPressListener(ActionListener l)
Unbinds long press listener to button events.
|
void |
Accordion.removeOnClickItemListener(ActionListener a)
To remove item click in accordion component
|
void |
MultiButton.removePointerPressedListener(ActionListener l)
Removes the listener from the pointer event
|
void |
SpanMultiButton.removePointerPressedListener(ActionListener l)
Removes the listener from the pointer event
|
void |
MultiButton.removePointerReleasedListener(ActionListener l)
Removes the listener from the pointer event
|
void |
SpanMultiButton.removePointerReleasedListener(ActionListener l)
Removes the listener from the pointer event
|
void |
ToastBar.Status.setListener(ActionListener listener)
Sets the action listener needed to perform an action when the bar is tapped
ToastBar. |
static ToastBar.Status |
ToastBar.showMessage(String msg,
char icon,
ActionListener listener)
Simplifies a common use case of showing an error message with an error icon that fades out after a few seconds
|
static ToastBar.Status |
ToastBar.showMessage(String msg,
char icon,
int timeout,
ActionListener listener)
Simplifies a common use case of showing a message with an icon that fades out after a few seconds
|
| Modifier and Type | Method and Description |
|---|---|
void |
FaceBookAccess.addResponseCodeListener(ActionListener a)
Adds a response listener on the requests
|
Component |
FaceBookAccess.createAuthComponent(ActionListener al)
This method creates a component which can authenticate.
|
void |
FaceBookAccess.createNote(String userId,
String subject,
String message,
ActionListener callback)
Post a note onto the users wall
|
void |
FaceBookAccess.getAlbum(String albumId,
Album album,
ActionListener callback)
Gest an album from an albumId
|
void |
FaceBookAccess.getAlbumPhotos(String albumId,
DefaultListModel photos,
int offset,
int limit,
ActionListener callback)
Gets the albums photos
|
void |
FaceBookAccess.getFaceBookObject(String faceBookId,
ActionListener callback)
This method returns immediately and will call the callback when it returns with
the FaceBook Object data.
|
void |
FaceBookAccess.getFaceBookObject(String faceBookId,
ActionListener callback,
boolean needToken,
boolean async)
This method returns immediately and will call the callback when it returns with
the FaceBook Object data.
|
void |
FaceBookAccess.getFaceBookObjectItems(String faceBookId,
String itemsConnection,
DefaultListModel feed,
Hashtable params,
ActionListener callback)
Get a list of FaceBook objects for a given id
|
void |
FaceBookAccess.getNewsFeed(String userId,
DefaultListModel feed,
ActionListener callback)
Gets the user news feed, the data is being stored in the given DefaultListModel.
|
void |
FaceBookAccess.getNewsFeed(String userId,
DefaultListModel feed,
int limit,
ActionListener callback)
Gets the user news feed, the data is being stored in the given DefaultListModel.
|
void |
FaceBookAccess.getPhoto(String photoId,
Photo photo,
ActionListener callback)
Gest a photo from a photo Id
|
void |
FaceBookAccess.getPhotoThumbnail(String photoId,
ActionListener callback,
boolean tempStorage)
Gets the photo thumbnail of a Photo Object
|
void |
FaceBookAccess.getPicture(String id,
ActionListener callback,
Dimension toScale,
boolean tempStorage)
Gets the picture of the given facebook object id
|
void |
FaceBookAccess.getPost(String postId,
Post post,
ActionListener callback)
Gest a post from a post Id
|
void |
FaceBookAccess.getPostComments(String postId,
DefaultListModel comments,
ActionListener callback)
Gets the post comments
|
void |
FaceBookAccess.getUser(String userId,
User user,
ActionListener callback)
Gets a user from a user id
|
void |
FaceBookAccess.getUserAlbums(String userId,
DefaultListModel albums,
ActionListener callback)
Gets the user albums
|
void |
FaceBookAccess.getUserEvents(String userId,
DefaultListModel events,
ActionListener callback)
Gets the user events
|
void |
FaceBookAccess.getUserFriends(String userId,
DefaultListModel friends,
ActionListener callback)
Gets the user friends
|
void |
FaceBookAccess.getUserInboxThreads(String userId,
DefaultListModel threads,
int limit,
ActionListener callback)
Gets the user inbox Threads
|
void |
FaceBookAccess.getUserNotifications(String userId,
String startTime,
boolean includeRead,
DefaultListModel notifications,
ActionListener callback)
Gets the user notifications (this method uses the legacy rest api see http://developers.facebook.com/docs/reference/rest/)
|
void |
FaceBookAccess.getUsersDetails(String[] usersIds,
String[] fields,
ActionListener callback)
Gets users requested details ((this method uses the legacy rest api see http://developers.facebook.com/docs/reference/rest/))
|
void |
FaceBookAccess.getWallFeed(String userId,
DefaultListModel feed,
ActionListener callback)
Gets the user wall feed, the data is being stored in the given DefaultListModel.
|
void |
FaceBookAccess.getWallFeed(String userId,
DefaultListModel feed,
int limit,
ActionListener callback)
Gets the user wall feed, the data is being stored in the given DefaultListModel.
|
void |
FaceBookAccess.getWallPosts(String userId,
DefaultListModel feed,
ActionListener callback)
Gets the user wall feed, the data is being stored in the given DefaultListModel.
|
void |
FaceBookAccess.getWallPosts(String userId,
DefaultListModel feed,
int limit,
ActionListener callback)
Gets the user wall posts, the data is being stored in the given DefaultListModel.
|
void |
FaceBookAccess.postComment(String postId,
String message,
ActionListener callback)
Post a comment on a given post
|
void |
FaceBookAccess.postLike(String postId,
ActionListener callback)
Post like on a given post
|
void |
FaceBookAccess.postOnWall(String userId,
String message,
ActionListener callback)
Post a message on the users wall
|
void |
FaceBookAccess.postOnWall(String userId,
String message,
String name,
String link,
String description,
String picture,
String caption,
ActionListener callback)
Post a message on the users wall
|
void |
FaceBookAccess.removeResponseCodeListener(ActionListener a)
Removes a response listener
|
void |
FaceBookAccess.search(String objectType,
String query,
DefaultListModel results,
ActionListener callback)
Serach for facebook objects
|
void |
FaceBookAccess.showAuthentication(ActionListener al)
This method shows an authentication for login form
|
| Modifier and Type | Class and Description |
|---|---|
class |
LikeButton
Deprecated.
This functionality is no longer possible open a BrowserComponent
with the link instead, this class will be removed in next version
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.addHeavyActionListener(Object peer,
ActionListener l)
Adds an action listener which will be run in response to the native button's
click event.
|
void |
CodenameOneImplementation.addNativeBrowserWindowOnLoadListener(Object window,
ActionListener l)
Adds a load listener to a native browser window.
|
void |
CodenameOneImplementation.captureAudio(ActionListener response) |
void |
CodenameOneImplementation.captureAudio(MediaRecorderBuilder recordingOptions,
ActionListener response)
Captures a audio and notifies with the raw data when available
|
void |
CodenameOneImplementation.capturePhoto(ActionListener response)
Captures a photo and notifies with the image data when available
|
void |
CodenameOneImplementation.captureVideo(ActionListener response)
Captures a video and notifies with the data when available
|
void |
CodenameOneImplementation.captureVideo(VideoCaptureConstraints constraints,
ActionListener response)
Captures a video, and notifies with the data when available.
|
void |
CodenameOneImplementation.execute(String url,
ActionListener response)
Executes the given URL on the native platform, this method is useful if
the platform has the ability to send an event to the app when the execution
has ended, currently this works only for Android platform to invoke other
intents.
|
void |
CodenameOneImplementation.nativeBrowserWindowAddCloseListener(Object window,
ActionListener l)
Adds close listener to native browser window.
|
void |
CodenameOneImplementation.nativeBrowserWindowRemoveCloseListener(Object window,
ActionListener l)
Removes close listener from native browser window.
|
void |
CodenameOneImplementation.openGallery(ActionListener response,
int type)
Opens the device gallery
The method returns immediately and the response will be sent asynchronously
to the given ActionListener Object
use this in the actionPerformed to retrieve the file path
String path = (String) evt.getSource();
|
void |
CodenameOneImplementation.openImageGallery(ActionListener response)
Opens the device image gallery
|
void |
CodenameOneImplementation.removeHeavyActionListener(Object peer,
ActionListener l)
Removes a heavy action listener from a heavy button.
|
void |
CodenameOneImplementation.removeNativeBrowserWindowOnLoadListener(Object window,
ActionListener l)
Removes a load listener from a native browser window.
|
void |
CodenameOneImplementation.setLogListener(ActionListener al)
This method is useful strictly for debugging, the logger can use it to track
file opening/closing thus detecting potential file resource leaks that
can cause serious problems in some OS's.
|
| 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.
|
Component |
Oauth2.createAuthComponent(ActionListener al)
This method creates a component which can authenticate.
|
static void |
Util.downloadUrlToFileSystemInBackground(String url,
String fileName,
ActionListener onCompletion)
Non-blocking method that will download the given URL to file system storage in the background and return immediately
|
static void |
Util.downloadUrlToStorageInBackground(String url,
String fileName,
ActionListener onCompletion)
Non-blocking method that will download the given URL to storage in the background and return immediately
|
static boolean |
Oauth2.handleRedirect(ActionListener callback)
When using the
Oauth2.setUseRedirectForWeb(boolean) option you should call this method at the beginning of your app's
start() method. |
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
|
void |
Oauth2.showAuthentication(ActionListener al)
This method shows an authentication for login form
|
| 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 |
|---|---|
static void |
ImageDownloadService.addErrorListener(ActionListener listener)
Deprecated.
Binds an error listener that will fire an instance of NetworkEvent with an error
for a specific fetch operation if applicable
|
static void |
ImageDownloadService.createImageToFileSystem(String url,
ActionListener callback,
String destFile)
Deprecated.
Constructs an image request that will automatically populate the given Label
when the response arrives, it will cache the file locally.
|
static void |
ImageDownloadService.createImageToStorage(String url,
ActionListener callback,
String cacheId)
Deprecated.
|
static void |
ImageDownloadService.createImageToStorage(String url,
ActionListener callback,
String cacheId,
boolean keep)
Deprecated.
Constructs an image request that will automatically populate the given Label
when the response arrives, it will cache the file locally.
|
static void |
ImageDownloadService.removeErrorListener(ActionListener listener)
Deprecated.
Unbinds an error listener that will fire an instance of NetworkEvent with an error
for a specific fetch operation if applicable
|
static void |
CachedDataService.updateData(CachedData d,
ActionListener callback)
Checks that the cached data is up to date and if a newer version exits it updates the data in place
|
| Constructor and Description |
|---|
ImageDownloadService(String url,
ActionListener l)
Deprecated.
Accepts the url to bind to the list renderer, on completion the action listener
will be invoked with the image so a list can be updated with the data
|
| Modifier and Type | Method and Description |
|---|---|
void |
Tile.setsTileReadyListener(ActionListener listener)
Sets a Listener to be notified when the tile is fireReady to be painted
|
| Modifier and Type | Method and Description |
|---|---|
void |
PointsLayer.addActionListener(ActionListener l)
Adds a listener to the Points Layer which will cause an event to dispatch
on click the ActionEvent will contain the pressed PointLayer unprojected
|
void |
PointsLayer.removeActionListener(ActionListener l)
Removes the given action listener Points Layer
|
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncMedia.addMediaErrorListener(ActionListener<AsyncMedia.MediaErrorEvent> l)
Adds a listener to be notified when an error occurs in the media.
|
void |
AbstractMedia.addMediaErrorListener(ActionListener<AsyncMedia.MediaErrorEvent> l)
Adds a listener to be notified when an error occurs in the media.
|
void |
AsyncMedia.addMediaStateChangeListener(ActionListener<AsyncMedia.MediaStateChangeEvent> l)
Adds a listener to be notified when the state of the media changes.
|
void |
AbstractMedia.addMediaStateChangeListener(ActionListener<AsyncMedia.MediaStateChangeEvent> l)
Adds a listener to be notified when the state of the media changes.
|
void |
AsyncMedia.removeMediaErrorListener(ActionListener<AsyncMedia.MediaErrorEvent> l)
Removes a listener so that it will no longer be notified of errors.
|
void |
AbstractMedia.removeMediaErrorListener(ActionListener<AsyncMedia.MediaErrorEvent> l)
Removes a listener so that it will no longer be notified of errors.
|
void |
AsyncMedia.removeMediaStateChangeListener(ActionListener<AsyncMedia.MediaStateChangeEvent> l)
Removes a listener so that it will no longer be notified of state changes.
|
void |
AbstractMedia.removeMediaStateChangeListener(ActionListener<AsyncMedia.MediaStateChangeEvent> l)
Removes a listener so that it will no longer be notified of state changes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
UiBinding.CheckBoxRadioSelectionAdapter.bindListener(Button cmp,
ActionListener<ActionEvent> l) |
abstract void |
UiBinding.ComponentAdapter.bindListener(ComponentType cmp,
ActionListener<ActionEvent> l)
Binds an action listener to changes in the component
|
void |
UiBinding.PickerAdapter.bindListener(Picker cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.RadioListAdapter.bindListener(RadioButton[] cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.TextAreaAdapter.bindListener(TextArea cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.TextComponentAdapter.bindListener(TextComponent cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.CheckBoxRadioSelectionAdapter.removeListener(Button cmp,
ActionListener<ActionEvent> l) |
abstract void |
UiBinding.ComponentAdapter.removeListener(ComponentType cmp,
ActionListener<ActionEvent> l)
Removes the action listener from changes in the component
|
void |
UiBinding.PickerAdapter.removeListener(Picker cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.RadioListAdapter.removeListener(RadioButton[] cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.TextAreaAdapter.removeListener(TextArea cmp,
ActionListener<ActionEvent> l) |
void |
UiBinding.TextComponentAdapter.removeListener(TextComponent cmp,
ActionListener<ActionEvent> l) |
| Modifier and Type | Class and Description |
|---|---|
class |
EmailShare
Email sharing service.
|
class |
FacebookShare
Facebook sharing service
|
class |
ShareService
This is an abstract sharing service.
|
class |
SMSShare
SMS Sharing service
|
| Modifier and Type | Class and Description |
|---|---|
class |
Command
The Command class provides a useful extension to the ActionListener
interface in cases where the same functionality may be accessed by several controls.
|
class |
MenuBar
This class represents the Form MenuBar.
|
class |
NavigationCommand
The NavigationCommand is a Command that navigates to a given Form.
|
class |
SideMenuBar
Deprecated.
this class is still used internally but code should be migrated to use the
Toolbar |
| Modifier and Type | Method and Description |
|---|---|
ActionListener |
TextArea.getDoneListener()
Gets the done listener of this TextField.
|
ActionListener |
Display.getVirtualKeyboardListener()
|
| Modifier and Type | Method and Description |
|---|---|
TextComponent |
TextComponent.actionClick(ActionListener c)
Overridden for covariant return type
Binds an event for the action button
|
InputComponent |
InputComponent.actionClick(ActionListener c)
Binds an event for the action button
|
ComponentSelector |
ComponentSelector.addActionListener(ActionListener l)
Adds action listener to applicable components in found set.
|
void |
List.addActionListener(ActionListener l)
Allows binding a listener to user selection actions
|
void |
TextArea.addActionListener(ActionListener a)
Add an action listener which is invoked when the text area was modified not during
modification.
|
void |
Image.addActionListener(ActionListener l) |
void |
Slider.addActionListener(ActionListener l)
Action listeners give a more coarse event only when the user lifts the finger from the slider
|
void |
Calendar.addActionListener(ActionListener l)
Fires when a change is made to the month view of this component
|
void |
Button.addActionListener(ActionListener l)
Adds a listener to the button which will cause an event to dispatch on click
|
void |
ButtonGroup.addActionListener(ActionListener<ActionEvent> al)
Adds an action listener to all the buttons in the group
|
void |
Sheet.addBackListener(ActionListener l)
Adds listener to be notified when user goes back to the parent.
|
void |
RadioButton.addChangeListener(ActionListener l)
Adds a listener to be notified when the the checkbox's selected value changes.
|
void |
CheckBox.addChangeListener(ActionListener l)
Adds a listener to be notified when the the checkbox's selected value changes.
|
void |
TextArea.addCloseListener(ActionListener l)
Adds a listener to be called with this TextArea is "closed".
|
void |
BrowserWindow.addCloseListener(ActionListener l)
Adds listener to be notified when the browser window is closed.
|
void |
Sheet.addCloseListener(ActionListener l)
Adds listener notified when the sheet is closed.
|
void |
Form.addCommandListener(ActionListener l)
A listener that is invoked when a command is clicked allowing multiple commands
to be handled by a single block
|
Command |
Toolbar.addCommandToLeftBar(String name,
Image icon,
ActionListener ev)
Adds a Command to the TitleArea on the left side.
|
Command |
Toolbar.addCommandToLeftSideMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the left side navigation menu
|
Command |
Toolbar.addCommandToOverflowMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the overflow menu
|
Command |
Toolbar.addCommandToRightBar(String name,
Image icon,
ActionListener ev)
Adds a Command to the TitleArea on the right side.
|
Command |
Toolbar.addCommandToRightSideMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the right side navigation menu (it requires a permanent
sidemenu or an onTop mode sidemenu, otherwise it does nothing)
|
Command |
Toolbar.addCommandToSideMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the left or right side navigation menu according to the
state of RTL.
|
void |
Calendar.addDayActionListener(ActionListener l)
Adds an ActionListener to the day buttons.
|
void |
Component.addDragFinishedListener(ActionListener l)
Adds a listener to the dragFinished event
|
ComponentSelector |
ComponentSelector.addDragOverListener(ActionListener l)
Adds drag over listener to all components in found set.
|
void |
Component.addDragOverListener(ActionListener l)
Broadcasts an event when dragging over a component
|
ComponentSelector |
ComponentSelector.addDropListener(ActionListener l)
Adds a drop listener to all components in found set.
|
void |
Component.addDropListener(ActionListener l)
Binds an action listener to drop events which are invoked when this component is dropped on a target
|
static void |
CN.addEdtErrorHandler(ActionListener e)
An error handler will receive an action event with the source exception from the EDT
once an error handler is installed the default Codename One error dialog will no longer appear
|
void |
Display.addEdtErrorHandler(ActionListener e)
An error handler will receive an action event with the source exception from the EDT
once an error handler is installed the default Codename One error dialog will no longer appear
|
void |
Form.addGameKeyListener(int keyCode,
ActionListener listener)
Add a game key listener to the given gamekey for a callback when the
key is released
|
void |
Form.addKeyListener(int keyCode,
ActionListener listener)
Add a key listener to the given keycode for a callback when the key is released
|
void |
AutoCompleteTextField.addListListener(ActionListener a)
Adds an action listener that fires an event when an entry in the auto-complete list is selected.
|
void |
BrowserWindow.addLoadListener(ActionListener l)
Adds listeners to be notified when a page is loaded in the browser window.
|
ComponentSelector |
ComponentSelector.addLongPressListener(ActionListener l)
Adds long pointer pressed listener to all components in found set.
|
void |
Component.addLongPressListener(ActionListener l)
Adds a listener to the pointer event
|
Command |
Toolbar.addMaterialCommandToLeftBar(String name,
char icon,
ActionListener ev)
Adds a Command to the TitleArea on the left side with a material design
icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToLeftBar(String name,
char icon,
float size,
ActionListener ev)
Adds a Command to the TitleArea on the left side with a material design
icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToLeftSideMenu(String name,
char icon,
ActionListener ev)
Adds a Command to the left side navigation menu with a material design
icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToLeftSideMenu(String name,
char icon,
float size,
ActionListener ev)
Adds a Command to the left side navigation menu with a material design
icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToOverflowMenu(String name,
char icon,
ActionListener ev)
Adds a Command to the overflow menu with a material design icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToOverflowMenu(String name,
char icon,
float size,
ActionListener ev)
Adds a Command to the overflow menu with a material design icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToRightBar(String name,
char icon,
ActionListener ev)
Adds a Command to the TitleArea on the right side with a material design
icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToRightBar(String name,
char icon,
float size,
ActionListener ev)
Adds a Command to the TitleArea on the right side with a material design
icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToRightSideMenu(String name,
char icon,
ActionListener ev)
Adds a Command to the right side navigation menu with a material design
icon reference
FontImage (it requires a
permanent sidemenu or an onTop mode sidemenu, otherwise it does nothing). |
Command |
Toolbar.addMaterialCommandToRightSideMenu(String name,
char icon,
float size,
ActionListener ev)
Adds a Command to the right side navigation menu with a material design
icon reference
FontImage (it requires a
permanent sidemenu or an onTop mode sidemenu, otherwise it does nothing). |
Command |
Toolbar.addMaterialCommandToSideMenu(String name,
char icon,
ActionListener ev)
Adds a Command to the left or right side navigation menu (according to
the state of RTL) with a material design icon reference
FontImage. |
Command |
Toolbar.addMaterialCommandToSideMenu(String name,
char icon,
float size,
ActionListener ev)
Adds a Command to the left or right side navigation menu (according to
the state of RTL) with a material design icon reference
FontImage. |
static void |
CN.addMessageListener(ActionListener<MessageEvent> l)
Adds a listener to receive messages from the native platform.
|
void |
Display.addMessageListener(ActionListener<MessageEvent> l)
Adds a listener to receive messages from the native platform.
|
void |
Calendar.addMonthChangedListener(ActionListener l)
Fires when a new month is selected
|
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
|
void |
Form.addOrientationListener(ActionListener l)
This listener is invoked when device orientation changes on devices that support orientation change
|
void |
Form.addPasteListener(ActionListener l)
Adds a listener to be notified when the user has initiated a paste event.
|
ComponentSelector |
ComponentSelector.addPointerDraggedListener(ActionListener l)
Adds pointer dragged listener to all components in found set.
|
void |
Component.addPointerDraggedListener(ActionListener l)
Adds a listener to the pointer event
|
ComponentSelector |
ComponentSelector.addPointerPressedListener(ActionListener l)
Adds pointer pressed listener to all components in found set.
|
void |
Component.addPointerPressedListener(ActionListener l)
Adds a listener to the pointer event
|
ComponentSelector |
ComponentSelector.addPointerReleasedListener(ActionListener l)
Adds pointer released listener to all components in found set.
|
void |
Component.addPointerReleasedListener(ActionListener l)
Adds a listener to the pointer event
|
void |
Toolbar.addSearchCommand(ActionListener callback)
This method add a search Command on the right bar of the
Toolbar. |
void |
Toolbar.addSearchCommand(ActionListener callback,
float iconSize)
This method add a search Command on the right bar of the
Toolbar. |
void |
Form.addShowListener(ActionListener l)
This listener would be invoked when show is completed
|
void |
Form.addSizeChangedListener(ActionListener l)
This listener is invoked when device size is changed
|
void |
Button.addStateChangeListener(ActionListener l)
Adds a listener to be notified when the button state changes.
|
void |
Component.addStateChangeListener(ActionListener<ComponentStateChangeEvent> l)
Adds a listener to be notified when the state of this component is changed
to and from initialized.
|
void |
SwipeableContainer.addSwipeOpenListener(ActionListener l)
Adds a listener to the SwipeableContainer which will cause an event to
dispatch once the SwipeableContainer is fully opened
|
void |
TextSelection.addTextSelectionListener(ActionListener l)
Adds a listener to be notified when the text selection changes.
|
void |
Display.addVirtualKeyboardListener(ActionListener l)
Adds a listener for VirtualKeyboard hide/show events.
|
void |
BrowserComponent.addWebEventListener(String type,
ActionListener listener)
Adds a listener to the given event type name, event type names are platform specific but some
must be fired for all platforms and will invoke the action listener when the appropriate event loads
|
protected void |
Calendar.bindDayListener(Component cmp,
ActionListener l)
Since a day may be any component type, developers should override this
method to add support for binding the click listener to the given
component.
|
protected void |
Tabs.bindTabActionListener(Component tab,
ActionListener l)
Binds an action listener to the tab component.
|
void |
Display.captureAudio(ActionListener response)
This method tries to invoke the device native hardware to capture audio.
|
void |
Display.captureAudio(MediaRecorderBuilder recordingOptions,
ActionListener response)
This method tries to invoke the device native hardware to capture audio.
|
void |
Display.capturePhoto(ActionListener response)
This method tries to invoke the device native camera to capture images.
|
void |
Display.captureVideo(ActionListener response)
This method tries to invoke the device native camera to capture video.
|
void |
Display.captureVideo(VideoCaptureConstraints constraints,
ActionListener response)
Same as
Display.captureVideo(com.codename1.ui.events.ActionListener), except that it
attempts to impose constraints on the capture. |
static Command |
Command.create(String name,
Image icon,
ActionListener ev)
Creates a new command instance that encapsulates the action listener and details, the main
value of this approach is in our ability to write commands using the shorthand lambda syntax
of Java 8.
|
static Command |
Command.createMaterial(String name,
char icon,
ActionListener ev)
Creates a new command instance that encapsulates the action listener and details, the main
value of this approach is in our ability to write commands using the shorthand lambda syntax
of Java 8.
|
void |
Display.execute(String url,
ActionListener response)
Executes the given URL on the native platform, this method is useful if
the platform has the ability to send an event to the app when the execution
has ended, currently this works only for Android platform to invoke other
intents.
|
static void |
CN.openGallery(ActionListener response,
int type)
Opens the device gallery to pick an image or a video.
The method returns immediately and the response is sent asynchronously to the given ActionListener Object as the source value of the event (as a String) |
void |
Display.openGallery(ActionListener response,
int type)
Opens the device gallery to pick an image or a video.
The method returns immediately and the response is sent asynchronously to the given ActionListener Object as the source value of the event (as a String) |
void |
Display.openImageGallery(ActionListener response)
Deprecated.
see openGallery instead
|
ComponentSelector |
ComponentSelector.removeActionListener(ActionListener l)
Removes action listeners from components in set.
|
void |
List.removeActionListener(ActionListener l)
Allows binding a listener to user selection actions
|
void |
TextArea.removeActionListener(ActionListener a)
Removes an action listener
|
void |
Image.removeActionListener(ActionListener l) |
void |
Slider.removeActionListener(ActionListener l)
Action listeners give a more coarse event only when the user lifts the finger from the slider
|
void |
Calendar.removeActionListener(ActionListener l)
Fires when a change is made to the month view of this component
|
void |
Button.removeActionListener(ActionListener l)
Removes the given action listener from the button
|
void |
ButtonGroup.removeActionListener(ActionListener<ActionEvent> al)
Removes an action listener from all the buttons in the group
|
void |
Sheet.removeBackListener(ActionListener l)
Removes a back listener.
|
void |
RadioButton.removeChangeListeners(ActionListener l)
Removes a change change listener.
|
void |
CheckBox.removeChangeListeners(ActionListener l)
Removes a change change listener.
|
void |
TextArea.removeCloseListener(ActionListener l)
Removes close listener.
|
void |
BrowserWindow.removeCloseListener(ActionListener l)
Removes listener from being notified when the browser window is closed.
|
void |
Sheet.removeCloseListener(ActionListener l)
Removes a close listener.
|
void |
Form.removeCommandListener(ActionListener l)
A listener that is invoked when a command is clicked allowing multiple commands
to be handled by a single block
|
void |
Calendar.removeDayActionListener(ActionListener l)
Removes ActionListener from day buttons
|
void |
Component.removeDragFinishedListener(ActionListener l)
Removes the listener from the drag finished event
|
ComponentSelector |
ComponentSelector.removeDragOverListener(ActionListener l)
Removes drag over listener from all components in found set.
|
void |
Component.removeDragOverListener(ActionListener l)
Removes an action listener to drag over events
|
ComponentSelector |
ComponentSelector.removeDropListener(ActionListener l)
Removes a drop listener from all components in found set.
|
void |
Component.removeDropListener(ActionListener l)
Removes an action listener to drop events which are invoked when this component is dropped on a target
|
static void |
CN.removeEdtErrorHandler(ActionListener e)
An error handler will receive an action event with the source exception from the EDT
once an error handler is installed the default Codename One error dialog will no longer appear
|
void |
Display.removeEdtErrorHandler(ActionListener e)
An error handler will receive an action event with the source exception from the EDT
once an error handler is installed the default Codename One error dialog will no longer appear
|
void |
Form.removeGameKeyListener(int keyCode,
ActionListener listener)
Removes a game key listener from the given game keycode
|
void |
Form.removeKeyListener(int keyCode,
ActionListener listener)
Removes a key listener from the given keycode
|
void |
AutoCompleteTextField.removeListListener(ActionListener a)
Removes an action listener that fires an event when an entry in the auto-complete list is selected.
|
void |
BrowserWindow.removeLoadListener(ActionListener l)
Removes listeners from being notified when page is loaded in the browser window.
|
ComponentSelector |
ComponentSelector.removeLongPressListener(ActionListener l)
Removes long pointer pressed listener from all components in found set.
|
void |
Component.removeLongPressListener(ActionListener l)
Removes the listener from the pointer event
|
static void |
CN.removeMessageListener(ActionListener<MessageEvent> l)
Removes a listener from receiving messages from the native platform.
|
void |
Display.removeMessageListener(ActionListener<MessageEvent> l)
Removes a listener from receiving messages from the native platform.
|
void |
Calendar.removeMonthChangedListener(ActionListener l)
Fires when a new month is selected
|
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
|
void |
Form.removeOrientationListener(ActionListener l)
This listener is invoked when device orientation changes on devices that support orientation change
|
void |
Form.removePasteListener(ActionListener l)
Removes listener from being notified when the user has initiated a paste event.
|
ComponentSelector |
ComponentSelector.removePointerDraggedListener(ActionListener l)
REmoves pointer dragged listener from all components in found set.
|
void |
Component.removePointerDraggedListener(ActionListener l)
Removes the listener from the pointer event
|
ComponentSelector |
ComponentSelector.removePointerPressedListener(ActionListener l)
Removes pointer pressed listener from all components in found set.
|
void |
Component.removePointerPressedListener(ActionListener l)
Removes the listener from the pointer event
|
ComponentSelector |
ComponentSelector.removePointerReleasedListener(ActionListener l)
Removes pointer released listener from all components in found set.
|
void |
Component.removePointerReleasedListener(ActionListener l)
Removes the listener from the pointer event
|
void |
Form.removeShowListener(ActionListener l)
Removes the show listener
|
void |
Form.removeSizeChangedListener(ActionListener l)
Remove SizeChangedListener
|
void |
Button.removeStateChangeListener(ActionListener l)
Removes state change listener.
|
void |
Component.removeStateChangeListener(ActionListener<ComponentStateChangeEvent> l)
Removes a listener from being notified when the state of this component is
changed to and from initialized.
|
void |
SwipeableContainer.removeSwipeOpenListener(ActionListener l)
Removes the given listener from the SwipeableContainer
|
void |
TextSelection.removeTextSelectionListener(ActionListener l)
Removes a listener so it no longer is notified when text selection changes.
|
void |
Display.removeVirtualKeyboardListener(ActionListener l)
Removes a listener for VirtualKeyboard hide/show events.
|
void |
BrowserComponent.removeWebEventListener(String type,
ActionListener listener)
Removes the listener, see addWebEventListener for details
|
Command |
Toolbar.setBackCommand(String title,
ActionListener<ActionEvent> listener)
Sets the back command in the title bar to an arrow type and maps the back
command hardware key if applicable.
|
Command |
Form.setBackCommand(String name,
Image icon,
ActionListener ev)
Shorthand for
Form.setBackCommand(com.codename1.ui.Command) that
dynamically creates the command using Command.create(java.lang.String, com.codename1.ui.Image, com.codename1.ui.events.ActionListener). |
Command |
Toolbar.setBackCommand(String title,
Toolbar.BackCommandPolicy policy,
ActionListener<ActionEvent> listener)
Sets the back command in the title bar and in the form, back command
behaves based on the given policy type
|
ComponentSelector |
ComponentSelector.setDoneListener(ActionListener l)
|
void |
TextArea.setDoneListener(ActionListener l)
Sets a Done listener on the TextField - notice this listener will be called
only on supported platforms that supports done action on the keyboard
|
void |
Display.setVirtualKeyboardListener(ActionListener l)
|
void |
Toolbar.showSearchBar(ActionListener callback)
Shows the search bar manually which is useful for use cases of popping
up search from code
|
| Modifier and Type | Method and Description |
|---|---|
void |
ActionSource.addActionListener(ActionListener<T> l)
Adds ActionListener to receive action events form this source.
|
void |
ActionSource.removeActionListener(ActionListener<T> l)
Removes ActionListener so that it will no longer receive events
from this source.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLComponent
Deprecated.
this component includes some customizability advantages but its probably better for 99% of the use
cases to use the WebBrowser Component from the Components package. That component works with the native
browser when applicable which is a far superior approach.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ContainerList.addActionListener(ActionListener l)
Deprecated.
Allows binding a listener to user selection actions
|
void |
ContainerList.removeActionListener(ActionListener l)
Deprecated.
Allows binding a listener to user selection actions
|
| Modifier and Type | Method and Description |
|---|---|
void |
UIManager.addThemeRefreshListener(ActionListener l)
Adds a Theme refresh listener.
|
void |
UIManager.removeThemeRefreshListener(ActionListener l)
Removes a Theme refresh listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Tree.addLeafListener(ActionListener l)
A listener that fires when a leaf is clicked
|
protected void |
Tree.bindNodeListener(ActionListener l,
Component node)
Since a node may be any component type developers should override this method to
add support for binding the click listener to the given component.
|
void |
Tree.removeLeafListener(ActionListener l)
Removes the listener that fires when a leaf is clicked
|
| Modifier and Type | Method and Description |
|---|---|
void |
UIBuilder.addCommandListener(ActionListener l)
Adds a command listener that would be bound to all forms in the GUI seamlessly
|
void |
UIBuilder.addCommandListener(String formName,
ActionListener l)
Adds a command listener to be invoked for commands on a specific form
|
void |
UIBuilder.removeCommandListener(ActionListener l)
Removes a command listener
|
void |
UIBuilder.removeCommandListener(String formName,
ActionListener l)
Removes a command listener on a specific form
|
Copyright © 2023. All rights reserved.