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
Fields inherited from class JComponent
actionCommand, actionListener, autoScrollsFields inherited from class Component
enabled, height, id, minHeight, minWidth, mouseListener, name, parent, renderHeight, renderWidth, text, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListSelectionListener(Object listener) It will be the function of the JavaScript on the page to do with selectionListener what is desired.voidgetColumn(int i) voidsetCellSelectionEnabled(boolean enabled) voidsetPreferredScrollableViewportSize(Dimension dimension) voidsetRowSelectionAllowed(boolean b) voidsetRowSelectionInterval(int i, int j) toHTML()Methods inherited from class JComponent
addActionListener, getActionCommand, setActionCommand, setAutoscrollsMethods inherited from class Container
add, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAllMethods inherited from class Component
addMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, repaint, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText, setVisible
-
Constructor Details
-
JTable
-
-
Method Details
-
getSelectionModel
- Specified by:
getSelectionModelin 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:
addListSelectionListenerin interfaceListSelectionModel- Parameters:
listener-
-
getColumn
- Specified by:
getColumnin interfaceColumnSelectionModel
-
toHTML
-