|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.layouts.Layout com.sun.lwuit.layouts.GridLayout
public class GridLayout
Components are arranged in an equally sized grid based on available space
Constructor Summary | |
---|---|
GridLayout(int rows,
int columns)
Creates a new instance of GridLayout with the given rows and columns |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
getColumns()
|
Dimension |
getPreferredSize(Container parent)
Returns the container preferred size |
int |
getRows()
|
boolean |
isAutoFit()
Auto fits columns/rows to available screen space |
boolean |
isFillLastRow()
When set to true makes the grid layout fill the last row of the layout entirely if the number of elements in that row is bigger. |
void |
layoutContainer(Container parent)
Layout the given parent container children |
void |
setAutoFit(boolean autoFit)
Auto fits columns/rows to available screen space |
void |
setFillLastRow(boolean fillLastRow)
When set to true makes the grid layout fill the last row of the layout entirely if the number of elements in that row is bigger. |
java.lang.String |
toString()
|
Methods inherited from class com.sun.lwuit.layouts.Layout |
---|
addLayoutComponent, getComponentConstraint, hashCode, isOverlapSupported, removeLayoutComponent |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridLayout(int rows, int columns)
rows
- - number of rows.columns
- - number of columns.
java.lang.IllegalArgumentException
- if rows < 1 or columns < 1Method Detail |
---|
public void layoutContainer(Container parent)
Layout
layoutContainer
in class Layout
parent
- the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize
in class Layout
parent
- the parent container
public java.lang.String toString()
toString
in class java.lang.Object
public int getRows()
public int getColumns()
public boolean equals(java.lang.Object o)
equals
in class Layout
public boolean isFillLastRow()
public void setFillLastRow(boolean fillLastRow)
fillLastRow
- the fillLastRow to setpublic boolean isAutoFit()
public void setAutoFit(boolean autoFit)
autoFit
- the autoFit to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |