Class FWMemoryMonitorFormComponent

All Implemented Interfaces:
FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, net.simplace.core.FWBusyIndicator, net.simplace.core.FWObserver

public class FWMemoryMonitorFormComponent extends FWAbstractFormComponent implements FocusListener
Form component showing a memory monitor (used and free heap of the JVM). It has no value and is not printed.
Author:
Andreas Enders
See Also:
  • Constructor Details

    • FWMemoryMonitorFormComponent

      public FWMemoryMonitorFormComponent(String aFormId, String aFieldId, boolean aShowLabel, int aDetachable, org.jdom2.Element aParameters, net.simplace.core.FWObservable aObservabal)
      Parameters:
      aFormId - id of the form the component is placed in
      aFieldId - id of the component
      aShowLabel - not used (no caption label is shown)
      aDetachable - detachability, one of the DETACH_* constants
      aParameters - the form element
      aObservabal - parameters of the functionality
  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in class FWAbstractFormComponent
      Returns:
      always null
    • setValue

      public void setValue(Object aValue)
      Does nothing.
      Specified by:
      setValue in class FWAbstractFormComponent
      Parameters:
      aValue - not used
    • update

      public void update(net.simplace.core.FWObservable aObservable, Object aKeyOfParameterChanged)
      Description copied from class: FWAbstractFormComponent
      Reacts to a changed parameter: re-evaluates enabled and visible (a disabled or hidden component is reset to its default), resets the default value and re-runs the form filler, if the changed parameter is used in them. Changes of the component's own value are ignored.
      Specified by:
      update in interface net.simplace.core.FWObserver
      Overrides:
      update in class FWAbstractFormComponent
      Parameters:
      aObservable - the parameters
      aKeyOfParameterChanged - key of the changed parameter
    • setEnabled

      public void setEnabled(boolean aIsEnabled)
      Overrides:
      setEnabled in class JComponent
      Parameters:
      aIsEnabled - true to enable the memory monitor
    • focusGained

      public void focusGained(FocusEvent aFocusEvent)
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent aE)
      Specified by:
      focusLost in interface FocusListener
    • processFormFiller

      public void processFormFiller()
      Description copied from class: FWAbstractFormComponent
      Fills the component from its form filler (e.g. options or a chart); called after initialisation and whenever the jumper rule of the form filler changes.
      Specified by:
      processFormFiller in class FWAbstractFormComponent
    • getValueCell

      protected com.lowagie.text.Rectangle getValueCell(int aType)
      Not printed.
      Specified by:
      getValueCell in class FWAbstractFormComponent
      Parameters:
      aType - not used
      Returns:
      always null