org.apache.batik.apps.svgbrowser
Class PreferenceDialog
public
class
PreferenceDialog
extends JDialog
implements GridBagConstants
Dialog that displays user preferences.
protected JComboBox allowedResourceOrigin
protected JComboBox allowedScriptOrigin
protected JRadioButton animationLimitCPU
protected JTextField animationLimitCPUAmount
protected JLabel animationLimitCPULabel
protected JRadioButton animationLimitFPS
protected JTextField animationLimitFPSAmount
protected JLabel animationLimitFPSLabel
protected JRadioButton animationLimitUnlimited
protected JCheckBox autoAdjustWindow
The configuration panel that holds each of the configuration pages.
public static final int CANCEL_OPTION
The return value if 'Cancel' is chosen.
protected JCheckBox enableDoubleBuffering
protected JCheckBox enforceSecureScripting
protected JCheckBox grantScriptFileAccess
protected JCheckBox grantScriptNetworkAccess
protected JTextField host
protected JCheckBox isXMLParserValidating
protected JCheckBox loadEcmascript
protected JCheckBox loadJava
public static final String LABEL_CANCEL
public static final String LABEL_OK
protected JList mediaList
protected JButton mediaListClearButton
protected DefaultListModel mediaListModel
protected JButton mediaListRemoveButton
PreferenceManager used to store and retrieve
preferences
public static final int OK_OPTION
The return value if 'OK' is chosen.
protected JTextField port
public static final String PREFERENCE_KEY_ALLOWED_EXTERNAL_RESOURCE_ORIGIN
public static final String PREFERENCE_KEY_ALLOWED_SCRIPT_ORIGIN
public static final String PREFERENCE_KEY_ANIMATION_RATE_LIMITING_CPU
public static final String PREFERENCE_KEY_ANIMATION_RATE_LIMITING_FPS
public static final String PREFERENCE_KEY_ANIMATION_RATE_LIMITING_MODE
public static final String PREFERENCE_KEY_AUTO_ADJUST_WINDOW
public static final String PREFERENCE_KEY_BROWSE_TITLE
public static final String PREFERENCE_KEY_CSS_MEDIA
public static final String PREFERENCE_KEY_DEFAULT_FONT_FAMILY
public static final String PREFERENCE_KEY_ENABLE_DOUBLE_BUFFERING
public static final String PREFERENCE_KEY_ENFORCE_SECURE_SCRIPTING
public static final String PREFERENCE_KEY_GRANT_SCRIPT_FILE_ACCESS
public static final String PREFERENCE_KEY_GRANT_SCRIPT_NETWORK_ACCESS
public static final String PREFERENCE_KEY_IS_XML_PARSER_VALIDATING
public static final String PREFERENCE_KEY_LABEL_ADD
public static final String PREFERENCE_KEY_LABEL_ALLOWED_RESOURCE_ORIGIN
public static final String PREFERENCE_KEY_LABEL_ALLOWED_SCRIPT_ORIGIN
public static final String PREFERENCE_KEY_LABEL_ALL_NETWORK
public static final String PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_CPU
public static final String PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_FPS
public static final String PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_UNLIMITED
public static final String PREFERENCE_KEY_LABEL_ANIMATION_RATE_LIMITING
public static final String PREFERENCE_KEY_LABEL_AUTO_ADJUST_WINDOW
public static final String PREFERENCE_KEY_LABEL_BROWSE
public static final String PREFERENCE_KEY_LABEL_CLEAR
public static final String PREFERENCE_KEY_LABEL_COLON
public static final String PREFERENCE_KEY_LABEL_CSS_MEDIA_TYPES
public static final String PREFERENCE_KEY_LABEL_ECMASCRIPT
public static final String PREFERENCE_KEY_LABEL_ENABLE_DOUBLE_BUFFERING
public static final String PREFERENCE_KEY_LABEL_ENABLE_USER_STYLESHEET
public static final String PREFERENCE_KEY_LABEL_ENFORCE_SECURE_SCRIPTING
public static final String PREFERENCE_KEY_LABEL_FILE_SYSTEM
public static final String PREFERENCE_KEY_LABEL_FPS
public static final String PREFERENCE_KEY_LABEL_GRANT_SCRIPTS_ACCESS_TO
public static final String PREFERENCE_KEY_LABEL_HOST
public static final String PREFERENCE_KEY_LABEL_HTTP_PROXY
public static final String PREFERENCE_KEY_LABEL_IS_XML_PARSER_VALIDATING
public static final String PREFERENCE_KEY_LABEL_JAVA_JAR_FILES
public static final String PREFERENCE_KEY_LABEL_LOAD_SCRIPTS
public static final String PREFERENCE_KEY_LABEL_ORIGIN_ANY
public static final String PREFERENCE_KEY_LABEL_ORIGIN_DOCUMENT
public static final String PREFERENCE_KEY_LABEL_ORIGIN_EMBEDDED
public static final String PREFERENCE_KEY_LABEL_ORIGIN_NONE
public static final String PREFERENCE_KEY_LABEL_OTHER_OPTIONS
public static final String PREFERENCE_KEY_LABEL_PERCENT
public static final String PREFERENCE_KEY_LABEL_PORT
public static final String PREFERENCE_KEY_LABEL_REMOVE
public static final String PREFERENCE_KEY_LABEL_RENDERING_OPTIONS
public static final String PREFERENCE_KEY_LABEL_SELECTION_XOR_MODE
public static final String PREFERENCE_KEY_LABEL_SHOW_DEBUG_TRACE
public static final String PREFERENCE_KEY_LABEL_SHOW_RENDERING
public static final String PREFERENCE_KEY_LABEL_USER_STYLESHEET
public static final String PREFERENCE_KEY_LANGUAGES
public static final String PREFERENCE_KEY_LOAD_ECMASCRIPT
public static final String PREFERENCE_KEY_LOAD_JAVA
public static final String PREFERENCE_KEY_PROXY_HOST
public static final String PREFERENCE_KEY_PROXY_PORT
public static final String PREFERENCE_KEY_SELECTION_XOR_MODE
public static final String PREFERENCE_KEY_SHOW_DEBUG_TRACE
public static final String PREFERENCE_KEY_SHOW_RENDERING
public static final String PREFERENCE_KEY_TITLE_DIALOG
public static final String PREFERENCE_KEY_TITLE_PREFIX
public static final String PREFERENCE_KEY_USER_STYLESHEET
public static final String PREFERENCE_KEY_USER_STYLESHEET_ENABLED
protected int returnCode
Code indicating whether the dialog was okayed or cancelled.
protected JCheckBox selectionXorMode
protected JCheckBox showDebugTrace
protected JCheckBox showRendering
protected JTextField userStylesheet
protected JButton userStylesheetBrowse
protected JCheckBox userStylesheetEnabled
protected JLabel userStylesheetLabel
Creates a new PreferenceDialog with the given model.
protected void addConfigPanel(String id, JPanel c)
Adds a panel to the configuration panel.
protected JPanel buildButtonsPanel()
Creates the OK/Cancel button panel.
protected JPanel buildGeneralPanel()
Builds the General panel.
protected void buildGUI()
Builds the UI for this dialog.
protected JPanel buildLanguagePanel()
Builds the Language panel.
protected JPanel buildNetworkPanel()
Builds the Network panel.
protected JPanel buildSecurityPanel()
Builds the Security panel.
protected JPanel buildStylesheetPanel()
Builds the Stylesheet panel.
Returns the preference manager used by this dialog.
protected void initializeGUI()
Initializes the GUI components with the values from the model.
protected static boolean isMetalSteel()
Returns whether the current LAF is Metal Steel.
protected void savePreferences()
Stores the current settings in the PreferenceManager model.
public int showDialog()
Shows the dialog.
protected void updateMediaListButtons()
Updates the disabled state of the buttons next to the media type list.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.