public class VerticalPanel extends LinePanel
| Constructor and Description |
|---|
VerticalPanel(int height) |
VerticalPanel(int height,
float elementSpacing) |
VerticalPanel(int height,
float elementSpacing,
Widget... widgets) |
VerticalPanel(int height,
Widget... widgets) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData() |
java.lang.String |
getName() |
int |
put(Widget widget)
Puts widget at first free index
|
VerticalPanel |
put(Widget widget,
int index)
Puts new widget to the container
|
VerticalPanel |
remove(Widget widget)
Removes all elements that are instance of specified element
|
VerticalPanel |
removeAll()
Removes all elements stored in this container
|
VerticalPanel |
removeAt(int index)
Removes element at specified position
|
VerticalPanel |
setElementAlign(PanelAlign align)
Sets align of elementd inside container. this is important when
container has few elements with different widths
|
VerticalPanel |
setElementSpacing(float elementSpacing)
Sets space betwen each element.
|
put, put, putFactoriesput, put, putFactoriesaddTo, attach, getID, handleData, sendElementpublic VerticalPanel(int height)
height - Default height of the containerpublic VerticalPanel(int height,
Widget... widgets)
height - Default height of the containerwidgets - Default widgetspublic VerticalPanel(int height,
float elementSpacing,
Widget... widgets)
height - Default height of the containerelementSpacing - pixels betwen each elementwidgets - Default widgetspublic VerticalPanel(int height,
float elementSpacing)
height - Default height of the containerelementSpacing - pixels betwen each elementpublic VerticalPanel setElementAlign(PanelAlign align)
align - Alignment type valid for this containerpublic VerticalPanel setElementSpacing(float elementSpacing)
elementSpacing - pixels betwen each elementpublic VerticalPanel removeAll()
public VerticalPanel removeAt(int index)
index - index of element to removepublic VerticalPanel remove(Widget widget)
widget - Instance of widget to remove from containerpublic VerticalPanel put(Widget widget, int index)