Class HidingTab

java.lang.Object
pamViewFX.fxNodes.hidingPane.HidingTab

public class HidingTab extends Object
A hiding tab is is used in a HidingTabPane
Author:
Jamie Macaulay
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    javafx.animation.Timeline
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    HidingTab(javafx.scene.layout.Pane contentPane, javafx.scene.control.Label tabName, javafx.scene.control.Label hideTabName)
     
    HidingTab(javafx.scene.layout.Region contentPane, HidingTabPane hidingTabPane, javafx.scene.control.Label tabName, javafx.scene.control.Label hideTabName)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    javafx.scene.layout.Region
    Get the Node that contains the tab content
    javafx.scene.layout.Pane
    Get the hiding tab node.
    javafx.event.EventHandler<? super javafx.scene.input.MouseEvent>
    Get mouse clicked property for the Hide Tab.
    javafx.scene.control.Label
    Get the label that is displayed when the tab is closed.
     
    javafx.scene.layout.Pane
    Get the tab which shows when the tab pane is open- this is located on top of the content pane and allows users to close the tab.
    javafx.event.EventHandler<? super javafx.scene.input.MouseEvent>
    Get mouse clicked property for the Show Tab.
    javafx.scene.control.Label
    Get the tab label which shows when the tab is open.
    Get the tab pane .
    double
    Get the size of the tab.
    boolean
    Check whether the tab is showing
    void
    setContentNode(javafx.scene.layout.Pane contentNode)
    Set the the Node that contains the tab content
    void
    setHideTabName(javafx.scene.control.Label hideTabName)
    Set the label that is displayed when the tab is closed.
    void
     
    void
    setShowing(boolean showing)
    Set whether the tab should show or not.
    void
    setTabName(javafx.scene.control.Label tabName)
    Set the label that is displayed when the tab is open.
    void
    showTab(boolean show)
    Show the tab or hide tab.

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • timeLineShow Link icon

      public javafx.animation.Timeline timeLineShow
  • Constructor Details Link icon

    • HidingTab Link icon

      public HidingTab(javafx.scene.layout.Pane contentPane, javafx.scene.control.Label tabName, javafx.scene.control.Label hideTabName)
    • HidingTab Link icon

      public HidingTab(javafx.scene.layout.Region contentPane, HidingTabPane hidingTabPane, javafx.scene.control.Label tabName, javafx.scene.control.Label hideTabName)
  • Method Details Link icon

    • showTab Link icon

      public void showTab(boolean show)
      Show the tab or hide tab. Note this should only be called if the tab has been added to the tab list.
      Parameters:
      show - - true to show the tab;
      tab - -the tab to show.
    • getTabWidth Link icon

      public double getTabWidth()
      Get the size of the tab. This is it's preferred size as animation deals with prefWidthproperty.
      Returns:
      the tab width.
    • getHideTabClickProperty Link icon

      public javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> getHideTabClickProperty()
      Get mouse clicked property for the Hide Tab. This is used whenever any section of the hide tab is clicked;
      Returns:
    • getShowTabClickProperty Link icon

      public javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> getShowTabClickProperty()
      Get mouse clicked property for the Show Tab. This is used whenever the top tab in the showing tab pane is clicked.
      Returns:
    • getContentPane Link icon

      public javafx.scene.layout.Region getContentPane()
      Get the Node that contains the tab content
      Returns:
      node that contains the tab content when tab is open.
    • setContentNode Link icon

      public void setContentNode(javafx.scene.layout.Pane contentNode)
      Set the the Node that contains the tab content
      Parameters:
      contentNode - - the node to show when the tab is open
    • getHideTabName Link icon

      public javafx.scene.control.Label getHideTabName()
      Get the label that is displayed when the tab is closed.
      Returns:
      the label that is displayed when the tab is closed
    • setHideTabName Link icon

      public void setHideTabName(javafx.scene.control.Label hideTabName)
      Set the label that is displayed when the tab is closed.
      Parameters:
      hideTabName - - the label on the tab which shows when the tab is closed.
    • getTabName Link icon

      public javafx.scene.control.Label getTabName()
      Get the tab label which shows when the tab is open.
      Returns:
      -the label on the tab which shows when the tab is open.
    • setTabName Link icon

      public void setTabName(javafx.scene.control.Label tabName)
      Set the label that is displayed when the tab is open.
      Parameters:
      hideTabName - - the label on the tab which shows when the tab is open.
    • isShowing Link icon

      public boolean isShowing()
      Check whether the tab is showing
      Returns:
      true of the tab is currently open and showing.
    • setShowing Link icon

      public void setShowing(boolean showing)
      Set whether the tab should show or not.
      Parameters:
      showing -
    • getHideTab Link icon

      public javafx.scene.layout.Pane getHideTab()
      Get the hiding tab node.
      Returns:
      the hiding tab.
    • getShowTab Link icon

      public javafx.scene.layout.Pane getShowTab()
      Get the tab which shows when the tab pane is open- this is located on top of the content pane and allows users to close the tab.
      Returns:
      the show tab, that is the tab that sits above the content pane when the tab is showing.
    • getTabPane Link icon

      public PamBorderPane getTabPane()
      Get the tab pane . The tab pane contains all tab nodes and changes size on tab open/close.
      Returns:
      the tab pane.
    • getHidingTabPane Link icon

      public HidingTabPane getHidingTabPane()
    • setHidingTabPane Link icon

      public void setHidingTabPane(HidingTabPane hidingTabPane)