com.togethersoft.openapi.util.enum
Class AbstractButtonEnumerationAdapter


public class AbstractButtonEnumerationAdapter
implements AbstractButtonEnumeration

Minimal implementation of enumeration of AbstractButtons .

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private EnumerationmySource
           

Constructor Summary
AbstractButtonEnumerationAdapter(Enumeration source)
          Creates new enumeration from existing.

Method Summary
 booleanhasMoreElements()
          Checks is there more elements in enumeration.
 AbstractButtonnextAbstractButton()
          Returns next element from enumeration as an AbstractButton.
 ObjectnextElement()
          Returns next element from enumeration as an Object.

Field Detail

mySource

private Enumeration mySource
Constructor Detail

AbstractButtonEnumerationAdapter

public AbstractButtonEnumerationAdapter(Enumeration source)
Creates new enumeration from existing.
Parameters:
source Source enumeration
Method Detail

hasMoreElements

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

nextAbstractButton

public AbstractButton nextAbstractButton()
Returns next element from enumeration as an AbstractButton.

nextElement

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

Association Links

to Class java.util.Enumeration