All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.TabPaneGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.BorderGadget
                                   |
                                   +----dtai.gwt.TabPaneGadget

public class TabPaneGadget
extends BorderGadget
implements ItemSelectable, MouseListener, FocusListener
TabPaneGadget


Constructor Index

 o TabPaneGadget()
Create a new tab pane

Method Index

 o add(Gadget, int)
add
 o add(String, Gadget)
Adds the specified item to the end of scrolling list.
 o addItemListener(ItemListener)
Adds the specified listener to be notified when component events occur on this component.
 o doLayout()
Lays out this container by resizing its child to its preferred size.
 o focusGained(FocusEvent)
focusGained
 o focusLost(FocusEvent)
focusLost
 o getCardLayout()
returns the card layout used by the tab manager.
 o getItem(int)
Gets the item associated with the specified index.
 o getItemCount()
Returns the number of items in the list.
 o getItems()
Returns the items in the list.
 o getPreferredSize()
Returns the preferred dimensions needed for the list with the specified amount of rows.
 o getSelectedIndex()
Get the selected item on the list or -1 if no item is selected.
 o getSelectedIndexes()
Returns the selected indexes on the list.
 o getSelectedItem()
Returns the selected item on the list or null if no item is selected.
 o getSelectedItems()
Returns the selected items on the list.
 o mouseClicked(MouseEvent)
mouseClicked
 o mouseEntered(MouseEvent)
mouseEntered
 o mouseExited(MouseEvent)
mouseExited
 o mousePressed(MouseEvent)
mousePressed
 o mouseReleased(MouseEvent)
mouseReleased
 o paint(GadgetGraphics)
paints the gadget
 o processEvent(AWTEvent)
processEvent
 o processItemEvent(ItemEvent)
 o processTabEvent(AWTEvent)
processTabEvent
 o remove(Gadget, int)
remove
 o removeAll()
Removes all items from the list.
 o removeItem(int)
Removes an item from the list.
 o removeItemListener(ItemListener)
Removes the specified listener so it no longer receives item events on this item.
 o setLayout(GadgetLayoutManager)
Sets the layout manager for this container.
 o setTab(String)
setTab

Constructors

 o TabPaneGadget
 public TabPaneGadget()
Create a new tab pane

Methods

 o getCardLayout
 public GadgetCardLayout getCardLayout()
returns the card layout used by the tab manager. Be default, it is not a transparent card layout manager, meaning that only the top card will show, even if the top card is transparent. You can use the given card layout to change that setting if you want to.

Returns:
GadgetCardLayout
 o add
 public Gadget add(Gadget gadget,
                   int pos)
add

Parameters:
gadget - - TBD
pos - - TBD
Returns:
Gadget -- returns null
Overrides:
add in class ContainerGadget
 o setTab
 public void setTab(String name)
setTab

Parameters:
name - - TBD
 o remove
 protected void remove(Gadget gadget,
                       int i)
remove

Parameters:
gadget - - TBD
i - - TBD
Overrides:
remove in class ContainerGadget
 o add
 public Gadget add(String name,
                   Gadget gadget)
Adds the specified item to the end of scrolling list.

Parameters:
name - - TBD
gadget - - TBD
Returns:
Gadget
Overrides:
add in class ContainerGadget
 o getItemCount
 public final int getItemCount()
Returns the number of items in the list.

Returns:
int
See Also:
getItem
 o getItem
 public String getItem(int index)
Gets the item associated with the specified index.

Parameters:
index - - the position of the item
Returns:
String
See Also:
getItemCount
 o getItems
 public String[] getItems()
Returns the items in the list.

Returns:
String[]
See Also:
select
 o removeAll
 public void removeAll()
Removes all items from the list.

Overrides:
removeAll in class ContainerGadget
See Also:
remove, delItems
 o removeItem
 public void removeItem(int index)
Removes an item from the list.

Parameters:
index - - TBD
 o getSelectedIndex
 public int getSelectedIndex()
Get the selected item on the list or -1 if no item is selected.

Returns:
int
See Also:
select, deselect, isIndexSelected
 o getSelectedIndexes
 public int[] getSelectedIndexes()
Returns the selected indexes on the list.

Returns:
int[]
See Also:
select, deselect, isIndexSelected
 o getSelectedItem
 public String getSelectedItem()
Returns the selected item on the list or null if no item is selected.

Returns:
String
See Also:
select, deselect, isIndexSelected
 o getSelectedItems
 public String[] getSelectedItems()
Returns the selected items on the list.

Returns:
String[]
See Also:
select, deselect, isIndexSelected
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred dimensions needed for the list with the specified amount of rows.

Parameters:
rows - - amount of rows in list.
Returns:
Dimension
Overrides:
getPreferredSize in class ContainerGadget
 o setLayout
 public final void setLayout(GadgetLayoutManager mgr)
Sets the layout manager for this container. This method is overridden to prevent the layout mgr from being set. Overrides: setLayout in class Container

Parameters:
mgr - - the specified layout manager
Overrides:
setLayout in class ContainerGadget
 o addItemListener
 public synchronized void addItemListener(ItemListener l)
Adds the specified listener to be notified when component events occur on this component.

Parameters:
l - the listener to receive the events
 o removeItemListener
 public synchronized void removeItemListener(ItemListener l)
Removes the specified listener so it no longer receives item events on this item.

Parameters:
l - the listener to remove
 o processEvent
 protected void processEvent(AWTEvent e)
processEvent

Parameters:
e - a ItemEvent
Returns:
boolean result
Overrides:
processEvent in class ContainerGadget
 o processItemEvent
 protected void processItemEvent(ItemEvent e)
 o doLayout
 public void doLayout()
Lays out this container by resizing its child to its preferred size. If the new preferred size of the child causes the current scroll position to be invalid, the scroll position is set to the closest valid position. Overrides: doLayout in class Container

Overrides:
doLayout in class ContainerGadget
See Also:
validate
 o paint
 public void paint(GadgetGraphics g)
paints the gadget

Parameters:
g - - TBD
Overrides:
paint in class BorderGadget
 o mouseClicked
 public void mouseClicked(MouseEvent e)
mouseClicked

Parameters:
e - - TBD
 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased

Parameters:
e - - TBD
 o mouseEntered
 public void mouseEntered(MouseEvent e)
mouseEntered

Parameters:
e - - TBD
 o mouseExited
 public void mouseExited(MouseEvent e)
mouseExited

Parameters:
e - - TBD
 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed

Parameters:
e - - TBD
 o focusLost
 public void focusLost(FocusEvent e)
focusLost

Parameters:
e - - TBD
 o focusGained
 public void focusGained(FocusEvent e)
focusGained

Parameters:
e - - TBD
 o processTabEvent
 public void processTabEvent(AWTEvent e)
processTabEvent

Parameters:
e - - TBD

All Packages  Class Hierarchy  This Package  Previous  Next  Index