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
-
TabPaneGadget()
- Create a new tab pane
-
add(Gadget, int)
- add
-
add(String, Gadget)
- Adds the specified item to the end of scrolling list.
-
addItemListener(ItemListener)
- Adds the specified listener to be notified when component
events occur on this component.
-
doLayout()
- Lays out this container by resizing its child to its preferred size.
-
focusGained(FocusEvent)
- focusGained
-
focusLost(FocusEvent)
- focusLost
-
getCardLayout()
- returns the card layout used by the tab manager.
-
getItem(int)
- Gets the item associated with the specified index.
-
getItemCount()
- Returns the number of items in the list.
-
getItems()
- Returns the items in the list.
-
getPreferredSize()
- Returns the preferred dimensions needed for the list with the specified amount of rows.
-
getSelectedIndex()
- Get the selected item on the list or -1 if no item is selected.
-
getSelectedIndexes()
- Returns the selected indexes on the list.
-
getSelectedItem()
- Returns the selected item on the list or null if no item is selected.
-
getSelectedItems()
- Returns the selected items on the list.
-
mouseClicked(MouseEvent)
- mouseClicked
-
mouseEntered(MouseEvent)
- mouseEntered
-
mouseExited(MouseEvent)
- mouseExited
-
mousePressed(MouseEvent)
- mousePressed
-
mouseReleased(MouseEvent)
- mouseReleased
-
paint(GadgetGraphics)
- paints the gadget
-
processEvent(AWTEvent)
- processEvent
-
processItemEvent(ItemEvent)
-
-
processTabEvent(AWTEvent)
- processTabEvent
-
remove(Gadget, int)
- remove
-
removeAll()
- Removes all items from the list.
-
removeItem(int)
- Removes an item from the list.
-
removeItemListener(ItemListener)
- Removes the specified listener so it no longer receives
item events on this item.
-
setLayout(GadgetLayoutManager)
- Sets the layout manager for this container.
-
setTab(String)
- setTab
TabPaneGadget
public TabPaneGadget()
- Create a new tab pane
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
add
public Gadget add(Gadget gadget,
int pos)
- add
- Parameters:
- gadget - - TBD
- pos - - TBD
- Returns:
- Gadget -- returns null
- Overrides:
- add in class ContainerGadget
setTab
public void setTab(String name)
- setTab
- Parameters:
- name - - TBD
remove
protected void remove(Gadget gadget,
int i)
- remove
- Parameters:
- gadget - - TBD
- i - - TBD
- Overrides:
- remove in class ContainerGadget
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
getItemCount
public final int getItemCount()
- Returns the number of items in the list.
- Returns:
- int
- See Also:
- getItem
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
getItems
public String[] getItems()
- Returns the items in the list.
- Returns:
- String[]
- See Also:
- select
removeAll
public void removeAll()
- Removes all items from the list.
- Overrides:
- removeAll in class ContainerGadget
- See Also:
- remove, delItems
removeItem
public void removeItem(int index)
- Removes an item from the list.
- Parameters:
- index - - TBD
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
getSelectedIndexes
public int[] getSelectedIndexes()
- Returns the selected indexes on the list.
- Returns:
- int[]
- See Also:
- select, deselect, isIndexSelected
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
getSelectedItems
public String[] getSelectedItems()
- Returns the selected items on the list.
- Returns:
- String[]
- See Also:
- select, deselect, isIndexSelected
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
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
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
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
processEvent
protected void processEvent(AWTEvent e)
- processEvent
- Parameters:
- e - a ItemEvent
- Returns:
- boolean result
- Overrides:
- processEvent in class ContainerGadget
processItemEvent
protected void processItemEvent(ItemEvent e)
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
paint
public void paint(GadgetGraphics g)
- paints the gadget
- Parameters:
- g - - TBD
- Overrides:
- paint in class BorderGadget
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked
- Parameters:
- e - - TBD
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased
- Parameters:
- e - - TBD
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered
- Parameters:
- e - - TBD
mouseExited
public void mouseExited(MouseEvent e)
- mouseExited
- Parameters:
- e - - TBD
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed
- Parameters:
- e - - TBD
focusLost
public void focusLost(FocusEvent e)
- focusLost
- Parameters:
- e - - TBD
focusGained
public void focusGained(FocusEvent e)
- focusGained
- Parameters:
- e - - TBD
processTabEvent
public void processTabEvent(AWTEvent e)
- processTabEvent
- Parameters:
- e - - TBD
All Packages Class Hierarchy This Package Previous Next Index