public class ListViewSkin<T> extends VirtualContainerBase<ListView<T>,ListViewBehavior<T>,ListCell<T>>
Modifier and Type | Field and Description |
---|---|
static String |
RECREATE |
flow, rowCountDirty
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
ListViewSkin(ListView<T> listView) |
Modifier and Type | Method and Description |
---|---|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred height of this
SkinBase . |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase . |
ListCell<T> |
createCell()
Returns a Cell available to be used in the virtual flow.
|
protected void |
executeAccessibleAction(AccessibleAction action,
Object... parameters) |
int |
getItemCount()
Returns the total number of items in this container, including those
that are currently hidden because they are out of view.
|
protected void |
handleControlPropertyChanged(String p)
Skin subclasses will override this method to handle changes in corresponding
control's properties.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h)
Called during the layout pass of the scenegraph.
|
protected Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
Object... parameters) |
void |
updateListViewItems() |
protected void |
updatePlaceholderRegionVisibility() |
protected void |
updateRowCount() |
checkState, createVirtualFlow
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, consumeMouseEvents, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
public static final String RECREATE
protected void handleControlPropertyChanged(String p)
BehaviorSkinBase
handleControlPropertyChanged
in class BehaviorSkinBase<ListView<T>,ListViewBehavior<T>>
public void updateListViewItems()
public int getItemCount()
VirtualContainerBase
getItemCount
in class VirtualContainerBase<ListView<T>,ListViewBehavior<T>,ListCell<T>>
protected void updateRowCount()
updateRowCount
in class VirtualContainerBase<ListView<T>,ListViewBehavior<T>,ListCell<T>>
protected final void updatePlaceholderRegionVisibility()
public ListCell<T> createCell()
VirtualContainerBase
createCell
in class VirtualContainerBase<ListView<T>,ListViewBehavior<T>,ListCell<T>>
protected void layoutChildren(double x, double y, double w, double h)
SkinBase
layoutChildren
in class VirtualContainerBase<ListView<T>,ListViewBehavior<T>,ListCell<T>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
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.computePrefWidth
in class SkinBase<ListView<T>>
height
- the height that should be used if preferred width depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
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.computePrefHeight
in class SkinBase<ListView<T>>
width
- the width that should be used if preferred height depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
queryAccessibleAttribute
in class SkinBase<ListView<T>>
Node.queryAccessibleAttribute(javafx.scene.AccessibleAttribute, java.lang.Object...)
protected void executeAccessibleAction(AccessibleAction action, Object... parameters)
executeAccessibleAction
in class SkinBase<ListView<T>>
Node.executeAccessibleAction(javafx.scene.AccessibleAction, java.lang.Object...)
Copyright © 2020. All rights reserved.