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

Variable Index

 o ONE_LINE
 o TWO_LINES

Constructor Index

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

Method Index

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

Variables

 o ONE_LINE
 public static final int ONE_LINE
 o TWO_LINES
 public static final int TWO_LINES

Constructors

 o StringChoice
 public StringChoice()
Get a "one line" String choice with no border.

 o StringChoice
 public StringChoice(int type)
Get a StringChoice widget.

Parameters:
type - The posisionning (ONE_LINE, TWO_LINES)
 o 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)
 o 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.

Methods

 o addActionListener
 public synchronized void addActionListener(ActionListener l)
 o removeActionListener
 public synchronized void removeActionListener(ActionListener l)
 o addTextListener
 public synchronized void addTextListener(TextListener l)
 o removeTextListener
 public void removeTextListener(TextListener l)
 o addItemListener
 public synchronized void addItemListener(ItemListener l)
 o removeItemListener
 public synchronized void removeItemListener(ItemListener l)
 o addItem
 public void addItem(String item)
 o addItems
 public void addItems(String items[])
 o select
 public synchronized void select(String str)
 o remove
 public synchronized void remove(String item)
 o removeAll
 public void removeAll()
Overrides:
removeAll in class Container
 o setText
 public void setText(String stext)
 o getText
 public String getText()

All Packages  Class Hierarchy  This Package  Previous  Next  Index