abstract class NBODialogModel extends NBODialogConfig
NBODialogConfig.StyledComboBoxUI
JDialog.AccessibleJDialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
private static int |
ALTER |
protected JTextField[] |
atomNumBox |
private static int |
CLIP |
protected static int |
CONFIRM_SAVE |
protected static int |
CONFIRM_VIEWOUTPUT |
protected JTextField |
currVal |
protected String |
editAction |
protected Box |
editBox |
protected int |
editMode |
private static String |
INPUT_FILE_EXTENSIONS |
protected JButton |
jbEdit |
protected JTextField |
jtJmolInput |
protected JTextField |
jtLineInput |
protected JTextField |
jtSelectAtoms |
private static String |
LOAD_SCRIPT |
private static int |
MUTATE |
private static String[] |
SAVE_OPTIONS |
protected String |
savePath |
protected String |
selected |
protected JTextField |
tfExtS |
protected JTextField |
tfFolderS |
protected JTextField |
tfNameS |
protected static Color |
titleColor |
protected static Font |
titleFont |
protected String |
usePath |
protected JLabel |
valLab |
protected static int |
VALUE |
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
accessibleContext, rootPane, rootPaneCheckingEnabled
DEFAULT_MODALITY_TYPE
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier | Constructor and Description |
---|---|
protected |
NBODialogModel(JFrame f) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionSelected(String selected)
edit action selected
|
private void |
addListenersAndSize(JComponent field,
JRadioButton radio) |
protected void |
buildModel(Container p) |
protected void |
clearModel() |
protected void |
clearSelected() |
protected void |
clip(String action,
String st,
Component c) |
private void |
createInput(JTextField field,
JRadioButton radio) |
private Component |
editBox() |
protected void |
editModel(String item)
apply edit to model
|
private JPanel |
folderSaveBox(JComboBox<String> cBox) |
private String |
getEss(String ext) |
protected void |
getModel(JTextField textBox) |
protected void |
getSymmetry() |
protected void |
getValue() |
protected boolean |
helpDialogM(JTextPane p,
String key) |
protected void |
loadModel() |
private void |
loadModel(String path,
String fname,
String ext) |
protected void |
modelCmd(javajs.util.SB sb) |
protected JPanel |
modelOut() |
protected abstract void |
nboResetV() |
protected void |
notifyCallbackM(String atomno) |
protected void |
notifyLoadModel() |
protected void |
rawInputM(String cmd) |
private Component |
saveBox() |
protected void |
saveHistoryM() |
protected void |
saveModel(String path,
String fname,
String ext) |
protected void |
showConfirmationDialog(String st,
File newFile,
String ext,
int mode) |
protected void |
showSaveDialog(String type) |
protected boolean |
showWorkpathDialogM(String path,
String type)
File opening and saving methods
|
private Component |
useBox()
adds use elements to main panel
|
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
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
private static final String INPUT_FILE_EXTENSIONS
private static final String[] SAVE_OPTIONS
private static final int ALTER
private static final int CLIP
private static final int MUTATE
protected static final int VALUE
private static final String LOAD_SCRIPT
protected static final int CONFIRM_SAVE
protected static final int CONFIRM_VIEWOUTPUT
protected int editMode
protected String savePath
protected String selected
protected String usePath
protected Box editBox
protected JTextField jtSelectAtoms
protected JTextField tfFolderS
protected JTextField tfNameS
protected JTextField tfExtS
protected JTextField jtJmolInput
protected JTextField jtLineInput
protected JButton jbEdit
protected static final Color titleColor
protected static final Font titleFont
protected String editAction
protected JTextField currVal
protected JTextField[] atomNumBox
protected JLabel valLab
protected NBODialogModel(JFrame f)
protected abstract void nboResetV()
protected void buildModel(Container p)
private Component editBox()
private Component saveBox()
private Component useBox()
private void createInput(JTextField field, JRadioButton radio)
private void addListenersAndSize(JComponent field, JRadioButton radio)
protected void actionSelected(String selected)
selected
- protected void clearSelected()
protected void editModel(String item)
item
- protected JPanel modelOut()
protected void saveHistoryM()
protected void getSymmetry()
protected void getModel(JTextField textBox)
protected void clearModel()
protected void loadModel()
protected void modelCmd(javajs.util.SB sb)
protected boolean showWorkpathDialogM(String path, String type)
showWorkpathDialogM
in class NBODialogConfig
type
- of file extensionprotected void showSaveDialog(String type)
protected void showConfirmationDialog(String st, File newFile, String ext, int mode)
showConfirmationDialog
in class NBODialogConfig
protected void notifyCallbackM(String atomno)
protected void getValue()
protected void notifyLoadModel()
protected void rawInputM(String cmd)