|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.application.console.snapin.BaseDefaultVirtualEnumeration
com.novell.application.console.snapin.DefaultIndexedObjectEntryEnumeration
Converts an ObjectEntryEnumeration object into an enumeration that supports positioning to an entry, getting next and previous entries, and support for type down.
ObjectEntryEnumeration
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 | |
DefaultIndexedObjectEntryEnumeration(ObjectEntryEnumeration oee,
Shell shell)
Constructs the DefaultIndexedObjectEntryEnumeration object. |
Method Summary | |
void |
append(ObjectEntry oe)
Appends an ObjectEntry object to this enumeration. |
ObjectEntry[] |
getNext(int count)
Returns the next specified number of entries in this enumeration. |
ObjectEntry[] |
getPrev(int count)
Returns the previous specified number of entries in this enumeration. |
boolean |
hasMoreElements()
Determines whether this enumeration has more elements based on the current list cursor index. |
void |
insert(ObjectEntry oe,
int index)
Inserts an ObjectEntry object into this enumeration at the
specified index. |
int |
moveFirst()
Moves the enumeration cursor to the first entry in this enumeration. |
int |
moveLast()
Moves the enumeration cursor to the last entry in this enumeration. |
int |
moveTo(int index)
Moves the enumeration cursor index to the entry associated with the index specified. |
int |
moveTo(java.lang.String targetName)
Moves the enumeration cursor position to the entry that most closely matches the specified target name. |
ObjectEntry |
next()
Returns the next ObjectEntry element in this enumeration. |
java.lang.Object |
nextElement()
Returns the next Object element from this enumeration. |
ObjectEntry |
previous()
Returns the previous entry in this enumeration and moves the enumeration cursor to the previous entry. |
int |
remove(ObjectEntry oe)
Removes the specified ObjectEntry from this enumeration. |
void |
replace(ObjectEntry oldEntry,
ObjectEntry newEntry)
Replaces an ObjectEntry object in this enumeration with
another ObjectEntry object. |
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.IndexedObjectEntryEnumeration |
getCount |
Methods inherited from interface com.novell.application.console.snapin.BrowserObjectEntryEnumeration |
refresh, setBlockSize |
Constructor Detail |
public DefaultIndexedObjectEntryEnumeration(ObjectEntryEnumeration oee, Shell shell)
DefaultIndexedObjectEntryEnumeration
object.
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 |
public void append(ObjectEntry oe)
ObjectEntry
object to this enumeration.
oe
- The ObjectEntry
object to be appended.public ObjectEntry[] getNext(int count)
getNext
returns count
entries beginning with the
entry at the current cursor position. If count
is greater than the
number of remaining entries in this enumeration, getNext
will return
only the existing next entries. The current enumeration cursor position is moved
toward the end of this enumeration by the number of entries returned.
getNext
in interface IndexedObjectEntryEnumeration
count
- The number of next entries to be returned.
count
ObjectEntry
objects in this enumeration.public ObjectEntry[] getPrev(int count)
getPrev
returns the count
entries previous to the
entry at the current cursor position. If count
is greater than the
number of previous entries in this enumeration, getPrev
will return
only the existing previous entries. The current enumeration cursor position moves
toward the beginning of this enumeration by the number of entries returned.
getPrev
in interface IndexedObjectEntryEnumeration
count
- The number of previous entries to be returned.
count
ObjectEntry
objects in this enumeration.public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if there is at least one more element to be returned
from the nextElement()
method, false
otherwise.public void insert(ObjectEntry oe, int index)
ObjectEntry
object into this enumeration at the
specified index.
oe
- The ObjectEntry
object to be inserted.index
- The position in this enumeration where the entry will be inserted.public int moveFirst()
moveFirst
in interface BrowserObjectEntryEnumeration
public int moveLast()
moveLast
in interface BrowserObjectEntryEnumeration
public int moveTo(int index)
The parameter index and the returned enumeration cursor position is an absolute index into this enumeration.
moveTo
in interface IndexedObjectEntryEnumeration
index
- The index of the entry to move to.
public int moveTo(java.lang.String targetName) throws SnapinException
If an exact match is not found, then the enumeration cursor position is moved to the entry that most closely matches the target name.
moveTo
in interface BrowserObjectEntryEnumeration
targetName
- The name of the entry to which the enumeration cursor index will be moved.
SnapinException
- Thrown by the provider when an error occurs.public ObjectEntry next()
ObjectEntry
element in this enumeration.
next
in interface ObjectEntryEnumeration
ObjectEntry
element in this enumeration.
If no next element exists, returns null
.public java.lang.Object nextElement()
Object
element from this enumeration.
nextElement
in interface java.util.Enumeration
Object
element from this enumeration. If no
next element exists, returns null
.public ObjectEntry previous()
previous
in interface BrowserObjectEntryEnumeration
ObjectEntry
object previous to the entry at the
current enumeration cursor position. If no previous element exists,
returns null
.public int remove(ObjectEntry oe)
ObjectEntry
from this enumeration.
oe
- The ObjectEntry
object to be removed.public void replace(ObjectEntry oldEntry, ObjectEntry newEntry)
ObjectEntry
object in this enumeration with
another ObjectEntry
object.
oldEntry
- The ObjectEntry
object to be replaced.newEntry
- The ObjectEntry
object to replace the old entry.ObjectEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |