public interface Transitionable
TransitionManager
to carry out transition effects either on it or on the object it's delegate for.TransitionManager
either through direct implementation of this interface or through
delegation by providing a delegate object implementing this interface.Control objects of at
least one Control object. Each Control object has an index that's used
to get and set the current viewed Control object using the getSelection()
and setSelection(int) method. The index is also used to get the
corresponding Control object using getControl(int) method.| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
This method is called once by the
TransitionManager's constructor
to add a SelectionListener to the "transitionable" widget to start
the transition effect whenever the widget is selected. |
org.eclipse.swt.widgets.Composite |
getComposite()
returns the
Composite at which the transition should
be shown. |
org.eclipse.swt.widgets.Control |
getControl(int index)
returns the
Control object at index index |
double |
getDirection(int toIndex,
int fromIndex)
should compare toIndex with fromIndex and return
the required direction of the transition.
|
int |
getSelection()
returns the index of the current selected
Control object |
void |
setSelection(int index)
sets the current selected
Control object |
void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
TransitionManager's constructor
to add a SelectionListener to the "transitionable" widget to start
the transition effect whenever the widget is selected.listener - the SelectionListener instance provided by the TransitionManagerorg.eclipse.swt.widgets.Control getControl(int index)
Control object at index indexindex - the index of the Control object to returnControl object at the specified indexorg.eclipse.swt.widgets.Composite getComposite()
Composite at which the transition should
be shown. It could be considered the composite that
contains all Control objects.int getSelection()
Control objectControl objectvoid setSelection(int index)
Control objectindex - the index of the Control object to be set as the current selectiondouble getDirection(int toIndex,
int fromIndex)
toIndex - index of the Control object to make transition tofromIndex - index of the Control object to make transition from