|
||||||||||
| 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.HorizontalContainerView
public class HorizontalContainerView
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 - 2009
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.ItemView |
|---|
availableHeight, availableWidth, contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem |
| Constructor Summary | |
|---|---|
HorizontalContainerView()
Creates a new view |
|
| Method Summary | |
|---|---|
Style |
focusItem(int focIndex,
Item item,
int direction,
Style focStyle)
Focuses the given item and retrieves the previous style of that item. |
protected void |
initContent(Item parentItm,
int firstLineWidth,
int availWidth,
int availHeight)
Initializes this container view. |
protected void |
paintContent(Container container,
Item[] myItems,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
Graphics g)
Paints the content of this container view. |
protected void |
setStyle(Style style)
Sets the style for this view. |
| Methods inherited from class de.enough.polish.ui.ItemView |
|---|
adjustToContentArea, animate, defocus, focus, handleKeyReleased, hideNotify, init, initContentByParent, notifyItemPressedEnd, notifyItemPressedEnd, notifyItemPressedStart, notifyItemPressedStart, paintBackground, paintBorder, paintContentByParent, removeItemBackground, removeItemBorder, removeParentBackground, removeParentBorder, removeViewFromParent, requestInit, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HorizontalContainerView()
| Method Detail |
|---|
protected void initContent(Item parentItm,
int firstLineWidth,
int availWidth,
int availHeight)
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 lineavailWidth - the maximum width of any following linesavailHeight - the maximum height of the viewItemView.contentWidth,
ItemView.contentHeight
public Style focusItem(int focIndex,
Item item,
int direction,
Style focStyle)
ContainerView
focusItem in class ContainerViewfocIndex - the index of the itemitem - the item which should be focuseddirection - the direction, either Canvas.DOWN, Canvas.RIGHT, Canvas.UP, Canvas.LEFT or 0.focStyle - the new style for the focused item
protected void setStyle(Style style)
ContainerView
setStyle in class ContainerViewstyle - the style
protected void paintContent(Container container,
Item[] myItems,
int x,
int y,
int leftBorder,
int rightBorder,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||