APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.javafx.scene.control

public Class LabeledText

extends Text
Class Inheritance
Imports
javafx.css.converter.BooleanConverter, .EnumConverter, .PaintConverter, .SizeConverter, java.util.ArrayList, .Collections, .List, javafx.beans.InvalidationListener, .Observable, javafx.beans.value.ObservableValue, .WritableValue, javafx.css.*, javafx.scene.control.Labeled, javafx.scene.paint.Color, .Paint, javafx.scene.text.Font, .Text, .TextAlignment

LabeledText allows the Text to be styled by the CSS properties of Labeled that are meant to style the textual component of the Labeled. LabeledText has the style class "text"

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final CssMetaData<LabeledText, Paint>
private LabeledText.StyleablePropertyMirror<Paint>
private static final CssMetaData<LabeledText, Font>
private LabeledText.StyleablePropertyMirror<Font>
private final Labeled
private static final CssMetaData<LabeledText, Number>
private LabeledText.StyleablePropertyMirror<Number>
private static final List<CssMetaData<? extends Styleable, ?>>
private static final CssMetaData<LabeledText, TextAlignment>
private LabeledText.StyleablePropertyMirror<TextAlignment>
private static final CssMetaData<LabeledText, Boolean>
private LabeledText.StyleablePropertyMirror<Boolean>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private StyleableProperty<Paint>
private StyleableProperty<Font>
public static List<CssMetaData<? extends Styleable, ?>>

Returns:

The CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
getClassCssMetaData
()

Hides javafx.scene.text.Text.getClassCssMetaData.

Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

public List<CssMetaData<? extends Styleable, ?>>
getCssMetaData()

Overrides javafx.scene.text.Text.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

private StyleableProperty<Number>
private StyleableProperty<TextAlignment>
private StyleableProperty<Boolean>
Inherited from javafx.scene.text.Text:
baselineOffsetPropertyboundsTypePropertycaretBiasPropertycaretPositionPropertycaretShapecaretShapePropertyfontPropertyfontSmoothingTypePropertygetBaselineOffsetgetBoundsTypegetCaretPositiongetCaretShapegetFontgetFontSmoothingTypegetLayoutInfogetLineSpacinggetRangeShapegetSelectionEndgetSelectionFillgetSelectionShapegetSelectionStartgetStrikeThroughShapegetTabSizegetTextgetTextAlignmentgetTextOrigingetWrappingWidthgetXgetYhitTestisCaretBiasisStrikethroughisUnderlinelineSpacingPropertyqueryAccessibleAttributerangeShapeselectionEndPropertyselectionFillPropertyselectionShapePropertyselectionStartPropertysetBoundsTypesetCaretBiassetCaretPositionsetFontsetFontSmoothingTypesetLineSpacingsetSelectionEndsetSelectionFillsetSelectionStartsetStrikethroughsetTabSizesetTextsetTextAlignmentsetTextOriginsetUnderlinesetWrappingWidthsetXsetYstrikethroughPropertytabSizePropertytextAlignmentPropertytextOriginPropertytextPropertytoStringunderlinePropertyunderlineShapeusesMirroringwrappingWidthPropertyxPropertyyProperty

Field Detail

FILLback to summary
private static final CssMetaData<LabeledText, Paint> FILL
fillMirrorback to summary
private LabeledText.StyleablePropertyMirror<Paint> fillMirror
FONTback to summary
private static final CssMetaData<LabeledText, Font> FONT
fontMirrorback to summary
private LabeledText.StyleablePropertyMirror<Font> fontMirror
labeledback to summary
private final Labeled labeled
LINE_SPACINGback to summary
private static final CssMetaData<LabeledText, Number> LINE_SPACING
lineSpacingMirrorback to summary
private LabeledText.StyleablePropertyMirror<Number> lineSpacingMirror
STYLEABLESback to summary
private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES
TEXT_ALIGNMENTback to summary
private static final CssMetaData<LabeledText, TextAlignment> TEXT_ALIGNMENT
textAlignmentMirrorback to summary
private LabeledText.StyleablePropertyMirror<TextAlignment> textAlignmentMirror
UNDERLINEback to summary
private static final CssMetaData<LabeledText, Boolean> UNDERLINE
underlineMirrorback to summary
private LabeledText.StyleablePropertyMirror<Boolean> underlineMirror

Constructor Detail

LabeledTextback to summary
public LabeledText(Labeled labeled)

Method Detail

fillMirrorback to summary
private StyleableProperty<Paint> fillMirror()
fontMirrorback to summary
private StyleableProperty<Font> fontMirror()
getClassCssMetaDataback to summary
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData()

Hides javafx.scene.text.Text.getClassCssMetaData.

Doc from javafx.scene.text.Text.getClassCssMetaData.

Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

Returns:List<CssMetaData<? extends Styleable, ?>>

The CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

getCssMetaDataback to summary
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData()

Overrides javafx.scene.text.Text.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

Doc from javafx.scene.text.Text.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

Annotations
@Override
lineSpacingMirrorback to summary
private StyleableProperty<Number> lineSpacingMirror()
textAlignmentMirrorback to summary
private StyleableProperty<TextAlignment> textAlignmentMirror()
underlineMirrorback to summary
private StyleableProperty<Boolean> underlineMirror()
com.sun.javafx.scene.control back to summary

private Class LabeledText.StyleablePropertyMirror<T>

extends SimpleStyleableObjectProperty<T>
implements InvalidationListener
Class Inheritance
All Implemented Interfaces
javafx.beans.InvalidationListener

Field Summary

Modifier and TypeField and Description
pack-priv boolean
private final StyleableProperty<T>

Constructor Summary

AccessConstructor and Description
private
StyleablePropertyMirror(CssMetaData<LabeledText, T> cssMetaData, String name, T initialValue, StyleableProperty<T> property)

Method Summary

Modifier and TypeMethod and Description
public void
applyStyle(StyleOrigin newOrigin, T value)

Overrides javafx.css.StyleableObjectProperty.applyStyle.

Implements javafx.css.StyleableProperty.applyStyle.

This method is called from CSS code to set the value of the property.

public StyleOrigin
getStyleOrigin()

Overrides javafx.css.StyleableObjectProperty.getStyleOrigin.

Implements javafx.css.StyleableProperty.getStyleOrigin.

Tells the origin of the value of the property.

public void
invalidated(Observable observable)

Implements javafx.beans.InvalidationListener.invalidated.

This method needs to be provided by an implementation of InvalidationListener.

Inherited from javafx.css.SimpleStyleableObjectProperty:
getBeangetCssMetaDatagetName

Field Detail

applyingback to summary
pack-priv boolean applying
propertyback to summary
private final StyleableProperty<T> property

Constructor Detail

StyleablePropertyMirrorback to summary
private StyleablePropertyMirror(CssMetaData<LabeledText, T> cssMetaData, String name, T initialValue, StyleableProperty<T> property)

Method Detail

applyStyleback to summary
public void applyStyle(StyleOrigin newOrigin, T value)

Overrides javafx.css.StyleableObjectProperty.applyStyle.

Implements javafx.css.StyleableProperty.applyStyle.

Doc from javafx.css.StyleableObjectProperty.applyStyle.

This method is called from CSS code to set the value of the property.

Annotations
@Override
getStyleOriginback to summary
public StyleOrigin getStyleOrigin()

Overrides javafx.css.StyleableObjectProperty.getStyleOrigin.

Implements javafx.css.StyleableProperty.getStyleOrigin.

Doc from javafx.css.StyleableObjectProperty.getStyleOrigin.

Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.

Annotations
@Override
invalidatedback to summary
public void invalidated(Observable observable)

Implements javafx.beans.InvalidationListener.invalidated.

Doc from javafx.beans.InvalidationListener.invalidated.

This method needs to be provided by an implementation of InvalidationListener. It is called if an Observable becomes invalid.

In general, it is considered bad practice to modify the observed value in this method.

Annotations
@Override