Verified Owner
Top Fields Constructors Methods
org.jabref.gui.mergeentries.multiwaymerge

public Class DiffHighlightingEllipsingTextFlow

extends TextFlow
Class Inheritance
Annotations
@DefaultProperty:children
Imports
java.util.List, javafx.beans.DefaultProperty, javafx.beans.property.ObjectProperty, .StringProperty, javafx.beans.value.ChangeListener, javafx.collections.FXCollections, .ListChangeListener, .ObservableList, javafx.scene.Node, javafx.scene.text.Text, .TextFlow, org.jabref.gui.mergeentries.DiffMode, com.tobiasdiez.easybind.EasyObservableValue

Field Summary

Modifier and TypeField and Description
private final ObservableList<Node>
private final com.tobiasdiez.easybind.EasyObservableValue<String>
private static final String
private final ObjectProperty<DiffMode>
private StringProperty
private final String
private final ListChangeListener<Node>
private final ChangeListener<Number>

Constructor Summary

AccessConstructor and Description
public
DiffHighlightingEllipsingTextFlow(String fullText, com.tobiasdiez.easybind.EasyObservableValue<String> comparisonString, ObjectProperty<DiffMode> diffMode)

Method Summary

Modifier and TypeMethod and Description
private void
private void
private String
private boolean
public final StringProperty
private boolean
public ObservableList<Node>
getChildren()

Overrides javafx.scene.layout.Pane.getChildren.

Gets the list of children of this Parent.

public String
public String
public void
private boolean
public final void
Inherited from javafx.scene.text.TextFlow:
caretShapecomputeMinHeightcomputePrefHeightcomputePrefWidthgetBaselineOffsetgetCaretShapegetClassCssMetaDatagetContentBiasgetCssMetaDatagetHitInfogetLayoutInfogetLineSpacinggetRangeShapegetStrikeThroughShapegetTabSizegetTabStopPolicygetTextAlignmentgetUnderlineShapehitTestlayoutChildrenlineSpacingPropertyqueryAccessibleAttributerangeShaperequestLayoutsetLineSpacingsetTabSizesetTabStopPolicysetTextAlignmentsetWidthtabSizePropertytabStopPolicyPropertytextAlignmentPropertyunderlineShapeusesMirroring

Field Detail

allChildrenback to summary
private final ObservableList<Node> allChildren
comparisonStringback to summary
private final com.tobiasdiez.easybind.EasyObservableValue<String> comparisonString
DEFAULT_ELLIPSIS_STRINGback to summary
private static final String DEFAULT_ELLIPSIS_STRING
diffModeback to summary
private final ObjectProperty<DiffMode> diffMode
ellipsisStringback to summary
private StringProperty ellipsisString
fullTextback to summary
private final String fullText
listChangeListenerback to summary
private final ListChangeListener<Node> listChangeListener
sizeChangeListenerback to summary
private final ChangeListener<Number> sizeChangeListener

Constructor Detail

DiffHighlightingEllipsingTextFlowback to summary
public DiffHighlightingEllipsingTextFlow(String fullText, com.tobiasdiez.easybind.EasyObservableValue<String> comparisonString, ObjectProperty<DiffMode> diffMode)

Method Detail

adjustChildrenback to summary
private void adjustChildren(ListChangeListener.Change<? extends Node> change)
adjustTextback to summary
private void adjustText()
ellipseStringback to summary
private String ellipseString(String s)
ellipseUntilTextFitsback to summary
private boolean ellipseUntilTextFits()
ellipsisStringPropertyback to summary
public final StringProperty ellipsisStringProperty()
fillUntilOverflowingback to summary
private boolean fillUntilOverflowing()
getChildrenback to summary
public ObservableList<Node> getChildren()

Overrides javafx.scene.layout.Pane.getChildren.

Doc from javafx.scene.Parent.getChildren.

Gets the list of children of this Parent.

See the class documentation for Node for scene graph structure restrictions on setting a Parent's children list. If these restrictions are violated by a change to the list of children, the change is ignored and the previous value of the children list is restored. An IllegalArgumentException is thrown in this case.

If this Parent node is attached to a Scene attached to a Window, that is, showing (javafx.stage.Window#isShowing()), then its list of children must only be modified on the JavaFX Application Thread. An IllegalStateException is thrown if this restriction is violated.

Note to subclasses: if you override this method, you must return from your implementation the result of calling this super method. The actual list instance returned from any getChildren() implementation must be the list owned and managed by this Parent. The only typical purpose for overriding this method is to promote the method to be public.

Annotations
@Override
getEllipsisStringback to summary
public String getEllipsisString()
getFullTextback to summary
public String getFullText()
highlightDiffback to summary
public void highlightDiff()
removeUntilTextFitsback to summary
private boolean removeUntilTextFits()
setEllipsisStringback to summary
public final void setEllipsisString(String value)