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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javajs.util.BS
private javajs.util.BS
(package private) boolean
(package private) boolean
(package private) Object
private AbstractTableModel
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListSelectionListener
(Object listener) It will be the function of the JavaScript on the page to do with selectionListener what is desired.void
getColumn
(int i) void
setCellSelectionEnabled
(boolean enabled) void
setPreferredScrollableViewportSize
(Dimension dimension) void
setRowSelectionAllowed
(boolean b) void
setRowSelectionInterval
(int i, int j) toHTML()
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 Details
-
tableModel
-
bsSelectedCells
private javajs.util.BS bsSelectedCells -
bsSelectedRows
private javajs.util.BS bsSelectedRows -
rowSelectionAllowed
boolean rowSelectionAllowed -
cellSelectionEnabled
boolean cellSelectionEnabled -
selectionListener
Object selectionListener
-
-
Constructor Details
-
JTable
-
-
Method Details
-
getSelectionModel
- Specified by:
getSelectionModel
in interfaceColumnSelectionModel
-
getColumnModel
-
setPreferredScrollableViewportSize
-
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
It will be the function of the JavaScript on the page to do with selectionListener what is desired.- Specified by:
addListSelectionListener
in interfaceListSelectionModel
- Parameters:
listener
-
-
getColumn
- Specified by:
getColumn
in interfaceColumnSelectionModel
-
toHTML
-