Klasse FWAbstractFormComponent

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.simplace.pipe.formcomponents.FWAbstractFormComponent
Alle implementierten Schnittstellen:
ImageObserver, MenuContainer, Serializable, Accessible, FWObserver
Bekannte direkte Unterklassen:
FWAbstractExtendedFormComponent, FWCalibrationFormComponent, FWChartFormComponent, FWCheckValueFormComponent, FWChoiceFormComponent, FWDatabaseAccessFormComponent, FWDateFormComponent, FWDoubleFormComponent, FWFileChooserFormComponent, FWGroupFormComponent, FWHeaderFormComponent, FWImageFormComponent, FWIntegerFormComponent, FWLabelFormComponent, FWMemoryMonitorFormComponent, FWPasswordFormComponent, FWProcessorButtonFormComponent, FWProgressFormComponent, FWResultFormComponent, FWTableFormComponent, FWTextFormComponent, FWTreeFormComponent

public abstract class FWAbstractFormComponent extends JPanel implements FWObserver
This panel is supposed to be overwritten by component implementing classes that should be used to be shown in FWFormPanel. It implements Observer to be updated while one other component changes his value. It offers the notifyDependentComponents-function to update the observable with the current value of this component. The observable will then inform all other components about this change. It is up to the implementations of this abstract class to call notifyDependentComponents whenever necessary! Implementations can use own configurations via XML. Feel free to use them as you need, but call the superconstructor before beginning.
Autor:
Andreas Enders, Christoph Kunze
Siehe auch:
  • Felddetails

    • iObservable

      protected FWObservable iObservable
    • iDetachContentPanel

      protected JPanel iDetachContentPanel
    • DETACH_TRUE

      public static final int DETACH_TRUE
      Component is to be detachable
      Siehe auch:
    • DETACH_FALSE

      public static final int DETACH_FALSE
      Default! Component looks and behaves as any other component
      Siehe auch:
    • DETACH_AUTO

      public static final int DETACH_AUTO
      Component detaches automatically while opening the form
      Siehe auch:
    • DETACH_BUTTON

      public static final int DETACH_BUTTON
      Component shows only a frame - while klicking the frame is extended and outpoped.
      Siehe auch:
    • DETACH_LINKED

      public static final int DETACH_LINKED
      Component detaches automatically while opening the form, but stays linked
      Siehe auch:
    • DETATCH_BORDER_WIDTH

      protected static final int DETATCH_BORDER_WIDTH
      Siehe auch:
    • DETATCH_BORDER_DEFAULT_COLOR

      protected static final Color DETATCH_BORDER_DEFAULT_COLOR
    • DETATCH_BORDER_HIGHLIGHT_COLOR

      protected static final Color DETATCH_BORDER_HIGHLIGHT_COLOR
    • DETATCH_BUTTON_DEFAULT_IMAGE

      protected static final ImageIcon DETATCH_BUTTON_DEFAULT_IMAGE
    • DETATCH_BUTTON_HIGHLIGHT_IMAGE

      protected static final ImageIcon DETATCH_BUTTON_HIGHLIGHT_IMAGE
    • DETATCH_BUTTON_DISABLED_IMAGE

      protected static final ImageIcon DETATCH_BUTTON_DISABLED_IMAGE
    • COPY_BUTTON_DEFAULT_IMAGE

      protected static final ImageIcon COPY_BUTTON_DEFAULT_IMAGE
    • COPY_BUTTON_HIGHLIGHT_IMAGE

      protected static final ImageIcon COPY_BUTTON_HIGHLIGHT_IMAGE
    • COPY_BUTTON_DISABLED_IMAGE

      protected static final ImageIcon COPY_BUTTON_DISABLED_IMAGE
    • EXPORT_BUTTON_DEFAULT_IMAGE

      protected static final ImageIcon EXPORT_BUTTON_DEFAULT_IMAGE
    • EXPORT_BUTTON_HIGHLIGHT_IMAGE

      protected static final ImageIcon EXPORT_BUTTON_HIGHLIGHT_IMAGE
    • EXPORT_BUTTON_DISABLED_IMAGE

      protected static final ImageIcon EXPORT_BUTTON_DISABLED_IMAGE
  • Konstruktordetails

    • FWAbstractFormComponent

      protected FWAbstractFormComponent()
      Parameter:
      aFormID - of form, this component is placed in
      aFieldID - making this compontent unique
      aShowLabel - if label should be shown. For Use in table use false, otherwise true
    • FWAbstractFormComponent

      protected FWAbstractFormComponent(String aFormID, String aFieldID, boolean aShowLabel, org.jdom2.Element aFormElement, FWObservable aObservable)
      Parameter:
      aFormID - of form, this component is placed in
      aFieldID - making this compontent unique
      aShowLabel - if label should be shown. For Use in table use false, otherwise true
      aFormElement -
      aObservable -
    • FWAbstractFormComponent

      protected FWAbstractFormComponent(String aFormID, String aFieldID, boolean aShowLabel, int aDetachable, org.jdom2.Element aFormElement, FWObservable aObservable)
      Parameter:
      aFormID - of form, this component is placed in
      aFieldID - making this compontent unique
      aShowLabel - if label should be shown. For Use in table use false, otherwise true
      aDetachable -
      aFormElement -
      aObservable -
  • Methodendetails

    • init

      protected void init(String aFormID, String aFieldID, boolean aShowLabel, int aDetachable, org.jdom2.Element aFormElement, FWObservable aObservable)
      Parameter:
      aFormID -
      aFieldID -
      aShowLabel -
      aDetachable -
      aFormElement -
      aObservable -
    • setUpDetachControl

      protected void setUpDetachControl(int aDetachability)
      Parameter:
      aDetachability -
    • getValue

      public abstract Object getValue()
      Gibt zurück:
      value of the implemented component
    • setValue

      public abstract void setValue(Object aValue)
      Parameter:
      aValue - of the implemented component
    • processFormFiller

      public abstract void processFormFiller()
      Parameter:
      value - of the implemented component
    • getFieldID

      public String getFieldID()
      Gibt zurück:
      field id of the implemented component
    • setFormID

      public void setFormID(String aFormID)
      Parameter:
      aFormID -
    • getFormID

      public String getFormID()
      Gibt zurück:
      form id of the implemented component
    • setFieldID

      public void setFieldID(String aFieldID)
      Parameter:
      aFieldID -
    • getFormElement

      public org.jdom2.Element getFormElement()
      Gibt zurück:
      the formElement
    • getOriginalComponentParameteterValue

      protected String getOriginalComponentParameteterValue(String aKey)
      Parameter:
      aKey -
      Gibt zurück:
      the Value of the given parameter key in FormElement parameters
    • getComponentParameteterValue

      protected String getComponentParameteterValue(String aKey)
      Parameter:
      aKey -
      Gibt zurück:
      the Value of the given parameterkey in FormElement parameters
    • isRequired

      public boolean isRequired()
      Gibt zurück:
      if form is required
    • setRequired

      public void setRequired(boolean aRequiredness)
      Parameter:
      aRequiredness -
    • isEnabled

      public boolean isEnabled()
      Setzt außer Kraft:
      isEnabled in Klasse Component
      Gibt zurück:
      if formcomponent is enabled
    • notifyDependentComponents

      protected void notifyDependentComponents()
      Updates the functionalities' parameter map with the current value of this control so other form components that observe the parameter map get notified. Implementations MUST call this function, whenever their value changes.
    • getConfiguration

      protected org.jdom2.Element getConfiguration()
      gets the detailed configuration of the Processor.
      Gibt zurück:
      the configuration Element
    • setConfiguration

      protected void setConfiguration(String aClassname, org.jdom2.Element aConfigurationElement)
      sets the detailed configuration of a Processor.
      Parameter:
      aClassname -
      aConfigurationElement -
    • hasConfiguration

      protected boolean hasConfiguration()
      gets the detailed configuration of the Processor.
      Gibt zurück:
      if component has a special configuration
    • getLocaleValue

      protected String getLocaleValue(String aKey, String aDefault)
      This method limits the coding for reading values from the locale.
      Parameter:
      aKey -
      aDefault -
      Gibt zurück:
    • getLocaleValue

      protected String getLocaleValue(String aKey)
      This method limits the coding for reading values from the locale.
      Parameter:
      aKey -
      Gibt zurück:
    • getPreferredSize

      public Dimension getPreferredSize()
      Setzt außer Kraft:
      getPreferredSize in Klasse JComponent
    • getMaximumSize

      public Dimension getMaximumSize()
      Setzt außer Kraft:
      getMaximumSize in Klasse JComponent
    • exportData

      protected void exportData()
      updates different functions like enabling of the Component
    • update

      public void update(FWObservable aObservable, Object aKeyOfParameterChanged)
      updates different functions like enableing of the Component
      Angegeben von:
      update in Schnittstelle FWObserver
      Parameter:
      aObservable - the observable object.
      aKeyOfParameterChanged - an argument passed to the notifyObservers method.
      Siehe auch:
    • hasFormFiller

      protected boolean hasFormFiller()
      Gibt zurück:
      if the formFiller was initialized
    • getFormFiller

      protected FWAbstractFormComponentFiller getFormFiller()
      Gibt zurück:
      the formFiller
    • getJumper

      protected String getJumper()
      Gibt zurück:
      the jumper
    • getJumperRule

      protected String getJumperRule()
      Gibt zurück:
      the jumperRule
    • getObservable

      public FWObservable getObservable()
      Gibt zurück:
      the observable
    • setObservable

      public void setObservable(FWObservable aObservable)
      Parameter:
      aObservable - the observable to set
    • setFormElement

      public void setFormElement(org.jdom2.Element aFormElement)
      Parameter:
      aFormElement - the formElement to set
    • getDetachability

      public int getDetachability()
      Gibt zurück:
      s if component is detachable
    • createDetachControls

      protected void createDetachControls(JPanel aContentPanel)
    • attachPanel

      public void attachPanel(FWDetachFrame aDetachFrame)
      detaches the detachpanel im possible
      Parameter:
      aDetachFrame -
    • disposePanel

      public void disposePanel(FWDetachFrame aDetachFrame)
      detaches the detachpanel im possible
      Parameter:
      aDetachFrame -
    • detachPanel

      public void detachPanel(boolean aUpdateContent)
      detaches the detachpanel im possible
      Parameter:
      aUpdateContent -
    • setDetachControlsHighlighted

      protected void setDetachControlsHighlighted(boolean aHighlighted)
      Makes the detach button and related controls appear highlighted or not according to aHighlighted
      Parameter:
      aHighlighted -
    • setDetachControlsEnabled

      protected void setDetachControlsEnabled(boolean aEnabled)
      Sets the enabled state of the detach button to aEnabled and clears the highlighted state if aEnabled is false. To query the enabled state, use the isEnabled method of iDetachButton!
      Parameter:
      aEnabled -
    • remove

      public void remove(Component aComp)
      Setzt außer Kraft:
      remove in Klasse Container
    • add

      public void add(Component aComp, Object aConstraints)
      Setzt außer Kraft:
      add in Klasse Container
    • add

      public void add(Component aComp, Object aConstraints, boolean aUseScrollbar)
      Parameter:
      aComp -
      aConstraints -
      aUseScrollbar -
    • isClosingRequired

      public boolean isClosingRequired()
      Manages all things that have to be done while closing a Form. For exaple closing the detached frames if user wants them to be closed
      Gibt zurück:
    • closeFormComponent

      public void closeFormComponent()
      Manages all things that have to be done while closing a Form. For exaple closing the detached frames if user wants them to be closed
    • getTitle

      public String getTitle()
      Gibt zurück:
      the Title of Component
    • getSystemID

      public String getSystemID()
      Gibt zurück:
      the SystemID of Component
    • setTitle

      public void setTitle(String aTitle)
      setting Title of Component
      Parameter:
      aTitle -
    • setDefault

      public void setDefault()
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Component
    • getRequiredWarning

      public String getRequiredWarning()
      Gibt zurück:
      s the Value from RequiredWarning. If empty returning a default value
    • getCells

      public com.lowagie.text.Rectangle[] getCells(int aType)
      Parameter:
      aType -
      Gibt zurück:
      s the Value from RequiredWarning. If empty returning a default value
    • getValueCell

      protected abstract com.lowagie.text.Rectangle getValueCell(int aType)
      returns the value label to use for generating rtf, pdf or html version of the form
      Parameter:
      aType -
      Gibt zurück:
      iText Cell