public class PreferencePanel extends EDialog
EDialog.MoveComponentListener
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected Library |
curLib |
protected Technology |
curTech |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
PreferencePanel(java.awt.Frame parent,
boolean modal) |
PreferencePanel(PreferencesFrame parent,
boolean modal) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(Setting setting)
Method to get the boolean value on the Setting object.
|
protected double |
getDouble(Setting setting)
Method to get the double value on the Setting object.
|
protected EditingPreferences |
getEditingPreferences() |
protected java.lang.String |
getFormattedDouble(Setting setting)
Method to get string representation of the double value on the Setting object.
|
int |
getInt(Setting setting)
Method to get the integer value on the Setting object.
|
protected long |
getLong(Setting setting)
Method to get the long value on the Setting object.
|
java.lang.String |
getName()
return the name of this preferences tab.
|
javax.swing.JPanel |
getProjectPreferencesPanel()
return the JPanel to use for the project preferences.
|
java.lang.String |
getString(Setting setting)
Method to get the string value on the Setting object.
|
Technology |
getTech()
Method to return the current technology for use in all preferences tabs.
|
protected TechPool |
getTechPool() |
javax.swing.JPanel |
getUserPreferencesPanel()
return the JPanel to use for the user preferences.
|
void |
init()
Method called at the start of the dialog.
|
boolean |
isInited()
Method to tell whether this preferences tab has been initialized.
|
protected void |
putPrefs(PrefPackage pp)
Method to Save options from specified PrefPackage into Electric Preferences subtree.
|
void |
reset()
Method called when the factory reset is requested.
|
boolean |
resetThis()
Method called when the factory reset is requested for just one panel.
|
void |
setBoolean(Setting setting,
boolean v)
Method to set a new boolean value on Setting object.
|
protected void |
setDouble(Setting setting,
double v)
Method to set a new double value on Setting object.
|
protected void |
setEditingPreferences(EditingPreferences ep) |
void |
setInited()
Method to mark that this preferences tab has been initialized.
|
void |
setInt(Setting setting,
int v)
Method to set a new integer value on Setting object.
|
protected void |
setLong(Setting setting,
long v)
Method to set a new long value on Setting object.
|
void |
setString(Setting setting,
java.lang.String str)
Method to set a new string value on Setting object.
|
void |
term()
Method called when the "OK" panel is hit.
|
centerSelection, closeDialog, ensureComboBoxFont, ensureMinimumSize, escapePressed, finishInitialization, focusClearOnTextField, focusOnTextField, getDialogLocation, getDialogSize, makeTextFieldSelectAllOnTab, recursivelyHighlight
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, 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
protected Technology curTech
protected Library curLib
public PreferencePanel(java.awt.Frame parent, boolean modal)
public PreferencePanel(PreferencesFrame parent, boolean modal)
public javax.swing.JPanel getUserPreferencesPanel()
public javax.swing.JPanel getProjectPreferencesPanel()
public java.lang.String getName()
getName
in class java.awt.Component
public boolean isInited()
public void setInited()
public Technology getTech()
public void init()
public void term()
public void reset()
public boolean resetThis()
protected void putPrefs(PrefPackage pp)
pp
- PrefPackage with option valuesprotected TechPool getTechPool()
protected EditingPreferences getEditingPreferences()
protected void setEditingPreferences(EditingPreferences ep)
public boolean getBoolean(Setting setting)
setting
- setting object.public int getInt(Setting setting)
setting
- setting object.protected long getLong(Setting setting)
setting
- setting object.protected double getDouble(Setting setting)
setting
- setting object.protected java.lang.String getFormattedDouble(Setting setting)
setting
- setting object.public java.lang.String getString(Setting setting)
setting
- setting objectpublic void setBoolean(Setting setting, boolean v)
setting
- Setting object.v
- the new boolean value of Setting object.public void setInt(Setting setting, int v)
setting
- Setting object.v
- the new integer value of Setting object.protected void setLong(Setting setting, long v)
setting
- Setting object.v
- the new long value of Setting object.protected void setDouble(Setting setting, double v)
setting
- Setting object.v
- the new double value of Setting object.public void setString(Setting setting, java.lang.String str)
setting
- Setting object.str
- the new string value of Setting object.