public class PGPKeyChooserPage extends javax.swing.JPanel implements WizardPage, ConfigurableUnit
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.ImageIcon |
icon
The desired page icon.
|
protected static java.net.URL |
IMAGE
Default image.
|
protected WizardPage |
nextPage
Container with selection specific next pages.
|
protected java.lang.String |
overviewText
The text displayed by the overview.
|
protected WizardDialog |
parent
The parental dialog.
|
protected java.lang.String |
title
The text displayed as page title.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
PGPKeyChooserPage()
Constructor of this form.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeySet(java.lang.String id,
java.lang.String name,
javax.swing.ImageIcon icon,
com.didisoft.pgp.KeyPairInformation[] keyset)
Adds a new key set to be displayed by the key set chooser.
|
void |
configureUnit(java.lang.String id,
Configuration config)
Restores values from persistent data stores.
|
java.awt.Component |
getComponent()
Provides the GUI component to be displayed.
|
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.
|
PGPKeyPanel |
getKeyPanel()
Returns the panel showing the keys.
|
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).
|
WizardPage[] |
getPossibleNextPages()
Provides the set of pages that are possibly displayed next.
|
com.didisoft.pgp.KeyPairInformation |
getSelectedKey()
Returns the currently selected key from table.
|
com.didisoft.pgp.KeyPairInformation[] |
getSelectedKeys()
Returns the currently selected keys from table.
|
java.lang.String |
getTitle()
Provides the title of the page used for display.
|
boolean |
isMultiSelectionEnabled()
Provides the flag if multiple selection is enabled.
|
void |
pageAdded(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.
|
void |
reset()
Removes the installed key sets and enters initial state again.
|
void |
setIcon(javax.swing.ImageIcon icon)
Sets the page icon.
|
void |
setMultiSelectionEnabled(boolean enabled)
Sets the flag if multiple selection is enabled.
|
void |
setNextPage(WizardPage next)
Sets the page to follow this page.
|
void |
setOverviewText(java.lang.String text)
Sets the short overview text.
|
void |
setSelectedKey(com.didisoft.pgp.KeyPairInformation key)
Sets the currently selected key.
|
void |
setSelectedKeys(com.didisoft.pgp.KeyPairInformation[] keys)
Sets the currently selected keys (multiple selection only).
|
void |
setSelectedKeySet(java.lang.String id)
Sets the currently selected key set.
|
void |
setTextLabelKeySet(java.lang.String text)
Overwrites the text displayed by the label next to the combo box chooser.
|
void |
setTitle(java.lang.String title)
Sets the title text (one single line).
|
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.
|
protected void |
updateButtons()
Updates the buttons based on 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 static final java.net.URL IMAGE
protected java.lang.String title
protected java.lang.String overviewText
protected javax.swing.ImageIcon icon
protected WizardDialog parent
protected WizardPage nextPage
public PGPKeyChooserPage()
public java.lang.String getTitle()
getTitle
in interface WizardPage
public java.lang.String getOverviewText()
getOverviewText
in interface WizardPage
public javax.swing.ImageIcon getIcon()
getIcon
in interface WizardPage
public java.awt.Component getComponent()
getComponent
in interface WizardPage
public void pageAdded(WizardDialog parent)
pageAdded
in interface WizardPage
parent
- The wizard dialogpublic void pageBecomesShown()
pageBecomesShown
in interface WizardPage
public void pageBecomesHidden()
pageBecomesHidden
in interface WizardPage
public void pageIsShowing()
pageIsShowing
in interface WizardPage
public void pageIsHiding()
pageIsHiding
in interface WizardPage
public WizardPage getNextPage()
getNextPage
in interface WizardPage
null
means last pagepublic WizardPage[] getPossibleNextPages()
getPossibleNextPages
in interface WizardPage
null
means last pagepublic Configuration getConfiguration()
getConfiguration
in interface WizardPage
public void setTitle(java.lang.String title)
title
- The title textpublic void setOverviewText(java.lang.String text)
text
- The overview textpublic void setIcon(javax.swing.ImageIcon icon)
icon
- The page iconpublic void setNextPage(WizardPage next)
setNextPage
in interface WizardPage
next
- The next page if id is selected, null
means finishpublic void configureUnit(java.lang.String id, Configuration config)
configureUnit
in interface ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void storeUnit(java.lang.String id, Configuration config)
storeUnit
in interface ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void unitRegistered(ApplicationModel model, java.lang.String id)
unitRegistered
in interface ConfigurableUnit
model
- The application modelid
- The unique identifier for the instancepublic void unitUnregistered(ApplicationModel model, java.lang.String id)
unitUnregistered
in interface ConfigurableUnit
model
- The application modelid
- The unique identifier for the instancepublic void setMultiSelectionEnabled(boolean enabled)
enabled
- Multiple selection enabled?public boolean isMultiSelectionEnabled()
public com.didisoft.pgp.KeyPairInformation[] getSelectedKeys()
public void setSelectedKeys(com.didisoft.pgp.KeyPairInformation[] keys)
keys
- Desired selectionpublic com.didisoft.pgp.KeyPairInformation getSelectedKey()
null
public void setSelectedKey(com.didisoft.pgp.KeyPairInformation key)
key
- Desired selectionprotected void updateButtons()
public void addKeySet(java.lang.String id, java.lang.String name, javax.swing.ImageIcon icon, com.didisoft.pgp.KeyPairInformation[] keyset)
id
- The key set identifier, needs to be uniquename
- The textual representation for the combo boxicon
- The key set icon (optional)keyset
- The key candidatesjava.lang.NullPointerException
- If a parameter is null
java.lang.IllegalArgumentException
- If a parameter is invalidpublic void setTextLabelKeySet(java.lang.String text)
text
- The textpublic void reset()
public void setSelectedKeySet(java.lang.String id)
id
- The identifier of the key setjava.lang.IllegalArgumentException
- If a parameter is invalidpublic PGPKeyPanel getKeyPanel()
Copyright © 2005-2023 Leisenfels GmbH. All rights reserved.