    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 :

##

button
list
listSize
text

##

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

##

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

##

text

     protected TextField text

button

     protected ImageButton button

listSize

     protected int listSize

list

     protected FakeComboBox. GoodList list

##

FakeComboBox

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

##

itemStateChanged

     public void itemStateChanged(ItemEvent e)

setActionCommand

     public void setActionCommand(String command)

  Sets the action command String used when an ActionEvent is fired

  Parameters:
    command - The command String

getActionCommand

     public String getActionCommand()

  Returns the action command String

addActionListener

     public synchronized void addActionListener(ActionListener al)

  Adds an action listener to this FakeComboBox

  Parameters:
    al - The ActionListener

removeActionListener

     public synchronized void removeActionListener(ActionListener al)

  Removes an action listener to this FakeComboBox

  Parameters:
    al - The ActionListener

fireActionEvent

     protected void fireActionEvent()

  fire a new ActionEvent and process it, if some listeners are listening

hidePopup

     protected void hidePopup()

showPopup

     protected void showPopup()

actionPerformed

     public void actionPerformed(ActionEvent evt)

  ActionListener

setText

     public void setText(String text)

getText

     public String getText()

add

     public void add(String item)

    All Packages  Class Hierarchy  This Package  Previous  Next  Index