public class OptionsDialog extends JDialog
Modifier and Type | Class and Description |
---|---|
protected class |
OptionsDialog.CancelAction |
protected static class |
OptionsDialog.LNFData |
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 |
---|---|
protected JCheckBox |
addSpaceOnMarkupUnpackChk
The "Add extra space markup unpack if needed" checkbox
|
protected JButton |
cancelButton
The Cancel button for the dialog.
|
protected Font |
componentsFont
The font to be used for GUI components; cached value for the one in the
user config map.
|
static String[] |
componentsKeys |
protected boolean |
dirtyGUI
This flag becomes true when an GUI related option has been changed
|
protected ButtonGroup |
fontBG
Button group for the font setting radio buttons
|
protected JFontChooser |
fontChooser
The font chooser used for selecting fonts
|
protected JComboBox<OptionsDialog.LNFData> |
lnfCombo
The combobox for the look and feel selection
|
protected String |
lookAndFeelClassName
The name of the look and feel class
|
protected JTabbedPane |
mainTabbedPane
The main tabbed pane
|
protected JRadioButton |
menuBtn
Radio button used to set the font for menu components
|
static String[] |
menuKeys |
protected Font |
menusFont
The font to be used for the menus; cached value for the one in the user
config map.
|
protected JButton |
okButton
The OK button for the dialog.
|
protected JRadioButton |
otherCompsBtn
Radio button used to set the font for other components
|
protected JCheckBox |
saveOptionsChk
The "Save Options on close" checkbox
|
protected JCheckBox |
saveSessionChk
The "Save Session on close" checkbox
|
protected String |
selectedFontBtn
which text is currently being edited; values are: "text", "menu", "other"
|
protected JRadioButton |
textBtn
Radio button used to set the font for text components
|
protected Font |
textComponentsFont
The font to be used for text components; cached value for the one in the
user config map.
|
static String[] |
textComponentsKeys |
protected JCheckBox |
treeSelectViewChk |
protected JCheckBox |
viewSelectTreeChk |
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
Constructor and Description |
---|
OptionsDialog(Frame owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
initGuiComponents() |
protected void |
initListeners() |
protected void |
initLocalData() |
static void |
main(String[] args) |
protected void |
selectedFontChanged() |
static void |
setComponentsFont(Font font)
Updates the Swing defaults table with the provided font to be used for
various compoents that neither text or menu components
|
static void |
setMenuComponentsFont(Font font)
Updates the Swing defaults table with the provided font to be used for the
menu components
|
static void |
setTextComponentsFont(Font font)
Updates the Swing defaults table with the provided font to be used for the
text components
|
protected static void |
setUIDefaults(Object[] keys,
Object value) |
void |
showDialog() |
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, setVisible, 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
public static String[] menuKeys
public static String[] componentsKeys
public static String[] textComponentsKeys
protected JTabbedPane mainTabbedPane
protected JRadioButton textBtn
protected JButton okButton
protected JButton cancelButton
protected String selectedFontBtn
protected JRadioButton menuBtn
protected JRadioButton otherCompsBtn
protected ButtonGroup fontBG
protected JFontChooser fontChooser
protected JCheckBox saveOptionsChk
protected JCheckBox saveSessionChk
protected JCheckBox addSpaceOnMarkupUnpackChk
protected String lookAndFeelClassName
protected Font menusFont
protected Font textComponentsFont
protected Font componentsFont
protected boolean dirtyGUI
protected JComboBox<OptionsDialog.LNFData> lnfCombo
protected JCheckBox treeSelectViewChk
protected JCheckBox viewSelectTreeChk
public OptionsDialog(Frame owner)
protected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
protected void selectedFontChanged()
public void showDialog()
public static void main(String[] args)
public static void setTextComponentsFont(Font font)
public static void setMenuComponentsFont(Font font)
public static void setComponentsFont(Font font)
Copyright © 2024 GATE. All rights reserved.