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:
  • Field Details

    • BUTTON_NO_INTERMEDIATES

      public static final int BUTTON_NO_INTERMEDIATES
      Mask value for option.
      See Also:
    • BUTTON_LINEAR

      public static final int BUTTON_LINEAR
      Mask value for option.
      See Also:
    • BUTTON_EXPONENTIAL

      public static final int BUTTON_EXPONENTIAL
      Mask value for option.
      See Also:
  • Constructor Details

    • GenerateIntermediatePage

      public GenerateIntermediatePage()
      Constructor of this form.

      Since:
      1.6
  • Method Details

    • getTitle

      public String getTitle()
      Provides the title of the page used for display.

      Specified by:
      getTitle in interface com.lf.commons.wizard.WizardPage
      Returns:
      The page title
      Since:
      1.6
    • getOverviewText

      public String getOverviewText()
      Provides the text displayed by the overview (shorter than title).

      Specified by:
      getOverviewText in interface com.lf.commons.wizard.WizardPage
      Returns:
      The overview text
      Since:
      1.6
    • getIcon

      public ImageIcon getIcon()
      Provides the graphical icon of the page used for display.

      Specified by:
      getIcon in interface com.lf.commons.wizard.WizardPage
      Returns:
      The page icon
      Since:
      1.6
    • getComponent

      public Component getComponent()
      Provides the GUI component to be displayed.

      Specified by:
      getComponent in interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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

      public void setEmptyBorder(EmptyBorder border)
      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

      public void configureUnit(String id, com.lf.commons.config.Configuration config)
      Restores values from persistent data stores.

      Specified by:
      configureUnit in interface com.lf.commons.model.ConfigurableUnit
      Parameters:
      id - The unique identifier for the instance
      config - The configuration
      Since:
      1.6
    • storeUnit

      public void storeUnit(String id, com.lf.commons.config.Configuration config)
      Stores the current configuration values persistently.

      Specified by:
      storeUnit in interface com.lf.commons.model.ConfigurableUnit
      Parameters:
      id - The unique identifier for the instance
      config - The configuration
      Since:
      1.6
    • unitRegistered

      public void unitRegistered(com.lf.commons.model.ApplicationModel model, String id)
      Informs the configurable unit that it was registered with a model.

      Specified by:
      unitRegistered in interface com.lf.commons.model.ConfigurableUnit
      Parameters:
      model - The application model
      id - The unique identifier for the instance
      Since:
      1.6
    • unitUnregistered

      public void unitUnregistered(com.lf.commons.model.ApplicationModel model, String id)
      Informs the configurable unit that it was unregistered with a model.

      Specified by:
      unitUnregistered in interface com.lf.commons.model.ConfigurableUnit
      Parameters:
      model - The application model
      id - The unique identifier for the instance
      Since:
      1.6
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Reacts on check box selections.

      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      event - The event
      Since:
      1.6
    • changedUpdate

      public void changedUpdate(DocumentEvent e)
      Gives notification that an attribute or set of attributes changed.

      Specified by:
      changedUpdate in interface DocumentListener
      Parameters:
      e - Event object reference
      Since:
      1.5
    • insertUpdate

      public void insertUpdate(DocumentEvent e)
      Gives notification that there was an insert into the document.

      Specified by:
      insertUpdate in interface DocumentListener
      Parameters:
      e - Event object reference
      Since:
      1.5
    • removeUpdate

      public void removeUpdate(DocumentEvent e)
      Gives notification that a portion of the document has been removed.

      Specified by:
      removeUpdate in interface DocumentListener
      Parameters:
      e - Event object reference
      Since:
      1.5