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.
 
Methods inherited from interface com.leafdigital.ui.api.Panel
remove, removeAll, setBorder
 
Methods inherited from interface com.leafdigital.ui.api.Widget
getID, getOwner, informClosed, isVisible, setOwner, setVisible
 
Methods inherited from interface com.leafdigital.ui.api.WidgetParent
getWidgets
 

Method Detail

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.