public class HorizontalPanel extends LinePanel
| Constructor and Description |
|---|
HorizontalPanel(int width) |
HorizontalPanel(int width,
float elementSpacing) |
HorizontalPanel(int width,
float elementSpacing,
Widget... widgets) |
HorizontalPanel(int width,
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
|
HorizontalPanel |
put(Widget widget,
int index)
Puts new widget to the container
|
HorizontalPanel |
remove(Widget widget)
Removes all elements that are instance of specified element
|
HorizontalPanel |
removeAll()
Removes all elements stored in this container
|
HorizontalPanel |
removeAt(int index)
Removes element at specified position
|
HorizontalPanel |
setElementAlign(PanelAlign align)
Sets align of elementd inside container. this is important when
container has few elements with different heights
|
HorizontalPanel |
setElementSpacing(float elementSpacing)
Sets space betwen each element.
|
put, put, putFactoriesput, put, putFactoriesaddTo, attach, getID, handleData, sendElementpublic HorizontalPanel(int width)
width - Default height of the containerpublic HorizontalPanel(int width,
Widget... widgets)
width - Default height of the containerwidgets - Default widgetspublic HorizontalPanel(int width,
float elementSpacing,
Widget... widgets)
width - Default height of the containerelementSpacing - pixels betwen each elementwidgets - Default widgetspublic HorizontalPanel(int width,
float elementSpacing)
width - Default height of the containerelementSpacing - pixels betwen each elementpublic HorizontalPanel setElementAlign(PanelAlign align)
align - Alignment type valid for this containerpublic HorizontalPanel setElementSpacing(float elementSpacing)
elementSpacing - pixels betwen each elementpublic HorizontalPanel removeAll()
public HorizontalPanel removeAt(int index)
index - index of element to removepublic HorizontalPanel remove(Widget widget)
widget - Instance of widget to remove from containerpublic HorizontalPanel put(Widget widget, int index)