com.novell.application.console.snapin
Class DefaultObjectEntryCollection

java.lang.Object
  extended bycom.novell.application.console.snapin.DefaultObjectEntryCollection
All Implemented Interfaces:
ObjectEntryCollection

public class DefaultObjectEntryCollection
extends java.lang.Object
implements ObjectEntryCollection

Provides the icons associated with a specified ObjectEntry or ObjectType.

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 Summary
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.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultObjectEntryCollection

public DefaultObjectEntryCollection()
Creates an empty collection.


DefaultObjectEntryCollection

public DefaultObjectEntryCollection(ObjectEntry oe)
Creates a collection from a single entry.


DefaultObjectEntryCollection

public DefaultObjectEntryCollection(ObjectEntry[] oes)
Creates a collection from an array of entries.


DefaultObjectEntryCollection

public DefaultObjectEntryCollection(ObjectEntry[] oes,
                                    boolean allowDuplicates)
Creates a collection that allows duplicates from an array of entries.


DefaultObjectEntryCollection

public DefaultObjectEntryCollection(ObjectEntry oe,
                                    boolean allowDuplicates)
Creates a collection from a single object that may allow duplicates.

Method Detail

addEntries

public void addEntries(ObjectEntry[] oes,
                       boolean allowDuplicates)

addEntries

public void addEntries(ObjectEntryEnumeration oee,
                       boolean allowDuplicates)
Adds objects to a collection, allowing duplicates.


addEntry

public void addEntry(ObjectEntry oe,
                     boolean allowDuplicates)

elements

public ObjectEntryEnumeration elements()
Returns an enumeration representing the contained selection.

Specified by:
elements in interface ObjectEntryCollection
Returns:
The enumeration containing the selection.

getFirstElement

public ObjectEntry getFirstElement()
Returns the first element in the enumeration.

Specified by:
getFirstElement in interface ObjectEntryCollection
Returns:
The first element in the enumeration. If none, returns null.

hasMultipleElements

public boolean hasMultipleElements()
Returns true if the selection has more than one element in it.

Specified by:
hasMultipleElements in interface ObjectEntryCollection
Returns:
True iff the selection has more than one element in it.

hasNoElements

public boolean hasNoElements()
Returns true if the selection has zero elements in it.

Specified by:
hasNoElements in interface ObjectEntryCollection
Returns:
True iff the selection has zero elements in it.

hasSingleElement

public boolean hasSingleElement()
Returns true if the selection has a single element in it.

Specified by:
hasSingleElement in interface ObjectEntryCollection
Returns:
True iff the selection has a single element in it.

hasSomeElements

public boolean hasSomeElements()
Returns true if the selection has at least one element in it.

Specified by:
hasSomeElements in interface ObjectEntryCollection
Returns:
True iff the selection has at least one element in it.

removeEntries

public void removeEntries(ObjectEntry[] oes,
                          boolean removeDuplicates)

removeEntries

public void removeEntries(ObjectEntryEnumeration oee,
                          boolean removeDuplicates)

removeEntry

public void removeEntry(ObjectEntry oe,
                        boolean removeDuplicates)


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 September 2 2004 0111.