Package org.apache.batik.apps.svgbrowser
Class PreferenceDialog
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.apache.batik.apps.svgbrowser.PreferenceDialog
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
,WindowConstants
,GridBagConstants
Dialog that displays user preferences.
- Version:
- $Id: PreferenceDialog.java 1802297 2017-07-18 13:58:12Z ssteiner $
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
A paged panel for configuration windows.Nested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialog
Nested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.Type
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JComboBox
protected JComboBox
protected JRadioButton
protected JTextField
protected JLabel
protected JRadioButton
protected JTextField
protected JLabel
protected JRadioButton
protected JCheckBox
static final int
The return value if 'Cancel' is chosen.protected PreferenceDialog.JConfigurationPanel
The configuration panel that holds each of the configuration pages.protected JCheckBox
protected JCheckBox
protected JCheckBox
protected JCheckBox
protected JTextField
protected JCheckBox
static final String
static final String
protected LanguageDialog.Panel
protected JCheckBox
protected JCheckBox
protected JList
protected JButton
protected DefaultListModel
protected JButton
protected PreferenceManager
PreferenceManager
used to store and retrieve preferencesstatic final int
The return value if 'OK' is chosen.protected JTextField
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected int
Code indicating whether the dialog was okayed or cancelled.protected JCheckBox
protected JCheckBox
protected JCheckBox
protected JTextField
protected JButton
protected JCheckBox
protected JLabel
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 org.apache.batik.ext.swing.GridBagConstants
BOTH, CENTER, EAST, HORIZONTAL, NONE, NORTH, NORTHEAST, NORTHWEST, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, WEST
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
ConstructorsConstructorDescriptionPreferenceDialog
(Frame owner, PreferenceManager model) Creates a new PreferenceDialog with the given model. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addConfigPanel
(String id, JPanel c) Adds a panel to the configuration panel.protected JPanel
Creates the OK/Cancel button panel.protected JPanel
Builds the General panel.protected void
buildGUI()
Builds the UI for this dialog.protected JPanel
Builds the Language panel.protected JPanel
Builds the Network panel.protected JPanel
Builds the Security panel.protected JPanel
Builds the Stylesheet panel.Returns the preference manager used by this dialog.protected void
Initializes the GUI components with the values from the model.protected static boolean
Returns whether the current LAF is Metal Steel.protected void
Stores the current settings in the PreferenceManager model.int
Shows the dialog.protected void
Updates the disabled state of the buttons next to the media type list.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, setVisible, 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 Details
-
OK_OPTION
public static final int OK_OPTIONThe return value if 'OK' is chosen.- See Also:
-
CANCEL_OPTION
public static final int CANCEL_OPTIONThe return value if 'Cancel' is chosen.- See Also:
-
PREFERENCE_KEY_TITLE_PREFIX
- See Also:
-
PREFERENCE_KEY_TITLE_DIALOG
- See Also:
-
PREFERENCE_KEY_LABEL_RENDERING_OPTIONS
- See Also:
-
PREFERENCE_KEY_LABEL_ANIMATION_RATE_LIMITING
- See Also:
-
PREFERENCE_KEY_LABEL_OTHER_OPTIONS
- See Also:
-
PREFERENCE_KEY_LABEL_ENABLE_DOUBLE_BUFFERING
- See Also:
-
PREFERENCE_KEY_LABEL_SHOW_RENDERING
- See Also:
-
PREFERENCE_KEY_LABEL_AUTO_ADJUST_WINDOW
- See Also:
-
PREFERENCE_KEY_LABEL_SELECTION_XOR_MODE
- See Also:
-
PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_CPU
- See Also:
-
PREFERENCE_KEY_LABEL_PERCENT
- See Also:
-
PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_FPS
- See Also:
-
PREFERENCE_KEY_LABEL_FPS
- See Also:
-
PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_UNLIMITED
- See Also:
-
PREFERENCE_KEY_LABEL_SHOW_DEBUG_TRACE
- See Also:
-
PREFERENCE_KEY_LABEL_IS_XML_PARSER_VALIDATING
- See Also:
-
PREFERENCE_KEY_LABEL_GRANT_SCRIPTS_ACCESS_TO
- See Also:
-
PREFERENCE_KEY_LABEL_LOAD_SCRIPTS
- See Also:
-
PREFERENCE_KEY_LABEL_ALLOWED_SCRIPT_ORIGIN
- See Also:
-
PREFERENCE_KEY_LABEL_ALLOWED_RESOURCE_ORIGIN
- See Also:
-
PREFERENCE_KEY_LABEL_ENFORCE_SECURE_SCRIPTING
- See Also:
-
PREFERENCE_KEY_LABEL_FILE_SYSTEM
- See Also:
-
PREFERENCE_KEY_LABEL_ALL_NETWORK
- See Also:
-
PREFERENCE_KEY_LABEL_JAVA_JAR_FILES
- See Also:
-
PREFERENCE_KEY_LABEL_ECMASCRIPT
- See Also:
-
PREFERENCE_KEY_LABEL_ORIGIN_ANY
- See Also:
-
PREFERENCE_KEY_LABEL_ORIGIN_DOCUMENT
- See Also:
-
PREFERENCE_KEY_LABEL_ORIGIN_EMBEDDED
- See Also:
-
PREFERENCE_KEY_LABEL_ORIGIN_NONE
- See Also:
-
PREFERENCE_KEY_LABEL_USER_STYLESHEET
- See Also:
-
PREFERENCE_KEY_LABEL_CSS_MEDIA_TYPES
- See Also:
-
PREFERENCE_KEY_LABEL_ENABLE_USER_STYLESHEET
- See Also:
-
PREFERENCE_KEY_LABEL_BROWSE
- See Also:
-
PREFERENCE_KEY_LABEL_ADD
- See Also:
-
PREFERENCE_KEY_LABEL_REMOVE
- See Also:
-
PREFERENCE_KEY_LABEL_CLEAR
- See Also:
-
PREFERENCE_KEY_LABEL_HTTP_PROXY
- See Also:
-
PREFERENCE_KEY_LABEL_HOST
- See Also:
-
PREFERENCE_KEY_LABEL_PORT
- See Also:
-
PREFERENCE_KEY_LABEL_COLON
- See Also:
-
PREFERENCE_KEY_BROWSE_TITLE
- See Also:
-
PREFERENCE_KEY_LANGUAGES
- See Also:
-
PREFERENCE_KEY_IS_XML_PARSER_VALIDATING
- See Also:
-
PREFERENCE_KEY_USER_STYLESHEET
- See Also:
-
PREFERENCE_KEY_USER_STYLESHEET_ENABLED
- See Also:
-
PREFERENCE_KEY_SHOW_RENDERING
- See Also:
-
PREFERENCE_KEY_AUTO_ADJUST_WINDOW
- See Also:
-
PREFERENCE_KEY_ENABLE_DOUBLE_BUFFERING
- See Also:
-
PREFERENCE_KEY_SHOW_DEBUG_TRACE
- See Also:
-
PREFERENCE_KEY_SELECTION_XOR_MODE
- See Also:
-
PREFERENCE_KEY_PROXY_HOST
- See Also:
-
PREFERENCE_KEY_CSS_MEDIA
- See Also:
-
PREFERENCE_KEY_DEFAULT_FONT_FAMILY
- See Also:
-
PREFERENCE_KEY_PROXY_PORT
- See Also:
-
PREFERENCE_KEY_ENFORCE_SECURE_SCRIPTING
- See Also:
-
PREFERENCE_KEY_GRANT_SCRIPT_FILE_ACCESS
- See Also:
-
PREFERENCE_KEY_GRANT_SCRIPT_NETWORK_ACCESS
- See Also:
-
PREFERENCE_KEY_LOAD_ECMASCRIPT
- See Also:
-
PREFERENCE_KEY_LOAD_JAVA
- See Also:
-
PREFERENCE_KEY_ALLOWED_SCRIPT_ORIGIN
- See Also:
-
PREFERENCE_KEY_ALLOWED_EXTERNAL_RESOURCE_ORIGIN
- See Also:
-
PREFERENCE_KEY_ANIMATION_RATE_LIMITING_MODE
- See Also:
-
PREFERENCE_KEY_ANIMATION_RATE_LIMITING_CPU
- See Also:
-
PREFERENCE_KEY_ANIMATION_RATE_LIMITING_FPS
- See Also:
-
LABEL_OK
- See Also:
-
LABEL_CANCEL
- See Also:
-
model
PreferenceManager
used to store and retrieve preferences -
configurationPanel
The configuration panel that holds each of the configuration pages. -
userStylesheetEnabled
-
userStylesheetLabel
-
userStylesheet
-
userStylesheetBrowse
-
showRendering
-
autoAdjustWindow
-
enableDoubleBuffering
-
showDebugTrace
-
selectionXorMode
-
isXMLParserValidating
-
animationLimitUnlimited
-
animationLimitCPU
-
animationLimitFPS
-
animationLimitCPULabel
-
animationLimitFPSLabel
-
animationLimitCPUAmount
-
animationLimitFPSAmount
-
enforceSecureScripting
-
grantScriptFileAccess
-
grantScriptNetworkAccess
-
loadJava
-
loadEcmascript
-
allowedScriptOrigin
-
allowedResourceOrigin
-
mediaList
-
mediaListRemoveButton
-
mediaListClearButton
-
host
-
port
-
languagePanel
-
mediaListModel
-
returnCode
protected int returnCodeCode indicating whether the dialog was okayed or cancelled.
-
-
Constructor Details
-
PreferenceDialog
Creates a new PreferenceDialog with the given model.
-
-
Method Details
-
isMetalSteel
protected static boolean isMetalSteel()Returns whether the current LAF is Metal Steel. -
getPreferenceManager
Returns the preference manager used by this dialog. -
initializeGUI
protected void initializeGUI()Initializes the GUI components with the values from the model. -
savePreferences
protected void savePreferences()Stores the current settings in the PreferenceManager model. -
buildGUI
protected void buildGUI()Builds the UI for this dialog. -
addConfigPanel
Adds a panel to the configuration panel. -
buildButtonsPanel
Creates the OK/Cancel button panel. -
buildGeneralPanel
Builds the General panel. -
buildSecurityPanel
Builds the Security panel. -
buildLanguagePanel
Builds the Language panel. -
buildStylesheetPanel
Builds the Stylesheet panel. -
updateMediaListButtons
protected void updateMediaListButtons()Updates the disabled state of the buttons next to the media type list. -
buildNetworkPanel
Builds the Network panel. -
showDialog
public int showDialog()Shows the dialog.
-