com.leafdigital.ui.api
Interface HorizontalPanel
- All Superinterfaces:
- Panel, Widget, WidgetParent
public interface HorizontalPanel
- extends Panel
A Panel with any number of slots (all named 'slot' in XML). Components are
laid out horizontally, going across the panel. All components have the full
height 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.