public class TitledPaneBehavior extends BehaviorBase<TitledPane>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PRESS_ACTION
*
Key event handling *
*
|
private TitledPane |
titledPane |
protected static java.util.List<KeyBinding> |
TITLEDPANE_BINDINGS |
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP
Constructor and Description |
---|
TitledPaneBehavior(TitledPane pane) |
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(java.lang.String name)
Called to invoke the action associated with the given name.
|
void |
collapse() |
void |
expand()
State and Functions *
|
void |
mousePressed(MouseEvent e)
*
Mouse event handling *
*
|
void |
toggle() |
callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, matchActionForEvent, mouseDragged, mouseEntered, mouseExited, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
private TitledPane titledPane
private static final java.lang.String PRESS_ACTION
protected static final java.util.List<KeyBinding> TITLEDPANE_BINDINGS
public TitledPaneBehavior(TitledPane pane)
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<TitledPane>
public void mousePressed(MouseEvent e)
mousePressed
in class BehaviorBase<TitledPane>
e
- the mouse eventpublic void expand()
public void collapse()
public void toggle()