    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.tools.widgets.StringChoice

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----org.w3c.tools.widgets.BorderPanel
                                       |
                                       +----org.w3c.tools.widgets.StringChoice

public class StringChoice
extends BorderPanel

##

ONE_LINE
TWO_LINES

##

StringChoice()
  Get a "one line" String choice with no border.
StringChoice(int)
  Get a StringChoice widget.
StringChoice(int, int)
  Get a StringChoice widget.
StringChoice(int, int, int)
  Get a StringChoice widget.

##

addActionListener(ActionListener)
addItem(String)
addItemListener(ItemListener)
addItems(String[])
addTextListener(TextListener)
getText()
remove(String)
removeActionListener(ActionListener)
removeAll()
removeItemListener(ItemListener)
removeTextListener(TextListener)
select(String)
setText(String)

##

ONE_LINE

     public static final int ONE_LINE

TWO_LINES

     public static final int TWO_LINES

##

StringChoice

     public StringChoice()

  Get a "one line" String choice with no border.

StringChoice

     public StringChoice(int type)

  Get a StringChoice widget.

  Parameters:
    type - The posisionning (ONE_LINE, TWO_LINES)

StringChoice

     public StringChoice(int type,
                         int border)

  Get a StringChoice widget.

  Parameters:
    type - The posisionning (ONE_LINE, TWO_LINES)
    border - The border type (SOLID, RAISED, LOWERED, IN, OUT)

StringChoice

     public StringChoice(int type,
                         int border,
                         int thickness)

  Get a StringChoice widget.

  Parameters:
    type - The posisionning (ONE_LINE, TWO_LINES)
    border - The border type (SOLID, RAISED, LOWERED, IN, OUT)
    thickness - The border's thickness.

##

addActionListener

     public synchronized void addActionListener(ActionListener l)

removeActionListener

     public synchronized void removeActionListener(ActionListener l)

addTextListener

     public synchronized void addTextListener(TextListener l)

removeTextListener

     public void removeTextListener(TextListener l)

addItemListener

     public synchronized void addItemListener(ItemListener l)

removeItemListener

     public synchronized void removeItemListener(ItemListener l)

addItem

     public void addItem(String item)

addItems

     public void addItems(String items[])

select

     public synchronized void select(String str)

remove

     public synchronized void remove(String item)

removeAll

     public void removeAll()

  Overrides:
    removeAll in class Container

setText

     public void setText(String stext)

getText

     public String getText()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index