com.leafdigital.ui.api
Interface ButtonPanel

All Superinterfaces:
Panel, Widget, WidgetParent

public interface ButtonPanel
extends Panel

A Panel that lays out buttons horizontally in the appropriate platform order. May contain the following slots: 'yes', 'no', and 'cancel'.


Field Summary
static int CANCEL
          Button panel slot: Cancel.
static int NO
          Button panel slot: No.
static int YES
          Button panel slot: Yes.
 
Method Summary
 void set(int slot, Widget w)
          Sets the button in a slot (null for none)
 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
 

Field Detail

YES

static final int YES
Button panel slot: Yes.

See Also:
Constant Field Values

NO

static final int NO
Button panel slot: No.

See Also:
Constant Field Values

CANCEL

static final int CANCEL
Button panel slot: Cancel.

See Also:
Constant Field Values
Method Detail

set

void set(int slot,
         Widget w)
Sets the button in a slot (null for none)

Parameters:
slot - YES/NO/CANCEL constant
w - New widget

setSpacing

void setSpacing(int spacing)
Sets the gap between components. The default is 4.

Parameters:
spacing - Spacing in pixels


Copyright © 2011 Samuel Marshall. All rights reserved.