public class OptionsPage
extends javax.swing.JPanel
implements com.lf.commons.wizard.WizardPage, java.awt.event.ItemListener, com.lf.commons.model.ConfigurableUnit
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JCheckBox |
checkBoxMD2_I18N |
protected javax.swing.JCheckBox |
checkBoxMD4_I18N |
protected javax.swing.JCheckBox |
checkBoxMD5_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD128_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD160_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD256_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD320_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA1_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA224_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA256_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA384_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA512_I18N |
protected javax.swing.JCheckBox |
checkBoxTiger_I18N |
protected javax.swing.JCheckBox |
checkBoxWhirlpool_I18N |
protected PGPKeyPanel |
panelKeys |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
OptionsPage()
Constructor method for i18n purposes only.
|
OptionsPage(SyncWizard parent)
Constructor of this form.
|
Modifier and Type | Method and Description |
---|---|
void |
configureUnit(java.lang.String id,
com.lf.commons.config.Configuration config)
Restores values from persistent data stores.
|
java.awt.Component |
getComponent()
Provides the GUI component to be displayed.
|
com.lf.commons.config.Configuration |
getConfiguration()
Provides the current user settings specified by user interaction.
|
javax.swing.ImageIcon |
getIcon()
Provides the graphical icon of the page used for display.
|
com.lf.commons.wizard.WizardPage |
getNextPage()
Provides the next page to be displayed by the dialog.
|
java.lang.String |
getOverviewText()
Provides the text displayed by the overview (shorter than title).
|
com.lf.commons.wizard.WizardPage[] |
getPossibleNextPages()
Provides the set of pages that are possibly displayed next.
|
java.lang.String |
getTitle()
Provides the title of the page used for display.
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
Reacts on check box selections.
|
protected void |
loadTemplate()
Load GUI components with template values.
|
void |
pageAdded(com.lf.commons.wizard.WizardDialog parent)
Informs the wizard page that it will soon be used by the wizard dialog.
|
void |
pageBecomesHidden()
Informs the wizard page that it will be made invisible by the dialog.
|
void |
pageBecomesShown()
Informs the wizard page that it will be made visible by the dialog.
|
void |
pageIsHiding()
Informs the wizard page that it was made invisible by the wizard.
|
void |
pageIsShowing()
Informs the wizard page that it was made visible by the dialog.
|
protected void |
setEnabledAlgos(boolean enabled)
Sets the algorithm box states.
|
protected void |
setEnabledKeys(boolean enabled)
Sets the key component states.
|
void |
setNextPage(com.lf.commons.wizard.WizardPage next)
Sets the page to follow this page.
|
protected void |
storeTemplate(com.lf.commons.config.Configuration config)
Stores the current GUI values into the given cache.
|
void |
storeUnit(java.lang.String id,
com.lf.commons.config.Configuration config)
Stores the current configuration values persistently.
|
void |
unitRegistered(com.lf.commons.model.ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was registered with a model.
|
void |
unitUnregistered(com.lf.commons.model.ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was unregistered with a model.
|
protected void |
updateComps()
Updates button states based upon the current selection.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected javax.swing.JCheckBox checkBoxMD2_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD128_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD320_I18N
protected javax.swing.JCheckBox checkBoxSHA256_I18N
protected javax.swing.JCheckBox checkBoxTiger_I18N
protected javax.swing.JCheckBox checkBoxMD4_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD160_I18N
protected javax.swing.JCheckBox checkBoxSHA1_I18N
protected javax.swing.JCheckBox checkBoxSHA384_I18N
protected javax.swing.JCheckBox checkBoxWhirlpool_I18N
protected javax.swing.JCheckBox checkBoxMD5_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD256_I18N
protected javax.swing.JCheckBox checkBoxSHA224_I18N
protected javax.swing.JCheckBox checkBoxSHA512_I18N
protected PGPKeyPanel panelKeys
public OptionsPage() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic OptionsPage(SyncWizard parent)
parent
- The dialogpublic java.lang.String getTitle()
getTitle
in interface com.lf.commons.wizard.WizardPage
public java.lang.String getOverviewText()
getOverviewText
in interface com.lf.commons.wizard.WizardPage
public javax.swing.ImageIcon getIcon()
getIcon
in interface com.lf.commons.wizard.WizardPage
public java.awt.Component getComponent()
getComponent
in interface com.lf.commons.wizard.WizardPage
public void pageAdded(com.lf.commons.wizard.WizardDialog parent)
pageAdded
in interface com.lf.commons.wizard.WizardPage
parent
- The wizard dialogpublic void pageBecomesShown()
pageBecomesShown
in interface com.lf.commons.wizard.WizardPage
protected void loadTemplate()
protected void storeTemplate(com.lf.commons.config.Configuration config)
config
- The configurationpublic void pageBecomesHidden()
pageBecomesHidden
in interface com.lf.commons.wizard.WizardPage
public void pageIsShowing()
pageIsShowing
in interface com.lf.commons.wizard.WizardPage
public void pageIsHiding()
pageIsHiding
in interface com.lf.commons.wizard.WizardPage
public com.lf.commons.wizard.WizardPage getNextPage()
getNextPage
in interface com.lf.commons.wizard.WizardPage
null
means last pagepublic com.lf.commons.wizard.WizardPage[] getPossibleNextPages()
getPossibleNextPages
in interface com.lf.commons.wizard.WizardPage
null
means last pagepublic com.lf.commons.config.Configuration getConfiguration()
getConfiguration
in interface com.lf.commons.wizard.WizardPage
public void setNextPage(com.lf.commons.wizard.WizardPage next)
setNextPage
in interface com.lf.commons.wizard.WizardPage
next
- The next page if id is selected, null
means finishpublic void configureUnit(java.lang.String id, com.lf.commons.config.Configuration config)
configureUnit
in interface com.lf.commons.model.ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void storeUnit(java.lang.String id, com.lf.commons.config.Configuration config)
storeUnit
in interface com.lf.commons.model.ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void unitRegistered(com.lf.commons.model.ApplicationModel model, java.lang.String id)
unitRegistered
in interface com.lf.commons.model.ConfigurableUnit
model
- The application modelid
- The unique identifier for the instancepublic void unitUnregistered(com.lf.commons.model.ApplicationModel model, java.lang.String id)
unitUnregistered
in interface com.lf.commons.model.ConfigurableUnit
model
- The application modelid
- The unique identifier for the instanceprotected void updateComps()
protected void setEnabledAlgos(boolean enabled)
enabled
- Enable?protected void setEnabledKeys(boolean enabled)
enabled
- Enable?public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- The eventCopyright © 2005-2015 Leisenfels UG. All rights reserved.