com.leafdigital.ui.api
Interface VerticalPanel
- All Superinterfaces:
- Panel, Widget, WidgetParent
public interface VerticalPanel
- extends Panel
A Panel with any number of slots (all named 'slot' in XML). Components are
laid out vertically, going down the panel. All components have the full
width of the panel.
Method Summary |
void |
add(Widget w)
Adds a widget to the next available slot. |
void |
setSpacing(int spacing)
Sets the gap between components. |
add
void add(Widget w)
- Adds a widget to the next available slot.
- Parameters:
w
- New widget
setSpacing
void setSpacing(int spacing)
- Sets the gap between components. The default is for no margin.
- Parameters:
spacing
- Spacing in pixels (if in doubt, use 4)
Copyright © 2011 Samuel Marshall. All rights reserved.