T - public class XbayaEnhancedList<T extends TableRenderable> extends Object implements XBayaComponent
| Constructor and Description |
|---|
XbayaEnhancedList()
Constructs a XbayaEnhancedList.
|
XbayaEnhancedList(boolean checkbox)
Constructs a XbayaEnhancedList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(ListSelectionListener listener) |
void |
addMouseListener(MouseAdapter adapter) |
void |
clear()
Clear the list contents
|
JScrollPane |
getScrollPane() |
int |
getSelectedIndex()
Returns the first selected index; returns -1 if there is no selected item.
|
List<Integer> |
getSelectedIndices() |
T |
getSelectedValue() |
List<T> |
getSelectedValues() |
JScrollPane |
getSwingComponent()
Returns the swing component.
|
JTable |
getTable() |
void |
removeSelectedRows()
remove rows selected This method must be called at the last step
|
void |
setEnabled(boolean enabled) |
void |
setListData(Iterable<T> tableData) |
void |
setSize(int width,
int height) |
public XbayaEnhancedList()
public XbayaEnhancedList(boolean checkbox)
checkbox - public JScrollPane getSwingComponent()
XBayaComponentgetSwingComponent in interface XBayaComponentpublic JScrollPane getScrollPane()
public void setSize(int width,
int height)
width - height - public JTable getTable()
public T getSelectedValue()
public void removeSelectedRows()
public void clear()
public void setEnabled(boolean enabled)
enabled - public int getSelectedIndex()
public void addListSelectionListener(ListSelectionListener listener)
listener - public void addMouseListener(MouseAdapter adapter)
adapter - Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.