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.
-
ChoiceGadget(int)
- brings up pop-up menu of choices with selected number of visible items
-
add(String)
- adds a specified item to the list
-
fillSearchText(KeyEvent)
- fillSearchText
-
hideList()
- hides the list of items
-
keyPressed(KeyEvent)
- keyPressed
-
mouseClicked(MouseEvent)
- mouseClicked
-
mouseEntered(MouseEvent)
- mouseEntered
-
mouseExited(MouseEvent)
- mouseExcited
-
mousePressed(MouseEvent)
- mousePressed
-
mouseReleased(MouseEvent)
- mouseReleased
-
processFocusEvent(FocusEvent)
- processFocusEvent
-
select(int)
- select - selects a specified item
-
setText(String)
- Sets the text in the TextFieldGadget.
-
showList()
- shows the list of items
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
setText
public void setText(String text)
- Sets the text in the TextFieldGadget.
- Overrides:
- setText in class ComboBoxGadget
keyPressed
public void keyPressed(KeyEvent e)
- keyPressed
- Parameters:
- e - the firing KeyEvent
- Overrides:
- keyPressed in class ComboBoxGadget
fillSearchText
public void fillSearchText(KeyEvent e)
- fillSearchText
- Parameters:
- e - the firing KeyEvent
- Overrides:
- fillSearchText in class ComboBoxGadget
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed
- Parameters:
- e - the firing MouseEvent
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked
- Parameters:
- e - the firing MouseEvent
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased
- Parameters:
- e - the firing MouseEvent
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered
- Parameters:
- e - the firing MouseEvent
mouseExited
public void mouseExited(MouseEvent e)
- mouseExcited
- Parameters:
- e - the firing MouseEvent
showList
protected void showList()
- shows the list of items
- Overrides:
- showList in class ComboBoxGadget
hideList
protected void hideList()
- hides the list of items
- Overrides:
- hideList in class ComboBoxGadget
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
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
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