ComponentListener
, ImageObserver
, MenuContainer
, Serializable
, EventListener
, Accessible
, RootPaneContainer
, WindowConstants
, TemplateWizard.PageListener
, IDocumentContainer
, ITemplateContainer
, ITemplatePanel
, IXHTMLPanel
, org.xhtmlrenderer.extend.UserInterface
, org.xhtmlrenderer.simple.extend.FormSubmissionListener
public class RequestWizard extends TemplateWizard implements TemplateWizard.PageListener
The most important jGridstart user functionality is implemented here.
The wizard is based on TemplateWizard
, which uses html files for
page contents. These are present in this package as well, called
requestwizard-xx.html (with xx a decimal number).
TODO this could use some improvement, also to allow easier customization by certificate authorities.
Modifier and Type | Class | Description |
---|---|---|
protected class |
RequestWizard.GenerateWorker |
worker thread for generation of a certificate
|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Container.AccessibleAWTContainer
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
JDialog.AccessibleJDialog
TemplateWizard.PageListener
Window.AccessibleAWTWindow, Window.Type
Modifier and Type | Field | Description |
---|---|---|
protected CertificatePair |
cert |
the resulting CertificatePair, or null if not yet set
|
protected CertificatePair |
certParent |
the parent CertificatePair in case of a renewal
|
protected CertificateSelection |
selection |
CertificateSelection to select newly requested certificate
|
protected CertificateStore |
store |
CertificateStore to operate on
|
protected RequestWizard.GenerateWorker |
worker |
working thread
|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_MODALITY_TYPE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
accessibleContext, rootPane, rootPaneCheckingEnabled
btnLeft, btnRight, cancelAction, handler, nextAction, pages, pane, prevAction, step
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
Constructor | Description |
---|---|
RequestWizard(Dialog parent,
CertificatePair cert,
CertificateSelection sel) |
View form of existing CertificatePair
|
RequestWizard(Dialog parent,
CertificateStore store,
CertificatePair certParent,
CertificateSelection sel) |
Certificate renewal
|
RequestWizard(Dialog parent,
CertificateStore store,
CertificateSelection sel) |
New certificate request
|
RequestWizard(Frame parent,
CertificatePair cert,
CertificateSelection sel) |
View form of existing CertificatePair
|
RequestWizard(Frame parent,
CertificateStore store,
CertificatePair certParent,
CertificateSelection sel) |
Certificate renewal
|
RequestWizard(Frame parent,
CertificateStore store,
CertificateSelection sel) |
New certificate request
|
Modifier and Type | Method | Description |
---|---|---|
protected String |
getWizardContentsLine(int step,
int current) |
Returns the contents line for a page.
|
protected void |
initialize() |
Initialize and build the dialog
The background colour is set to the default control background colour as
specified by UIManager.
|
protected boolean |
isRenewal() |
Return whether we have a renewal or not
|
void |
pageEnter(TemplateWizard w,
int oldPage,
int curPage) |
called when page in wizard is changed
|
boolean |
pageLeave(TemplateWizard w,
int curPage,
int newPage) |
called before a page in wizard is changed
|
void |
setData(Properties p) |
Set the properties to use for the template and form elements.
|
void |
setStepDetect() |
Set the current step to the one that is relevant for the process.
|
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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMouseTrackingListener, componentHidden, componentMoved, componentResized, componentShown, data, getDocument, getDocument, getDocumentTitle, getDocumentTitle, getFormComponent, getFormComponents, getMouseTrackingListeners, getSharedContext, getURL, isActive, isFocus, isHover, print, refresh, reloadDocument, reloadDocument, removeMouseTrackingListener, replaceLinkListener, retrieveDocument, setBackground, setDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocumentFromString, setFormSubmissionListener, setHandler, setSharedContext, setStep, setStepRelative, setSubmitAction, setVisible, submit, updateWizardProperties
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
protected CertificateStore store
protected CertificateSelection selection
protected CertificatePair cert
protected CertificatePair certParent
protected RequestWizard.GenerateWorker worker
public RequestWizard(Frame parent, CertificateStore store, CertificateSelection sel)
public RequestWizard(Dialog parent, CertificateStore store, CertificateSelection sel)
public RequestWizard(Frame parent, CertificatePair cert, CertificateSelection sel)
public RequestWizard(Dialog parent, CertificatePair cert, CertificateSelection sel)
public RequestWizard(Frame parent, CertificateStore store, CertificatePair certParent, CertificateSelection sel)
public RequestWizard(Dialog parent, CertificateStore store, CertificatePair certParent, CertificateSelection sel)
protected boolean isRenewal()
public void setStepDetect()
protected void initialize()
TemplateWizard
initialize
in class TemplateWizard
public void setData(Properties p)
ITemplateContainer
Also reparses the document and updates the panel, if a template was set.
setData
in interface ITemplateContainer
setData
in class TemplateWizard
p
- New properties to setpublic boolean pageLeave(TemplateWizard w, int curPage, int newPage)
pageLeave
in interface TemplateWizard.PageListener
w
- Current TemplateWizardcurPage
- Page number almost leaving (index in pages)newPage
- Page number going to (index in pages)true
to continue, false
to stay on current pagepublic void pageEnter(TemplateWizard w, int oldPage, int curPage)
pageEnter
in interface TemplateWizard.PageListener
w
- Current TemplateWizardoldPage
- Page number previously shown (index in pages)curPage
- Page number just shown (index in pages)protected String getWizardContentsLine(int step, int current)
Default implementation returns a li item with an optional class
wizard-current
if it is the current page, or
wizard-future
if it is a step later than the current one.
This method adds a css class done when a step is finished for the state of the certificate.
getWizardContentsLine
in class TemplateWizard
step
- step to return contents for; index in TemplateWizard.pages
current
- the currently active stepCopyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.