| Package | Description |
|---|---|
| com.codename1.ads |
A legacy banner Ads API.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.ui.html |
This package is deprecated and used only for legacy support, use the WebBrowser component
from the components package.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AdsService.onAdDisplay(HTMLComponent cmp)
This a callback method to inform to the service the Ad is displayed
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
Ads.dataChanged(int type,
int index,
HTMLComponent htmlC,
TextField textField,
HTMLElement element)
Deprecated.
Called when the user types in a TextField inside the HTMLComponent
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
String |
Ads.fieldSubmitted(HTMLComponent htmlC,
TextArea ta,
String actionURL,
String id,
String value,
int type,
String errorMsg)
Deprecated.
Called whenever a field is submitted to a form.
|
void |
Ads.focusGained(Component cmp,
HTMLComponent htmlC,
HTMLElement element)
Deprecated.
Called when one of the controls in the HTMLComponent obtained focus
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
void |
Ads.focusLost(Component cmp,
HTMLComponent htmlC,
HTMLElement element)
Deprecated.
Called when one of the controls in the HTMLComponent lost focus
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
String |
Ads.getAutoComplete(HTMLComponent htmlC,
String actionURL,
String id)
Deprecated.
Called on form creation and enabled implementations of this method to return a value to preset in a form field.
|
int |
Ads.getLinkProperties(HTMLComponent htmlC,
String url)
Deprecated.
Returns properties about the given link to indicate to HTMLComponent how to render it
Note that this method is always called NOT on the EDT thread.
|
boolean |
Ads.linkClicked(HTMLComponent htmlC,
String url)
Deprecated.
Called when a link is clicked.
|
void |
Ads.pageStatusChanged(HTMLComponent htmlC,
int status,
String url)
Deprecated.
Called when the page status has been changed
|
void |
Ads.selectionChanged(int oldSelected,
int newSelected,
HTMLComponent htmlC,
List list,
HTMLElement element)
Deprecated.
Called when the user selects an item in a List inside the HTMLComponent
Note: Selection is traversing through the items - once the user has actually decided, an ActionEvent will be sent as well
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
void |
Ads.titleUpdated(HTMLComponent htmlC,
String title)
Deprecated.
Called when the page's title is updated
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.dataChanged(int type,
int index,
HTMLComponent htmlC,
TextField textField,
HTMLElement element)
Called when the user types in a TextField inside the HTMLComponent
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
void |
DefaultHTMLCallback.dataChanged(int type,
int index,
HTMLComponent htmlC,
TextField textField,
HTMLElement element)
{Called when the user types in a TextField inside the HTMLComponent
This method will be called only if HTMLComponent.isEventsEnabled() is true}
|
String |
HTMLCallback.fieldSubmitted(HTMLComponent htmlC,
TextArea ta,
String actionURL,
String id,
String value,
int type,
String errorMsg)
Called whenever a field is submitted to a form.
|
String |
DefaultHTMLCallback.fieldSubmitted(HTMLComponent htmlC,
TextArea ta,
String actionURL,
String id,
String value,
int type,
String errorMsg)
{Called whenever a field is submitted to a form.}
|
void |
HTMLCallback.focusGained(Component cmp,
HTMLComponent htmlC,
HTMLElement element)
Called when one of the controls in the HTMLComponent obtained focus
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
void |
DefaultHTMLCallback.focusGained(Component cmp,
HTMLComponent htmlC,
HTMLElement element)
{Called when one of the controls in the HTMLComponent obtained focus
This method will be called only if HTMLComponent.isEventsEnabled() is true}
|
void |
HTMLCallback.focusLost(Component cmp,
HTMLComponent htmlC,
HTMLElement element)
Called when one of the controls in the HTMLComponent lost focus
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
void |
DefaultHTMLCallback.focusLost(Component cmp,
HTMLComponent htmlC,
HTMLElement element)
{Called when one of the controls in the HTMLComponent lost focus
This method will be called only if HTMLComponent.isEventsEnabled() is true}
|
String |
HTMLCallback.getAutoComplete(HTMLComponent htmlC,
String actionURL,
String id)
Called on form creation and enabled implementations of this method to return a value to preset in a form field.
|
String |
DefaultHTMLCallback.getAutoComplete(HTMLComponent htmlC,
String actionURL,
String id)
{Called on form creation and enabled implementations of this method to return a value to preset in a form field.}
|
int |
HTMLCallback.getLinkProperties(HTMLComponent htmlC,
String url)
Returns properties about the given link to indicate to HTMLComponent how to render it
Note that this method is always called NOT on the EDT thread.
|
int |
DefaultHTMLCallback.getLinkProperties(HTMLComponent htmlC,
String url)
{Returns properties about the given link to indicate to HTMLComponent how to render it
Note that this method is always called NOT on the EDT thread.}
|
boolean |
HTMLCallback.linkClicked(HTMLComponent htmlC,
String url)
Called when a link is clicked.
|
boolean |
DefaultHTMLCallback.linkClicked(HTMLComponent htmlC,
String url)
{Called when a link is clicked.}
|
void |
HTMLCallback.pageStatusChanged(HTMLComponent htmlC,
int status,
String url)
Called when the page status has been changed
|
void |
DefaultHTMLCallback.pageStatusChanged(HTMLComponent htmlC,
int status,
String url)
{Called when the page status has been changed}
|
void |
HTMLCallback.selectionChanged(int oldSelected,
int newSelected,
HTMLComponent htmlC,
List list,
HTMLElement element)
Called when the user selects an item in a List inside the HTMLComponent
Note: Selection is traversing through the items - once the user has actually decided, an ActionEvent will be sent as well
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
void |
DefaultHTMLCallback.selectionChanged(int oldSelected,
int newSelected,
HTMLComponent htmlC,
List list,
HTMLElement element)
{Called when the user selects an item in a List inside the HTMLComponent
Note: Selection is traversing through the items - once the user has actually decided, an ActionEvent will be sent as well
This method will be called only if HTMLComponent.isEventsEnabled() is true}
|
void |
HTMLCallback.titleUpdated(HTMLComponent htmlC,
String title)
Called when the page's title is updated
|
void |
DefaultHTMLCallback.titleUpdated(HTMLComponent htmlC,
String title)
{Called when the page's title is updated}
|
Copyright © 2023. All rights reserved.