Enum Class ToolTipPosition

java.lang.Object
java.lang.Enum<ToolTipPosition>
com.jbstrap.ui.components.enums.ToolTipPosition
All Implemented Interfaces:
Serializable, Comparable<ToolTipPosition>, Constable

public enum ToolTipPosition extends Enum<ToolTipPosition>

The applicable positions of the tooltips

Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • AUTO

      public static final ToolTipPosition AUTO
      The default position. The tooltip will appear relative to the assigned component, where there is the most space available. For example, if there's space under the component, it will appear there, but if there is not, it will appear above it.
    • TOP

      public static final ToolTipPosition TOP
      The tooltip will appear above to the assigned component. If there's not enough space, the tooltip will hang out of the display.
    • BOTTOM

      public static final ToolTipPosition BOTTOM
      The tooltip will appear below to the assigned component. If there's not enough space, the tooltip will hang out of the display.
    • LEFT

      public static final ToolTipPosition LEFT
      The tooltip will appear to the left of to the assigned component. If there's not enough space, the tooltip will hang out of the display.
  • Method Details

    • values

      public static ToolTipPosition[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ToolTipPosition valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getToolTipPosition

      public String getToolTipPosition()
      Returns:
      The position name