|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectComplexPanel
org.spiffyui.client.widgets.SlidingGridPanel
public class SlidingGridPanel
A panel that uses a sliding grid layout based on this example . The sliding grid arranges a set of cells to the best width to fit the available space and then resizes that grid when the browser window resizes.
Constructor Summary | |
---|---|
SlidingGridPanel()
Create a new SlidingGridPanel |
Method Summary | |
---|---|
void |
add(Widget w)
Add a widget to a new cell in this sliding grid |
void |
addBig(Widget w)
Add a widget to a big cell (tall and wide) |
void |
addTall(Widget w)
Add a widget to a tall cell |
void |
addWide(Widget w)
Add a widget to a wide cell |
int |
getCellHeight()
the height of each cell in px |
int |
getCellWidth()
the width of each cell in px |
int |
getGridOffset()
Deprecated. The grid offset is now deprecated since the sliding grid will use the parent width instead of the window width. This field will be ignored and will be removed in the next release. |
int |
getPadding()
the padding between each cell in px |
void |
onLoad()
|
void |
reAlignGrid()
Force the grid to redraw. |
void |
setCellHeight(int cellHeight)
the height of each cell in px |
void |
setCellWidth(int cellWidth)
the width of each cell in px |
void |
setGridOffset(int offset)
Deprecated. The grid offset is now deprecated since the sliding grid will use the parent width instead of the window width. This field will be ignored and will be removed in the next release. |
void |
setPadding(int padding)
the padding between each cell in px |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlidingGridPanel()
Method Detail |
---|
public void add(Widget w)
w
- the widget to addpublic void addTall(Widget w)
w
- Widgetpublic void addWide(Widget w)
w
- Widgetpublic void addBig(Widget w)
w
- Widgetpublic int getCellWidth()
public void setCellWidth(int cellWidth)
cellWidth
- the cellWidth to setpublic int getCellHeight()
public void setCellHeight(int cellHeight)
cellHeight
- the cellHeight to setpublic int getPadding()
public void setPadding(int padding)
padding
- the padding to set@Deprecated public int getGridOffset()
@Deprecated public void setGridOffset(int offset)
offset
- the offset to setpublic void reAlignGrid()
public void onLoad()
|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |