public class PaginationBehavior extends BehaviorBase<Pagination>
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
LEFT
Setup KeyBindings *
|
protected static java.util.List<KeyBinding> |
PAGINATION_BINDINGS |
private static java.lang.String |
RIGHT |
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP| Constructor and Description |
|---|
PaginationBehavior(Pagination pagination)
State and Functions *
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
callAction(java.lang.String name)
Called to invoke the action associated with the given name.
|
protected java.lang.String |
matchActionForEvent(KeyEvent e)
Given a key event, this method will find the matching action name, or null if there
is not one.
|
void |
mousePressed(MouseEvent e)
*
Mouse event handling *
*
|
callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, mouseDragged, mouseEntered, mouseExited, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUpprivate static final java.lang.String LEFT
private static final java.lang.String RIGHT
protected static final java.util.List<KeyBinding> PAGINATION_BINDINGS
public PaginationBehavior(Pagination pagination)
protected java.lang.String matchActionForEvent(KeyEvent e)
BehaviorBasematchActionForEvent in class BehaviorBase<Pagination>e - The key event. Must not be null.protected void callAction(java.lang.String name)
BehaviorBaseWhen a KeyEvent is handled, it is first passed through callActionForEvent which resolves which "action" should be executed based on the key event. This action is indicated by name. This name is then passed to this function which is responsible for invoking the right function based on the name.
callAction in class BehaviorBase<Pagination>public void mousePressed(MouseEvent e)
mousePressed in class BehaviorBase<Pagination>e - the mouse event