public class AccordionSkin extends BehaviorSkinBase<Accordion,AccordionBehavior>
Modifier and Type | Field and Description |
---|---|
private Rectangle |
clipRect |
private TitledPane |
expandedPane |
private TitledPane |
firstTitledPane |
private boolean |
forceRelayout |
private java.util.Map<TitledPane,ChangeListener<java.lang.Boolean>> |
listeners |
private double |
previousHeight |
private TitledPane |
previousPane |
private boolean |
relayout |
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
AccordionSkin(Accordion accordion) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the minimum allowable height of the Skin, based on the provided
width.
|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred height of this
SkinBase . |
private ChangeListener<java.lang.Boolean> |
expandedPropertyListener(TitledPane tp) |
protected void |
handleControlPropertyChanged(java.lang.String property)
Skin subclasses will override this method to handle changes in corresponding
control's properties.
|
private void |
initTitledPaneListeners(java.util.List<? extends TitledPane> list) |
protected void |
layoutChildren(double x,
double y,
double w,
double h)
Called during the layout pass of the scenegraph.
|
private void |
removeTitledPaneListeners(java.util.List<? extends TitledPane> list) |
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinWidth, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
private TitledPane firstTitledPane
private Rectangle clipRect
private boolean forceRelayout
private boolean relayout
private double previousHeight
private TitledPane expandedPane
private TitledPane previousPane
private java.util.Map<TitledPane,ChangeListener<java.lang.Boolean>> listeners
public AccordionSkin(Accordion accordion)
protected void handleControlPropertyChanged(java.lang.String property)
BehaviorSkinBase
handleControlPropertyChanged
in class BehaviorSkinBase<Accordion,AccordionBehavior>
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
computeMinHeight
in class SkinBase<Accordion>
width
- The width of the Skin, in case this value might dictate
the minimum height.topInset
- 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<Accordion>
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 void layoutChildren(double x, double y, double w, double h)
SkinBase
layoutChildren
in class SkinBase<Accordion>
private void initTitledPaneListeners(java.util.List<? extends TitledPane> list)
private void removeTitledPaneListeners(java.util.List<? extends TitledPane> list)
private ChangeListener<java.lang.Boolean> expandedPropertyListener(TitledPane tp)