com.novell.application.console.snapin
Class DefaultBrowserObjectEntryEnumeration
java.lang.Object
|
+--com.novell.application.console.snapin.BaseDefaultVirtualEnumeration
|
+--com.novell.application.console.snapin.DefaultBrowserObjectEntryEnumeration
- All Implemented Interfaces:
- BrowserObjectEntryEnumeration, java.util.Enumeration, ObjectEntryEnumeration
- public class DefaultBrowserObjectEntryEnumeration
- extends BaseDefaultVirtualEnumeration
- implements BrowserObjectEntryEnumeration
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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.
hasMoreElements
public boolean hasMoreElements()
- Determines whether this enumeration has more elements based on the current list
cursor position.
- Returns:
true
if there is at least one more element to be returned from the
nextElement()
method, false
otherwise.
nextElement
public java.lang.Object nextElement()
- Returns the next
Object
element from the enumeration.
- Returns:
- The next
Object
element from the enumeration.
If no next element exists, null
is returned.
next
public ObjectEntry next()
- Returns the next
ObjectEntry
element from the enumeration.
- Returns:
- The next
ObjectEntry
element from the enumeration.
If no next element exists, null
is returned.
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.
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-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.