Class FWProcessorButtonFormComponent

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, FWObserver

public class FWProcessorButtonFormComponent extends FWAbstractFormComponent implements ActionListener
Author:
Andreas Enders Form component that runs a processor while klicking on the given button.
Parameter Description
type type of button from static list of types, default: go.
See Also:
  • Constructor Details

    • FWProcessorButtonFormComponent

      public FWProcessorButtonFormComponent(String aFormId, String aFieldId, boolean aShowBorder, org.jdom2.Element aParameters, FWObservable aObservabal)
      Parameters:
      aFormId -
      aFieldId -
      aShowBorder -
      aParameters -
      aObservabal -
  • Method Details

    • getValue

      public String getValue()
      If used for file selection, returns the currently selected file or null if the current selection is a directory, does not exist or is not a valid file.

      If used for directory selection, returns the currently selected directory, the parent directory of the currently selected file or null if the current selection does not exist or is not a valid file or directory.

      Specified by:
      getValue in class FWAbstractFormComponent
      Returns:
      value of the implemented component
    • setValue

      public void setValue(Object aValue)
      Constructs a File from aValue and calls @link setValue( File ) with it
      Specified by:
      setValue in class FWAbstractFormComponent
      Parameters:
      aValue - of the implemented component
    • setEnabled

      public void setEnabled(boolean aNewState)
      Overrides:
      setEnabled in class JComponent
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Display a standard file/directory selection dialog and save the result
      Specified by:
      actionPerformed in interface ActionListener
    • update

      public void update(FWObservable aObservable, Object aKeyOfParameterChanged)
      Description copied from class: FWAbstractFormComponent
      updates different functions like enableing of the Component
      Specified by:
      update in interface FWObserver
      Overrides:
      update in class FWAbstractFormComponent
      Parameters:
      aObservable - the observable object.
      aKeyOfParameterChanged - an argument passed to the notifyObservers method.
      See Also:
    • processFormFiller

      public void processFormFiller()
      Specified by:
      processFormFiller in class FWAbstractFormComponent
    • getValueCell

      protected com.lowagie.text.Rectangle getValueCell(int aType)
      Description copied from class: FWAbstractFormComponent
      returns the value label to use for generating rtf, pdf or html version of the form
      Specified by:
      getValueCell in class FWAbstractFormComponent
      Returns:
      iText Cell