Class FWDefaultPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
FWChartPanel, FWDatabaseAccessFunctionalityPanel, FWFormPanel, FWImagePanel, FWInternalBrowserPanel, FWPDFPanel, FWProgressViewPanel, FWXMLEditorPanel, SimEnvGraphPanel

public class FWDefaultPanel extends JPanel implements ActionListener
Panel with specific Layout als default for the TabView Panels. Please overwrite it resp. use it by setting Panels to ViewPanel with implemented ScrollPane and VFlowLayout. You can set other LayoutManager if necesarry. Methods go(),cancel(),back() and print() can be implemented by using Listeners of TabView or just overwrite the methods here.
Author:
Andreas Enders
See Also:
  • Field Details

  • Constructor Details

    • FWDefaultPanel

      public FWDefaultPanel(FWAbstractFunctionality aFunctionality)
      Parameters:
      aFunctionality -
    • FWDefaultPanel

      public FWDefaultPanel(FWAbstractFunctionality aFunctionality, boolean aUseButtons)
      Parameters:
      aFunctionality -
      aUseButtons -
    • FWDefaultPanel

      public FWDefaultPanel()
      Parameters:
      aFunctionality -
      aUseButtons -
  • Method Details

    • setComponentToView

      public void setComponentToView(Component aComponentToView)
      Displays a certain component in the center of the panel. The previously displayed component is automatically removed from the panel.
      Parameters:
      aComponentToView -
    • actionPerformed

      public void actionPerformed(ActionEvent aEvent)
      Specified by:
      actionPerformed in interface ActionListener
    • cancel

      protected void cancel()
      called from action performed - you can overwrite it in extended class or use this
    • reset

      protected void reset()
      called from action performed - you have to overwrite it in extended class for things to happen
    • go

      protected void go()
      called from action performed - you can overwrite it in extended class or use this
    • print

      protected void print()
      called from action performed - you can overwrite it in extended class or use this
    • export

      protected void export()
      called from action performed - you can overwrite it in extended class or use this
    • info

      protected void info(Object aInfoLocation)
      called from action performed - you can overwrite it in extended class or use this
      Parameters:
      aInfoLocation -
    • back

      protected void back()
      called from action performed - you can overwrite it in extended class or use this
    • getLocaleValue

      protected String getLocaleValue(String aKey)
      This method limits the coding for reading values from the locale.
      Parameters:
      aKey -
      Returns:
    • resetCaptions

      public void resetCaptions()
      Startet die Aktualisierung der Beschriftungen an alle im Panel enthaltenen CaptionsChangeable-Komponenten mit einer leeren HashMap.
    • resetCaptions

      public void resetCaptions(Map<String,Object> aCaptionMap)
      Leitet die Aktualisierung der Beschriftungen an alle im Panel enthaltenen CaptionsChangeable-Komponenten weiter.
      Parameters:
      aCaptionMap -
      captionMap - enthaelt die neuen Beschriftungen
    • resetCaptions

      public static void resetCaptions(Container aContainer, Map<String,Object> aCaptionMap)
      Leitet die Aktualisierung der Beschriftungen an alle im Container container enthaltenen CaptionsChangeable-Komponenten weiter. Zudem wird die Auswertung rekursiv fuer alle in container enthaltenen Container fortgefuehrt.
      Parameters:
      aContainer -
      containter - ein Container der weitere Components enthaelt
      aCaptionMap - enthaelt die neuen Beschriftungen
    • setBackButtonEnabled

      public void setBackButtonEnabled(boolean aIsEnabledBackButton)
      Parameters:
      aIsEnabledBackButton -
    • setCancelButtonEnabled

      public void setCancelButtonEnabled(boolean aIsEnabled)
      Parameters:
      aIsEnabled -
    • setGoButtonEnabled

      public void setGoButtonEnabled(boolean aIsEnabled)
      Parameters:
      aIsEnabled -
    • setPrintButtonEnabled

      public void setPrintButtonEnabled(boolean aIsEnabled)
      Parameters:
      aIsEnabled -
    • setExportButtonEnabled

      public void setExportButtonEnabled(boolean aIsEnabled)
      Parameters:
      aIsEnabled -
    • setInfoButtonEnabled

      public void setInfoButtonEnabled(boolean aIsEnabled)
      Parameters:
      aIsEnabled -
    • setResetButtonEnabled

      public void setResetButtonEnabled(boolean aIsVisible)
      Parameters:
      aIsVisible -
    • getFunctionality

      public FWAbstractFunctionality getFunctionality()
      Returns: