javax.swing.text
Class StyleContext.KeyEnumeration
java.lang.Object
javax.swing.text.StyleContext.KeyEnumeration
- All Implemented Interfaces:
- Enumeration
- Enclosing class:
- StyleContext
- class StyleContext.KeyEnumeration
- extends Object
- implements Enumeration
An enumeration of the keys in a SmallAttributeSet.
Field Summary |
(package private) Object[] |
attr
|
(package private) int |
i
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attr
Object[] attr
i
int i
StyleContext.KeyEnumeration
StyleContext.KeyEnumeration(Object[] attr)
hasMoreElements
public boolean hasMoreElements()
- Tests if this enumeration contains more elements.
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
true
if this enumeration contains more elements;
false
otherwise.- Since:
- JDK1.0
nextElement
public Object nextElement()
- Returns the next element of this enumeration.
- Specified by:
nextElement
in interface Enumeration
- Returns:
- the next element of this enumeration.
- Throws:
NoSuchElementException
- if no more elements exist.- Since:
- JDK1.0