|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a browser ObjectEntry enumeration.
DefaultBrowserObjectEntryEnumeration
Method Summary | |
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 matches the specified target name. |
ObjectEntry |
previous()
Returns the previous entry in the enumeration. |
void |
refresh()
Indicates that the enumeration needs to flush any cached data. |
void |
setBlockSize(int size)
Sets the most frequent size in which the consumer of the enumeration will request entries from the enumeration. |
Methods inherited from interface com.novell.application.console.snapin.ObjectEntryEnumeration |
next |
Methods inherited from interface java.util.Enumeration |
hasMoreElements,
nextElement |
Method Detail |
public int moveFirst() throws SnapinException
public int moveLast() throws SnapinException
public int moveTo(java.lang.String target) throws SnapinException
If an exact match is not found, then the enumeration cursor position is moved to the entry which matches the target name the closest.
target
- The name of the entry to which the enumeration cursor position will be moved.public ObjectEntry previous() throws SnapinException
public void setBlockSize(int size)
If the consumer of the enumeration will call getNext() and getPrev() with a count parameter that is frequently limited to a given size, then setBlockSize() may be called to inform the enumeration of the consumers intentions.
The enumeration implementation may use the block size to allow caching more tailored to the consumers needs. In this case, the consumer may set the block size equal to one screen full of entries.
The block size may be changed at any time during the life of the enumeration
size
- The block size.public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |