IElementListDirectory instance directly (
TaurusFactory.getElementListDirectory()).@Deprecated
public class ElementListController
extends java.lang.Object
IElementListDirectory.| Constructor and Description |
|---|
ElementListController()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addElementListEntries(IElementList pElementList,
java.util.List<IElementListEntry> pElementListEntries,
boolean pRefreshList)
Deprecated.
Add the given element list entry list to the given element list at the
given position.
|
static void |
addElementListEntry(IElementList pElementList,
IElementListEntry pElementListEntry,
boolean pRefreshList)
Deprecated.
Element list entries are now being automatically added to
their element list during initialization.
|
static void |
addElementListEntry(IElementList pElementList,
IElementListEntry pElementListEntry,
int pIndex,
boolean pRefreshList)
Deprecated.
Element list entries are now being automatically added to
their element list during initialization.
|
static void |
addList(IElementList pElementList,
java.lang.String pPreviousListID,
boolean pNotify)
Deprecated.
Add a new element list to the element list map and maintain the related
internal data structures.
|
static void |
addList(IElementList pElementList,
java.lang.String pPreviousListID,
java.lang.String pTableViewSecondaryId)
Deprecated.
Add a new element list to the element list map and table view secondary
id map and maintain the related internal data structures.
|
static void |
clearCacheElementList()
Deprecated.
Delete all element lists in the cache.
|
static java.util.Map<java.lang.String,IElementList> |
getElementListMap()
Deprecated.
Use
getElementLists() instead. This method will
create a new map each time. |
static java.util.List<IElementList> |
getElementLists()
Deprecated.
|
static java.lang.String |
getFirstListID()
Deprecated.
Get the id of the first element list in the element list directory.
|
static java.lang.String |
getLastListID()
Deprecated.
Get the id of the last element list in the element list directory.
|
static IElementList |
getList(java.lang.String pElementListID)
Deprecated.
|
static java.lang.String |
getNextListID(java.lang.String pElementListID,
boolean pVisible)
Deprecated.
Get the element list id which follows the given element list id.
|
static java.lang.String |
getPreviousListID(java.lang.String pElementListID,
boolean pVisible)
Deprecated.
Get the element list id which precedes the given element list id.
|
static IResource |
getResource(java.lang.String pElementListID)
Deprecated.
Get the resource to which the element list with given id is associated.
|
static void |
notify(TaurusNotification pTaurusNotification)
Deprecated.
Notify the observer (table view).
|
static void |
removeElementListEntries(IElementList pElementList,
java.util.List<IElementListEntry> pElementListEntries,
boolean pRefreshList)
Deprecated.
Remove the given element list entry list from the given element list.
|
static void |
removeElementListEntry(IElementList pElementList,
IElementListEntry pElementListEntry,
boolean pRefreshList)
Deprecated.
Remove the given element list entry from the given element list.
|
static void |
removeList(IElementList pElementList)
Deprecated.
Removes the given element list from the element list directory and table
view directory.
|
static void |
removeLists(IResource pResource)
Deprecated.
Remove all element lists belonging to a resource.
|
static IElementList |
restoreList(ActionDescriptor pAct,
IResource pRes)
Deprecated.
|
static void |
setListID(java.lang.String pElementListID)
Deprecated.
Set the active element list.
|
static void |
showList(IElementList pElementList)
Deprecated.
Show the given element list in the main table view.
|
static void |
showList(IElementList pElementList,
java.lang.String pTableViewSecondaryId)
Deprecated.
Show the given element list in the table view with given secondary id.
|
public static void addList(IElementList pElementList, java.lang.String pPreviousListID, boolean pNotify) throws TaurusCoreException
pElementList - element list to be added to the TAURUS element list directorypPreviousListID - 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 save of the element list failspublic static void addList(IElementList pElementList, java.lang.String pPreviousListID, java.lang.String pTableViewSecondaryId) throws TaurusCoreException
pElementList - element list to be added to the TAURUS element list directory
and table view directorypPreviousListID - 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 viewTaurusCoreException - if the save of the element list failspublic static void removeList(IElementList pElementList)
pElementList - element list to be removedpublic static void removeLists(IResource pResource)
pResource - the resource which element lists will be movedpublic static void setListID(java.lang.String pElementListID)
pElementListID - the element list to be set as active listpublic static java.lang.String getPreviousListID(java.lang.String pElementListID,
boolean pVisible)
pElementListID - element list idpVisible - if true only element lists which have the
attribute "showInTable" set to true will be
returned.null, if the element list id is the first id in the
element list directoryIElementList.isVisible()public static java.lang.String getNextListID(java.lang.String pElementListID,
boolean pVisible)
pElementListID - element list idpVisible - if true only element lists which have the
attribute "showInTable" set to true will be
returned.null, if the element list id is the last id in the
element list directoryIElementList.isVisible()@Deprecated public static java.util.Map<java.lang.String,IElementList> getElementListMap()
getElementLists() instead. This method will
create a new map each time.public static java.util.List<IElementList> getElementLists()
public static IElementList getList(java.lang.String pElementListID)
pElementListID - the element list IDnullpublic static IResource getResource(java.lang.String pElementListID)
pElementListID - the element list's idpublic static java.lang.String getFirstListID()
public static java.lang.String getLastListID()
@Deprecated public static void addElementListEntry(IElementList pElementList, IElementListEntry pElementListEntry, boolean pRefreshList)
pElementList - element listpElementListEntry - element list entrypRefreshList - true, if the observers of the element list
directory should be notified for a refresh; otherwise
false@Deprecated public static void addElementListEntry(IElementList pElementList, IElementListEntry pElementListEntry, int pIndex, boolean pRefreshList)
pElementList - element listpElementListEntry - element list entrypIndex - position in the element list at which the element list entry
should be addedpRefreshList - true, if the observers of the element list
directory should be notified for a refresh; otherwise
falsepublic static void removeElementListEntry(IElementList pElementList, IElementListEntry pElementListEntry, boolean pRefreshList) throws TaurusCoreException
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 remove failspublic static void 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
falsepublic static void removeElementListEntries(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
falsepublic static void showList(IElementList pElementList)
pElementList - the element list to showpublic static void 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
show. if null the list will be shown in the main
table viewpublic static IElementList restoreList(ActionDescriptor pAct, IResource pRes)
pAct - the ActionDescriptor which creates the Element ListpRes - the parent IResource of the Element Listnull if the element list
didn't exist in the cachepublic static void notify(TaurusNotification pTaurusNotification)
pTaurusNotification - the notificationpublic static void clearCacheElementList()
throws TaurusCoreException
TaurusCoreException - if deleting the element list cache failsCopyright © 2015 Micro Focus GmbH. All rights reserved.