de.enough.polish.ui
Interface CycleListener

All Known Implementing Classes:
FramedForm, KeyboardView, TabbedPane

public interface CycleListener

Allows to get notified and to stop the process when an item cycles through its list of children, either from bottom to top, top to bottom, left to right or right to left.

Copyright Enough Software 2010

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
static int DIRECTION_BOTTOM_TO_TOP
          Direction is from bottom to the top, so currently the bottom item or element is focused and the top one should receive the focus.
static int DIRECTION_LEFT_TO_RIGHT
          Direction is from left to the right, so currently the left item or element is focused and the right one should receive the focus.
static int DIRECTION_RIGHT_TO_LEFT
          Direction is from right to the left, so currently the right item or element is focused and the left one should receive the focus.
static int DIRECTION_TOP_TO_BOTTOM
          Direction is from top to the bottom, so currently the top item or element is focused and the bottom one should receive the focus.
 
Method Summary
 boolean onCycle(Item item, int direction)
          Notifies the listener about a cycle action.
 

Field Detail

DIRECTION_TOP_TO_BOTTOM

static final int DIRECTION_TOP_TO_BOTTOM
Direction is from top to the bottom, so currently the top item or element is focused and the bottom one should receive the focus.

See Also:
Constant Field Values

DIRECTION_BOTTOM_TO_TOP

static final int DIRECTION_BOTTOM_TO_TOP
Direction is from bottom to the top, so currently the bottom item or element is focused and the top one should receive the focus.

See Also:
Constant Field Values

DIRECTION_LEFT_TO_RIGHT

static final int DIRECTION_LEFT_TO_RIGHT
Direction is from left to the right, so currently the left item or element is focused and the right one should receive the focus.

See Also:
Constant Field Values

DIRECTION_RIGHT_TO_LEFT

static final int DIRECTION_RIGHT_TO_LEFT
Direction is from right to the left, so currently the right item or element is focused and the left one should receive the focus.

See Also:
Constant Field Values
Method Detail

onCycle

boolean onCycle(Item item,
                int direction)
Notifies the listener about a cycle action.

Parameters:
item - the item that cycles
direction - the direction
Returns:
true when the cycling can continue, false when the cycling should be aborted.