ewe.ui
Interface MultiPanel

All Known Implementing Classes:
CardPanel, mTabbedPanel

public interface MultiPanel


Method Summary
 Control addItem(Control item, String tabName, String longName)
          This adds a control to the MultiPanel with a specified short (Tab) name and optional long name.
 Card getItem(Control item)
          This returns a Card object holding information about the item added for the specified control.
 Card getItem(int index)
          This returns a Card object holding information about the item added at the specified index.
 int getItemCount()
          This returns the number of items added to the MultiPanel.
 int getSelectedItem()
          This returns the index for the currently selected item.
 void select(Control item)
          This selects for display one of the previously added Controls.
 void select(int index)
          This selects for display one of the previously added Controls, given the index of the item.
 void select(String tabName)
          This selects for display one of the previously added Controls, given the short (tab) name for the item.
 

Method Detail

addItem

public Control addItem(Control item,
                       String tabName,
                       String longName)
This adds a control to the MultiPanel with a specified short (Tab) name and optional long name. When an item is added a Card object is created to hold information about the item. The item to be added is first added to a CellPanel before being placed int the panel. It may be added in a ScrollableHolder or other such container before being added to the CellPanel.


select

public void select(Control item)
This selects for display one of the previously added Controls.


select

public void select(String tabName)
This selects for display one of the previously added Controls, given the short (tab) name for the item.


select

public void select(int index)
This selects for display one of the previously added Controls, given the index of the item.


getItem

public Card getItem(int index)
This returns a Card object holding information about the item added at the specified index.


getItem

public Card getItem(Control item)
This returns a Card object holding information about the item added for the specified control.


getSelectedItem

public int getSelectedItem()
This returns the index for the currently selected item. It will return -1 if none is currently selected.


getItemCount

public int getItemCount()
This returns the number of items added to the MultiPanel.