Klasse FWTabView

java.lang.Object
net.simplace.ui.tabview.FWTabView
Alle implementierten Schnittstellen:
ActionListener, EventListener, Observer, ChangeListener, HyperlinkListener

public class FWTabView extends Object implements ActionListener, ChangeListener, HyperlinkListener, Observer
Toolkit for arranging multiple extern panels in one target panel. Just add the 'target'-panel to the desired viewcontainer. Now u can create panels and use them as usuall (etc. adding some widgets, setting viewport...). The manager will provide one tab/view if there are * views. It also provides a popup with the default actions - close all views. - close this view.
Autor:
Andreas Enders
  • Felddetails

    • DESKTOP_ID

      public static final String DESKTOP_ID
      Constant-ID for the desktop.
      Siehe auch:
    • iViewMap

      protected final LinkedHashMap<Object,JPanel> iViewMap
      Map containing the views(value) and their ids (key).
    • iTabbedPane

      protected final FWTabViewPane iTabbedPane
      Tabbedpane for displaying multiple views.
  • Konstruktordetails

    • FWTabView

      protected FWTabView(boolean aShowDesktopTab)
      Default constructor. Initiates the basic elements.
      Parameter:
      aShowDesktopTab -
  • Methodendetails

    • getInstance

      public static FWTabView getInstance()
      Returns the only instance of this class.
      Gibt zurück:
    • createView

      public boolean createView(Object aID, String aCaption, JPanel aView, String aSystemID)
      Parameter:
      aID -
      aCaption -
      aView -
      aSystemID -
      Gibt zurück:
      true, if the view was created successfully, otherwise returns false
    • createView

      public boolean createView(Object aID, JPanel aView, String aSystemID)
      Parameter:
      aID -
      aView -
      aSystemID -
      aCaption -
      aIcon -
      aFormrenderer -
      Gibt zurück:
      true, if the view was created successfully, otherwise returns false
    • disposeView

      public void disposeView(Object aID, boolean aShouldBeApproved)
      Parameter:
      aID -
      aShouldBeApproved -
    • disposeAll

      public void disposeAll()
    • disposeAll

      public void disposeAll(boolean aLeaveCurrent, boolean aForceDispose)
      Parameter:
      aLeaveCurrent -
      aForceDispose -
    • selectView

      public void selectView(Object aID)
      Parameter:
      aID -
    • getSelectedView

      public Component getSelectedView()
      Gibt zurück:
      Component at selected index
    • getView

      public Component getView(Object aOID)
      Returns the view for the given oid.
      Parameter:
      aOID -
      Gibt zurück:
    • getSelectedViewID

      public Object getSelectedViewID()
      Gibt zurück:
      selected view ID
    • closeSelectedView

      public void closeSelectedView(boolean aSuppressApproving)
      Parameter:
      aSuppressApproving -
      aApproveQuestion -
    • isViewVisible

      public boolean isViewVisible(String aViewID)
      Returns whether or not there is an existing view with the given id.
      Parameter:
      aViewID -
      Gibt zurück:
    • getTabCount

      public int getTabCount()
      Gibt zurück:
      number of tabs
    • getTargetPanel

      public JPanel getTargetPanel()
      Gibt zurück:
      target Panel
    • actionPerformed

      public void actionPerformed(ActionEvent aActionEvent)
      Angegeben von:
      actionPerformed in Schnittstelle ActionListener
    • fireActionEvent

      public void fireActionEvent(ActionListener aActionListener, String aCommand)
      Parameter:
      aActionListener -
      aCommand -
    • stateChanged

      public void stateChanged(ChangeEvent aChangeEvent)
      Informs the listeners when a view is selected.
      Angegeben von:
      stateChanged in Schnittstelle ChangeListener
    • addViewManagerListener

      public void addViewManagerListener(FWTabViewListener aListener)
      Parameter:
      aListener -
    • removeViewManagerListener

      public void removeViewManagerListener(FWTabViewListener aListener)
      Parameter:
      aListener -
    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent aHyperlinkEvent)
      This method is called when a click action is performed on a Link.It sets an HTMLtext to JEditorPane
      Angegeben von:
      hyperlinkUpdate in Schnittstelle HyperlinkListener
    • setTabPlacement

      public void setTabPlacement(int aOrientation)
      Sets a new orientation to the tabpane.
      Parameter:
      aOrientation -
    • setEmptyPanel

      public void setEmptyPanel(JPanel aNewEmptyPanel)
      Replaces the emptyPanel.
      Parameter:
      aNewEmptyPanel -
    • getIDOfComponent

      public Object getIDOfComponent(JPanel aComponent)
      Sets a new title for the given id.
      Parameter:
      aComponent -
      Gibt zurück:
    • hasView

      public boolean hasView(Object aID)
      indicates if a given view is already opened
      Parameter:
      aID -
      Gibt zurück:
      true, if a given view is already opened, otherwise returns false
    • update

      public void update(Observable aObservable, Object aEvent)
      Angegeben von:
      update in Schnittstelle Observer
    • setWaitCursor

      public void setWaitCursor(String aSystemID)
      Parameter:
      aSystemID -
    • setDefaultCursor

      public void setDefaultCursor(String aSystemID)
      Parameter:
      aSystemID -