|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.ItemView
de.enough.polish.ui.ContainerView
de.enough.polish.ui.containerviews.CenterNavigationContainerView
public class CenterNavigationContainerView
Shows the available items of a Container in a horizontal list.
Apply this view by specifying "view-type: horizontal;" in your polish.css file.
Copyright Enough Software 2007 - 2008
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.ContainerView |
|---|
allowCycling, allowsAutoTraversal, allowsDirectSelectionByPointerEvent, appearanceMode, columnsSetting, columnsWidths, EQUAL_WIDTH_COLUMNS, focusedIndex, focusedItem, focusFirstElement, isExpandItems, isHorizontal, isSequentialTraversal, isVertical, leftXOffset, NO_COLUMNS, NORMAL_WIDTH_COLUMNS, numberOfColumns, numberOfRows, parentContainer, restartAnimation, rightXOffset, rowsHeights, STATIC_WIDTH_COLUMNS, topYOffset, yOffset |
| Fields inherited from class de.enough.polish.ui.ItemView |
|---|
contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem |
| Constructor Summary | |
|---|---|
CenterNavigationContainerView()
Creates a new view |
|
| Method Summary | |
|---|---|
protected void |
convertToGrayScale(int[] rgbData)
|
Style |
focusItem(int index,
Item item,
int direction,
Style focusedStyle)
Focuses the given item and retrieves the previous style of that item. |
protected void |
initContent(Item parentItm,
int firstLineWidth,
int lineWidth)
Initialises this item. |
protected boolean |
isValid(Item parent,
Style style)
Implementation that are valid only for specific item classes can override this method so that they cannot be accidently attached to unsupported classes. |
protected void |
paintContent(Container container,
Item[] myItems,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
javax.microedition.lcdui.Graphics g)
Paints the content of this container view. |
| Methods inherited from class de.enough.polish.ui.ContainerView |
|---|
focusItem, focusItem, getItemRelativeY, getNextFocusableItem, getNextItem, getParentRelativeY, getScreen, handleKeyPressed, isInBottomRow, isLayoutExpand, paintContent, paintItem, scroll, setStyle, shiftFocus, showNotify |
| Methods inherited from class de.enough.polish.ui.ItemView |
|---|
addFullRepaintRegion, animate, animate, defocus, focus, handleKeyReleased, handlePointerPressed, handlePointerReleased, hideNotify, initContentByParent, notifyItemPressedEnd, notifyItemPressedStart, paintBackground, paintBorder, paintContentByParent, releaseResources, removeItemBackground, removeItemBorder, removeParentBackground, removeParentBorder, removeViewFromParent, requestInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CenterNavigationContainerView()
| Method Detail |
|---|
protected void initContent(Item parentItm,
int firstLineWidth,
int lineWidth)
ContainerView
initContent in class ContainerViewparentItm - the Container which uses this view, use parent.getItems() for retrieving all items.firstLineWidth - the maximum width of the first linelineWidth - the maximum width of any following linesItemView.contentWidth,
ItemView.contentHeight
public Style focusItem(int index,
Item item,
int direction,
Style focusedStyle)
ContainerView
focusItem in class ContainerViewindex - the index of the itemitem - the item which should be focuseddirection - the direction, either Canvas.DOWN, Canvas.RIGHT, Canvas.UP, Canvas.LEFT or 0.focusedStyle - the new style for the focused item
protected void convertToGrayScale(int[] rgbData)
protected void paintContent(Container container,
Item[] myItems,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
javax.microedition.lcdui.Graphics g)
ContainerView
paintContent in class ContainerViewcontainer - the parent containermyItems - the items that should be paintedx - the left start positiony - the upper start positionleftBorder - the left border, nothing must be painted left of this positionrightBorder - the right border, nothing must be painted right of this positionclipX - absolute horizontal clipping startclipY - absolute verical clipping startclipWidth - clipping widthclipHeight - clipping heightg - the Graphics on which this item should be painted.
protected boolean isValid(Item parent,
Style style)
ItemView
isValid in class ContainerViewparent - the parent itemstyle - the style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||