public class TooltipEx
extends javafx.scene.control.PopupControl
Tooltip (jdk8 ea build 96) to support tooltip position. The code changes are tagged by // Added in JideFX. This
class is not intended to be a public API. We might remove this class in the future if JavaFX tooltip supports the
tooltip position or we find a better solution.| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
activated
Typically, the tooltip is "activated" when the mouse moves over a Control.
|
javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> |
contentDisplay
Specifies the positioning of the graphic relative to the text.
|
javafx.beans.property.ObjectProperty<javafx.scene.text.Font> |
font
The default font to use for text in the Tooltip.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
graphic
An optional icon for the Tooltip.
|
javafx.beans.property.DoubleProperty |
graphicTextGap
The amount of space between the graphic and text
|
javafx.beans.property.ObjectProperty<javafx.geometry.Pos> |
pos |
javafx.beans.property.ObjectProperty<javafx.scene.text.TextAlignment> |
textAlignment
Specifies the behavior for lines of text when text is multiline.
|
javafx.beans.property.ObjectProperty<javafx.scene.control.OverrunStyle> |
textOverrun
Specifies the behavior to use if the text of the
Tooltip exceeds the available space for rendering the
text. |
javafx.beans.property.StringProperty |
text
The text to display in the tooltip.
|
javafx.beans.property.BooleanProperty |
wrapText
If a run of text exceeds the width of the Tooltip, then this variable indicates whether the text should wrap onto
another line.
|
idProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, prefHeightProperty, prefWidthProperty, skinProperty, styleProperty| Constructor and Description |
|---|
TooltipEx()
Creates a tooltip with an empty string for its text.
|
TooltipEx(java.lang.String text)
Creates a tooltip with the specified text.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
activatedProperty()
Typically, the tooltip is "activated" when the mouse moves over a Control.
|
javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> |
contentDisplayProperty()
Specifies the positioning of the graphic relative to the text.
|
protected javafx.scene.control.Skin<?> |
createDefaultSkin() |
javafx.beans.property.ObjectProperty<javafx.scene.text.Font> |
fontProperty()
The default font to use for text in the Tooltip.
|
static java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> |
getClassCssMetaData() |
javafx.scene.control.ContentDisplay |
getContentDisplay()
Gets the value of the property contentDisplay.
|
java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> |
getCssMetaData() |
javafx.scene.text.Font |
getFont()
Gets the value of the property font.
|
javafx.scene.Node |
getGraphic()
Gets the value of the property graphic.
|
double |
getGraphicTextGap()
Gets the value of the property graphicTextGap.
|
javafx.geometry.Pos |
getPos()
Gets the value of the property pos.
|
javafx.css.Styleable |
getStyleableParent() |
java.lang.String |
getText()
Gets the value of the property text.
|
javafx.scene.text.TextAlignment |
getTextAlignment()
Gets the value of the property textAlignment.
|
javafx.scene.control.OverrunStyle |
getTextOverrun()
Gets the value of the property textOverrun.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
graphicProperty()
An optional icon for the Tooltip.
|
javafx.beans.property.DoubleProperty |
graphicTextGapProperty()
The amount of space between the graphic and text
|
static void |
install(javafx.scene.Node node,
TooltipEx t)
Associates the given
TooltipEx with the given <code>Node</code>. |
boolean |
isActivated()
Gets the value of the property activated.
|
boolean |
isWrapText()
Gets the value of the property wrapText.
|
javafx.beans.property.ObjectProperty<javafx.geometry.Pos> |
posProperty() |
void |
setContentDisplay(javafx.scene.control.ContentDisplay value)
Sets the value of the property contentDisplay.
|
void |
setFont(javafx.scene.text.Font value)
Sets the value of the property font.
|
void |
setGraphic(javafx.scene.Node value)
Sets the value of the property graphic.
|
void |
setGraphicTextGap(double value)
Sets the value of the property graphicTextGap.
|
void |
setPos(javafx.geometry.Pos pos)
Sets the value of the property pos.
|
void |
setText(java.lang.String value)
Sets the value of the property text.
|
void |
setTextAlignment(javafx.scene.text.TextAlignment value)
Sets the value of the property textAlignment.
|
void |
setTextOverrun(javafx.scene.control.OverrunStyle value)
Sets the value of the property textOverrun.
|
void |
setWrapText(boolean value)
Sets the value of the property wrapText.
|
javafx.beans.property.ObjectProperty<javafx.scene.text.TextAlignment> |
textAlignmentProperty()
Specifies the behavior for lines of text when text is multiline.
|
javafx.beans.property.ObjectProperty<javafx.scene.control.OverrunStyle> |
textOverrunProperty()
Specifies the behavior to use if the text of the
Tooltip exceeds the available space for rendering the
text. |
javafx.beans.property.StringProperty |
textProperty()
The text to display in the tooltip.
|
static void |
uninstall(javafx.scene.Node node,
TooltipEx t)
Removes the association of the given
TooltipEx on the specified <code>Node</code>. |
javafx.beans.property.BooleanProperty |
wrapTextProperty()
If a run of text exceeds the width of the Tooltip, then this variable indicates whether the text should wrap onto
another line.
|
getId, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getPseudoClassStates, getSkin, getStyle, getStyleClass, getTypeSelector, idProperty, impl_styleableGetNode, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, pseudoClassStateChanged, setId, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setStyle, skinProperty, stylePropertyalignWithContentOriginProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getConsumeAutoHidingEvents, getContent, getOnAutoHide, getOwnerNode, getOwnerWindow, hide, hideOnEscapeProperty, impl_visibleChanged, impl_visibleChanging, isAlignWithContentOrigin, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAlignWithContentOrigin, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, show, showaddEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getScene, getWidth, getX, getY, heightProperty, impl_getMXWindowType, impl_getPeer, impl_getWindows, isFocused, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, removeEventFilter, removeEventHandler, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setFocused, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yPropertypublic final javafx.beans.property.StringProperty textProperty
getText(),
setText(String)public final javafx.beans.property.ObjectProperty<javafx.scene.text.TextAlignment> textAlignmentProperty
contentDisplay which affects the graphic and text, this setting only affects multiple lines of text relative to
the text bounds.public final javafx.beans.property.ObjectProperty<javafx.scene.control.OverrunStyle> textOverrunProperty
Tooltip exceeds the available space for rendering the
text.getTextOverrun(),
setTextOverrun(OverrunStyle)public final javafx.beans.property.BooleanProperty wrapTextProperty
isWrapText(),
setWrapText(boolean)public final javafx.beans.property.ObjectProperty<javafx.scene.text.Font> fontProperty
getFont(),
setFont(Font)public final javafx.beans.property.ObjectProperty<javafx.scene.Node> graphicProperty
content display property. The node specified for this variable cannot appear elsewhere
in the scene graph, otherwise the IllegalArgumentException is thrown. See the class description of <code>Node</code> for more detail.getGraphic(),
setGraphic(Node)public final javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> contentDisplayProperty
public final javafx.beans.property.DoubleProperty graphicTextGapProperty
getGraphicTextGap(),
setGraphicTextGap(double)public final javafx.beans.property.ReadOnlyBooleanProperty activatedProperty
isActivated()public javafx.beans.property.ObjectProperty<javafx.geometry.Pos> posProperty
getPos(),
setPos(Pos)public TooltipEx()
public TooltipEx(java.lang.String text)
text - A text string for the tooltip.public static void install(javafx.scene.Node node,
TooltipEx t)
TooltipEx with the given <code>Node</code>. The tooltip can then behave
similar to when it is set on any <code>Control</code>. A single tooltip can be associated with
multiple nodes.TooltipExpublic static void uninstall(javafx.scene.Node node,
TooltipEx t)
TooltipEx on the specified <code>Node</code>. Hence hovering on the node
will no longer result in showing of the tooltip.TooltipExpublic final javafx.beans.property.StringProperty textProperty()
getText(),
setText(String)public final void setText(java.lang.String value)
public final java.lang.String getText()
public final void setTextAlignment(javafx.scene.text.TextAlignment value)
public final javafx.scene.text.TextAlignment getTextAlignment()
public final javafx.beans.property.ObjectProperty<javafx.scene.text.TextAlignment> textAlignmentProperty()
contentDisplay which affects the graphic and text, this setting only affects multiple lines of text relative to
the text bounds.public final void setTextOverrun(javafx.scene.control.OverrunStyle value)
public final javafx.scene.control.OverrunStyle getTextOverrun()
public final javafx.beans.property.ObjectProperty<javafx.scene.control.OverrunStyle> textOverrunProperty()
Tooltip exceeds the available space for rendering the
text.getTextOverrun(),
setTextOverrun(OverrunStyle)public final void setWrapText(boolean value)
public final boolean isWrapText()
public final javafx.beans.property.BooleanProperty wrapTextProperty()
isWrapText(),
setWrapText(boolean)public final void setFont(javafx.scene.text.Font value)
public final javafx.scene.text.Font getFont()
public final javafx.beans.property.ObjectProperty<javafx.scene.text.Font> fontProperty()
getFont(),
setFont(Font)public final void setGraphic(javafx.scene.Node value)
public final javafx.scene.Node getGraphic()
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> graphicProperty()
content display property. The node specified for this variable cannot appear elsewhere
in the scene graph, otherwise the IllegalArgumentException is thrown. See the class description of <code>Node</code> for more detail.getGraphic(),
setGraphic(Node)public final void setContentDisplay(javafx.scene.control.ContentDisplay value)
public final javafx.scene.control.ContentDisplay getContentDisplay()
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> contentDisplayProperty()
public final void setGraphicTextGap(double value)
public final double getGraphicTextGap()
public final javafx.beans.property.DoubleProperty graphicTextGapProperty()
getGraphicTextGap(),
setGraphicTextGap(double)public final boolean isActivated()
public final javafx.beans.property.ReadOnlyBooleanProperty activatedProperty()
isActivated()protected javafx.scene.control.Skin<?> createDefaultSkin()
createDefaultSkin in class javafx.scene.control.PopupControlpublic static java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getClassCssMetaData()
public java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getCssMetaData()
getCssMetaData in interface javafx.css.StyleablegetCssMetaData in class javafx.scene.control.PopupControlpublic javafx.css.Styleable getStyleableParent()
getStyleableParent in interface javafx.css.StyleablegetStyleableParent in class javafx.scene.control.PopupControlpublic javafx.beans.property.ObjectProperty<javafx.geometry.Pos> posProperty()
getPos(),
setPos(Pos)public javafx.geometry.Pos getPos()
public void setPos(javafx.geometry.Pos pos)