Summary
Adds Labeled.textTruncated property which indicates when the text is visually truncated in order to fit the available width.
Problem
Customers expressed desire to be able to show a tooltip when the text is truncated in a table or a similar situation. There is currently no public API to achieve that goal.
Solution
The solution is to add a read-only boolean property which indicates the condition.
Specification
+ /**
+ * Indicates whether the text has been truncated
+ * because it cannot fit into the available width.
+ * <p>
+ * When truncated, the {@link #ellipsisStringProperty() ellipsisString}
+ * gets inserted in the place dictated by the
+ * {@link #textOverrunProperty textOverrun} property.
+ *
+ * @since 23
+ */
+ public final ReadOnlyBooleanProperty textTruncatedProperty() {
+
+ public final boolean isTextTruncated() {
- csr of
-
JDK-8092102 Labeled: textTruncated property
-
- Resolved
-