| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.facebook.ui |
User interface for integrating with basic Facebook features currently mostly the Like button
|
| com.codename1.io |
Networking, Storage, Filesystem & related API's
|
| 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.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 |
|---|---|
void |
ShareButton.actionPerformed(ActionEvent evt)
invoked when the button is pressed
|
void |
Progress.actionPerformed(ActionEvent evt)
Invoked when an action occurred on a component
|
void |
ButtonList.actionPerformed(ActionEvent evt) |
void |
Ads.actionPerformed(ActionEvent evt,
HTMLComponent htmlC,
HTMLElement element)
Deprecated.
Called whenever an ActionEvent is triggered in one of the controls in the HTMLComponent
For example, button press, checkbox/radiobutton check etc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LikeButton.actionPerformed(ActionEvent evt)
Deprecated.
Invoked when an action occurred on a component
|
| Modifier and Type | Class and Description |
|---|---|
class |
NetworkEvent
Event containing more meta data for network events which may be error events or
an update for progress indication code.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ConnectionRequest.fireResponseListener(ActionEvent ev)
Fires the response event to the listeners on this connection
|
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncMedia.MediaErrorEvent
Encapsulates a media error event.
|
static class |
AsyncMedia.MediaStateChangeEvent
Encapsulates a state-change event on a Media object.
|
| 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 | Method and Description |
|---|---|
void |
FacebookShare.actionPerformed(ActionEvent evt)
This method is called when the soft button/Menu item is clicked
|
void |
ShareService.actionPerformed(ActionEvent evt)
This method is called when the soft button/Menu item is clicked
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentSelector |
ComponentSelector.$(ActionEvent e)
Creates a ComponentInspector with the source component of the provided event.
|
void |
MenuBar.actionPerformed(ActionEvent evt)
Invoked when a softbutton is pressed
|
void |
Command.actionPerformed(ActionEvent evt)
This method is called when the soft button/Menu item is clicked
|
void |
NavigationCommand.actionPerformed(ActionEvent evt) |
void |
Form.dispatchCommand(Command cmd,
ActionEvent ev)
Dispatches a command via the standard form mechanism of firing a command event
|
void |
Form.dispatchPaste(ActionEvent l)
Fires a paste event to the paste listeners.
|
protected void |
List.fireActionEvent(ActionEvent a)
Triggers the event to the listeners
|
void |
BrowserComponent.fireWebEvent(String type,
ActionEvent ev)
Used internally by the implementation to fire an event from the native browser widget
|
int |
Slider.getProgress(ActionEvent evt)
Gets the progress of the slider at the point where the provided ActionEvent
was triggered.
|
static ComponentSelector |
ComponentSelector.select(ActionEvent e)
|
| Modifier and Type | Method and Description |
|---|---|
void |
ButtonGroup.addActionListener(ActionListener<ActionEvent> al)
Adds an action listener to all the buttons in the group
|
void |
ButtonGroup.removeActionListener(ActionListener<ActionEvent> al)
Removes an action listener from all the buttons in the group
|
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 |
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
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ActionListener<T extends ActionEvent>
Event callback interface invoked when a component action occurs
|
interface |
ActionSource<T extends ActionEvent>
An interface that can be implemented by any class that broadcasts ActionEvents.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ComponentStateChangeEvent
An event that is fired when the state of a component is changed to and from initialized.
|
class |
MessageEvent
Encapsulates an event that either originates outside the App (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HTMLComponent.actionPerformed(ActionEvent evt)
Deprecated.
{Invoked when an action occurred on a component}
|
void |
DefaultHTMLCallback.actionPerformed(ActionEvent evt,
HTMLComponent htmlC,
HTMLElement element)
{Called whenever an ActionEvent is triggered in one of the controls in the HTMLComponent
For example, button press, checkbox/radiobutton check etc.}
|
void |
HTMLCallback.actionPerformed(ActionEvent evt,
HTMLComponent htmlC,
HTMLElement element)
Called whenever an ActionEvent is triggered in one of the controls in the HTMLComponent
For example, button press, checkbox/radiobutton check etc.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ContainerList.fireActionEvent(ActionEvent evt)
Deprecated.
Triggers the event to the listeners
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
UIBuilder.asyncCommandProcess(Command cmd,
ActionEvent sourceEvent)
Warning: This method is invoked OFF the EDT and is intended for usage with asynchronous
command processing.
|
void |
EventDispatcher.fireActionEvent(ActionEvent ev)
Fires the event safely on the EDT without risk of concurrency errors
|
protected void |
UIBuilder.handleComponentAction(Component c,
ActionEvent event)
This method is invoked for every component to which an action event listener can be bound
and delivers the event data for the given component seamlessly.
|
protected void |
UIBuilder.postAsyncCommand(Command cmd,
ActionEvent sourceEvent)
This method is invoked in conjunction with asyncCommandProcess after the
command was handled asynchronously on the separate thread.
|
protected void |
UIBuilder.processCommand(ActionEvent ev,
Command cmd)
Invoked to process a given command before naviation or any other internal
processing occurs.
|
Copyright © 2021. All rights reserved.