public class PGPImportWizard extends WizardDialog
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 boolean |
allowMultipleKeys
May the user specify multiple keys to be imported (default:
true )? |
protected boolean |
allowMultipleTargets
May the user specify multiple target files (default:
true )? |
protected FileSystemPage |
pageFileSystem
The file system page to specify the target file(s).
|
protected PGPKeyChooserPage |
pageKeys
The page to specify the key(s) to be imported.
|
protected java.io.File[] |
targets
The file(s) to be imported, file system chooser is displayed if not specified.
|
protected com.didisoft.pgp.KeyStore |
tempKeystore
The keys are temporarily store into a OpenPGP key store.
|
BUTTON_BACK, BUTTON_CANCEL, BUTTON_FINISH, BUTTON_NEXT, buttonBack_I18N, buttonCancel_I18N, buttonFinish_I18N, buttonHelp, buttonNext_I18N, exitButton, listeners, mode, MODE_DYNAMIC, MODE_STATIC, sequence, stack, startingPage, statusBar
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
PGPImportWizard()
Constructor method for i18n purposes only.
|
PGPImportWizard(java.awt.Frame owner)
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
void |
addChoosableFileFilter(SuffixFilter filter)
Add a new file suffix filter for the
FileSystemPage . |
void |
configureUnit(java.lang.String id,
Configuration config)
Restores values from persistent data stores.
|
protected void |
finalize()
Clean-up method to help the gc.
|
Configuration |
getConfiguration()
Assembles the page configurations so that the generation can be started based on settings.
|
com.didisoft.pgp.KeyStore |
getKeyStore()
Provides the temporary key store holding the displayed keys.
|
FileSystemPage |
getPageFileSystem()
Provides the file system page to specify a target file.
|
PGPKeyChooserPage |
getPageKeys()
Provides the page to specify the recipient key(s).
|
void |
reset()
Resets the wizard to default values.
|
void |
setMultipleKeys(boolean value)
May the user specify multiple keys to be imported (default:
true )? |
void |
setMultipleTargets(boolean value)
May the user specify multiple target files (default:
true )? |
void |
setTargets(java.io.File[] targets)
The file(s) to be imported, file system chooser is displayed if not specified.
|
void |
setupPages()
Configures the wizard's pages according to the current settings.
|
void |
storeUnit(java.lang.String id,
Configuration config)
Stores the current configuration values persistently.
|
void |
unitRegistered(ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was registered with a model.
|
void |
unitUnregistered(ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was unregistered with a model.
|
actionPerformed, addWizardPageListener, allowConfirmOnKeyStroke, allowEscapeOnKeyStroke, clickButton, getCurrentPage, getExitButton, getPreviousPage, getPreviousPages, getStatusBar, isButtonEnabled, removeLookAndFeelListener, setButtonEnabled, setDividerLocation, setEnabledBack, setEnabledCancel, setEnabledFinish, setEnabledNext, setHelpID, setOverviewText, setStartingPage, setVisible, showPage, updateOverview, updatePageIcon
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, 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
protected FileSystemPage pageFileSystem
protected PGPKeyChooserPage pageKeys
protected boolean allowMultipleTargets
true
)?protected java.io.File[] targets
protected boolean allowMultipleKeys
true
)?protected com.didisoft.pgp.KeyStore tempKeystore
public PGPImportWizard() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic PGPImportWizard(java.awt.Frame owner)
owner
- The owner frameprotected void finalize() throws java.lang.Throwable
finalize
in class WizardDialog
java.lang.Throwable
- Error indicationpublic Configuration getConfiguration()
null
if wizard has not been finished or error casepublic void configureUnit(java.lang.String id, Configuration config)
configureUnit
in interface ConfigurableUnit
configureUnit
in class WizardDialog
id
- The unique identifier for the instanceconfig
- The configurationpublic void storeUnit(java.lang.String id, Configuration config)
storeUnit
in interface ConfigurableUnit
storeUnit
in class WizardDialog
id
- The unique identifier for the instanceconfig
- The configurationpublic void unitRegistered(ApplicationModel model, java.lang.String id)
unitRegistered
in interface ConfigurableUnit
unitRegistered
in class WizardDialog
model
- The application modelid
- The unique identifier for the instancepublic void unitUnregistered(ApplicationModel model, java.lang.String id)
unitUnregistered
in interface ConfigurableUnit
unitUnregistered
in class WizardDialog
model
- The application modelid
- The unique identifier for the instancepublic FileSystemPage getPageFileSystem()
null
public PGPKeyChooserPage getPageKeys()
null
public void setMultipleTargets(boolean value)
true
)?
value
- The propertypublic void setTargets(java.io.File[] targets)
targets
- The propertyjava.lang.NullPointerException
- If a parameter is null
java.lang.IllegalArgumentException
- If a parameter is invalidpublic void setMultipleKeys(boolean value)
true
)?
value
- The propertypublic void addChoosableFileFilter(SuffixFilter filter)
FileSystemPage
.
filter
- The new suffix filterpublic void reset()
setupPages()
after the wizard has been configured.
public void setupPages()
public com.didisoft.pgp.KeyStore getKeyStore()
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.