Package com.lf.digester.wizard.generate
Class GenerateIntermediatePage
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.lf.digester.wizard.generate.GenerateIntermediatePage
- All Implemented Interfaces:
com.lf.commons.model.ConfigurableUnit
,com.lf.commons.wizard.WizardPage
,ItemListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
,DocumentListener
public class GenerateIntermediatePage
extends JPanel
implements com.lf.commons.wizard.WizardPage, ItemListener, DocumentListener, com.lf.commons.model.ConfigurableUnit
Shows the options for intermediate checksum generation (for XML files and calculate only).
- Since:
- 1.6
- Author:
- Axel Schwolow
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Mask value for option.static final int
Mask value for option.static final int
Mask value for option.Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gives notification that an attribute or set of attributes changed.void
configureUnit
(String id, com.lf.commons.config.Configuration config) Restores values from persistent data stores.Provides the GUI component to be displayed.com.lf.commons.config.Configuration
Provides the current user settings specified by user interaction.getIcon()
Provides the graphical icon of the page used for display.com.lf.commons.wizard.WizardPage
Provides the next page to be displayed by the dialog.Provides the text displayed by the overview (shorter than title).com.lf.commons.wizard.WizardPage[]
Provides the set of pages that are possibly displayed next.getTitle()
Provides the title of the page used for display.void
Gives notification that there was an insert into the document.void
itemStateChanged
(ItemEvent event) Reacts on check box selections.void
pageAdded
(com.lf.commons.wizard.WizardDialog parent) Informs the wizard page that it will soon be used by the wizard dialog.void
Informs the wizard page that it will be made invisible by the dialog.void
Informs the wizard page that it will be made visible by the dialog.void
Informs the wizard page that it was made invisible by the wizard.void
Informs the wizard page that it was made visible by the dialog.void
Gives notification that a portion of the document has been removed.void
setEmptyBorder
(EmptyBorder border) Sets the border to align the check boxes.void
setNextPage
(com.lf.commons.wizard.WizardPage page) Sets the next page to be displayed by the dialog.void
setSelection
(int mask) Sets the selected items, use AND concatenation of static values.void
setVerticalGap
(int gap) Sets the vertical gap between the check boxes.void
Stores the current configuration values persistently.void
unitRegistered
(com.lf.commons.model.ApplicationModel model, String id) Informs the configurable unit that it was registered with a model.void
unitUnregistered
(com.lf.commons.model.ApplicationModel model, String id) Informs the configurable unit that it was unregistered with a model.Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
BUTTON_NO_INTERMEDIATES
public static final int BUTTON_NO_INTERMEDIATESMask value for option.- See Also:
-
BUTTON_LINEAR
public static final int BUTTON_LINEARMask value for option.- See Also:
-
BUTTON_EXPONENTIAL
public static final int BUTTON_EXPONENTIALMask value for option.- See Also:
-
-
Constructor Details
-
GenerateIntermediatePage
public GenerateIntermediatePage()Constructor of this form.- Since:
- 1.6
-
-
Method Details
-
getTitle
Provides the title of the page used for display.- Specified by:
getTitle
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The page title
- Since:
- 1.6
-
getOverviewText
Provides the text displayed by the overview (shorter than title).- Specified by:
getOverviewText
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The overview text
- Since:
- 1.6
-
getIcon
Provides the graphical icon of the page used for display.- Specified by:
getIcon
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The page icon
- Since:
- 1.6
-
getComponent
Provides the GUI component to be displayed.- Specified by:
getComponent
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The GUI component, normally the subclass itself
- Since:
- 1.6
-
pageAdded
public void pageAdded(com.lf.commons.wizard.WizardDialog parent) Informs the wizard page that it will soon be used by the wizard dialog.- Specified by:
pageAdded
in interfacecom.lf.commons.wizard.WizardPage
- Parameters:
parent
- The wizard dialog- Since:
- 1.6
-
pageBecomesShown
public void pageBecomesShown()Informs the wizard page that it will be made visible by the dialog.- Specified by:
pageBecomesShown
in interfacecom.lf.commons.wizard.WizardPage
- Since:
- 1.6
-
pageBecomesHidden
public void pageBecomesHidden()Informs the wizard page that it will be made invisible by the dialog.- Specified by:
pageBecomesHidden
in interfacecom.lf.commons.wizard.WizardPage
- Since:
- 1.6
-
pageIsShowing
public void pageIsShowing()Informs the wizard page that it was made visible by the dialog. This is the right time to setup the dialog buttons as required. The "Back" button is set automatically depending on the pages on the stack before this method is called. The page can override the setting here.- Specified by:
pageIsShowing
in interfacecom.lf.commons.wizard.WizardPage
- Since:
- 1.6
-
pageIsHiding
public void pageIsHiding()Informs the wizard page that it was made invisible by the wizard.- Specified by:
pageIsHiding
in interfacecom.lf.commons.wizard.WizardPage
- Since:
- 1.6
-
setNextPage
public void setNextPage(com.lf.commons.wizard.WizardPage page) Sets the next page to be displayed by the dialog.- Specified by:
setNextPage
in interfacecom.lf.commons.wizard.WizardPage
- Parameters:
page
- The next page to be shown,null
means last page- Since:
- 1.6
-
getNextPage
public com.lf.commons.wizard.WizardPage getNextPage()Provides the next page to be displayed by the dialog.- Specified by:
getNextPage
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The next page to be shown,
null
means last page - Since:
- 1.6
-
getPossibleNextPages
public com.lf.commons.wizard.WizardPage[] getPossibleNextPages()Provides the set of pages that are possibly displayed next. The wizard class determines whether the page sequence is fixed or not. Fixed sequences allow the dialog to display the full overview containing all steps.- Specified by:
getPossibleNextPages
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The set of possible pages,
null
means last page - Since:
- 1.6
-
getConfiguration
public com.lf.commons.config.Configuration getConfiguration()Provides the current user settings specified by user interaction. The wizard calling routines can then perform actions based on the user settings.- Specified by:
getConfiguration
in interfacecom.lf.commons.wizard.WizardPage
- Returns:
- The page settings
- Since:
- 1.6
-
setSelection
public void setSelection(int mask) Sets the selected items, use AND concatenation of static values.- Parameters:
mask
- The selection mask- Since:
- 1.6
-
setEmptyBorder
Sets the border to align the check boxes.- Parameters:
border
- The border- Throws:
NullPointerException
- If parameters are invalid- Since:
- 1.6
-
setVerticalGap
public void setVerticalGap(int gap) Sets the vertical gap between the check boxes.- Parameters:
gap
- The gap in pixels- Since:
- 1.6
-
configureUnit
Restores values from persistent data stores.- Specified by:
configureUnit
in interfacecom.lf.commons.model.ConfigurableUnit
- Parameters:
id
- The unique identifier for the instanceconfig
- The configuration- Since:
- 1.6
-
storeUnit
Stores the current configuration values persistently.- Specified by:
storeUnit
in interfacecom.lf.commons.model.ConfigurableUnit
- Parameters:
id
- The unique identifier for the instanceconfig
- The configuration- Since:
- 1.6
-
unitRegistered
Informs the configurable unit that it was registered with a model.- Specified by:
unitRegistered
in interfacecom.lf.commons.model.ConfigurableUnit
- Parameters:
model
- The application modelid
- The unique identifier for the instance- Since:
- 1.6
-
unitUnregistered
Informs the configurable unit that it was unregistered with a model.- Specified by:
unitUnregistered
in interfacecom.lf.commons.model.ConfigurableUnit
- Parameters:
model
- The application modelid
- The unique identifier for the instance- Since:
- 1.6
-
itemStateChanged
Reacts on check box selections.- Specified by:
itemStateChanged
in interfaceItemListener
- Parameters:
event
- The event- Since:
- 1.6
-
changedUpdate
Gives notification that an attribute or set of attributes changed.- Specified by:
changedUpdate
in interfaceDocumentListener
- Parameters:
e
- Event object reference- Since:
- 1.5
-
insertUpdate
Gives notification that there was an insert into the document.- Specified by:
insertUpdate
in interfaceDocumentListener
- Parameters:
e
- Event object reference- Since:
- 1.5
-
removeUpdate
Gives notification that a portion of the document has been removed.- Specified by:
removeUpdate
in interfaceDocumentListener
- Parameters:
e
- Event object reference- Since:
- 1.5
-