Package net.simplace.ui.tabview
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
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringConstant-ID for the desktop.protected final FWTabViewPaneTabbedpane for displaying multiple views.protected final LinkedHashMap<Object, JPanel> Map containing the views(value) and their ids (key). -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedFWTabView(boolean aShowDesktopTab) Default constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidactionPerformed(ActionEvent aActionEvent) voidaddViewManagerListener(FWTabViewListener aListener) voidcloseSelectedView(boolean aSuppressApproving) booleancreateView(Object aID, String aCaption, JPanel aView, String aSystemID) booleancreateView(Object aID, JPanel aView, String aSystemID) voidvoiddisposeAll(boolean aLeaveCurrent, boolean aForceDispose) voiddisposeView(Object aID, boolean aShouldBeApproved) voidfireActionEvent(ActionListener aActionListener, String aCommand) getIDOfComponent(JPanel aComponent) Sets a new title for the given id.static FWTabViewReturns the only instance of this class.intReturns the view for the given oid.booleanindicates if a given view is already openedvoidhyperlinkUpdate(HyperlinkEvent aHyperlinkEvent) This method is called when a click action is performed on a Link.It sets an HTMLtext to JEditorPanebooleanisViewVisible(String aViewID) Returns whether or not there is an existing view with the given id.voidremoveViewManagerListener(FWTabViewListener aListener) voidselectView(Object aID) voidsetDefaultCursor(String aSystemID) voidsetEmptyPanel(JPanel aNewEmptyPanel) Replaces the emptyPanel.voidsetTabPlacement(int aOrientation) Sets a new orientation to the tabpane.voidsetWaitCursor(String aSystemID) voidstateChanged(ChangeEvent aChangeEvent) Informs the listeners when a view is selected.voidupdate(Observable aObservable, Object aEvent)
-
Felddetails
-
DESKTOP_ID
Constant-ID for the desktop.- Siehe auch:
-
iViewMap
Map containing the views(value) and their ids (key). -
iTabbedPane
Tabbedpane for displaying multiple views.
-
-
Konstruktordetails
-
FWTabView
protected FWTabView(boolean aShowDesktopTab) Default constructor. Initiates the basic elements.- Parameter:
aShowDesktopTab-
-
-
Methodendetails
-
getInstance
Returns the only instance of this class.- Gibt zurück:
-
createView
- Parameter:
aID-aCaption-aView-aSystemID-- Gibt zurück:
- true, if the view was created successfully, otherwise returns false
-
createView
- Parameter:
aID-aView-aSystemID-aCaption-aIcon-aFormrenderer-- Gibt zurück:
- true, if the view was created successfully, otherwise returns false
-
disposeView
- Parameter:
aID-aShouldBeApproved-
-
disposeAll
public void disposeAll() -
disposeAll
public void disposeAll(boolean aLeaveCurrent, boolean aForceDispose) - Parameter:
aLeaveCurrent-aForceDispose-
-
selectView
- Parameter:
aID-
-
getSelectedView
- Gibt zurück:
- Component at selected index
-
getView
Returns the view for the given oid.- Parameter:
aOID-- Gibt zurück:
-
getSelectedViewID
- Gibt zurück:
- selected view ID
-
closeSelectedView
public void closeSelectedView(boolean aSuppressApproving) - Parameter:
aSuppressApproving-aApproveQuestion-
-
isViewVisible
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
- Gibt zurück:
- target Panel
-
actionPerformed
- Angegeben von:
actionPerformedin SchnittstelleActionListener
-
fireActionEvent
- Parameter:
aActionListener-aCommand-
-
stateChanged
Informs the listeners when a view is selected.- Angegeben von:
stateChangedin SchnittstelleChangeListener
-
addViewManagerListener
- Parameter:
aListener-
-
removeViewManagerListener
- Parameter:
aListener-
-
hyperlinkUpdate
This method is called when a click action is performed on a Link.It sets an HTMLtext to JEditorPane- Angegeben von:
hyperlinkUpdatein SchnittstelleHyperlinkListener
-
setTabPlacement
public void setTabPlacement(int aOrientation) Sets a new orientation to the tabpane.- Parameter:
aOrientation-
-
setEmptyPanel
Replaces the emptyPanel.- Parameter:
aNewEmptyPanel-
-
getIDOfComponent
Sets a new title for the given id.- Parameter:
aComponent-- Gibt zurück:
-
hasView
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
-
setWaitCursor
- Parameter:
aSystemID-
-
setDefaultCursor
- Parameter:
aSystemID-
-