com.novell.application.console.snapin
Interface ObjectEntryCollection

All Known Implementing Classes:
DefaultObjectEntryCollection

public interface 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.


Method Summary
 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.
 

Method Detail

elements

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

hasMultipleElements

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

hasSingleElement

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

hasNoElements

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

hasSomeElements

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

getFirstElement

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


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.