|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewManager
This interface is responsible for managing the views in the generic base through specific methods.
BaseManagerImpl
Method Summary | |
---|---|
void |
closeOpenView(ViewInBase _view)
Close an open view without save it. |
java.util.Map |
getEorM_OpenViews()
|
java.util.List |
getL_ViewNames()
Return the names of the open or closed views. |
long |
getSerialVersionUID()
|
boolean |
isOpenView(ImmutableName _name)
|
boolean |
knowsView(ImmutableName _name)
|
void |
openAllViews()
Open all known views. |
ViewInBase |
openView(ImmutableName _name)
Open a registered and closed view from a file in the current data directory. |
void |
removeView(ImmutableName _name)
The view name is removed from the view list in ViewManager. |
void |
saveAllViews()
Save all the open views in some files (one per view) in the default data directory. |
void |
saveAndCloseOpenView(ViewInBase _view)
Close an open view and save it before. |
void |
saveOpenView(ViewInBase _view)
Save an open view without close it. |
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Method Detail |
---|
void openAllViews() throws BaseError, DialogError
BaseError
- if a view is not known or ClassNotFoundException,
a view object belongs to a closed ACS (with the relevant closed
ACS names that may be get through BaseError.getL_Exception()),
or IOException, or if a view is open at the start of the method (if so,
close it before a new call to this method).
DialogError
- if a view contains closed-ACS objects.ViewInBase openView(ImmutableName _name) throws BaseError, DialogError
_name
- ImmutableName of the view to open. Its file name is built
with the two last components of the name, or with the sole component.
BaseError
- if the view is not known, the view is open,
the open view has not the same name,
or ClassNotFoundException, IOException.
DialogError
- if the view contains closed-ACS objects,
and closed-ACS names are then put in the DialogError Exceptions List,
or if the view contains an object which is no more known by its ACS,
and removed object name is then put in the DialogError Exceptions List.void saveAllViews() throws BaseError
BaseError
- if viewName.lastComponent() is null,
FileNotFoundException or IOException.void saveAndCloseOpenView(ViewInBase _view) throws BaseError
_view
- ViewInBase to be saved, closed and finalized.
BaseError
- if _view is not open,
ViewName.lastComponent() is null,
or FileNotFoundException and IOException.void saveOpenView(ViewInBase _view) throws BaseError
_view
- ViewInBase to be saved.
BaseError
- if _view is not open, ViewName.lastComponent() is null,
or FileNotFoundException and IOException.java.util.List getL_ViewNames()
java.util.Map getEorM_OpenViews()
long getSerialVersionUID()
boolean knowsView(ImmutableName _name)
_name
- ImmutableName of a view
boolean isOpenView(ImmutableName _name)
_name
- ImmutableName of a view
void removeView(ImmutableName _name) throws BaseError
_name
- ImmutableName of the view to remove.
BaseError
- if the view is unknown,
viewName.lastComponent() is null,
or FileNotFoundException and IOException.void closeOpenView(ViewInBase _view) throws BaseError
_view
- ViewInBase to be closed and finalized.
BaseError
- if _view is not open.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |