|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Component in com.sun.lwuit |
---|
Subclasses of Component in com.sun.lwuit | |
---|---|
class |
Button
Button is the base class for several UI widgets allowing clickability. |
class |
Calendar
Date widget for selecting a date/time value. |
class |
CheckBox
Checkbox is a button that can be selected or deselected, and which displays its state to the user. |
class |
ComboBox
A combo box is a list that allows only one selection at a time, when a user clicks the combo box a popup button with the full list of elements allows the selection of a single element. |
class |
Container
A composite pattern with Component , allows nesting and arranging multiple
components using a pluggable layout manager architecture. |
class |
Dialog
A dialog is a form that occupies a part of the screen and appears as a modal entity to the developer. |
class |
Form
Top level component that serves as the root for the UI, this Container
handles the menus and title while placing content between them. |
class |
Label
Allows displaying labels and images with different alignment options, this class is a base class for several components allowing them to declare alignement/icon look in a similar way. |
class |
List
A set of elements that is rendered using a ListCellRenderer
and are extracted via the ListModel . |
class |
MediaComponent
Deprecated. replaced by VideoComponent, this class will be removed in the next version of LWUIT |
class |
MenuBar
This class represents the Form MenuBar. |
class |
PeerComponent
A peer component is essentially a "dummy" LWUIT component used to calculate the position of the actual native platform specific component. |
class |
RadioButton
RadioButton is a Button that maintains a selection state exclusively
within a specific ButtonGroup |
class |
Slider
The slider component serves both as a slider widget to allow users to select a value on a scale via touch/arrows and also to indicate progress. |
class |
TabbedPane
Deprecated. see Tabs.java |
class |
Tabs
A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon. |
class |
TextArea
An optionally multi-line editable region that can display text and allow a user to edit it. |
class |
TextField
Allows in place editing using a lightweight API without necessarily moving to the external native text box. |
class |
VideoComponent
Allows embedding a video into a LWUIT component, video creation/management is very platform specific and this component tries to abstract that logic as much as possible while maintaining portability. |
class |
VirtualKeyboard
This class represent the LWUIT Light Weight Virtual Keyboard |
Methods in com.sun.lwuit that return Component | |
---|---|
protected Component |
MenuBar.createCommandComponent(java.util.Vector commands)
Creates the component containing the commands within the given vector used for showing the menu dialog, this method calls the createCommandList method by default however it allows more elaborate menu creation. |
protected Component |
Form.createCommandComponent(java.util.Vector commands)
Deprecated. override MenuBar.createCommandComponent instead of this method (this method will be removed in next version) |
Component |
Container.findFirstFocusable()
Finds the first focusable Component on this Container |
Component |
Container.getComponentAt(int index)
Returns the Component at a given index |
Component |
Container.getComponentAt(int x,
int y)
Returns a Component that exists in the given x, y coordinates by traversing component objects and invoking contains |
Component |
Form.getFocused()
Returns the current focus component for this form |
Component |
Container.getLeadComponent()
Returns the lead component for this hierarchy if such a component is defined |
Component |
Component.getNextFocusDown()
Allows us to determine which component will receive focus next when traversing with the down key |
Component |
Component.getNextFocusLeft()
Allows us to determine which component will receive focus next when traversing with the left key. |
Component |
Component.getNextFocusRight()
Allows us to determine which component will receive focus next when traversing with the right key |
Component |
Component.getNextFocusUp()
Allows us to determine which component will receive focus next when traversing with the up key. |
Component |
Tabs.getTabComponentAt(int index)
Returns the tab at index . |
Component |
TabbedPane.getTabComponentAt(int index)
Deprecated. Returns the tab at index . |
Methods in com.sun.lwuit with parameters of type Component | |
---|---|
void |
Form.addComponent(Component cmp)
Adds Component to the Form's Content Pane |
void |
Dialog.addComponent(Component cmp)
|
void |
Container.addComponent(Component cmp)
Adds a Component to the Container |
void |
Form.addComponent(int index,
Component cmp)
Adds Component to the Form's Content Pane |
void |
Dialog.addComponent(int index,
Component cmp)
|
void |
Container.addComponent(int index,
Component cmp)
This method adds the Component at a specific index location in the Container Components array. |
void |
Form.addComponent(int index,
java.lang.Object constraints,
Component cmp)
|
void |
Dialog.addComponent(int index,
java.lang.Object constraints,
Component cmp)
|
void |
Container.addComponent(int index,
java.lang.Object constraints,
Component cmp)
Adds a Component to the Container |
void |
Form.addComponent(java.lang.Object constraints,
Component cmp)
|
void |
Dialog.addComponent(java.lang.Object constraints,
Component cmp)
|
void |
Container.addComponent(java.lang.Object constraints,
Component cmp)
Adds a Component to the Container |
void |
Tabs.addTab(Button tab,
Component component)
Adds a component
represented by a button . |
void |
Tabs.addTab(java.lang.String title,
Component component)
Adds a component
represented by a title and no icon . |
void |
TabbedPane.addTab(java.lang.String title,
Component component)
Deprecated. Adds a component
represented by a title and no icon . |
void |
Tabs.addTab(java.lang.String title,
Image icon,
Component component)
Adds a component
represented by a title and/or icon ,
either of which can be null . |
void |
TabbedPane.addTab(java.lang.String title,
Image icon,
Component component)
Deprecated. Adds a component
represented by a title and/or icon ,
either of which can be null . |
boolean |
Container.contains(Component cmp)
Returns true if the given component is within the hierarchy of this container |
void |
Display.editString(Component cmp,
int maxSize,
int constraint,
java.lang.String text)
Encapsulates the editing code which is specific to the platform, some platforms would allow "in place editing" MIDP does not. |
int |
Form.getComponentIndex(Component cmp)
|
int |
Container.getComponentIndex(Component cmp)
Returns the Component index in the Container |
int |
Tabs.indexOfComponent(Component component)
Returns the index of the tab for the specified component. |
int |
TabbedPane.indexOfComponent(Component component)
Deprecated. Returns the index of the tab for the specified component. |
void |
Tabs.insertTab(Button tab,
Component component,
int index)
Inserts a component , at index ,
represented by a button
Uses java.util.Vector internally, see insertElementAt
for details of insertion conventions. |
void |
Tabs.insertTab(java.lang.String title,
Image icon,
Component component,
int index)
Inserts a component , at index ,
represented by a title and/or icon ,
either of which may be null . |
void |
TabbedPane.insertTab(java.lang.String title,
Image icon,
Component component,
int index)
Deprecated. Inserts a component , at index ,
represented by a title and/or icon ,
either of which may be null . |
void |
Display.onEditingComplete(Component c,
java.lang.String text)
Called by the underlying implementation to indicate that editing in the native system has completed and changes should propogate into LWUIT |
void |
Form.removeComponent(Component cmp)
Removes a component from the Form's Content Pane |
void |
Dialog.removeComponent(Component cmp)
|
void |
Container.removeComponent(Component cmp)
removes a Component from the Container, notice that removed component might still have a pending repaint in the queue that won't be removed. |
void |
Form.replace(Component current,
Component next,
Transition t)
|
void |
Container.replace(Component current,
Component next,
Transition t)
This method replaces the current Component with the next Component. |
void |
Form.replaceAndWait(Component current,
Component next,
Transition t)
|
void |
Container.replaceAndWait(Component current,
Component next,
Transition t)
This method replaces the current Component with the next Component. |
void |
Form.scrollComponentToVisible(Component c)
Makes sure the component is visible in the scroll if this container is scrollable |
protected void |
Container.scrollComponentToVisible(Component c)
Makes sure the component is visible in the scroll if this container is scrollable |
void |
Component.scrollRectToVisible(int x,
int y,
int width,
int height,
Component coordinateSpace)
Makes sure the component is visible in the scroll if this container is scrollable |
protected void |
Component.scrollRectToVisible(Rectangle rect,
Component coordinateSpace)
Makes sure the component is visible in the scroll if this container is scrollable |
void |
Form.setFocused(Component focused)
Sets the focused component and fires the appropriate events to make it so |
void |
Container.setLeadComponent(Component lead)
Sets the lead component for this container, a lead component takes over the entire component hierarchy and receives all the events for the container hierarchy. |
void |
Component.setNextFocusDown(Component nextFocusDown)
Allows us to determine which component will receive focus next when traversing with the down key |
void |
Component.setNextFocusLeft(Component nextFocusLeft)
Allows us to determine which component will receive focus next when traversing with the left key, this method doesn't affect the general focus behavior. |
void |
Component.setNextFocusRight(Component nextFocusRight)
Allows us to determine which component will receive focus next when traversing with the right key |
void |
Component.setNextFocusUp(Component nextFocusUp)
Allows us to determine which component will receive focus next when traversing with the up key, this method doesn't affect the general focus behavior. |
static Command |
Dialog.show(java.lang.String title,
Component body,
Command[] cmds)
Shows a modal dialog with the given component as its "body" placed in the center. |
static Command |
Dialog.show(java.lang.String title,
Component body,
Command[] cmds,
int type,
Image icon)
Shows a modal dialog with the given component as its "body" placed in the center. |
static Command |
Dialog.show(java.lang.String title,
Component body,
Command[] cmds,
int type,
Image icon,
long timeout)
Shows a modal dialog with the given component as its "body" placed in the center. |
static Command |
Dialog.show(java.lang.String title,
Component body,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal dialog with the given component as its "body" placed in the center. |
static Command |
Dialog.show(java.lang.String title,
Component body,
Command defaultCommand,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal dialog with the given component as its "body" placed in the center. |
Uses of Component in com.sun.lwuit.animations |
---|
Methods in com.sun.lwuit.animations that return Component | |
---|---|
Component |
Transition.getDestination()
Returns the destination form that should be set once animation is completed |
Component |
Transition.getSource()
Returns the source form which is the form from which the animation is starting. |
Methods in com.sun.lwuit.animations with parameters of type Component | |
---|---|
void |
Transition.init(Component source,
Component destination)
Invoked by Display to set the source and destination forms. |
Uses of Component in com.sun.lwuit.events |
---|
Methods in com.sun.lwuit.events that return Component | |
---|---|
Component |
ActionEvent.getComponent()
Returns the source component object |
Methods in com.sun.lwuit.events with parameters of type Component | |
---|---|
void |
FocusListener.focusGained(Component cmp)
Invoked when component gains focus |
void |
FocusListener.focusLost(Component cmp)
Invoked when component loses focus |
Constructors in com.sun.lwuit.events with parameters of type Component | |
---|---|
ActionEvent(Command source,
Component sourceComponent,
int x,
int y)
Creates a new instance of ActionEvent for a command |
Uses of Component in com.sun.lwuit.html |
---|
Subclasses of Component in com.sun.lwuit.html | |
---|---|
class |
HTMLComponent
HTMLComponent is a LWUIT Component that renders HTML documents that conform to the XHTML Mobile Profile 1.0 |
Methods in com.sun.lwuit.html with parameters of type Component | |
---|---|
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 |
Uses of Component in com.sun.lwuit.impl |
---|
Methods in com.sun.lwuit.impl with parameters of type Component | |
---|---|
abstract void |
LWUITImplementation.editString(Component cmp,
int maxSize,
int constraint,
java.lang.String text)
Encapsulates the editing code which is specific to the platform, some platforms would allow "in place editing" MIDP does not. |
void |
LWUITImplementation.paintVideo(Component cmp,
boolean fullScreen,
java.lang.Object nativeGraphics,
java.lang.Object video,
java.lang.Object player)
Deprecated. replaced by the version that accepts the video component instance |
Uses of Component in com.sun.lwuit.impl.android |
---|
Methods in com.sun.lwuit.impl.android with parameters of type Component | |
---|---|
void |
AndroidImplementation.editString(Component cmp,
int maxSize,
int constraint,
java.lang.String text)
|
Uses of Component in com.sun.lwuit.layouts |
---|
Methods in com.sun.lwuit.layouts that return Component | |
---|---|
Component |
BorderLayout.getCenter()
Returns the component in the center location |
Component |
BorderLayout.getEast()
Returns the component in the east location |
Component |
BorderLayout.getNorth()
Returns the component in the north location |
Component |
BorderLayout.getSouth()
Returns the component in the south location |
Component |
BorderLayout.getWest()
Returns the component in the west location |
Methods in com.sun.lwuit.layouts with parameters of type Component | |
---|---|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.add(boolean useAsBaseline,
Component component)
Adds a Component to this Group . |
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.add(boolean useAsBaseline,
Component component,
int min,
int pref,
int max)
Adds a Component to this Group
with the specified size. |
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.add(Component component)
Adds the specified Component. |
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.add(Component component)
Adds the specified Component. |
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.add(Component component,
int min,
int pref,
int max)
Adds the specified Component . |
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.add(Component component,
int min,
int pref,
int max)
Adds the specified Component . |
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.add(int alignment,
Component component)
Adds the specified Component. |
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.add(int alignment,
Component component,
int min,
int pref,
int max)
Adds the specified Component . |
void |
Layout.addLayoutComponent(java.lang.Object value,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data that allows the user to "hint" on object positioning. |
void |
BorderLayout.addLayoutComponent(java.lang.Object name,
Component comp,
Container c)
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addPreferredGap(Component comp1,
Component comp2,
int type)
Adds an element representing the preferred gap between the two components. |
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addPreferredGap(Component comp1,
Component comp2,
int type,
boolean canGrow)
Adds an element representing the preferred gap between the two components. |
java.lang.Object |
Layout.getComponentConstraint(Component comp)
Returns the optional component constraint |
java.lang.Object |
BorderLayout.getComponentConstraint(Component comp)
Returns the component constraint |
int |
LayoutStyle.getContainerGap(Component component,
int position,
Container parent)
Returns the amount of space to position a component inside its parent. |
int |
LayoutStyle.getPreferredGap(Component component1,
Component component2,
int type,
int position,
Container parent)
Returns the amount of space to use between two components. |
void |
GroupLayout.linkSize(Component[] components)
Forces the set of components to have the same size. |
void |
GroupLayout.linkSize(Component[] components,
int axis)
Forces the set of components to have the same size. |
void |
Layout.removeLayoutComponent(Component comp)
Removes the component from the layout this operation is only useful if the layout maintains references to components within it |
void |
GroupLayout.removeLayoutComponent(Component component)
Notification that a Component has been removed from
the parent container. |
void |
BorderLayout.removeLayoutComponent(Component comp)
|
void |
GroupLayout.replace(Component existingComponent,
Component newComponent)
Removes an existing component replacing it with the specified component. |
void |
GroupLayout.setHonorsVisibility(Component component,
java.lang.Boolean honorsVisibility)
Sets whether the component's visibility is considered for sizing and positioning. |
Uses of Component in com.sun.lwuit.list |
---|
Subclasses of Component in com.sun.lwuit.list | |
---|---|
class |
ContainerList
This is a "list component" implemented as a container with a layout manager which provides some of the ui advantages of a Container and some of a list while pulling out some of the drawbacks of both. |
class |
DefaultListCellRenderer
Default implementation of the renderer based on a label see the ListCellRenderer
for more information about the use and purpose of this class |
Methods in com.sun.lwuit.list that return Component | |
---|---|
Component |
GenericListCellRenderer.getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
|
Component |
DefaultListCellRenderer.getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
|
Component |
CellRenderer.getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value". |
Component |
GenericListCellRenderer.getFocusComponent(Component list)
|
Component |
DefaultListCellRenderer.getFocusComponent(Component list)
|
Component |
CellRenderer.getFocusComponent(Component list)
Returns a component instance that is painted under the currently focused renderer and is animated to provide smooth scrolling. |
Component |
ListCellRenderer.getListCellRendererComponent(List list,
java.lang.Object value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value". |
Component |
GenericListCellRenderer.getListCellRendererComponent(List list,
java.lang.Object value,
int index,
boolean isSelected)
|
Component |
DefaultListCellRenderer.getListCellRendererComponent(List list,
java.lang.Object value,
int index,
boolean isSelected)
|
Component |
ListCellRenderer.getListFocusComponent(List list)
Returns a component instance that is painted under the currently focused renderer and is animated to provide smooth scrolling. |
Component |
GenericListCellRenderer.getListFocusComponent(List list)
|
Component |
DefaultListCellRenderer.getListFocusComponent(List list)
|
Component |
GenericListCellRenderer.getSelected()
|
Component |
GenericListCellRenderer.getSelectedEven()
|
Component |
GenericListCellRenderer.getUnselected()
|
Component |
GenericListCellRenderer.getUnselectedEven()
|
Methods in com.sun.lwuit.list with parameters of type Component | |
---|---|
Component |
GenericListCellRenderer.getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
|
Component |
DefaultListCellRenderer.getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
|
Component |
CellRenderer.getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value". |
Component |
GenericListCellRenderer.getFocusComponent(Component list)
|
Component |
DefaultListCellRenderer.getFocusComponent(Component list)
|
Component |
CellRenderer.getFocusComponent(Component list)
Returns a component instance that is painted under the currently focused renderer and is animated to provide smooth scrolling. |
protected void |
GenericListCellRenderer.setComponentValue(Component cmp,
java.lang.Object value)
Initializes the given component with the given value |
Constructors in com.sun.lwuit.list with parameters of type Component | |
---|---|
GenericListCellRenderer(Component selected,
Component unselected)
Constructs a generic renderer with the given selected/unselected components |
|
GenericListCellRenderer(Component odd,
Component oddUnselected,
Component even,
Component evenUnselected)
Constructs a generic renderer with the given selected/unselected components for odd/even values allowing a "pinstripe" effect |
Uses of Component in com.sun.lwuit.painter |
---|
Constructors in com.sun.lwuit.painter with parameters of type Component | |
---|---|
BackgroundPainter(Component parent)
Construct a background painter for the given component |
Uses of Component in com.sun.lwuit.plaf |
---|
Methods in com.sun.lwuit.plaf that return Component | |
---|---|
abstract Component |
LookAndFeel.getTabbedPaneCell(TabbedPane tp,
java.lang.String text,
Image icon,
boolean isSelected,
boolean cellHasFocus,
Style cellStyle,
Style cellSelectedStyle,
Style tabbedPaneStyle,
int cellOffsetX,
int cellOffsetY,
Dimension cellsPreferredSize,
Dimension contentPaneSize)
Deprecated. |
Component |
DefaultLookAndFeel.getTabbedPaneCell(TabbedPane tp,
java.lang.String text,
Image icon,
boolean isSelected,
boolean cellHasFocus,
Style cellStyle,
Style cellSelectedStyle,
Style tabbedPaneStyle,
int cellOffsetX,
int cellOffsetY,
Dimension cellsPreferredSize,
Dimension contentPaneSize)
Deprecated. |
Methods in com.sun.lwuit.plaf with parameters of type Component | |
---|---|
void |
LookAndFeel.bind(Component cmp)
Every component binds itself to the look and feel thus allowing the look and feel to customize the component. |
void |
DefaultLookAndFeel.bind(Component cmp)
|
void |
LookAndFeel.drawHorizontalScroll(Graphics g,
Component c,
float offsetRatio,
float blockSizeRatio)
Draws a horizontal scroll bar in the given component |
void |
LookAndFeel.drawVerticalScroll(Graphics g,
Component c,
float offsetRatio,
float blockSizeRatio)
Draws a vertical scroll bar in the given component |
void |
DefaultLookAndFeel.focusGained(Component cmp)
|
void |
DefaultLookAndFeel.focusLost(Component cmp)
|
void |
Border.paint(Graphics g,
Component c)
Draws the border for the given component, this method is called before a call to background painting is made. |
void |
Border.paint(Graphics g,
int x,
int y,
int width,
int height,
Component c)
|
void |
Border.paintBorderBackground(Graphics g,
Component c)
Has effect when the border demands responsibility for background painting normally the painter will perform this work but in this case the border might do it instead. |
void |
LookAndFeel.setFG(Graphics g,
Component c)
Sets the foreground color and font for a generic component, reuse-able by most component drawing code |
Uses of Component in com.sun.lwuit.spinner |
---|
Subclasses of Component in com.sun.lwuit.spinner | |
---|---|
class |
Spinner
A spinner allows us to select a numeric, date or time value using the arrow keys in a similar way to a list or a combo box. |
Uses of Component in com.sun.lwuit.table |
---|
Subclasses of Component in com.sun.lwuit.table | |
---|---|
class |
Table
The table class represents a grid of data that can be used for rendering a grid of components/labels. |
Methods in com.sun.lwuit.table that return Component | |
---|---|
protected Component |
Table.createCell(java.lang.Object value,
int row,
int column,
boolean editable)
Creates a cell based on the given value |
Component |
TableLayout.getComponentAt(int row,
int column)
Returns the component at the given row/column |
Methods in com.sun.lwuit.table with parameters of type Component | |
---|---|
void |
TableLayout.addLayoutComponent(java.lang.Object value,
Component comp,
Container c)
|
int |
Table.getCellColumn(Component cell)
Returns the column in which the given cell is placed |
int |
Table.getCellRow(Component cell)
Returns the row in which the given cell is placed |
java.lang.Object |
TableLayout.getComponentConstraint(Component comp)
|
void |
TableLayout.removeLayoutComponent(Component comp)
|
Uses of Component in com.sun.lwuit.tree |
---|
Subclasses of Component in com.sun.lwuit.tree | |
---|---|
class |
Tree
The tree component allows constructing simple tree component hierechies that can be expaneded seamingly with no limit. |
Uses of Component in com.sun.lwuit.util |
---|
Subclasses of Component in com.sun.lwuit.util | |
---|---|
class |
EmbeddedContainer
This class is mostly used internally by the GUI builder and isn't very useful for general purpose. |
Methods in com.sun.lwuit.util that return Component | |
---|---|
protected Component |
UIBuilder.createComponentInstance(java.lang.String componentType,
java.lang.Class cls)
This method can be overriden to create custom components in a custom way, the component type is a shorthand for the component name and not the full name of the class. |
Component |
UIBuilder.findByName(java.lang.String name,
Container rootComponent)
Finds the given component by its name |
Methods in com.sun.lwuit.util with parameters of type Component | |
---|---|
void |
UIBuilder.back(Component sourceComponent)
This method effectively pops the form navigation stack and goes back to the previous form if back navigation is enabled and there is a previous form. |
protected void |
UIBuilder.bindListenerToComponent(Component cmp,
java.lang.Object listener)
Binds the given listener object to the component, this works seamlessly for common LWUIT events but might be an issue with custom components and custom listener types so this method can be overloaded to add support for such cases. |
void |
EventDispatcher.fireFocus(Component c)
Fires the event safely on the EDT without risk of concurrency errors |
protected Container |
UIBuilder.getRootAncestor(Component c)
Returns either the parent form or the component bellow the embedded container above c. |
static void |
Effects.growShrink(Component c,
int duration)
Grows or shrinks the given component to its new preferred size, this method essentially takes a component whose preferred size has changed and creates a "growing" effect that lasts for the duration. |
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.postCreateComponent(Component cmp)
Callback to allow binding custom logic/listeners to a component after its major properties were set (notice that not all properties or the full hierarchy will be available at this stage). |
void |
UIBuilder.reloadContainer(Component cnt)
Useful tool to refresh the current state of a container shown using show container without pushing another instance to the back stack |
Container |
UIBuilder.showContainer(java.lang.String resourceName,
Command sourceCommand,
Component sourceComponent)
This method is equivalent to the internal navigation behavior, it adds functionality such as the back command into the given form resource and shows it. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |