public interface IElementList extends IResource
IResources containing ElementListEntry
s. They are created by the ElementlistManager from reading and
parsing file descriptors as a result of executed AWM actions.
Element lists can be displayed both in table- and tree views. Hence they can
have modeled or generated (empty) ElementListStructures.
Not intended to be sub-classed by clients.
ActionExecutor| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_PREFIX
The cache prefix of element lists.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElementListEntries(java.util.List<IElementListEntry> pElementListEntries)
Add the given list of element list entries to this element list's entry
list.
|
void |
addElementListEntry(IElementListEntry pElementListEntry)
Add the given element list entry to this element list's entry list.
|
void |
addElementListEntry(IElementListEntry pElementListEntry,
int pIndex)
Add the given element list entry to this element list's entry list at the
given position.
|
void |
deleteList()
Remove the li_....xml-file belonging to this element list from the
workspace.
|
ActionDescriptor |
getAction()
Gets the action descriptor which created this element list.
|
java.util.List<IElementListEntry> |
getElementListEntries()
Gets the list of element list entries.
|
IElementListEntry |
getElementListEntry(IElement pElment)
Gets the element list entry of this list for the given element.
|
ElementListStructure |
getElementListStructure()
Get the element list structure of this element list.
|
java.lang.String |
getParentResourceID()
Used to return the parent resource ID before the resource itself was
loaded from cache.
|
IResource |
getResource()
Returns the resource that was selected when the element list was created.
|
java.lang.String |
getTableViewID()
Get the id (secondary) of the view where this element list will be shown.
|
java.lang.String |
getTableViewLabel()
Get the label that will be shown as view part name by loading of this
element list.
|
java.lang.String |
getTitle()
Gets the title of this element list.
|
int |
indexOf(IElementListEntry pEntry)
Returns the index of the given element list entry or
-1 if
it is not in the element list. |
boolean |
isTreeDisplay() |
boolean |
isVisible() |
void |
removeElementListEntries(java.util.List<IElementListEntry> pElementListEntries)
Remove the given list of element list entries from this element list's
entry list.
|
void |
removeElementListEntry(IElementListEntry pElementListEntry)
Remove the given element list entry from this element lists's entry list.
|
void |
setElementListEntries(java.util.List<IElementListEntry> pElementListEntries)
Deprecated.
This method does not maintain the children of this resource.
Use
removeElementListEntries(List) and
addElementListEntries(List) to set the entries of
the list. |
void |
setResource(IResource pResource)
Gets the resource that was used to create the element list.
|
void |
setResource(java.lang.String pResourceID)
Same as
setResource(IResource) but uses the resource ID instead. |
void |
setTableViewID(java.lang.String pTableViewID)
Get the (secondary) id of the view where this element list will be shown.
|
void |
setTableViewLabel(java.lang.String pTableViewLabel)
Set the label that will be showing as view part name by loading of this
element list.
|
void |
setTitle(java.lang.String pTitle)
Sets the title of this element list.
|
void |
setTreeDisplay(boolean pTreeDisplay)
If set the element list is be displayed in tree format; if not set the
element list is displayed as flat table.
|
void |
setVisible(boolean pShow)
If set to
true the element list will be shown in table
views. |
addChildResource, addPropertyValue, addResourceChild, delete, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValuesstatic final java.lang.String ID_PREFIX
ElementListStructure getElementListStructure()
@Deprecated void setElementListEntries(java.util.List<IElementListEntry> pElementListEntries)
removeElementListEntries(List) and
addElementListEntries(List) to set the entries of
the list.pElementListEntries - the new element list entries.java.util.List<IElementListEntry> getElementListEntries()
The returned list must not be modified directly since children resources would not be maintained.
void addElementListEntry(IElementListEntry pElementListEntry)
pElementListEntry - element list entry to be addedvoid addElementListEntries(java.util.List<IElementListEntry> pElementListEntries)
pElementListEntries - list of element list entries to be addedvoid removeElementListEntry(IElementListEntry pElementListEntry)
pElementListEntry - element list entry to be removedvoid removeElementListEntries(java.util.List<IElementListEntry> pElementListEntries)
pElementListEntries - list of element list entries to be removedIElementListEntry getElementListEntry(IElement pElment)
pElment - the elementnull if the list does not
have an entry for the given elementActionDescriptor getAction()
IResource getResource()
IResource.getParentResource(). This
method will return null if the element list was created with
no selected resource (e.g. through a global action).null).void setResource(IResource pResource)
pResource - the context resource (can be null e.g. if the
element list was created by a global action)void deleteList()
throws TaurusCoreException
TaurusCoreException - if deleting the list failsjava.lang.String getTitle()
void setTitle(java.lang.String pTitle)
pTitle - the new titlevoid addElementListEntry(IElementListEntry pElementListEntry, int pIndex)
pElementListEntry - element list entry to be addedpIndex - position at which the element list entry should be addedint indexOf(IElementListEntry pEntry)
-1 if
it is not in the element list.pEntry - the ElementListEntry-1boolean isVisible()
true if the element list shall be shown in a table
view. false otherwise.void setVisible(boolean pShow)
true the element list will be shown in table
views.pShow - whether the element list should be displayed in table viewsboolean isTreeDisplay()
true the element list is be displayed in tree
format; if false the element list is displayed as
flat table.void setTreeDisplay(boolean pTreeDisplay)
pTreeDisplay - whether the element list should be displayed in tree formatvoid setResource(java.lang.String pResourceID)
setResource(IResource) but uses the resource ID instead.
This is useful on startup when the cache is not completely loaded and the
resource IDs cannot be resolved.pResourceID - the ID of an IResourcejava.lang.String getParentResourceID()
java.lang.String getTableViewLabel()
java.lang.String getTableViewID()
void setTableViewLabel(java.lang.String pTableViewLabel)
pTableViewLabel - the view label of this listvoid setTableViewID(java.lang.String pTableViewID)
pTableViewID - the view id of this listCopyright © 2015 Micro Focus GmbH. All rights reserved.