com.togethersoft.openapi.util.enum
Class KeyStrokeEnumerationAdapter


public class KeyStrokeEnumerationAdapter
implements KeyStrokeEnumeration

Contents minimal implementation to work with enumeration of KeyStrokes.

Author:
TogetherSoft

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.

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.