com.leafdigital.ui.api
Interface GroupPanel

All Superinterfaces:
Panel, Widget, WidgetParent

public interface GroupPanel
extends Panel

A Panel with only a single slot, named 'contents' in XML. The panel has an outline around it and a title in the outline.


Method Summary
 void set(Widget w)
          Sets the widget inside the panel
 void setInternalBorder(int internalBorder)
          Sets the gap between the border outline and the component within.
 void setTitle(java.lang.String title)
          Set the text.
 
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

setTitle

void setTitle(java.lang.String title)
Set the text.

Parameters:
title - Text for title

set

void set(Widget w)
Sets the widget inside the panel

Parameters:
w - New widget, or null to remove

setInternalBorder

void setInternalBorder(int internalBorder)
Sets the gap between the border outline and the component within. The default is no border.

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


Copyright © 2011 Samuel Marshall. All rights reserved.