com.togethersoft.openapi.util.enum
Class KeyStrokeEnumerationAdapter


public class KeyStrokeEnumerationAdapter
implements KeyStrokeEnumeration

Contents minimal implementation to work with enumeration of KeyStrokes.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private EnumerationmySource
           

Constructor Summary
KeyStrokeEnumerationAdapter(Enumeration source)
           

Method Summary
 booleanhasMoreElements()
          Checks is there more elements in enumeration after counter.
 ObjectnextElement()
          Returns next element from enumeration as a Object.
 KeyStrokenextKeyStroke()
          Returns next element from enumeration as a KeyStroke.

Field Detail

mySource

private Enumeration mySource
Constructor Detail

KeyStrokeEnumerationAdapter

public KeyStrokeEnumerationAdapter(Enumeration source)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks is there more elements in enumeration after counter.
Returns: true if there, false else.

nextElement

public Object nextElement()
Returns next element from enumeration as a Object.
Returns: next element from enumeration as a Object.

nextKeyStroke

public KeyStroke nextKeyStroke()
Returns next element from enumeration as a KeyStroke.
Returns: next element from enumeration as a KeyStroke.

Association Links

to Class java.util.Enumeration