public class JTable extends JComponent implements ListSelectionModel, ColumnSelectionModel
| Modifier and Type | Field and Description |
|---|---|
private javajs.util.BS |
bsSelectedCells |
private javajs.util.BS |
bsSelectedRows |
(package private) boolean |
cellSelectionEnabled |
(package private) boolean |
rowSelectionAllowed |
(package private) java.lang.Object |
selectionListener |
private AbstractTableModel |
tableModel |
actionCommand, actionListener, autoScrollsenabled, height, id, minHeight, minWidth, mouseListener, name, parent, renderHeight, renderWidth, text, width| Constructor and Description |
|---|
JTable(AbstractTableModel tableModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(java.lang.Object listener)
It will be the function of the JavaScript on the
page to do with selectionListener what is desired.
|
void |
clearSelection() |
TableColumn |
getColumn(int i) |
ColumnSelectionModel |
getColumnModel() |
ListSelectionModel |
getSelectionModel() |
void |
setCellSelectionEnabled(boolean enabled) |
void |
setPreferredScrollableViewportSize(Dimension dimension) |
void |
setRowSelectionAllowed(boolean b) |
void |
setRowSelectionInterval(int i,
int j) |
java.lang.String |
toHTML() |
addActionListener, getActionCommand, setActionCommand, setAutoscrollsadd, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAlladdMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, repaint, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText, setVisibleprivate AbstractTableModel tableModel
private javajs.util.BS bsSelectedCells
private javajs.util.BS bsSelectedRows
boolean rowSelectionAllowed
boolean cellSelectionEnabled
java.lang.Object selectionListener
public JTable(AbstractTableModel tableModel)
public ListSelectionModel getSelectionModel()
getSelectionModel in interface ColumnSelectionModelpublic ColumnSelectionModel getColumnModel()
public void setPreferredScrollableViewportSize(Dimension dimension)
public void clearSelection()
public void setRowSelectionAllowed(boolean b)
public void setRowSelectionInterval(int i,
int j)
public void setCellSelectionEnabled(boolean enabled)
public void addListSelectionListener(java.lang.Object listener)
addListSelectionListener in interface ListSelectionModellistener - public TableColumn getColumn(int i)
getColumn in interface ColumnSelectionModel