com.novell.application.console.snapin
Class DefaultBrowserObjectEntryEnumeration

java.lang.Object
  extended bycom.novell.application.console.snapin.BaseDefaultVirtualEnumeration
      extended bycom.novell.application.console.snapin.DefaultBrowserObjectEntryEnumeration
All Implemented Interfaces:
BrowserObjectEntryEnumeration, CountableObjectEntryEnumeration, java.util.Enumeration, ObjectEntryEnumeration

public class DefaultBrowserObjectEntryEnumeration
extends BaseDefaultVirtualEnumeration
implements BrowserObjectEntryEnumeration


Field Summary
 
Fields inherited from class com.novell.application.console.snapin.BaseDefaultVirtualEnumeration
m_enumerationData, m_iEnumerationIndex, m_shell
 
Fields inherited from interface com.novell.application.console.snapin.CountableObjectEntryEnumeration
APPROXIMATECOUNT, BASECOUNT, EXACTCOUNT, PARTIALCOUNT, UNKNOWNCOUNT
 
Constructor Summary
DefaultBrowserObjectEntryEnumeration(ObjectEntryEnumeration oee, Shell shell)
          Constructs the DefaultBrowserObjectEntryEnumeration object.
 
Method Summary
 boolean hasMoreElements()
          Determines whether this enumeration has more elements based on the current list cursor position.
 int moveFirst()
          Moves the enumeration cursor to the first entry in the enumeration.
 int moveLast()
          Moves the enumeration cursor to the last entry in the enumeration.
 int moveTo(java.lang.String target)
          Moves the enumeration cursor position to the entry that most closely matches the specified target name.
 ObjectEntry next()
          Returns the next ObjectEntry element from the enumeration.
 java.lang.Object nextElement()
          Returns the next Object element from the enumeration.
 ObjectEntry previous()
          Returns the previous entry in the enumeration and moves the enumeration cursor to the previous entry.
 
Methods inherited from class com.novell.application.console.snapin.BaseDefaultVirtualEnumeration
getCount, getCountReliability, refresh, setBlockSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.novell.application.console.snapin.BrowserObjectEntryEnumeration
refresh, setBlockSize
 

Constructor Detail

DefaultBrowserObjectEntryEnumeration

public DefaultBrowserObjectEntryEnumeration(ObjectEntryEnumeration oee,
                                            Shell shell)
Constructs the DefaultBrowserObjectEntryEnumeration object.

Parameters:
oee - The ObjectEntryEnumeration object used to populate this enumeration.
shell - The instance of the Shell that will be used to get object names.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Determines whether this enumeration has more elements based on the current list cursor position.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if there is at least one more element to be returned from the nextElement() method, false otherwise.

moveFirst

public int moveFirst()
Moves the enumeration cursor to the first entry in the enumeration.

Specified by:
moveFirst in interface BrowserObjectEntryEnumeration
Returns:
The new enumeration cursor position.

moveLast

public int moveLast()
Moves the enumeration cursor to the last entry in the enumeration.

Specified by:
moveLast in interface BrowserObjectEntryEnumeration
Returns:
The new enumeration cursor position.

moveTo

public int moveTo(java.lang.String target)
Moves the enumeration cursor position to the entry that most closely matches the specified target name.

If an exact match is not found, then the enumeration cursor position is moved to the entry that most closely matches the target name.

Specified by:
moveTo in interface BrowserObjectEntryEnumeration
Parameters:
target - The name of the entry to which the enumeration cursor position will be moved.
Returns:
Zero if the search failed, nonzero otherwise.

next

public ObjectEntry next()
Returns the next ObjectEntry element from the enumeration.

Specified by:
next in interface ObjectEntryEnumeration
Returns:
The next ObjectEntry element from the enumeration. If no next element exists, null is returned.

nextElement

public java.lang.Object nextElement()
Returns the next Object element from the enumeration.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
The next Object element from the enumeration. If no next element exists, null is returned.

previous

public ObjectEntry previous()
Returns the previous entry in the enumeration and moves the enumeration cursor to the previous entry.

Specified by:
previous in interface BrowserObjectEntryEnumeration
Returns:
The ObjectEntry object previous to the entry at the current enumeration cursor position. If no previous element exists, returns null.


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.