|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
ARoad0.gDMak.ActionClose
public class ActionClose
An action that closes an ACS or a view in the base, closes its main frame if open, all its open frames and its graphical objects in other open frames, and removes its node in the explorer. When an ACS is closed, all the views which contain an element from this ACS are closed, and all the ACS which are direct or indirect children of this ACS are closed.
Manages closing commands from 5 sources:
- direct closing of the main frame of an acs or a view, from the frame listener
- direct closing of the tab of a view in a views tabbed pane, from the closing button
- from 'Close' in the main menu when the main frame is activated
- from 'Close' in the main menu when in the explorer, the ACS or view node is selected
- from ActionRemove, ActionOpenAllFullViews, ActionOpenAllNoThanViews and ViewTreeBaseListenerImpl, which call directly the close methods.
For views in the 'All views' or 'NoThan views' tabbed pane, there is 3 types of closing:
- close the ViewInBase in the program and then in the explorer
- close the ViewInBase tab in the tabbed pane without ViewInBase closing
- close the GraphicView in the tab to constuct a new one, without tab closing.
ActionUtilities
,
Serialized FormField Summary | |
---|---|
private static ActionClose |
instance__
|
private static ViewInBase_Facade |
ViewBase__
|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
private |
ActionClose()
with this private constructor, the compiler won't generate a default public constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent _ev)
Manages closing commands from three sources: - direct closing of the main frame of an ACS or a view, from the 'All views' tab, at the frame listener - from 'Close' in the main menu when the main frame of an ACS or a view is activated - from 'Close' in the main menu when, in the explorer, an ACS or a view node is selected |
void |
close(ImmutableName _name,
boolean _withSaving)
Closes an open ACS or an open view, and saves it if necessary. |
void |
closeAllFullViewsFrame()
Manages the closing of all the tabs in the 'All Full views' tabbed pane, then the closing of the JInternalFrame if it has not been done. |
void |
closeAllNoThanViewsFrame()
Manages the closing of all the tabs in the 'All NoThan views' tabbed pane, then the closing of the JInternalFrame. |
static void |
closeGraphicView(ImmutableName _name)
Finalize the ViewRightsNetworkObserverImpl and the GraphicViewBaseListener for a ViewInBase, even if it is unknown by the base. |
void |
closeInGUI(ImmutableName _name,
javax.swing.JComponent _compo)
Closes in the GUI an open or closed ACS or an open view, but no closing in the base. |
static void |
closeMainFrameInGUI(ImmutableName _name,
javax.swing.JInternalFrame _frame,
boolean _closeGraphicView)
Close in the GUI the main frame of an open ACS, an open view, the 'All full views' or 'All NoThan views' frames. |
private void |
closeOneAllViewsTab(ImmutableName _name,
javax.swing.JPanel _panel)
Closes the tab pane of an open EPRView or NoThanView in the relevant TabbedPane of the GUI, with the graphic view and all the associated objects. |
static boolean |
closeSeeWhyFrameInGUI(ImmutableName _name)
Close the 'See why' main frame of an open view in the GUI, but not in a JTabbedPane. |
void |
closeStructureFrame()
Manages the closing of the 'IS structure' pane, then the closing of the JInternalFrame. |
static ActionClose |
getInstance()
constructor() |
void |
tabClosingPerformed(ImmutableName _tab)
Manages a tab closing in the 'All Views' frame. |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static ActionClose instance__
private static ViewInBase_Facade ViewBase__
Constructor Detail |
---|
private ActionClose()
Method Detail |
---|
public static ActionClose getInstance()
public void actionPerformed(java.awt.event.ActionEvent _ev)
actionPerformed
in interface java.awt.event.ActionListener
_ev
- ActionEventpublic void tabClosingPerformed(ImmutableName _tab)
tabClosingPerformed
in interface TabClosingHandler
_tab
- is the name of the BaseObject displayed in the tabpublic void close(ImmutableName _name, boolean _withSaving)
_name
- of the entity to close_withSaving
- boolean true if the user requests a saving with the closingpublic void closeInGUI(ImmutableName _name, javax.swing.JComponent _compo)
_name
- of the entity to close_compo
- is the main component that displays the entity.
Null when only the explorer as to be updated, or it is
a JInternalFrame or a JPanel (for view JTabbedPanes).public void closeAllFullViewsFrame()
public void closeAllNoThanViewsFrame()
public void closeStructureFrame()
InternalFrameUtilities.addStructureFrameListener(javax.swing.JInternalFrame)
private void closeOneAllViewsTab(ImmutableName _name, javax.swing.JPanel _panel)
_name
- of the entity to close_panel
- that displays the entity objects in a JTabbedPane.public static void closeMainFrameInGUI(ImmutableName _name, javax.swing.JInternalFrame _frame, boolean _closeGraphicView)
_name
- of the entity to close_frame
- that displays all the entity objects. May be null._closeGraphicView
- true when the entity is a ViewInBase with a GraphicView
to finalize. ActionOpenAll/NoThanViews call with an argument at 'false'.public static void closeGraphicView(ImmutableName _name)
_name
- of the ViewInBasepublic static boolean closeSeeWhyFrameInGUI(ImmutableName _name)
_name
- of the view
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |