com.leafdigital.ui.api
Interface ChoicePanel

All Superinterfaces:
Panel, Widget, WidgetParent

public interface ChoicePanel
extends Panel

A Panel with any number of slots (all Page objects). Only one is displayed at a time (like a TabPanel, but without the tabs). Initially, the first slot is displayed.


Method Summary
 void add(Page p)
          Adds a page to the end.
 void display(java.lang.String id)
          Brings a particular page to the front.
 java.lang.String getDisplayed()
          Finds out the page currently being displayed.
 
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(Page p)
Adds a page to the end.

Parameters:
p - New page

display

void display(java.lang.String id)
Brings a particular page to the front.

Parameters:
id - ID of desired page

getDisplayed

java.lang.String getDisplayed()
Finds out the page currently being displayed.

Returns:
ID of page


Copyright © 2011 Samuel Marshall. All rights reserved.