de.enough.polish.ui
Class ListItem
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.CustomItem
de.enough.polish.ui.FakeCustomItem
de.enough.polish.ui.FakeContainerCustomItem
de.enough.polish.ui.ListItem
public class ListItem
- extends FakeContainerCustomItem
Provides a list of items that can be used within a Form.
The list item behaves like a normal J2ME Polish container, so
you can specify view-types, columns, colspans, etc.
Copyright (c) Enough Software 2005 - 2009
history
16-Feb-2005 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
| Fields inherited from class de.enough.polish.ui.FakeContainerCustomItem |
allowCycling, autoFocusEnabled, autoFocusIndex, containerView, enableScrolling, focusedIndex, focusedItem, focusedStyleFirst, focusedStyleLast, isExpandItems, itemsList, itemStyle, lastPointerPressY, plainStyle, SCROLL_DEFAULT, SCROLL_SMOOTH, scrollHeight, scrollSmooth, targetYOffset, yOffset |
| Fields inherited from class de.enough.polish.ui.FakeCustomItem |
_bbField, appearanceMode, availableHeight, availableWidth, background, backgroundHeight, backgroundWidth, backgroundYOffset, bgBorder, border, BUTTON, colSpan, commands, completeBackground, completeBackgroundPadding, completeBorder, contentHeight, contentWidth, contentX, contentXAdjustment, contentY, contentYAdjustment, cssSelector, defaultCommand, focusedStyle, HORIZONTAL, HYPERLINK, ignoreRepaintRequests, includeLabel, INTERACTIVE, internalHeight, internalWidth, internalX, internalY, isContentVisible, isFocused, isInlineLabel, isInvisible, isLayoutCenter, isLayoutExpand, isLayoutRight, isPressed, isShown, isStyleInitialised, itemCommandListener, itemHeight, itemWidth, label, labelStyle, landscapeStyle, layout, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, marginBottom, marginLeft, marginRight, marginTop, maximumHeight, maximumWidth, minimumHeight, minimumWidth, NO_POSITION_SET, opacity, opacityPaintNormally, opacityRgbData, paddingBottom, paddingHorizontal, paddingLeft, paddingRight, paddingTop, paddingVertical, parent, PLAIN, portraitStyle, preferredHeight, preferredWidth, preserveViewType, relativeX, relativeY, rowSpan, screen, setView, style, TRANSPARENT, useSingleRow, VERTICAL, view, xAdjustment, yAdjustment |
|
Method Summary |
void |
append(Item item)
Adds the specified item to this list. |
void |
append(Item item)
Adds the specified item to this list. |
void |
append(Item item,
Style style)
Adds the specified item to this list. |
void |
append(Item item,
Style itmStyle)
Adds the specified item to this list. |
void |
insert(int position,
Item item)
Inserts the specified item into this list. |
void |
insert(int position,
Item item)
Inserts the specified item into this list. |
void |
insert(int position,
Item item,
Style itemStyle)
Inserts the specified item into this list and provides it with a style. |
boolean |
remove(Item item)
Removes the specified item from this list. |
void |
removeAll()
Clears this list. |
Item |
removeItem(int index)
Removes the specified item from this list. |
| Methods inherited from class de.enough.polish.ui.FakeContainerCustomItem |
add, add, add, add, add, add, add, animate, changeChildStyles, changeChildStyles, clear, createCssSelector, defocus, fireEvent, focus, focusChild, focusChild, focusClosestItem, focusClosestItem, focusClosestItemAbove, get, getFocusedIndex, getFocusedItem, getFocusedStyle, getItemAt, getItems, getNumberOfInteractiveItems, getPosition, getRelativeScrollHeight, getRelativeScrollYOffset, getScrollHeight, getScrollYOffset, handleCommand, handleKeyPressed, handleKeyReleased, handleKeyRepeated, handleNavigate, handlePointerPressed, handlePointerReleased, handlePointerScrollReleased, hideNotify, indexOf, initContent, paintBackgroundAndBorder, paintContent, parseIndexUrl, releaseResources, remove, remove, requestDefocus, requestFullInit, scroll, scroll, set, set, set, setItemsList, setScrollHeight, setScrollYOffset, setScrollYOffset, setStyle, setStyle, setStyleWithBackground, showCommands, showNotify, size, toString |
| Methods inherited from class de.enough.polish.ui.FakeCustomItem |
addCommand, addCommand, addCommand, addCommands, addRelativeToBackgroundRegion, addRelativeToBackgroundRegion, addRelativeToContentRegion, addRepaintArea, animate, containsCommand, getAbsoluteX, getAbsoluteY, getAppearanceMode, getAttribute, getAttributes, getAvailableHeight, getAvailableWidth, getBackgroundHeight, getBackgroundWidth, getBackgroundX, getBackgroundY, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getContentHeight, getContentWidth, getContentX, getContentY, getDefaultCommand, getFocusedStyle, getInternalHeight, getInternalWidth, getInternalX, getInternalY, getItemAreaHeight, getItemCommandListener, getItemCommands, getItemHeight, getItemHeight, getItemStateListener, getItemWidth, getItemWidth, getLabel, getLabelItem, getLayout, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMinContentHeight, getMinContentWidth, getMinimumHeight, getMinimumWidth, getParent, getPrefContentHeight, getPrefContentWidth, getPreferredHeight, getPreferredWidth, getScreen, getStyle, getView, getView, handleCommand, handlePointerDragged, init, initStyle, isInContentArea, isInItemArea, isInItemArea, isInitialized, isInteractive, isLayoutBottom, isLayoutCenter, isLayoutLeft, isLayoutRight, isLayoutTop, isLayoutVerticalCenter, isVisible, notifyItemPressedEnd, notifyItemPressedStart, notifyStateChanged, onScreenSizeChanged, paint, paint, paintBackground, paintBorder, removeAttribute, removeCommand, repaintFully, requestInit, setAbsoluteY, setAppearanceMode, setAttribute, setBackground, setBorder, setContentHeight, setContentWidth, setDefaultCommand, setDefaultCommand, setInitialized, setItemCommandListener, setItemCommandListener, setItemHeight, setItemStateListener, setItemTransition, setLabel, setLayout, setParent, setParent, setPreferredSize, setView, setVisible, show, toImage, toRgbImage, updateInternalArea |
| Methods inherited from class javax.microedition.lcdui.CustomItem |
getGameAction, getInteractionModes, invalidate, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, sizeChanged, traverse, traverseOut |
ListItem
public ListItem(String label)
- Creates a new list item.
- Parameters:
label - the label of this item
ListItem
public ListItem(String label,
Style style)
- Creates a new list item.
- Parameters:
label - the label of this itemstyle - the style
append
public void append(Item item)
- Adds the specified item to this list.
- Parameters:
item - the item that should be added
append
public void append(Item item,
Style style)
- Adds the specified item to this list.
- Parameters:
item - the item that should be added
insert
public void insert(int position,
Item item)
- Inserts the specified item into this list.
- Parameters:
position - the position into which the item should be inserteditem - the item that should be added
remove
public boolean remove(Item item)
- Removes the specified item from this list.
- Parameters:
item - the item that should be removed
- Returns:
- true when the item was contained in this list.
removeItem
public Item removeItem(int index)
- Removes the specified item from this list.
- Parameters:
index - the index of the item that should be removed
- Returns:
- the item that has been at the specified index
append
public void append(Item item)
- Adds the specified item to this list.
- Parameters:
item - the item that should be added
append
public void append(Item item,
Style itmStyle)
- Adds the specified item to this list.
- Parameters:
item - the item that should be addeditmStyle - the item style
insert
public void insert(int position,
Item item)
- Inserts the specified item into this list.
- Parameters:
position - the position into which the item should be inserteditem - the item that should be added
insert
public void insert(int position,
Item item,
Style itemStyle)
- Inserts the specified item into this list and provides it with a style.
- Parameters:
position - the position into which the item should be inserteditem - the item that should be addeditemStyle - the style
removeAll
public void removeAll()
- Clears this list.