com.leafdigital.ui.api
Interface Panel

All Superinterfaces:
Widget, WidgetParent
All Known Subinterfaces:
BorderPanel, ButtonPanel, ChoicePanel, DecoratedPanel, GroupPanel, HorizontalPanel, ScrollPanel, SplitPanel, TabPanel, VerticalPanel

public interface Panel
extends Widget, WidgetParent

Represents a Panel, a component which can hold other components in various slots. This interface is not available directly; instead, use its subclasses.


Method Summary
 void remove(Widget c)
          Remove a component from the panel.
 void removeAll()
          Remove all components from the panel.
 void setBorder(int border)
          Sets the outside border around the panel.
 
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

setBorder

void setBorder(int border)
Sets the outside border around the panel. The default is for no border.

Parameters:
border - Border in pixels (if in doubt, use 4)

remove

void remove(Widget c)
Remove a component from the panel.

Parameters:
c - Component to remove

removeAll

void removeAll()
Remove all components from the panel.



Copyright © 2011 Samuel Marshall. All rights reserved.