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 JPanelprotected DialogManagerprotected Stringprotected Stringprotected intprotected booleanFields inherited from class JDialog
defaultHeightFields inherited from class 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) / get/set methods ////voidcreateTable(Object[][] data, String[] header, int[] widths) voiddispose()voidprotected intgetColumnCentering(int column) intgetSelectedItem(Object combo) booleanisSelected(Object chkbox) voidonFocus()voidselectTableRow(int i) voidsetCellSelectionEnabled(boolean enabled) voidsetEnabled(Object btn, boolean b) / Table-related methods ////voidsetFocus(boolean tf) voidsetIntLocation(int[] loc) voidsetPreferredSize(int width, int height) voidsetSelected(Object chkbox, boolean b) voidsetSelectedIndex(Object combo, int i) voidvoidMethods inherited from class JDialog
getContentPane, pack, repaint, setLocation, setTitle, setVisible, setZIndex, toFront, toHTML, validateMethods 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, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setTextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
setFocusin interfacePlatformDialog
-
addButton
- Specified by:
addButtonin interfacePlatformDialog
-
dispose
public void dispose()- Specified by:
disposein interfacePlatformDialog- Overrides:
disposein classJDialog
-
addCheckBox
- Specified by:
addCheckBoxin interfacePlatformDialog
-
addSelectOption
- Specified by:
addSelectOptionin interfacePlatformDialog
-
addTextField
public Object addTextField(String name, String label, String value, String units, String defaultValue, boolean visible) / get/set methods ////- Specified by:
addTextFieldin interfacePlatformDialog
-
createTable
- Specified by:
createTablein interfacePlatformDialog
-
endLayout
public void endLayout()- Specified by:
endLayoutin interfacePlatformDialog
-
getSelectedIndex
- Specified by:
getSelectedIndexin interfacePlatformDialog
-
getSelectedItem
- Specified by:
getSelectedItemin interfacePlatformDialog
-
getText
- Specified by:
getTextin interfacePlatformDialog
-
isSelected
- Specified by:
isSelectedin interfacePlatformDialog
-
selectTableRow
public void selectTableRow(int i) - Specified by:
selectTableRowin interfacePlatformDialog
-
setCellSelectionEnabled
public void setCellSelectionEnabled(boolean enabled) - Specified by:
setCellSelectionEnabledin interfacePlatformDialog
-
setEnabled
/ Table-related methods ////- Specified by:
setEnabledin interfacePlatformDialog
-
setIntLocation
public void setIntLocation(int[] loc) - Specified by:
setIntLocationin interfacePlatformDialog
-
setPreferredSize
public void setPreferredSize(int width, int height) - Specified by:
setPreferredSizein interfacePlatformDialog
-
setSelected
- Specified by:
setSelectedin interfacePlatformDialog
-
setSelectedIndex
- Specified by:
setSelectedIndexin interfacePlatformDialog
-
setText
- Specified by:
setTextin interfacePlatformDialog
-
startLayout
public void startLayout()- Specified by:
startLayoutin interfacePlatformDialog
-
getColumnCentering
protected int getColumnCentering(int column)
-