public class DefaultObjectEntryCollection extends java.lang.Object implements ObjectEntryCollection
Snap-ins must implement this interface to provide the icons for a specified ObjectEntry or object type. Two types of getDisplayIcon() method are provided: One associated with a specified ObjectEntry, and the other associated with a specified namespace and object type. The icon for the object is displayed next to the display name for the object.
| Constructor and Description |
|---|
DefaultObjectEntryCollection()
Creates an empty collection.
|
DefaultObjectEntryCollection(ObjectEntry oe)
Creates a collection from a single entry.
|
DefaultObjectEntryCollection(ObjectEntry[] oes)
Creates a collection from an array of entries.
|
DefaultObjectEntryCollection(ObjectEntry[] oes,
boolean allowDuplicates)
Creates a collection that allows duplicates from an array of entries.
|
DefaultObjectEntryCollection(ObjectEntry oe,
boolean allowDuplicates)
Creates a collection from a single object that may allow duplicates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntries(ObjectEntry[] oes,
boolean allowDuplicates) |
void |
addEntries(ObjectEntryEnumeration oee,
boolean allowDuplicates)
Adds objects to a collection, allowing duplicates.
|
void |
addEntry(ObjectEntry oe,
boolean allowDuplicates) |
ObjectEntryEnumeration |
elements()
Returns an enumeration representing the contained selection.
|
ObjectEntry |
getFirstElement()
Returns the first element in the enumeration.
|
boolean |
hasMultipleElements()
Returns true if the selection has more than one element in it.
|
boolean |
hasNoElements()
Returns true if the selection has zero elements in it.
|
boolean |
hasSingleElement()
Returns true if the selection has a single element in it.
|
boolean |
hasSomeElements()
Returns true if the selection has at least one element in it.
|
void |
removeEntries(ObjectEntry[] oes,
boolean removeDuplicates) |
void |
removeEntries(ObjectEntryEnumeration oee,
boolean removeDuplicates) |
void |
removeEntry(ObjectEntry oe,
boolean removeDuplicates) |
public DefaultObjectEntryCollection()
public DefaultObjectEntryCollection(ObjectEntry[] oes)
public DefaultObjectEntryCollection(ObjectEntry oe)
public DefaultObjectEntryCollection(ObjectEntry[] oes, boolean allowDuplicates)
public DefaultObjectEntryCollection(ObjectEntry oe, boolean allowDuplicates)
public void addEntries(ObjectEntryEnumeration oee, boolean allowDuplicates)
public void addEntries(ObjectEntry[] oes, boolean allowDuplicates)
public void addEntry(ObjectEntry oe, boolean allowDuplicates)
public void removeEntries(ObjectEntryEnumeration oee, boolean removeDuplicates)
public void removeEntries(ObjectEntry[] oes, boolean removeDuplicates)
public void removeEntry(ObjectEntry oe, boolean removeDuplicates)
public ObjectEntryEnumeration elements()
elements in interface ObjectEntryCollectionpublic boolean hasMultipleElements()
hasMultipleElements in interface ObjectEntryCollectionpublic boolean hasSingleElement()
hasSingleElement in interface ObjectEntryCollectionpublic boolean hasSomeElements()
hasSomeElements in interface ObjectEntryCollectionpublic boolean hasNoElements()
hasNoElements in interface ObjectEntryCollectionpublic ObjectEntry getFirstElement()
getFirstElement in interface ObjectEntryCollection
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.