Class powersoft.jcm.ui.ComboBox
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.ui.ComboBox

java.lang.Object
   |
   +----powersoft.jcm.ui.Component
           |
           +----powersoft.jcm.ui.ComboBox

public class ComboBox
extends Component

Variable Index

 o _selectVector
 o _strCompare
 o _userData

Constructor Index

 o ComboBox()

Method Index

 o add(String)
Adds a new item.
 o add(String, Object)
Adds a new item.
 o addSelectListener(SelectListener)
 o createAWTComponent(Component)
 o delete(int)
 o deleteAll()
 o find(String)
 o find(String, int, boolean)
 o getCount()
 o getSelected()
 o getSelectListeners()
 o getText(int)
Get the text of the item at the given index.
 o getUserData(int)
Gets the user data for the item at the given index.
 o handleSelect(SelectEvent)
 o processAWTEvent(Event)
 o recreate()
 o removeSelectListener(SelectListener)
 o reset()
 o select(String)
 o select(String, int)
 o setSelected(int)
 o setUserData(int, Object)
Sets the user data for the item at the given index.
 o sort()

Variables

 o _userData
  protected Vector _userData
 o _selectVector
  protected EventListenerVector _selectVector
 o _strCompare
  protected static CompareRoutine _strCompare

Constructors

 o ComboBox
  public ComboBox()

Methods

 o addSelectListener
  public synchronized void addSelectListener(SelectListener l)
 o getSelectListeners
  public synchronized EventListenerVector getSelectListeners()
 o handleSelect
  public synchronized void handleSelect(SelectEvent data)
 o removeSelectListener
  public synchronized void removeSelectListener(SelectListener l)
 o getCount
  public int getCount()
 o getSelected
  public int getSelected()
 o setSelected
  public synchronized void setSelected(int index)
 o getText
  public String getText(int index)
Get the text of the item at the given index.
Parameters:
index - Index of the text to be retrieved; if index is -1, the text of the selected text will be returned.
Returns:
s The text of the item at the given index or the text of the selected item if the given index is -1.
 o getUserData
  public Object getUserData(int index)
Gets the user data for the item at the given index.
Throws: ArrayIndexOutOfBoundsException
if index is out of range.
 o setUserData
  public synchronized void setUserData(int index,
                                       Object userData)
Sets the user data for the item at the given index.
Throws: ArrayIndexOutOfBoundsException
if index is out of range.
 o add
  public void add(String item)
Adds a new item.
 o add
  public synchronized void add(String item,
                               Object userData)
Adds a new item.
 o delete
  public synchronized int delete(int index)
 o deleteAll
  public synchronized boolean deleteAll()
 o find
  public int find(String item)
 o find
  public synchronized int find(String item,
                               int startAfter,
                               boolean exact)
 o reset
  public synchronized void reset()
 o select
  public int select(String item)
 o select
  public synchronized int select(String item,
                                 int startAfter)
 o sort
  public synchronized void sort()
 o createAWTComponent
  protected Component createAWTComponent(Component parent)
Overrides:
createAWTComponent in class Component
 o processAWTEvent
  public boolean processAWTEvent(Event event)
Overrides:
processAWTEvent in class Component
 o recreate
  protected boolean recreate()

All Packages  Class Hierarchy  This Package  Previous  Next  Index