public interface IElementListDirectory
IElementLists of an AWM application.
The singleton instance can be acquired with
TaurusFactory.getElementListDirectory().
| Modifier and Type | Method and Description |
|---|---|
void |
addElementListDependency(IElementList pList,
IElementList pPreviousList)
Add an element list id to the map which contains the sequential
dependency between element lists.
|
void |
addElementListEntries(IElementList pElementList,
java.util.List<IElementListEntry> pElementListEntries,
boolean pRefreshList)
Add the given element list entry list to the given element list at the
given position.
|
void |
addElementListEntry(IElementList pElementList,
IElementListEntry pElementListEntry,
boolean pRefresh)
Deprecated.
Element list entries are now being automatically added to
their element list during initialization.
|
void |
addElementListEntry(IElementList pElementList,
IElementListEntry pElementListEntry,
int index,
boolean pRefresh)
Deprecated.
Element list entries are now being automatically added to
their element list during initialization.
|
void |
addList(IElementList pElementList,
java.lang.String pPrevListID,
boolean pNotify)
Add a new element list to the element list map and maintain the related
internal data structures.
|
void |
addList(IElementList pElementList,
java.lang.String pPrevListID,
java.lang.String pTableViewSecondaryId,
boolean pNotify)
Add a new element list to the element list map and table view secondary
id map and maintain the related internal data structures.
|
void |
addObserver(java.util.Observer pObserver)
Add the given observer to this class.
|
void |
addResourceActionList(ActionDescriptor pAction,
IResource pResource,
java.lang.String pElementListID)
Deprecated.
|
boolean |
containsKey(IElementListKey pKey)
Check of the element list directory contains the given logical element
list key.
|
void |
deleteElementLists()
Delete all li_....xml files belonging to the active application from the
workspace.
|
void |
deleteObserver(java.util.Observer pObserver)
Delete the given observer for this class.
|
boolean |
elementListExists(IElementListKey pKey)
Check if the element list to the given logical key exists physically.
|
IElementListKey |
getElementListKey(java.lang.String pElementlistID)
Get the key under which the given element list id is stored in the
element list directory.
|
java.util.List<IElementList> |
getElementLists()
Gets a list of all
IElementList. |
java.util.List<IElementList> |
getElementLists(IResource pResource)
Gets element lists which were created with the given resource.
|
java.lang.String |
getFirstListID()
Get the id of the first element list in the element list directory.
|
java.lang.String |
getLastListID()
Get the id of the last element list in the element list directory.
|
IElementList |
getList(IElementListKey pKey)
Returns the element list for the given logical element list key.
|
IElementList |
getList(java.lang.String pElementListID)
Gets the element list with the given ID.
|
IElementList |
getNextList(IElementList pEleList)
Gets the element list which follows the given element list.
|
java.lang.String |
getNextListID(java.lang.String pElementListID)
Deprecated.
use
getNextList(IElementList) instead. |
IElementList |
getPreviousList(IElementList pEleList)
Gets the element list which precedes the given element list.
|
java.lang.String |
getPreviousListID(java.lang.String pElementListID)
Deprecated.
use
getPreviousList(IElementList) instead. |
IResource |
getResource(java.lang.String pElementListID)
Get the resource to which the element list with given id is associated.
|
IElementList |
getSelectedList()
Gets the element list which is currently selected in a table view.
|
IElementList |
loadElementList(java.lang.String pElementListID)
Load the element list belonging to the given element list id from the
workspace.
|
void |
loadElementListDependency()
Load the lm_elementlists.xml-file from the workspace containing the
sequential dependencies between the element lists.
|
void |
notifyObservers(TaurusNotification pTaurusNotification)
Triggers a notification event for all observers.
|
void |
notifyRefresh()
Deprecated.
does not refresh the tree view.
|
void |
removeElementListEntries(IElementList pElementList,
java.util.List<IElementListEntry> pElementListEntries,
boolean pRefreshList)
Deprecated.
To delete an element list entry from a list, simply call
IResource.delete() |
void |
removeElementListEntry(IElementList pElementList,
IElementListEntry pElementListEntry,
boolean pRefreshList)
Deprecated.
To delete an element list entry from a list, simply call
IResource.delete() |
void |
removeList(IElementList pElementList)
Removes the given element list from the element list directory.
|
void |
removeLists(IResource pResource)
Remove all element lists belonging to the given TAURUS resource.
|
IElementList |
restoreList(ActionDescriptor pAct,
IResource pRes)
Tries to restore a Element List for the given parameters.
|
void |
saveElementList(IElementList pElementList)
Save the li_....xml file for the given element list id to the workspace.
|
void |
saveElementListDependency()
Save the lm_elementlists.xml-file to the workspace containing the
sequential dependencies between the element lists.
|
void |
saveElementLists()
Save all element lists of the element list directory to the workspace.
|
void |
setSelectedListID(java.lang.String pElementListID)
Sets the ID of the element list which is (or should be) selected in the
main table view.
|
void |
showList(IElementList pEleList)
Notify the observers of the element list directory of a change in the
element list with the given element list id.
|
void |
showList(IElementList pElementList,
java.lang.String pTableViewSecondaryId)
Show the given element list in the table view with given secondary id.
|
void addList(IElementList pElementList, java.lang.String pPrevListID, boolean pNotify) throws TaurusCoreException
pElementList - element list to be added to the TAURUS element list directorypPrevListID - element list which precedes this element list in the element
list directory; maybe null, in this case the element list is
added to the end of the element list directorypNotify - flag which determines whether the observers of the element
list directory are notifiedTaurusCoreException - if the element list could not be recoveredvoid removeList(IElementList pElementList)
pElementList - element list to be removedvoid removeLists(IResource pResource)
pResource - TAURUS resource for which the element list are to be deletedvoid addElementListDependency(IElementList pList, IElementList pPreviousList)
pList - element list to be addedpPreviousList - element list which precedes the element list id to be added;
can be null, in this case the element list id is
added at the end of the dependency map@Deprecated void addResourceActionList(ActionDescriptor pAction, IResource pResource, java.lang.String pElementListID)
pAction - action of the map's keypResource - resource of the map's keypElementListID - element list to be addedvoid setSelectedListID(java.lang.String pElementListID)
pElementListID - the ID of the selected element listIElementList getList(java.lang.String pElementListID)
pElementListID - the element list IDnullIResource getResource(java.lang.String pElementListID)
pElementListID - the element list's idIElementListKey getElementListKey(java.lang.String pElementlistID)
pElementlistID - the element list's idboolean containsKey(IElementListKey pKey)
pKey - logical element list keytrue, if the element list directory contains the
given key, otherwise falseboolean elementListExists(IElementListKey pKey)
pKey - logical element list keytrue, if the element list exists physically,
otherwise false@Deprecated java.lang.String getPreviousListID(java.lang.String pElementListID)
getPreviousList(IElementList) instead.pElementListID - element list idnull, if the element list id is the first id in the
element list directory@Deprecated java.lang.String getNextListID(java.lang.String pElementListID)
getNextList(IElementList) instead.pElementListID - element list idnull, if the element list id is the last id in the
element list directoryjava.lang.String getFirstListID()
java.lang.String getLastListID()
@Deprecated void addElementListEntry(IElementList pElementList, IElementListEntry pElementListEntry, boolean pRefresh)
pElementList - element listpElementListEntry - element list entrypRefresh - true, if the observers of the element list
directory should be notified for a refresh; otherwise
false@Deprecated void addElementListEntry(IElementList pElementList, IElementListEntry pElementListEntry, int index, boolean pRefresh)
pElementList - element listpElementListEntry - element list entryindex - position in the element list at which the element list entry
should be addedpRefresh - true, if the observers of the element list
directory should be notified for a refresh; otherwise
false@Deprecated void removeElementListEntry(IElementList pElementList, IElementListEntry pElementListEntry, boolean pRefreshList) throws TaurusCoreException
IResource.delete()pElementList - element listpElementListEntry - element list entrypRefreshList - true, if the observers of the element list
directory should be notified for a refresh; otherwise
falseTaurusCoreException - if the deletion failsvoid addElementListEntries(IElementList pElementList, java.util.List<IElementListEntry> pElementListEntries, boolean pRefreshList)
pElementList - element listpElementListEntries - list of element list entriespRefreshList - true, if the observers of the element list
directory should be notified for a refresh; otherwise
false@Deprecated void removeElementListEntries(IElementList pElementList, java.util.List<IElementListEntry> pElementListEntries, boolean pRefreshList)
IResource.delete()pElementList - element listpElementListEntries - list of element list entriespRefreshList - true, if the observers of the element list
directory should be notified for a refresh; otherwise
falsevoid showList(IElementList pEleList)
pEleList - the ElementListIElementList restoreList(ActionDescriptor pAct, IResource pRes)
null will be
returned in that case).pAct - the ActionDescriptor which creates the Element ListpRes - the parent IResource of the Element Listnull if the element list
didn't exist in the cacheIElementListKeyvoid addObserver(java.util.Observer pObserver)
pObserver - observervoid deleteObserver(java.util.Observer pObserver)
pObserver - observerIElementList getSelectedList()
nullvoid saveElementList(IElementList pElementList) throws TaurusCoreException
pElementList - element listTaurusCoreException - if saving the element lists into cache failsvoid saveElementLists()
throws TaurusCoreException
TaurusCoreException - if saving the element lists failsIElementList loadElementList(java.lang.String pElementListID) throws TaurusCoreException
pElementListID - id of the element listnullTaurusCoreException - if loading the element lists failsvoid saveElementListDependency()
throws TaurusCoreException
TaurusCoreException - if saving the element list dependencies failsvoid loadElementListDependency()
throws TaurusCoreException
TaurusCoreException - if loading the element list dependencies failsvoid deleteElementLists()
throws TaurusCoreException
TaurusCoreException - if deleting the element list cache fails@Deprecated void notifyRefresh()
void notifyObservers(TaurusNotification pTaurusNotification)
pTaurusNotification - the TaurusNotification that should be triggered.IElementList getPreviousList(IElementList pEleList)
pEleList - an element listnull if there is none.IElementList getNextList(IElementList pEleList)
pEleList - an element listnull if there is none.java.util.List<IElementList> getElementLists()
IElementList.java.util.List<IElementList> getElementLists(IResource pResource)
pResource - the resourcevoid showList(IElementList pElementList, java.lang.String pTableViewSecondaryId)
pElementList - the element list to showpTableViewSecondaryId - the secondary id of the table view in which the list will be
shown, if null the list will be shown in the main
table viewvoid addList(IElementList pElementList, java.lang.String pPrevListID, java.lang.String pTableViewSecondaryId, boolean pNotify)
pElementList - element list to be added to the TAURUS element list directory
and table view directorypPrevListID - element list which precedes this element list in the element
list directory; maybe null, in this case the element list is
added to the end of the element list directorypTableViewSecondaryId - secondary id of the table view in which the element list will
be mapped, if null, the element list will be
added to the main table viewpNotify - whether the observer of this class will be
notifiedIElementList getList(IElementListKey pKey)
pKey - logical element list keynull, if the
element list directory does not contain a list with the given keyCopyright © 2015 Micro Focus GmbH. All rights reserved.