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
-
_selectVector
-
-
_strCompare
-
-
_userData
-
-
ComboBox()
-
-
add(String)
- Adds a new item.
-
add(String, Object)
- Adds a new item.
-
addSelectListener(SelectListener)
-
-
createAWTComponent(Component)
-
-
delete(int)
-
-
deleteAll()
-
-
find(String)
-
-
find(String, int, boolean)
-
-
getCount()
-
-
getSelected()
-
-
getSelectListeners()
-
-
getText(int)
- Get the text of the item at the given index.
-
getUserData(int)
- Gets the user data for the item at the given index.
-
handleSelect(SelectEvent)
-
-
processAWTEvent(Event)
-
-
recreate()
-
-
removeSelectListener(SelectListener)
-
-
reset()
-
-
select(String)
-
-
select(String, int)
-
-
setSelected(int)
-
-
setUserData(int, Object)
- Sets the user data for the item at the given index.
-
sort()
-
_userData
protected Vector _userData
_selectVector
protected EventListenerVector _selectVector
_strCompare
protected static CompareRoutine _strCompare
ComboBox
public ComboBox()
addSelectListener
public synchronized void addSelectListener(SelectListener l)
getSelectListeners
public synchronized EventListenerVector getSelectListeners()
handleSelect
public synchronized void handleSelect(SelectEvent data)
removeSelectListener
public synchronized void removeSelectListener(SelectListener l)
getCount
public int getCount()
getSelected
public int getSelected()
setSelected
public synchronized void setSelected(int index)
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.
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.
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.
add
public void add(String item)
- Adds a new item.
add
public synchronized void add(String item,
Object userData)
- Adds a new item.
delete
public synchronized int delete(int index)
deleteAll
public synchronized boolean deleteAll()
find
public int find(String item)
find
public synchronized int find(String item,
int startAfter,
boolean exact)
reset
public synchronized void reset()
select
public int select(String item)
select
public synchronized int select(String item,
int startAfter)
sort
public synchronized void sort()
createAWTComponent
protected Component createAWTComponent(Component parent)
- Overrides:
- createAWTComponent in class Component
processAWTEvent
public boolean processAWTEvent(Event event)
- Overrides:
- processAWTEvent in class Component
recreate
protected boolean recreate()
All Packages Class Hierarchy This Package Previous Next Index