Package org.openscience.jmol.app.nbo
Class NBODialogModel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- org.openscience.jmol.app.nbo.NBODialogConfig
-
- org.openscience.jmol.app.nbo.NBODialogModel
-
- 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:
NBODialogRun
abstract class NBODialogModel extends NBODialogConfig
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openscience.jmol.app.nbo.NBODialogConfig
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
-
-
Field Summary
Fields Modifier and Type Field Description private static intALTERprotected javax.swing.JTextField[]atomNumBoxprivate static intCLIPprotected static intCONFIRM_SAVEprotected static intCONFIRM_VIEWOUTPUTprotected javax.swing.JTextFieldcurrValprotected java.lang.StringeditActionprotected javax.swing.BoxeditBoxprotected inteditModeprivate static java.lang.StringINPUT_FILE_EXTENSIONSprotected javax.swing.JButtonjbEditprotected javax.swing.JTextFieldjtJmolInputprotected javax.swing.JTextFieldjtLineInputprotected javax.swing.JTextFieldjtSelectAtomsprivate static java.lang.StringLOAD_SCRIPTprivate static intMUTATEprivate static java.lang.String[]SAVE_OPTIONSprotected java.lang.StringsavePathprotected java.lang.Stringselectedprotected javax.swing.JTextFieldtfExtSprotected javax.swing.JTextFieldtfFolderSprotected javax.swing.JTextFieldtfNameSprotected static java.awt.ColortitleColorprotected static java.awt.FonttitleFontprotected java.lang.StringusePathprotected javax.swing.JLabelvalLabprotected static intVALUE-
Fields inherited from class org.openscience.jmol.app.nbo.NBODialogConfig
alterHelp, bodyText, browse, chbHelp, clipHelp, DEFAULT_PARAMS, DIALOG_CONFIG, DIALOG_LIST, DIALOG_MODEL, DIALOG_RUN, DIALOG_SEARCH, DIALOG_VIEW, dialogMode, fuseHelp, haveService, helpBtn, helpConfig, helpModel, icon, inputFile, isJmolNBO, jCheckAtomNum, jCheckNboView, jmolAtomCount, jobStem, jpNboOutput, linkHelp, lonePairs, mainButtons, modelButton, mutateHelp, nboFont, nboService, nboView, rebondHelp, reqInfo, runButton, saveHelp, searchButton, searchHelp, sep, serverPathLabel, showHelp, showRunDone, showWorkPathDone, statusLab, statusPanel, switchHelp, symHelp, tfExt, tfFolder, tfName, topPanel, twistHelp, unifyHelp, useHelp, viewButton, vwr, workingPath
-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNBODialogModel(javax.swing.JFrame f)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidactionSelected(java.lang.String selected)edit action selectedprivate voidaddListenersAndSize(javax.swing.JComponent field, javax.swing.JRadioButton radio)protected voidbuildModel(java.awt.Container p)protected voidclearModel()protected voidclearSelected()protected voidclip(java.lang.String action, java.lang.String st, java.awt.Component c)private voidcreateInput(javax.swing.JTextField field, javax.swing.JRadioButton radio)private java.awt.ComponenteditBox()protected voideditModel(java.lang.String item)apply edit to modelprivate javax.swing.JPanelfolderSaveBox(javax.swing.JComboBox<java.lang.String> cBox)private java.lang.StringgetEss(java.lang.String ext)protected voidgetModel(javax.swing.JTextField textBox)protected voidgetSymmetry()protected voidgetValue()protected booleanhelpDialogM(javax.swing.JTextPane p, java.lang.String key)protected voidloadModel()private voidloadModel(java.lang.String path, java.lang.String fname, java.lang.String ext)protected voidmodelCmd(javajs.util.SB sb)protected javax.swing.JPanelmodelOut()protected abstract voidnboResetV()protected voidnotifyCallbackM(java.lang.String atomno)protected voidnotifyLoadModel()protected voidrawInputM(java.lang.String cmd)private java.awt.ComponentsaveBox()protected voidsaveHistoryM()protected voidsaveModel(java.lang.String path, java.lang.String fname, java.lang.String ext)protected voidshowConfirmationDialog(java.lang.String st, java.io.File newFile, java.lang.String ext, int mode)protected voidshowSaveDialog(java.lang.String type)protected booleanshowWorkpathDialogM(java.lang.String path, java.lang.String type)File opening and saving methodsprivate java.awt.ComponentuseBox()adds use elements to main panel-
Methods inherited from class org.openscience.jmol.app.nbo.NBODialogConfig
appendOutput, appendOutputWithCaret, appendToFile, buildConfig, buildTopPanel, centerDialog, checkJmolNBO, clearInputFile, clearOutput, connect, enableComponentsR, folderBox, getExt, getHelp, getJobStem, goRunClicked, nboReset, newNBOFile, placeNBODialog, rawCmd, readInputFile, resetColorScheme, saveHistory, saveWorkHistory, setBonds, setComponents, setInputFile, setNBOColorScheme, setVisible, showAtomNums, showNboOutput, showNBOPathDialog, showSelected, showWorkpathDialog
-
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
-
-
-
-
Field Detail
-
INPUT_FILE_EXTENSIONS
private static final java.lang.String INPUT_FILE_EXTENSIONS
- See Also:
- Constant Field Values
-
SAVE_OPTIONS
private static final java.lang.String[] SAVE_OPTIONS
-
ALTER
private static final int ALTER
- See Also:
- Constant Field Values
-
CLIP
private static final int CLIP
- See Also:
- Constant Field Values
-
MUTATE
private static final int MUTATE
- See Also:
- Constant Field Values
-
VALUE
protected static final int VALUE
- See Also:
- Constant Field Values
-
LOAD_SCRIPT
private static final java.lang.String LOAD_SCRIPT
- See Also:
- Constant Field Values
-
CONFIRM_SAVE
protected static final int CONFIRM_SAVE
- See Also:
- Constant Field Values
-
CONFIRM_VIEWOUTPUT
protected static final int CONFIRM_VIEWOUTPUT
- See Also:
- Constant Field Values
-
editMode
protected int editMode
-
savePath
protected java.lang.String savePath
-
selected
protected java.lang.String selected
-
usePath
protected java.lang.String usePath
-
editBox
protected javax.swing.Box editBox
-
jtSelectAtoms
protected javax.swing.JTextField jtSelectAtoms
-
tfFolderS
protected javax.swing.JTextField tfFolderS
-
tfNameS
protected javax.swing.JTextField tfNameS
-
tfExtS
protected javax.swing.JTextField tfExtS
-
jtJmolInput
protected javax.swing.JTextField jtJmolInput
-
jtLineInput
protected javax.swing.JTextField jtLineInput
-
jbEdit
protected javax.swing.JButton jbEdit
-
titleColor
protected static final java.awt.Color titleColor
-
titleFont
protected static final java.awt.Font titleFont
-
editAction
protected java.lang.String editAction
-
currVal
protected javax.swing.JTextField currVal
-
atomNumBox
protected javax.swing.JTextField[] atomNumBox
-
valLab
protected javax.swing.JLabel valLab
-
-
Method Detail
-
nboResetV
protected abstract void nboResetV()
-
buildModel
protected void buildModel(java.awt.Container p)
-
editBox
private java.awt.Component editBox()
-
saveBox
private java.awt.Component saveBox()
-
useBox
private java.awt.Component useBox()
adds use elements to main panel- Returns:
- use elements
-
createInput
private void createInput(javax.swing.JTextField field, javax.swing.JRadioButton radio)
-
addListenersAndSize
private void addListenersAndSize(javax.swing.JComponent field, javax.swing.JRadioButton radio)
-
folderSaveBox
private javax.swing.JPanel folderSaveBox(javax.swing.JComboBox<java.lang.String> cBox)
-
actionSelected
protected void actionSelected(java.lang.String selected)
edit action selected- Parameters:
selected-
-
clip
protected void clip(java.lang.String action, java.lang.String st, java.awt.Component c)
-
clearSelected
protected void clearSelected()
-
editModel
protected void editModel(java.lang.String item)
apply edit to model- Parameters:
item-
-
modelOut
protected javax.swing.JPanel modelOut()
-
saveHistoryM
protected void saveHistoryM()
-
getSymmetry
protected void getSymmetry()
-
getModel
protected void getModel(javax.swing.JTextField textBox)
-
loadModel
private void loadModel(java.lang.String path, java.lang.String fname, java.lang.String ext)
-
clearModel
protected void clearModel()
-
loadModel
protected void loadModel()
-
saveModel
protected void saveModel(java.lang.String path, java.lang.String fname, java.lang.String ext)
-
getEss
private java.lang.String getEss(java.lang.String ext)
-
modelCmd
protected void modelCmd(javajs.util.SB sb)
-
showWorkpathDialogM
protected boolean showWorkpathDialogM(java.lang.String path, java.lang.String type)File opening and saving methods- Specified by:
showWorkpathDialogMin classNBODialogConfig- Parameters:
type- of file extension
-
showSaveDialog
protected void showSaveDialog(java.lang.String type)
-
showConfirmationDialog
protected void showConfirmationDialog(java.lang.String st, java.io.File newFile, java.lang.String ext, int mode)- Specified by:
showConfirmationDialogin classNBODialogConfig
-
notifyCallbackM
protected void notifyCallbackM(java.lang.String atomno)
-
getValue
protected void getValue()
-
notifyLoadModel
protected void notifyLoadModel()
-
helpDialogM
protected boolean helpDialogM(javax.swing.JTextPane p, java.lang.String key)
-
rawInputM
protected void rawInputM(java.lang.String cmd)
-
-