public class AccordionBehavior extends BehaviorBase<Accordion>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
AccordionBehavior.AccordionFocusModel |
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<KeyBinding> |
ACCORDION_BINDINGS |
private static java.lang.String |
CTRL_PAGE_DOWN |
private static java.lang.String |
CTRL_PAGE_UP |
private static java.lang.String |
CTRL_SHIFT_TAB |
private static java.lang.String |
CTRL_TAB |
private static java.lang.String |
END |
private AccordionBehavior.AccordionFocusModel |
focusModel |
private static java.lang.String |
HOME
*
Key event handling *
*
|
private static java.lang.String |
PAGE_DOWN |
private static java.lang.String |
PAGE_UP |
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP
Constructor and Description |
---|
AccordionBehavior(Accordion accordion) |
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(java.lang.String name)
Called to invoke the action associated with the given name.
|
void |
dispose()
Called by a Skin when the Skin is disposed.
|
void |
mousePressed(MouseEvent e)
Mouse press over the background of the accordion
i.e.
|
callActionForEvent, contextMenuRequested, focusChanged, getControl, matchActionForEvent, mouseDragged, mouseEntered, mouseExited, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
private AccordionBehavior.AccordionFocusModel focusModel
private static final java.lang.String HOME
private static final java.lang.String END
private static final java.lang.String PAGE_UP
private static final java.lang.String PAGE_DOWN
private static final java.lang.String CTRL_PAGE_UP
private static final java.lang.String CTRL_PAGE_DOWN
private static final java.lang.String CTRL_TAB
private static final java.lang.String CTRL_SHIFT_TAB
protected static final java.util.List<KeyBinding> ACCORDION_BINDINGS
public AccordionBehavior(Accordion accordion)
public void dispose()
BehaviorBase
dispose
in class BehaviorBase<Accordion>
protected void callAction(java.lang.String name)
BehaviorBase
When 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<Accordion>
public void mousePressed(MouseEvent e)
mousePressed
in class BehaviorBase<Accordion>
e
- the mouse event