|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Describes a set of elements that are related to a specific element in some
fashion. The relationship is defined by the "relationship type", i.e. one
of the REL_TYPE_XXXX constants.
| Field Summary | |
static int |
REL_TYPE_DEPENDENT
The relationship type of "dependent elements". |
static int |
REL_TYPE_SUPPORTING
The relationship type of "supporting elements". |
static int |
REL_TYPE_UNKNOWN
The 'unknown' relationship type. |
| Method Summary | |
void |
addRelatedElement(EbiFrameworkElement element,
int level)
Adds a single related element on the specified level. |
void |
addRelatedElements(Collection elements,
int level)
Adds related elements to a specific level. |
void |
clear()
Clears the internal state of the object to enable it to be reused. |
Collection |
getAllElements(boolean includeElement)
Returns all the related elements. |
EbiFrameworkElement |
getElement()
Gets the element for which this object defines a set of related elements |
Collection |
getElements(int level)
Returns related elements at a specific level of the relationship tree. |
Collection |
getElements(String elementType)
Gets all the elements of a specific type that this Related Elements object knows about. |
String[] |
getElementTypes()
Returns the list of element types to which the related elements belong. |
int |
getNumLevels()
Returns the number of levels in the relationship tree. |
int |
getRelationshipType()
Returns the relationship type. |
void |
setElement(EbiFrameworkElement element)
Sets the element for which this object holds the list of related elements. |
void |
setRelationshipType(int relType)
Sets the relationship type. |
| Field Detail |
public static final int REL_TYPE_UNKNOWN
public static final int REL_TYPE_DEPENDENT
public static final int REL_TYPE_SUPPORTING
| Method Detail |
public Collection getElements(String elementType)
elementType - the element type of the related elements to returnpublic Collection getElements(int level)
level - the level within the relationship treepublic String[] getElementTypes()
EbiDocFolder.EL_DOC_FOLDER etc.public Collection getAllElements(boolean includeElement)
includeElement - if true, the element in question is included into
the returned collection of related elementspublic EbiFrameworkElement getElement()
public int getRelationshipType()
public void addRelatedElements(Collection elements,
int level)
elements - a Collection of related elements to be addedlevel - the level to add the related elements to
public void addRelatedElement(EbiFrameworkElement element,
int level)
element - the element to addlevel - the level to add the element topublic void setElement(EbiFrameworkElement element)
element - the elementpublic void setRelationshipType(int relType)
relType - the relationship typepublic int getNumLevels()
public void clear()
|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||