All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.ChoiceGadget

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

public class ChoiceGadget
extends ComboBoxGadget
implements MouseListener
The Choice class is a pop-up menu of choices. The current choice is displayed as the title of the menu.


Constructor Index

 o ChoiceGadget(int)
brings up pop-up menu of choices with selected number of visible items

Method Index

 o add(String)
adds a specified item to the list
 o fillSearchText(KeyEvent)
fillSearchText
 o hideList()
hides the list of items
 o keyPressed(KeyEvent)
keyPressed
 o mouseClicked(MouseEvent)
mouseClicked
 o mouseEntered(MouseEvent)
mouseEntered
 o mouseExited(MouseEvent)
mouseExcited
 o mousePressed(MouseEvent)
mousePressed
 o mouseReleased(MouseEvent)
mouseReleased
 o processFocusEvent(FocusEvent)
processFocusEvent
 o select(int)
select - selects a specified item
 o setText(String)
Sets the text in the TextFieldGadget.
 o showList()
shows the list of items

Constructors

 o ChoiceGadget
 public ChoiceGadget(int visibleItems)
brings up pop-up menu of choices with selected number of visible items

Parameters:
visibleItems - number of visible items for this ChoiceGadget

Methods

 o setText
 public void setText(String text)
Sets the text in the TextFieldGadget.

Overrides:
setText in class ComboBoxGadget
 o keyPressed
 public void keyPressed(KeyEvent e)
keyPressed

Parameters:
e - the firing KeyEvent
Overrides:
keyPressed in class ComboBoxGadget
 o fillSearchText
 public void fillSearchText(KeyEvent e)
fillSearchText

Parameters:
e - the firing KeyEvent
Overrides:
fillSearchText in class ComboBoxGadget
 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed

Parameters:
e - the firing MouseEvent
 o mouseClicked
 public void mouseClicked(MouseEvent e)
mouseClicked

Parameters:
e - the firing MouseEvent
 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased

Parameters:
e - the firing MouseEvent
 o mouseEntered
 public void mouseEntered(MouseEvent e)
mouseEntered

Parameters:
e - the firing MouseEvent
 o mouseExited
 public void mouseExited(MouseEvent e)
mouseExcited

Parameters:
e - the firing MouseEvent
 o showList
 protected void showList()
shows the list of items

Overrides:
showList in class ComboBoxGadget
 o hideList
 protected void hideList()
hides the list of items

Overrides:
hideList in class ComboBoxGadget
 o add
 public void add(String item)
adds a specified item to the list

Parameters:
item - name of the item to be added
Overrides:
add in class ComboBoxGadget
 o select
 public void select(int pos)
select - selects a specified item

Parameters:
pos - index of the item to be selected
Overrides:
select in class ComboBoxGadget
 o processFocusEvent
 public void processFocusEvent(FocusEvent e)
processFocusEvent

Parameters:
e - the firing FocusEvent
Returns:
boolean
Overrides:
processFocusEvent in class Gadget

All Packages  Class Hierarchy  This Package  Previous  Next  Index