Class NBODialogConfig

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
    Direct Known Subclasses:
    NBODialogModel

    abstract class NBODialogConfig
    extends javax.swing.JDialog
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  NBODialogConfig.StyledComboBoxUI  
      • Nested classes/interfaces inherited from class javax.swing.JDialog

        javax.swing.JDialog.AccessibleJDialog
      • Nested classes/interfaces inherited from class java.awt.Dialog

        java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
      • Nested classes/interfaces inherited from class java.awt.Window

        java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String alterHelp  
      protected java.lang.String bodyText  
      protected javax.swing.JButton browse  
      protected static java.lang.String chbHelp  
      protected static java.lang.String clipHelp  
      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 static java.lang.String fuseHelp  
      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  
      protected javax.swing.JLabel icon  
      protected java.io.File inputFile  
      (package private) boolean isJmolNBO  
      protected javax.swing.JCheckBox jCheckAtomNum  
      protected javax.swing.JCheckBox jCheckNboView  
      protected int jmolAtomCount  
      protected java.lang.String jobStem  
      protected javax.swing.JTextPane jpNboOutput  
      protected static java.lang.String linkHelp  
      protected java.util.Hashtable<java.lang.String,​java.lang.String> lonePairs  
      protected javax.swing.JButton[] mainButtons  
      protected javax.swing.JButton modelButton  
      protected static java.lang.String mutateHelp  
      protected java.awt.Font nboFont  
      protected NBOService nboService  
      protected boolean nboView  
      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 showRunDone  
      protected java.lang.Runnable showWorkPathDone  
      protected javax.swing.JLabel statusLab  
      protected javax.swing.JPanel 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 javax.swing.JPanel 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  
      • Fields inherited from class javax.swing.JDialog

        accessibleContext, rootPane, rootPaneCheckingEnabled
      • Fields inherited from class java.awt.Dialog

        DEFAULT_MODALITY_TYPE
      • Fields inherited from class java.awt.Component

        BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
      • Fields inherited from interface javax.swing.WindowConstants

        DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NBODialogConfig​(javax.swing.JFrame f)
      Creates a dialog for getting info related to output frames in nbo format.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void appendOutput​(java.lang.String cmd)  
      protected void appendOutputWithCaret​(java.lang.String line, char format)  
      protected void appendToFile​(java.lang.String s, javajs.util.SB sb)  
      protected void buildConfig​(java.awt.Container p)  
      private javax.swing.JPanel buildFilePanel()  
      protected javax.swing.JPanel 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 void enableComponentsR​(java.awt.Component c, boolean b)  
      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.lang.String ess, 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 placeNBODialog​(javax.swing.JDialog d)  
      protected void rawCmd​(java.lang.String name, java.lang.String cmd, int mode)  
      protected abstract void readInputFile​(java.io.File f)  
      protected void resetColorScheme()
      Resets Jmol look and feel
      protected void saveHistory()
      Just saves the path settings from this session.
      protected void saveWorkHistory()  
      protected abstract void setBonds​(java.lang.String[] atoms, java.lang.String key)  
      protected void setComponents​(java.awt.Component comp, java.awt.Color forColor, java.awt.Color backColor)  
      protected void setInputFile​(java.io.File inputFile, java.lang.String useExt, java.lang.Runnable whenDone)  
      protected void setNBOColorScheme()
      Sets color scheme to emulate look of NBO view
      void setVisible​(boolean b)  
      protected void showAtomNums()  
      protected abstract void showConfirmationDialog​(java.lang.String st, java.io.File newFile, java.lang.String ext, int mode)  
      protected void showNboOutput​(java.lang.String f)  
      protected void showNBOPathDialog()
      Show a file selector when the savePath button is pressed.
      protected void showSelected​(java.lang.String[] s)  
      protected abstract void showWorkpathDialog​(java.lang.String s)  
      protected abstract boolean showWorkpathDialogM​(java.lang.String st, java.lang.String type)  
      • Methods inherited from class javax.swing.JDialog

        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
      • Methods inherited from class java.awt.Dialog

        addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
      • Methods inherited from class java.awt.Window

        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
      • Methods inherited from class java.awt.Container

        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
      • Methods inherited from class java.awt.Component

        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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sep

        protected static final java.lang.String sep
      • topPanel

        protected javax.swing.JPanel topPanel
      • statusPanel

        protected javax.swing.JPanel statusPanel
      • haveService

        protected boolean haveService
      • isJmolNBO

        boolean isJmolNBO
      • icon

        protected javax.swing.JLabel icon
      • browse

        protected javax.swing.JButton browse
      • helpBtn

        protected javax.swing.JButton helpBtn
      • modelButton

        protected javax.swing.JButton modelButton
      • runButton

        protected javax.swing.JButton runButton
      • viewButton

        protected javax.swing.JButton viewButton
      • searchButton

        protected javax.swing.JButton searchButton
      • mainButtons

        protected javax.swing.JButton[] mainButtons
      • serverPathLabel

        protected javax.swing.JTextField serverPathLabel
      • jCheckAtomNum

        protected javax.swing.JCheckBox jCheckAtomNum
      • jCheckNboView

        protected javax.swing.JCheckBox jCheckNboView
      • statusLab

        protected javax.swing.JLabel statusLab
      • lonePairs

        protected java.util.Hashtable<java.lang.String,​java.lang.String> lonePairs
      • reqInfo

        protected java.lang.String reqInfo
      • jpNboOutput

        protected javax.swing.JTextPane jpNboOutput
      • bodyText

        protected java.lang.String bodyText
      • jobStem

        protected java.lang.String jobStem
      • nboFont

        protected java.awt.Font nboFont
      • nboView

        protected boolean nboView
      • tfFolder

        protected javax.swing.JTextField tfFolder
      • tfName

        protected javax.swing.JTextField tfName
      • tfExt

        protected javax.swing.JTextField tfExt
      • jmolAtomCount

        protected int jmolAtomCount
      • inputFile

        protected java.io.File inputFile
      • workingPath

        protected java.lang.String workingPath
      • showWorkPathDone

        protected java.lang.Runnable showWorkPathDone
      • showRunDone

        protected java.lang.Runnable showRunDone
      • helpConfig

        protected static java.lang.String helpConfig
      • dialogMode

        protected int dialogMode
      • htHelp

        private static final java.util.Map<java.lang.String,​java.lang.String> htHelp
    • Constructor Detail

      • NBODialogConfig

        protected NBODialogConfig​(javax.swing.JFrame f)
        Creates a dialog for getting info related to output frames in nbo format.
        Parameters:
        f - The frame associated with the dialog
    • Method Detail

      • connect

        protected abstract boolean connect()
      • goRunClicked

        protected abstract void goRunClicked​(java.lang.String defaultParams,
                                             java.lang.String ess,
                                             java.io.File inputFile,
                                             java.lang.Runnable load47Done)
      • showWorkpathDialogM

        protected abstract boolean showWorkpathDialogM​(java.lang.String st,
                                                       java.lang.String type)
      • readInputFile

        protected abstract void readInputFile​(java.io.File f)
      • showWorkpathDialog

        protected abstract void showWorkpathDialog​(java.lang.String s)
      • setBonds

        protected abstract void setBonds​(java.lang.String[] atoms,
                                         java.lang.String key)
      • setComponents

        protected void setComponents​(java.awt.Component comp,
                                     java.awt.Color forColor,
                                     java.awt.Color backColor)
      • enableComponentsR

        protected void enableComponentsR​(java.awt.Component c,
                                         boolean b)
      • buildConfig

        protected void buildConfig​(java.awt.Container p)
      • buildFilePanel

        private javax.swing.JPanel buildFilePanel()
      • buildTopPanel

        protected javax.swing.JPanel buildTopPanel()
        Top panel with logo/modules/file choosing options
        Returns:
        top panel
      • folderBox

        protected javax.swing.JPanel folderBox()
      • rawCmd

        protected void rawCmd​(java.lang.String name,
                              java.lang.String cmd,
                              int mode)
      • saveHistory

        protected void saveHistory()
        Just saves the path settings from this session.
      • saveWorkHistory

        protected void saveWorkHistory()
      • setVisible

        public void setVisible​(boolean b)
        Overrides:
        setVisible in class java.awt.Dialog
      • showNBOPathDialog

        protected void showNBOPathDialog()
        Show a file selector when the savePath button is pressed.
      • centerDialog

        protected void centerDialog​(javax.swing.JDialog d)
        Centers the dialog on the screen.
        Parameters:
        d -
      • placeNBODialog

        protected void placeNBODialog​(javax.swing.JDialog d)
      • appendOutputWithCaret

        protected void appendOutputWithCaret​(java.lang.String line,
                                             char format)
      • appendOutput

        protected void appendOutput​(java.lang.String cmd)
      • clearOutput

        protected void clearOutput()
      • appendToFile

        protected void appendToFile​(java.lang.String s,
                                    javajs.util.SB sb)
      • nboReset

        protected void nboReset()
      • setNBOColorScheme

        protected void setNBOColorScheme()
        Sets color scheme to emulate look of NBO view
      • resetColorScheme

        protected void resetColorScheme()
        Resets Jmol look and feel
      • setInputFile

        protected void setInputFile​(java.io.File inputFile,
                                    java.lang.String useExt,
                                    java.lang.Runnable whenDone)
      • showConfirmationDialog

        protected abstract void showConfirmationDialog​(java.lang.String st,
                                                       java.io.File newFile,
                                                       java.lang.String ext,
                                                       int mode)
      • showNboOutput

        protected void showNboOutput​(java.lang.String f)
      • showSelected

        protected void showSelected​(java.lang.String[] s)
      • showAtomNums

        protected void showAtomNums()
      • newNBOFile

        protected java.io.File newNBOFile​(java.io.File f,
                                          java.lang.String ext)
      • getJobStem

        protected java.lang.String getJobStem​(java.io.File inputFile)
      • getExt

        protected java.lang.String getExt​(java.io.File newFile)
      • checkJmolNBO

        protected boolean checkJmolNBO()
      • clearInputFile

        protected void clearInputFile()
      • getHelp

        protected java.lang.String getHelp​(java.lang.String key)
        Retrieve and cache a help string.
        Parameters:
        key -
        Returns:
        resource string or a message that it cannot be found