Package com.jbstrap.ui.components.enums
Enum Class ToolTipPosition
- All Implemented Interfaces:
Serializable
,Comparable<ToolTipPosition>
,Constable
The applicable positions of the tooltips
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe default position.The tooltip will appear below to the assigned component.The tooltip will appear to the left of to the assigned component.The tooltip will appear to the right of to the assigned component.The tooltip will appear above to the assigned component. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolTipPosition
Returns the enum constant of this class with the specified name.static ToolTipPosition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The tooltip will appear above to the assigned component. If there's not enough space, the tooltip will hang out of the display. -
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
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. -
RIGHT
The tooltip will appear to the right of to the assigned component. If there's not enough space, the tooltip will hang out of the display.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getToolTipPosition
- Returns:
- The position name
-