abstract class NBODialogConfig
extends javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComboBox<java.lang.String> |
action |
protected static java.lang.String |
alterHelp |
protected javax.swing.JButton |
browse |
protected static java.lang.String |
chbHelp |
protected static java.lang.String |
clipHelp |
protected javax.swing.JTextField |
dataPathLabel |
protected static java.lang.String |
DEFAULT_PARAMS |
(package private) static int |
DIALOG_CONFIG |
(package private) static int |
DIALOG_LIST |
(package private) static int |
DIALOG_MODEL |
(package private) static int |
DIALOG_RUN |
(package private) static int |
DIALOG_SEARCH |
(package private) static int |
DIALOG_VIEW |
protected int |
dialogMode |
protected javax.swing.JScrollPane |
editPane2 |
protected javax.swing.JTextField |
Field |
protected javax.swing.JTextPane |
fileText |
protected static java.lang.String |
fuseHelp |
protected javax.swing.JButton |
go |
protected boolean |
haveService |
protected javax.swing.JButton |
helpBtn |
protected static java.lang.String |
helpConfig |
protected static java.lang.String |
helpModel |
private static java.util.Map<java.lang.String,java.lang.String> |
htHelp |
(package private) javax.swing.JLabel |
icon |
protected java.io.File |
inputFile |
(package private) boolean |
isJmolNBO |
protected int |
jmolAtomCount |
protected java.lang.String |
jobStem |
protected javax.swing.JTextPane |
jpNboOutput |
protected static java.lang.String |
linkHelp |
protected javax.swing.JButton[] |
mainButtons |
protected javax.swing.JButton |
modelButton |
protected javax.swing.JComboBox<java.lang.String> |
module |
protected static java.lang.String |
mutateHelp |
protected java.awt.Font |
nboFont |
protected javax.swing.JButton |
nboPathButton |
protected NBOService |
nboService |
protected static int |
PANEL_CENTER |
protected static int |
PANEL_MODEL_SELECT |
protected static int |
PANEL_RIGHT |
protected static int |
PANEL_RUN_FILE |
protected static int |
PANEL_RUN_SELECT |
protected static int |
PANEL_SEARCH_CENTER |
protected static int |
PANEL_SEARCH_OUT |
protected static int |
PANEL_SEARCH_SELECT |
protected static int |
PANEL_STATUS |
protected static int |
PANEL_TOP |
protected static int |
PANEL_VIEW_SELECT |
protected static java.lang.String |
rebondHelp |
protected java.lang.String |
reqInfo |
protected javax.swing.JButton |
runButton |
protected static java.lang.String |
saveHelp |
protected javax.swing.JButton |
searchButton |
protected static java.lang.String |
searchHelp |
protected static java.lang.String |
sep |
protected javax.swing.JTextField |
serverPathLabel |
protected static java.lang.String |
showHelp |
protected java.lang.Runnable |
showWorkPathDone |
protected javax.swing.JLabel |
statusLab |
protected NBOPanel |
statusPanel |
protected static java.lang.String |
switchHelp |
protected static java.lang.String |
symHelp |
protected javax.swing.JTextField |
tfExt |
protected javax.swing.JTextField |
tfFolder |
protected javax.swing.JTextField |
tfName |
protected NBOPanel |
topPanel |
protected static java.lang.String |
twistHelp |
protected static java.lang.String |
unifyHelp |
protected static java.lang.String |
useHelp |
protected javax.swing.JButton |
viewButton |
protected Viewer |
vwr |
protected java.lang.String |
workingPath |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Modifier | Constructor and Description |
---|---|
protected |
NBODialogConfig(javax.swing.JFrame f)
Creates a dialog for getting info related to output frames in nbo format.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendOutput(java.lang.String cmd) |
protected void |
appendOutputWithCaret(java.lang.String line) |
protected void |
appendToFile(java.lang.String s,
javajs.util.SB sb) |
protected void |
buildConfig(java.awt.Container p) |
private javax.swing.JPanel |
buildFilePanel() |
protected NBOPanel |
buildTopPanel()
Top panel with logo/modules/file choosing options
|
protected void |
centerDialog(javax.swing.JDialog d)
Centers the dialog on the screen.
|
protected boolean |
checkJmolNBO() |
protected void |
clearInputFile() |
protected void |
clearOutput() |
protected abstract boolean |
connect() |
protected javax.swing.JPanel |
folderBox() |
protected java.lang.String |
getExt(java.io.File newFile) |
protected java.lang.String |
getHelp(java.lang.String key)
Retrieve and cache a help string.
|
protected java.lang.String |
getJobStem(java.io.File inputFile) |
protected abstract void |
goRunClicked(java.lang.String defaultParams,
java.io.File inputFile,
java.lang.Runnable load47Done) |
protected void |
nboReset() |
protected java.io.File |
newNBOFile(java.io.File f,
java.lang.String ext) |
protected void |
rawCmd(java.lang.String name,
java.lang.String cmd,
int mode) |
protected void |
saveHistory()
Just saves the path settings from this session.
|
protected void |
saveWorkHistory() |
protected void |
setComponents(java.awt.Component comp) |
protected void |
setComponents2(java.awt.Component comp) |
protected void |
setInputFile(java.io.File inputFile,
java.lang.String useExt,
java.lang.Runnable whenDone) |
protected java.awt.Dimension |
setPreferredSPanelSize(NBOPanel p,
int type)
builds the three panels
|
void |
setVisible(boolean b) |
protected void |
showNBOPathDialog()
Show a file selector when the savePath button is pressed.
|
protected abstract void |
showWorkpathDialogM(java.lang.String st,
java.lang.String type) |
protected abstract void |
showWorkpathDialogR(java.lang.String st) |
protected abstract void |
showWorkpathDialogS(java.lang.String st) |
protected abstract void |
showWorkpathDialogV(java.lang.String st) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final java.lang.String sep
protected static final java.lang.String DEFAULT_PARAMS
protected static final int PANEL_RIGHT
protected static final int PANEL_CENTER
protected static final int PANEL_TOP
protected static final int PANEL_MODEL_SELECT
protected static final int PANEL_RUN_SELECT
protected static final int PANEL_VIEW_SELECT
protected static final int PANEL_SEARCH_SELECT
protected static final int PANEL_RUN_FILE
protected static final int PANEL_SEARCH_CENTER
protected static final int PANEL_STATUS
protected static final int PANEL_SEARCH_OUT
protected NBOPanel topPanel
protected NBOPanel statusPanel
protected NBOService nboService
protected boolean haveService
boolean isJmolNBO
protected Viewer vwr
protected javax.swing.JButton nboPathButton
protected javax.swing.JButton browse
protected javax.swing.JButton helpBtn
protected javax.swing.JButton modelButton
protected javax.swing.JButton runButton
protected javax.swing.JButton viewButton
protected javax.swing.JButton searchButton
protected javax.swing.JButton[] mainButtons
protected javax.swing.JTextField Field
protected javax.swing.JTextField dataPathLabel
protected javax.swing.JTextField serverPathLabel
protected javax.swing.JScrollPane editPane2
protected javax.swing.JLabel statusLab
protected javax.swing.JComboBox<java.lang.String> action
protected javax.swing.JComboBox<java.lang.String> module
protected javax.swing.JTextPane fileText
protected javax.swing.JButton go
protected java.lang.String reqInfo
protected javax.swing.JTextPane jpNboOutput
protected java.lang.String jobStem
javax.swing.JLabel icon
protected java.awt.Font nboFont
protected javax.swing.JTextField tfFolder
protected javax.swing.JTextField tfName
protected javax.swing.JTextField tfExt
protected int jmolAtomCount
protected java.io.File inputFile
protected java.lang.String workingPath
protected java.lang.Runnable showWorkPathDone
protected static java.lang.String helpConfig
protected static final java.lang.String helpModel
protected static final java.lang.String alterHelp
protected static final java.lang.String clipHelp
protected static final java.lang.String fuseHelp
protected static final java.lang.String linkHelp
protected static final java.lang.String mutateHelp
protected static final java.lang.String rebondHelp
protected static final java.lang.String saveHelp
protected static final java.lang.String showHelp
protected static final java.lang.String switchHelp
protected static final java.lang.String symHelp
protected static final java.lang.String twistHelp
protected static final java.lang.String unifyHelp
protected static final java.lang.String useHelp
protected static final java.lang.String chbHelp
protected static final java.lang.String searchHelp
protected int dialogMode
static final int DIALOG_CONFIG
static final int DIALOG_MODEL
static final int DIALOG_RUN
static final int DIALOG_VIEW
static final int DIALOG_SEARCH
static final int DIALOG_LIST
private static final java.util.Map<java.lang.String,java.lang.String> htHelp
protected NBODialogConfig(javax.swing.JFrame f)
f
- The frame associated with the dialogprotected abstract boolean connect()
protected abstract void goRunClicked(java.lang.String defaultParams, java.io.File inputFile, java.lang.Runnable load47Done)
protected abstract void showWorkpathDialogR(java.lang.String st)
protected abstract void showWorkpathDialogM(java.lang.String st, java.lang.String type)
protected abstract void showWorkpathDialogV(java.lang.String st)
protected abstract void showWorkpathDialogS(java.lang.String st)
protected void setComponents(java.awt.Component comp)
protected void setComponents2(java.awt.Component comp)
protected void buildConfig(java.awt.Container p)
private javax.swing.JPanel buildFilePanel()
protected NBOPanel buildTopPanel()
protected javax.swing.JPanel folderBox()
protected void rawCmd(java.lang.String name, java.lang.String cmd, int mode)
protected void saveHistory()
protected void saveWorkHistory()
public void setVisible(boolean b)
setVisible
in class java.awt.Dialog
protected void showNBOPathDialog()
protected void centerDialog(javax.swing.JDialog d)
d
- protected void appendOutputWithCaret(java.lang.String line)
protected void appendOutput(java.lang.String cmd)
protected void clearOutput()
protected java.awt.Dimension setPreferredSPanelSize(NBOPanel p, int type)
p
- type
- protected void appendToFile(java.lang.String s, javajs.util.SB sb)
protected void nboReset()
protected void setInputFile(java.io.File inputFile, java.lang.String useExt, java.lang.Runnable whenDone)
protected java.io.File newNBOFile(java.io.File f, java.lang.String ext)
protected java.lang.String getJobStem(java.io.File inputFile)
protected java.lang.String getExt(java.io.File newFile)
protected boolean checkJmolNBO()
protected void clearInputFile()
protected java.lang.String getHelp(java.lang.String key)
key
-