public class ListComponent extends Object implements CatalogComponent
CatalogComponent.ObjectSelectionEvent, CatalogComponent.ObjectSelectionListener| Constructor and Description |
|---|
ListComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEnterSelection(CatalogComponent.ObjectSelectionListener a) |
void |
addListSelectionListener(CatalogComponent.ObjectSelectionListener d) |
void |
addMouseSelection(CatalogComponent.ObjectSelectionListener d) |
void |
addValue(Object a) |
void |
clearValues() |
Equalizer |
getEqualizer() |
JList |
getList() |
protected DefaultListModel |
getModel() |
int |
getSelectedIndex() |
Object |
getSelectedValue() |
List<Object> |
getValues() |
int |
indexOf(Object a) |
void |
removeValue(Object a) |
void |
repaint() |
void |
setElementHeight(int h) |
void |
setEqualizer(Equalizer equalizer) |
void |
setSelectedIndex(int i) |
void |
setSelectedValue(Object i) |
ListComponent |
setStringer(JlistToStringer stringer) |
void |
setValues(List<Object> a) |
JComponent |
toComponent() |
public void setSelectedValue(Object i)
setSelectedValue in interface CatalogComponentpublic Equalizer getEqualizer()
getEqualizer in interface CatalogComponentpublic void setEqualizer(Equalizer equalizer)
setEqualizer in interface CatalogComponentpublic JList getList()
public void clearValues()
clearValues in interface CatalogComponentpublic void addValue(Object a)
addValue in interface CatalogComponentpublic void removeValue(Object a)
removeValue in interface CatalogComponentpublic void repaint()
repaint in interface CatalogComponentpublic void setElementHeight(int h)
setElementHeight in interface CatalogComponentpublic ListComponent setStringer(JlistToStringer stringer)
public void addEnterSelection(CatalogComponent.ObjectSelectionListener a)
addEnterSelection in interface CatalogComponentpublic void addListSelectionListener(CatalogComponent.ObjectSelectionListener d)
addListSelectionListener in interface CatalogComponentpublic List<Object> getValues()
getValues in interface CatalogComponentpublic void addMouseSelection(CatalogComponent.ObjectSelectionListener d)
addMouseSelection in interface CatalogComponentpublic void setValues(List<Object> a)
setValues in interface CatalogComponentpublic int indexOf(Object a)
indexOf in interface CatalogComponentprotected DefaultListModel getModel()
public JComponent toComponent()
toComponent in interface CatalogComponentpublic Object getSelectedValue()
getSelectedValue in interface CatalogComponentpublic int getSelectedIndex()
getSelectedIndex in interface CatalogComponentpublic void setSelectedIndex(int i)
setSelectedIndex in interface CatalogComponentCopyright © 2022 vpc open source initiative. All rights reserved.