E - public class XBayaList<E> extends Object implements XBayaComponent
| Constructor and Description |
|---|
XBayaList()
Constructs a XBayaTextArea.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(ListSelectionListener listener) |
void |
addMouseListener(MouseAdapter adapter) |
JList |
getList() |
JScrollPane |
getScrollPane() |
int |
getSelectedIndex()
Returns the first selected index; returns -1 if there is no selected item.
|
E |
getSelectedValue()
Returns the first selected value, or
null if the selection is empty. |
JScrollPane |
getSwingComponent()
Returns the swing component.
|
void |
setEnabled(boolean enabled) |
void |
setListData(E[] listData) |
void |
setListData(Iterable<E> listData) |
void |
setSelectedIndex(int index)
Selects a single cell.
|
void |
setSize(int width,
int height) |
public JScrollPane getSwingComponent()
XBayaComponentgetSwingComponent in interface XBayaComponentpublic JScrollPane getScrollPane()
public void setEnabled(boolean enabled)
enabled - public JList getList()
public void setSize(int width,
int height)
width - height - public int getSelectedIndex()
public void setSelectedIndex(int index)
index - the index of the one cell to selectpublic E getSelectedValue()
null if the selection is empty.public void setListData(E[] listData)
listData - public void addListSelectionListener(ListSelectionListener listener)
listener - public void addMouseListener(MouseAdapter adapter)
adapter - Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.