|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.Gui1.InternalFrameUtilities
public class InternalFrameUtilities
This class is responsible to deliver utilities to internal frames in the desktop. It detects the type of the frame, and adds the frame listeners. It is used by InternalFrameView, InternalFrameModel.
Field Summary | |
---|---|
private static javax.swing.JPanel |
EMPTY_PANEL
|
private static int |
INITIAL_CAPACITY
|
private static InternalFrameUtilities |
instance__
the only instance of this class, following the singleton pattern |
private static InternalFrameModel |
model__
the only instance, following the MVC pattern, which manages the internal frames data |
Constructor Summary | |
---|---|
private |
InternalFrameUtilities()
only one private constructor |
Method Summary | |
---|---|
(package private) static javax.swing.JInternalFrame |
addACSFrameListener(javax.swing.JInternalFrame _frame)
Adds a frame listener to an ACS main internal frame when it is closing and when it is activated. |
(package private) static javax.swing.JInternalFrame |
addActivationFrameListener(javax.swing.JInternalFrame _frame)
Add a frame listener to the frame when it is activated and de-activated. |
(package private) static javax.swing.JInternalFrame |
addAllFullViewsFrameListener(javax.swing.JInternalFrame _frame)
Add a frame listener to a full view main internal frame when it is closing and when it is activated. |
(package private) static javax.swing.JInternalFrame |
addAllNoThanViewsFrameListener(javax.swing.JInternalFrame _frame)
Add a frame listener to a NoThan view main internal frame when it is closing and when it is activated. |
(package private) static javax.swing.JInternalFrame |
addStructureFrameListener(javax.swing.JInternalFrame _frame)
Adds a frame listener to a full view main internal frame when it is closing and when it is activated. |
(package private) static javax.swing.JInternalFrame |
addViewFrameListener(javax.swing.JInternalFrame _frame)
Adds a frame listener to a view or architecture main internal frame when it is closing and when it is activated. |
static Name |
extractACSName(java.lang.String _title)
Extract the name from the title of an ACS main frame. |
static Name |
extractBeamerName(java.lang.String _beamerTitle)
Extract the name in the beamer title. |
static Name |
extractViewNameFromFrameTitle(java.lang.String _title)
Extracts the name from the title of a view main frame. |
static Name |
extractViewNameFromSeeWhy(java.lang.String _title)
Extracts the name from the title of a view 'See why' frame, and detect the presence of the NoThan view indicator. |
static javax.swing.JPanel |
getEmptyPanel()
Allow to avoid the use of 'new JPanel()' for the initialization of a variable. |
static java.lang.String |
getViewFrameTitleFromViewName(ImmutableName _name)
Gets the main frame title for an EPRViewInBase or a NoThanViewInBase. |
static boolean |
isACSFrame(javax.swing.JInternalFrame _frame)
Test if a frame is a ACS frame, registered or not. |
static boolean |
isAllFullViewsFrame(javax.swing.JInternalFrame _frame)
Test if a frame is the 'Full views' frame. |
static boolean |
isAllNoThanViewsFrame(javax.swing.JInternalFrame _frame)
Test if a frame is the 'NoMore-NoLess views' frame. |
static boolean |
isBeamerFrame(javax.swing.JInternalFrame _frame)
Test if a frame is the beamer frame. |
static boolean |
isISstructureFrame(javax.swing.JInternalFrame _frame)
Test if a frame is the IS structure frame. |
static boolean |
isSketcherFrame(javax.swing.JInternalFrame _frame)
Test if a frame is the sketcher frame. |
static boolean |
isViewFrame(javax.swing.JInternalFrame _frame)
Test if a frame is a view frame, registered or not. |
static java.util.Map |
saveFrameDispositionInGUI(javax.swing.JInternalFrame _frame,
java.util.Map _m_GUIconfig)
Puts in the argument _GUIconfig the current location of a frame in the GUI, as a Rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static InternalFrameUtilities instance__
private static InternalFrameModel model__
private static final int INITIAL_CAPACITY
private static final javax.swing.JPanel EMPTY_PANEL
Constructor Detail |
---|
private InternalFrameUtilities()
Method Detail |
---|
public static Name extractACSName(java.lang.String _title) throws DialogError
_title
- String of the internal frame
DialogError
- if the selected frame has not the standard
format of ACS frame titlespublic static java.lang.String getViewFrameTitleFromViewName(ImmutableName _name)
_name
- of a ViewInBase
public static Name extractViewNameFromFrameTitle(java.lang.String _title) throws DialogError
_title
- of the internal frame
DialogError
- if the selected frame has not the standard
format of view frame titlespublic static Name extractViewNameFromSeeWhy(java.lang.String _title) throws DialogError
_title
- String of the internal frame
DialogError
- if the selected frame has not the standard
format of view 'See why' frame titlespublic static Name extractBeamerName(java.lang.String _beamerTitle) throws DialogError
_beamerTitle
- of the internal frame
DialogError
- if the selected frame has not the standard
format of the beamerpublic static boolean isACSFrame(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to process
public static boolean isViewFrame(javax.swing.JInternalFrame _frame)
_frame
- to process
public static boolean isAllFullViewsFrame(javax.swing.JInternalFrame _frame)
_frame
- to process
public static boolean isAllNoThanViewsFrame(javax.swing.JInternalFrame _frame)
_frame
- to process
public static boolean isBeamerFrame(javax.swing.JInternalFrame _frame)
_frame
- to process
public static boolean isSketcherFrame(javax.swing.JInternalFrame _frame)
_frame
- to process
public static boolean isISstructureFrame(javax.swing.JInternalFrame _frame)
_frame
- to process
public static javax.swing.JPanel getEmptyPanel()
static javax.swing.JInternalFrame addActivationFrameListener(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
static javax.swing.JInternalFrame addACSFrameListener(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
static javax.swing.JInternalFrame addViewFrameListener(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
static javax.swing.JInternalFrame addAllFullViewsFrameListener(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
static javax.swing.JInternalFrame addStructureFrameListener(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
static javax.swing.JInternalFrame addAllNoThanViewsFrameListener(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
public static java.util.Map saveFrameDispositionInGUI(javax.swing.JInternalFrame _frame, java.util.Map _m_GUIconfig) throws ProcessError
_frame
- is the frame for which the disposition in the GUI is to save.
May be null._m_GUIconfig
- is the map of the objects in the GUI to save; object name
is the key. Never null.
ProcessError
- if the _frame is not null and not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |