Class TreeTableRowSkin<T>

    • Property Detail

      • indent

        public final DoubleProperty indentProperty
        The amount of space to multiply by the treeItem.level to get the left margin for this tree cell. This is settable from CSS
        See Also:
        getIndent(), setIndent(double)
    • Constructor Detail

      • TreeTableRowSkin

        public TreeTableRowSkin​(TreeTableRow<T> control)
        Creates a new TreeTableRowSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.
        Parameters:
        control - The control that this skin should be installed onto.
    • Method Detail

      • setIndent

        public final void setIndent​(double value)
        Sets the value of the property indent.
        Property description:
        The amount of space to multiply by the treeItem.level to get the left margin for this tree cell. This is settable from CSS
      • getIndent

        public final double getIndent()
        Gets the value of the property indent.
        Property description:
        The amount of space to multiply by the treeItem.level to get the left margin for this tree cell. This is settable from CSS
      • indentProperty

        public final DoubleProperty indentProperty()
        The amount of space to multiply by the treeItem.level to get the left margin for this tree cell. This is settable from CSS
        See Also:
        getIndent(), setIndent(double)
      • updateChildren

        protected void updateChildren()
        Updates the children managed by LabeledSkinBase, which can be the Labeled graphic and/or a Text node. Only those nodes which actually must be used are used. For example, with a ContentDisplay of GRAPHIC_ONLY the text node is not added, and with a ContentDisplay of TEXT_ONLY, the graphic is not added.
        Overrides:
        updateChildren in class LabeledSkinBase<TreeTableRow<T>>
      • layoutChildren

        protected void layoutChildren​(double x,
                                      double y,
                                      double w,
                                      double h)
        The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text
        Overrides:
        layoutChildren in class TableRowSkinBase<TreeItem<T>,​TreeTableRow<T>,​TreeTableCell<T,​?>>
        Parameters:
        x - the x position
        y - the y position
        w - the width
        h - the height
      • updateCell

        protected void updateCell​(TreeTableCell<T,​?> cell,
                                  TreeTableRow<T> row)
        A method to allow the given cell to be told that it is a member of the given row. How this is implemented is dependent on the actual cell implementation.
        Specified by:
        updateCell in class TableRowSkinBase<TreeItem<T>,​TreeTableRow<T>,​TreeTableCell<T,​?>>
        Parameters:
        cell - The cell for which we want to inform it of its owner row.
        row - The row which will be set on the given cell.
      • graphicProperty

        protected ObjectProperty<Node> graphicProperty()
        Returns the graphic to draw on the inside of the disclosure node. Null is acceptable when no graphic should be shown. Commonly this is the graphic associated with a TreeItem (i.e. treeItem.getGraphic()), rather than a graphic associated with a cell.
        Overrides:
        graphicProperty in class TableRowSkinBase<TreeItem<T>,​TreeTableRow<T>,​TreeTableCell<T,​?>>
      • getClassCssMetaData

        public static List<CssMetaData<? extends Styleable,​?>> getClassCssMetaData()
        Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
        Returns:
        the CssMetaData associated with this class, which may include the CssMetaData of its superclasses