Class Tab

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class Tab extends JComponent
See Also:
  • Constructor Details

  • Method Details

    • setRollover

      public void setRollover(boolean rollover)
    • setSelected

      public void setSelected(boolean selected)
    • getUI

      public TabUI getUI()
      Overrides:
      getUI in class JComponent
    • setUI

      public void setUI(TabUI ui)
    • setTitle

      public void setTitle(String title)
    • setTabComponent

      public void setTabComponent(Component overrideTitle)
    • setIcon

      public void setIcon(Icon icon)
    • setMnemonic

      public void setMnemonic(int mnemonic)
    • setDisplayedMnemonicIndex

      public void setDisplayedMnemonicIndex(int displayedMnemonic)
    • getRenderer

      public Component getRenderer()
    • isDraggableAt

      public boolean isDraggableAt(Point p)
      Specifies where the user can click and drag this jhromeTab. This way the jhromeTab component can behave as though it has a non-rectangular shape.
      Parameters:
      p - the point at which the user pressed the mouse, in the renderer's coordinate system.
      Returns:
      true if the user can drag the jhromeTab after dragging from p. NOTE: must return false for points over the close button and other operable components, or the user will be able to drag the jhromeTab from these points!
    • isSelectableAt

      public boolean isSelectableAt(Point p)
      Specifies where the user can click and select this jhromeTab. This way the jhromeTab component can behave as though it has a non-rectangular shape.
      Parameters:
      p - the point at which the user pressed the mouse, in the renderer's coordinate system.
      Returns:
      true if the user can select the jhromeTab by pressing the mouse at p. NOTE: must return false for points over the close button and other operable components, or the user will be able to select the jhromeTab by clicking these components!
    • isHoverableAt

      public boolean isHoverableAt(Point p)
      Specifies where the jhromeTab is "hoverable." If the user moves the mouse over the hoverable areas of this jhromeTab, JTabbedPane will set it to the rollover state.
      Parameters:
      p - the point the user moved the mouse over, in the renderer's coordinate system.
      Returns:
      true if the jhromeTab should be set to the rollover state when the user moves the mouse over p.
    • getUIClassID

      public String getUIClassID()
      Overrides:
      getUIClassID in class JComponent
    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JComponent