|
||||||||||
| 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.MIDP2LayoutView
public class MIDP2LayoutView
The MIDP2LayoutView layouts all items in a row instead of placing each item on a new row.
Apply this layout by specifying the view-type in the screen's CSS style:
.myForm {
view-type: midp2;
}
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.ItemView |
|---|
availableHeight, availableWidth, contentHeight, contentWidth, isFocused, isLayoutCenter, isLayoutRight, layout, paddingHorizontal, paddingVertical, parentItem |
| Constructor Summary | |
|---|---|
MIDP2LayoutView()
Constructs an instance of MIDP2LayoutView. |
|
| Method Summary | |
|---|---|
protected Item |
getNextItem(int keyCode,
int gameAction)
Interpretes the given user-input and retrieves the nexte item which should be focused. |
protected void |
initContent(Item parent,
int firstLineWidth,
int availWidth,
int availHeight)
Initializes this container view. |
protected void |
paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
Graphics g)
Paints the content of this container 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 MIDP2LayoutView()
MIDP2LayoutView.
| Method Detail |
|---|
protected void initContent(Item parent,
int firstLineWidth,
int availWidth,
int availHeight)
ContainerView
initContent in class ContainerViewparent - 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
protected void paintContent(Item parent,
int x,
int y,
int leftBorder,
int rightBorder,
Graphics g)
ContainerView
paintContent in class ContainerViewparent - the parent itemx - 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 positiong - the Graphics on which this item should be painted.ContainerView.paintContent(Container, Item[], int, int, int, int, int, int, int, int, Graphics)
protected Item getNextItem(int keyCode,
int gameAction)
ContainerView
getNextItem in class ContainerViewkeyCode - the code of the keyPressed-eventsgameAction - the associated game-action to the given keyCode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||