public class PreferenceDialog extends JDialog implements GridBagConstants
Modifier and Type | Class and Description |
---|---|
protected class |
PreferenceDialog.JConfigurationPanel
A paged panel for configuration windows.
|
JDialog.AccessibleJDialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, rootPane, rootPaneCheckingEnabled
DEFAULT_MODALITY_TYPE
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTH, CENTER, EAST, HORIZONTAL, NONE, NORTH, NORTHEAST, NORTHWEST, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, WEST
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PreferenceDialog(Frame owner,
PreferenceManager model)
Creates a new PreferenceDialog with the given model.
|
Modifier and Type | Method and Description |
---|---|
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.
|
PreferenceManager |
getPreferenceManager()
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.
|
int |
showDialog()
Shows the dialog.
|
protected void |
updateMediaListButtons()
Updates the disabled state of the buttons next to the media type list.
|
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 final int OK_OPTION
public static final int CANCEL_OPTION
public static final String PREFERENCE_KEY_TITLE_PREFIX
public static final String PREFERENCE_KEY_TITLE_DIALOG
public static final String PREFERENCE_KEY_LABEL_RENDERING_OPTIONS
public static final String PREFERENCE_KEY_LABEL_ANIMATION_RATE_LIMITING
public static final String PREFERENCE_KEY_LABEL_OTHER_OPTIONS
public static final String PREFERENCE_KEY_LABEL_ENABLE_DOUBLE_BUFFERING
public static final String PREFERENCE_KEY_LABEL_SHOW_RENDERING
public static final String PREFERENCE_KEY_LABEL_AUTO_ADJUST_WINDOW
public static final String PREFERENCE_KEY_LABEL_SELECTION_XOR_MODE
public static final String PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_CPU
public static final String PREFERENCE_KEY_LABEL_PERCENT
public static final String PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_FPS
public static final String PREFERENCE_KEY_LABEL_FPS
public static final String PREFERENCE_KEY_LABEL_ANIMATION_LIMIT_UNLIMITED
public static final String PREFERENCE_KEY_LABEL_SHOW_DEBUG_TRACE
public static final String PREFERENCE_KEY_LABEL_IS_XML_PARSER_VALIDATING
public static final String PREFERENCE_KEY_LABEL_GRANT_SCRIPTS_ACCESS_TO
public static final String PREFERENCE_KEY_LABEL_LOAD_SCRIPTS
public static final String PREFERENCE_KEY_LABEL_ALLOWED_SCRIPT_ORIGIN
public static final String PREFERENCE_KEY_LABEL_ALLOWED_RESOURCE_ORIGIN
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_ALL_NETWORK
public static final String PREFERENCE_KEY_LABEL_JAVA_JAR_FILES
public static final String PREFERENCE_KEY_LABEL_ECMASCRIPT
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_USER_STYLESHEET
public static final String PREFERENCE_KEY_LABEL_CSS_MEDIA_TYPES
public static final String PREFERENCE_KEY_LABEL_ENABLE_USER_STYLESHEET
public static final String PREFERENCE_KEY_LABEL_BROWSE
public static final String PREFERENCE_KEY_LABEL_ADD
public static final String PREFERENCE_KEY_LABEL_REMOVE
public static final String PREFERENCE_KEY_LABEL_CLEAR
public static final String PREFERENCE_KEY_LABEL_HTTP_PROXY
public static final String PREFERENCE_KEY_LABEL_HOST
public static final String PREFERENCE_KEY_LABEL_PORT
public static final String PREFERENCE_KEY_LABEL_COLON
public static final String PREFERENCE_KEY_BROWSE_TITLE
public static final String PREFERENCE_KEY_LANGUAGES
public static final String PREFERENCE_KEY_IS_XML_PARSER_VALIDATING
public static final String PREFERENCE_KEY_USER_STYLESHEET
public static final String PREFERENCE_KEY_USER_STYLESHEET_ENABLED
public static final String PREFERENCE_KEY_SHOW_RENDERING
public static final String PREFERENCE_KEY_AUTO_ADJUST_WINDOW
public static final String PREFERENCE_KEY_ENABLE_DOUBLE_BUFFERING
public static final String PREFERENCE_KEY_SHOW_DEBUG_TRACE
public static final String PREFERENCE_KEY_SELECTION_XOR_MODE
public static final String PREFERENCE_KEY_PROXY_HOST
public static final String PREFERENCE_KEY_CSS_MEDIA
public static final String PREFERENCE_KEY_DEFAULT_FONT_FAMILY
public static final String PREFERENCE_KEY_PROXY_PORT
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_LOAD_ECMASCRIPT
public static final String PREFERENCE_KEY_LOAD_JAVA
public static final String PREFERENCE_KEY_ALLOWED_SCRIPT_ORIGIN
public static final String PREFERENCE_KEY_ALLOWED_EXTERNAL_RESOURCE_ORIGIN
public static final String PREFERENCE_KEY_ANIMATION_RATE_LIMITING_MODE
public static final String PREFERENCE_KEY_ANIMATION_RATE_LIMITING_CPU
public static final String PREFERENCE_KEY_ANIMATION_RATE_LIMITING_FPS
public static final String LABEL_OK
public static final String LABEL_CANCEL
protected PreferenceManager model
PreferenceManager
used to store and retrieve
preferencesprotected PreferenceDialog.JConfigurationPanel configurationPanel
protected JCheckBox userStylesheetEnabled
protected JLabel userStylesheetLabel
protected JTextField userStylesheet
protected JButton userStylesheetBrowse
protected JCheckBox showRendering
protected JCheckBox autoAdjustWindow
protected JCheckBox enableDoubleBuffering
protected JCheckBox showDebugTrace
protected JCheckBox selectionXorMode
protected JCheckBox isXMLParserValidating
protected JRadioButton animationLimitUnlimited
protected JRadioButton animationLimitCPU
protected JRadioButton animationLimitFPS
protected JLabel animationLimitCPULabel
protected JLabel animationLimitFPSLabel
protected JTextField animationLimitCPUAmount
protected JTextField animationLimitFPSAmount
protected JCheckBox enforceSecureScripting
protected JCheckBox grantScriptFileAccess
protected JCheckBox grantScriptNetworkAccess
protected JCheckBox loadJava
protected JCheckBox loadEcmascript
protected JComboBox allowedScriptOrigin
protected JComboBox allowedResourceOrigin
protected JList mediaList
protected JButton mediaListRemoveButton
protected JButton mediaListClearButton
protected JTextField host
protected JTextField port
protected LanguageDialog.Panel languagePanel
protected DefaultListModel mediaListModel
protected int returnCode
public PreferenceDialog(Frame owner, PreferenceManager model)
protected static boolean isMetalSteel()
public PreferenceManager getPreferenceManager()
protected void initializeGUI()
protected void savePreferences()
protected void buildGUI()
protected void addConfigPanel(String id, JPanel c)
protected JPanel buildButtonsPanel()
protected JPanel buildGeneralPanel()
protected JPanel buildSecurityPanel()
protected JPanel buildLanguagePanel()
protected JPanel buildStylesheetPanel()
protected void updateMediaListButtons()
protected JPanel buildNetworkPanel()
public int showDialog()
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.