Package jspecview.js2d
Class JsDialog
java.lang.Object
org.jmol.awtjs.swing.Component
org.jmol.awtjs.swing.Container
org.jmol.awtjs.swing.JDialog
jspecview.js2d.JsDialog
- All Implemented Interfaces:
PlatformDialog
just a class I made to separate the construction of the AnnotationDialogs
from their use
- Author:
- Bob Hanson hansonr@stolaf.edu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JPanel
protected DialogManager
protected String
protected String
protected int
protected boolean
Fields inherited from class org.jmol.awtjs.swing.JDialog
defaultHeight
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 TypeMethodDescriptionaddCheckBox
(String name, String title, int level, boolean isSelected) addSelectOption
(String name, String label, String[] info, int iPt, boolean visible) addTextField
(String name, String label, String value, String units, String defaultValue, boolean visible) void
createTable
(Object[][] data, String[] header, int[] widths) void
dispose()
void
protected int
getColumnCentering
(int column) int
getSelectedItem
(Object combo) boolean
isSelected
(Object chkbox) void
onFocus()
void
selectTableRow
(int i) void
setCellSelectionEnabled
(boolean enabled) void
setEnabled
(Object btn, boolean b) void
setFocus
(boolean tf) void
setIntLocation
(int[] loc) void
setPreferredSize
(int width, int height) void
setSelected
(Object chkbox, boolean b) void
setSelectedIndex
(Object combo, int i) void
void
Methods inherited from class org.jmol.awtjs.swing.JDialog
getContentPane, pack, repaint, setLocation, setTitle, setVisible, setZIndex, toFront, toHTML, validate
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, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jspecview.api.PlatformDialog
isVisible, pack, repaint, setTitle, setVisible
-
Field Details
-
optionKey
-
registryKey
-
options
-
manager
-
leftPanel
-
tableCellAlignLeft
protected boolean tableCellAlignLeft -
selectedRow
protected int selectedRow
-
-
Constructor Details
-
JsDialog
-
-
Method Details
-
onFocus
public void onFocus() -
setFocus
public void setFocus(boolean tf) - Specified by:
setFocus
in interfacePlatformDialog
-
addButton
- Specified by:
addButton
in interfacePlatformDialog
-
dispose
public void dispose()- Specified by:
dispose
in interfacePlatformDialog
- Overrides:
dispose
in classJDialog
-
addCheckBox
- Specified by:
addCheckBox
in interfacePlatformDialog
-
addSelectOption
- Specified by:
addSelectOption
in interfacePlatformDialog
-
addTextField
public Object addTextField(String name, String label, String value, String units, String defaultValue, boolean visible) - Specified by:
addTextField
in interfacePlatformDialog
-
createTable
- Specified by:
createTable
in interfacePlatformDialog
-
endLayout
public void endLayout()- Specified by:
endLayout
in interfacePlatformDialog
-
getSelectedIndex
- Specified by:
getSelectedIndex
in interfacePlatformDialog
-
getSelectedItem
- Specified by:
getSelectedItem
in interfacePlatformDialog
-
getText
- Specified by:
getText
in interfacePlatformDialog
-
isSelected
- Specified by:
isSelected
in interfacePlatformDialog
-
selectTableRow
public void selectTableRow(int i) - Specified by:
selectTableRow
in interfacePlatformDialog
-
setCellSelectionEnabled
public void setCellSelectionEnabled(boolean enabled) - Specified by:
setCellSelectionEnabled
in interfacePlatformDialog
-
setEnabled
- Specified by:
setEnabled
in interfacePlatformDialog
-
setIntLocation
public void setIntLocation(int[] loc) - Specified by:
setIntLocation
in interfacePlatformDialog
-
setPreferredSize
public void setPreferredSize(int width, int height) - Specified by:
setPreferredSize
in interfacePlatformDialog
-
setSelected
- Specified by:
setSelected
in interfacePlatformDialog
-
setSelectedIndex
- Specified by:
setSelectedIndex
in interfacePlatformDialog
-
setText
- Specified by:
setText
in interfacePlatformDialog
-
startLayout
public void startLayout()- Specified by:
startLayout
in interfacePlatformDialog
-
getColumnCentering
protected int getColumnCentering(int column)
-