Package org.jmol.awtjs.swing
Class JTable
- java.lang.Object
-
- org.jmol.awtjs.swing.Component
-
- org.jmol.awtjs.swing.Container
-
- org.jmol.awtjs.swing.JComponent
-
- org.jmol.awtjs.swing.JTable
-
- All Implemented Interfaces:
ColumnSelectionModel,ListSelectionModel
public class JTable extends JComponent implements ListSelectionModel, ColumnSelectionModel
-
-
Field Summary
Fields Modifier and Type Field Description private javajs.util.BSbsSelectedCellsprivate javajs.util.BSbsSelectedRows(package private) booleancellSelectionEnabled(package private) booleanrowSelectionAllowed(package private) java.lang.ObjectselectionListenerprivate AbstractTableModeltableModel-
Fields inherited from class org.jmol.awtjs.swing.JComponent
actionCommand, actionListener, autoScrolls
-
Fields inherited from class org.jmol.awtjs.swing.Component
enabled, height, id, minHeight, minWidth, mouseListener, name, parent, renderHeight, renderWidth, text, width
-
-
Constructor Summary
Constructors Constructor Description JTable(AbstractTableModel tableModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListSelectionListener(java.lang.Object listener)It will be the function of the JavaScript on the page to do with selectionListener what is desired.voidclearSelection()TableColumngetColumn(int i)ColumnSelectionModelgetColumnModel()ListSelectionModelgetSelectionModel()voidsetCellSelectionEnabled(boolean enabled)voidsetPreferredScrollableViewportSize(Dimension dimension)voidsetRowSelectionAllowed(boolean b)voidsetRowSelectionInterval(int i, int j)java.lang.StringtoHTML()-
Methods inherited from class org.jmol.awtjs.swing.JComponent
addActionListener, getActionCommand, setActionCommand, setAutoscrolls
-
Methods inherited from class org.jmol.awtjs.swing.Container
add, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAll
-
Methods inherited from class org.jmol.awtjs.swing.Component
addMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, repaint, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText, setVisible
-
-
-
-
Field Detail
-
tableModel
private AbstractTableModel tableModel
-
bsSelectedCells
private javajs.util.BS bsSelectedCells
-
bsSelectedRows
private javajs.util.BS bsSelectedRows
-
rowSelectionAllowed
boolean rowSelectionAllowed
-
cellSelectionEnabled
boolean cellSelectionEnabled
-
selectionListener
java.lang.Object selectionListener
-
-
Constructor Detail
-
JTable
public JTable(AbstractTableModel tableModel)
-
-
Method Detail
-
getSelectionModel
public ListSelectionModel getSelectionModel()
- Specified by:
getSelectionModelin interfaceColumnSelectionModel
-
getColumnModel
public ColumnSelectionModel getColumnModel()
-
setPreferredScrollableViewportSize
public void setPreferredScrollableViewportSize(Dimension dimension)
-
clearSelection
public void clearSelection()
-
setRowSelectionAllowed
public void setRowSelectionAllowed(boolean b)
-
setRowSelectionInterval
public void setRowSelectionInterval(int i, int j)
-
setCellSelectionEnabled
public void setCellSelectionEnabled(boolean enabled)
-
addListSelectionListener
public void addListSelectionListener(java.lang.Object listener)
It will be the function of the JavaScript on the page to do with selectionListener what is desired.- Specified by:
addListSelectionListenerin interfaceListSelectionModel- Parameters:
listener-
-
getColumn
public TableColumn getColumn(int i)
- Specified by:
getColumnin interfaceColumnSelectionModel
-
-