public class TabPaneBehavior extends BehaviorBase<TabPane>
Modifier and Type | Field and Description |
---|---|
protected static List<KeyBinding> |
TAB_PANE_BINDINGS |
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
TabPaneBehavior(TabPane tabPane)
State and Functions *
|
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(String name)
Called to invoke the action associated with the given name.
|
boolean |
canCloseTab(Tab tab) |
void |
closeTab(Tab tab) |
void |
mousePressed(MouseEvent e)
*
Mouse event handling *
*
|
void |
selectNextTab() |
void |
selectPreviousTab() |
void |
selectTab(Tab tab) |
callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, matchActionForEvent, mouseDragged, mouseEntered, mouseExited, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final List<KeyBinding> TAB_PANE_BINDINGS
public TabPaneBehavior(TabPane tabPane)
protected void callAction(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<TabPane>
public void mousePressed(MouseEvent e)
mousePressed
in class BehaviorBase<TabPane>
e
- the mouse eventpublic void selectTab(Tab tab)
public boolean canCloseTab(Tab tab)
public void closeTab(Tab tab)
public void selectNextTab()
public void selectPreviousTab()
Copyright © 2020. All rights reserved.