Skip navigation links
com.sun.javafx.scene.control.skin

Class TableViewSkinBase<M,S,C extends Control,B extends BehaviorBase<C>,I extends IndexedCell<M>,TC extends TableColumnBase<S,?>>

    • Field Detail

      • needCellsRebuilt

        protected boolean needCellsRebuilt
      • needCellsRecreated

        protected boolean needCellsRecreated
      • needCellsReconfigured

        protected boolean needCellsReconfigured
      • forceCellRecreate

        protected boolean forceCellRecreate
    • Constructor Detail

      • TableViewSkinBase

        public TableViewSkinBase(C control,
                                 B behavior)
        * Constructors * *
    • Method Detail

      • init

        protected void init(C control)
      • getSelectionModel

        protected abstract TableSelectionModel<S> getSelectionModel()
        * Abstract Methods * *
      • getVisibleLeafColumns

        protected abstract ObservableList<? extends TC> getVisibleLeafColumns()
      • getVisibleLeafIndex

        protected abstract int getVisibleLeafIndex(TC tc)
      • getVisibleLeafColumn

        protected abstract TC getVisibleLeafColumn(int col)
      • tableMenuButtonVisibleProperty

        protected abstract BooleanProperty tableMenuButtonVisibleProperty()
      • resizeColumn

        protected abstract boolean resizeColumn(TC tc,
                                                double delta)
      • resizeColumnToFitContent

        protected abstract void resizeColumnToFitContent(TC tc,
                                                         int maxRows)
      • edit

        protected abstract void edit(int index,
                                     TC column)
      • dispose

        public void dispose()
        Description copied from class: BehaviorSkinBase
        Called by a Skinnable when the Skin is replaced on the Skinnable. This method allows a Skin to implement any logic necessary to clean up itself after the Skin is no longer needed. It may be used to release native resources. The methods Skin.getSkinnable() and Skin.getNode() should return null following a call to dispose. Calling dispose twice has no effect.
        Specified by:
        dispose in interface Skin<C extends Control>
        Overrides:
        dispose in class BehaviorSkinBase<C extends Control,B extends BehaviorBase<C>>
      • createTableHeaderRow

        protected TableHeaderRow createTableHeaderRow()
      • getColumnReorderLine

        public Region getColumnReorderLine()
      • onScrollPageDown

        public int onScrollPageDown(boolean isFocusDriven)
        Function used to scroll the container down by one 'page', although if this is a horizontal container, then the scrolling will be to the right.
      • onScrollPageUp

        public int onScrollPageUp(boolean isFocusDriven)
        Function used to scroll the container up by one 'page', although if this is a horizontal container, then the scrolling will be to the left.
      • horizontalScroll

        protected void horizontalScroll()
      • onFocusPreviousCell

        protected void onFocusPreviousCell()
      • onFocusNextCell

        protected void onFocusNextCell()
      • onSelectPreviousCell

        protected void onSelectPreviousCell()
      • onSelectNextCell

        protected void onSelectNextCell()
      • onSelectLeftCell

        protected void onSelectLeftCell()
      • onSelectRightCell

        protected void onSelectRightCell()
      • onMoveToFirstCell

        protected void onMoveToFirstCell()
      • onMoveToLastCell

        protected void onMoveToLastCell()
      • computePrefHeight

        protected double computePrefHeight(double width,
                                           double topInset,
                                           double rightInset,
                                           double bottomInset,
                                           double leftInset)
        Description copied from class: SkinBase
        Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.
        Overrides:
        computePrefHeight in class SkinBase<C extends Control>
        Parameters:
        width - the width that should be used if preferred height depends on it
        topInset - the pixel snapped top inset
        rightInset - the pixel snapped right inset
        bottomInset - the pixel snapped bottom inset
        leftInset - the pixel snapped left inset
        Returns:
        the calculated preferred height
      • computePrefWidth

        protected double computePrefWidth(double height,
                                          double topInset,
                                          double rightInset,
                                          double bottomInset,
                                          double leftInset)
        Calculates the preferred width of this SkinBase. The default implementation calculates this width as the width of the area occupied by its managed children when they are positioned at their current positions at their preferred widths.
        Overrides:
        computePrefWidth in class SkinBase<C extends Control>
        Parameters:
        height - the height that should be used if preferred width depends on it
        topInset - the pixel snapped top inset
        rightInset - the pixel snapped right inset
        bottomInset - the pixel snapped bottom inset
        leftInset - the pixel snapped left inset
        Returns:
        the calculated preferred width
      • updatePlaceholderRegionVisibility

        protected final void updatePlaceholderRegionVisibility()
      • scrollHorizontally

        protected void scrollHorizontally()
      • scrollHorizontally

        protected void scrollHorizontally(TC col)

Copyright © 2020. All rights reserved.