Class TabPaneBehavior

java.lang.Object
com.sun.javafx.scene.control.behavior.BehaviorBase<TabPane>
com.sun.javafx.scene.control.behavior.TabPaneBehavior

public class TabPaneBehavior extends BehaviorBase<TabPane>
  • Field Details

    • TAB_PANE_BINDINGS

      protected static final List<KeyBinding> TAB_PANE_BINDINGS
  • Constructor Details

    • TabPaneBehavior

      public TabPaneBehavior(TabPane tabPane)
      State and Functions *
  • Method Details

    • callAction

      protected void callAction(String name)
      Description copied from class: BehaviorBase
      Called to invoke the action associated with the given name.

      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.

      Overrides:
      callAction in class BehaviorBase<TabPane>
    • mousePressed

      public void mousePressed(MouseEvent e)
      * Mouse event handling * *
      Overrides:
      mousePressed in class BehaviorBase<TabPane>
      Parameters:
      e - the mouse event
    • selectTab

      public void selectTab(Tab tab)
    • canCloseTab

      public boolean canCloseTab(Tab tab)
    • closeTab

      public void closeTab(Tab tab)
    • selectNextTab

      public void selectNextTab()
    • selectPreviousTab

      public void selectPreviousTab()