All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.widgets.FakeComboBox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----w3c.tools.widgets.FakeComboBox

public class FakeComboBox
extends Panel
implements ActionListener, ItemListener
FakeComboBox :


Variable Index

 o button
 o list
 o listSize
 o text

Constructor Index

 o FakeComboBox(int, int, boolean, String, String)

Method Index

 o actionPerformed(ActionEvent)
ActionListener
 o add(String)
 o addActionListener(ActionListener)
Adds an action listener to this FakeComboBox
 o fireActionEvent()
fire a new ActionEvent and process it, if some listeners are listening
 o getActionCommand()
Returns the action command String
 o getText()
 o hidePopup()
 o itemStateChanged(ItemEvent)
 o removeActionListener(ActionListener)
Removes an action listener to this FakeComboBox
 o setActionCommand(String)
Sets the action command String used when an ActionEvent is fired
 o setText(String)
 o showPopup()

Variables

 o text
 protected TextField text
 o button
 protected ImageButton button
 o listSize
 protected int listSize
 o list
 protected FakeComboBox. GoodList list

Constructors

 o FakeComboBox
 public FakeComboBox(int size,
                     int listSize,
                     boolean editable,
                     String imagePath1,
                     String imagePath2)

Methods

 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
 o setActionCommand
 public void setActionCommand(String command)
Sets the action command String used when an ActionEvent is fired

Parameters:
command - The command String
 o getActionCommand
 public String getActionCommand()
Returns the action command String

 o addActionListener
 public synchronized void addActionListener(ActionListener al)
Adds an action listener to this FakeComboBox

Parameters:
al - The ActionListener
 o removeActionListener
 public synchronized void removeActionListener(ActionListener al)
Removes an action listener to this FakeComboBox

Parameters:
al - The ActionListener
 o fireActionEvent
 protected void fireActionEvent()
fire a new ActionEvent and process it, if some listeners are listening

 o hidePopup
 protected void hidePopup()
 o showPopup
 protected void showPopup()
 o actionPerformed
 public void actionPerformed(ActionEvent evt)
ActionListener

 o setText
 public void setText(String text)
 o getText
 public String getText()
 o add
 public void add(String item)

All Packages  Class Hierarchy  This Package  Previous  Next  Index