public class ComboBoxListViewSkin<T> extends ComboBoxPopupControl<T>
ComboBox
control.ComboBox
Type | Property and Description |
---|---|
BooleanProperty |
hideOnClick
By default this skin hides the popup whenever the ListView is clicked in.
|
Modifier and Type | Field and Description |
---|---|
private ComboBoxListViewBehavior |
behavior |
private <any> |
buttonCell |
private <any> |
cellFactory |
private static java.lang.String |
COMBO_BOX_ROWS_TO_MEASURE_WIDTH_KEY
*
Static fields *
*
|
private <any> |
comboBox
*
Private fields *
*
|
private <any> |
comboBoxItems |
private BooleanProperty |
hideOnClick
By default this skin hides the popup whenever the ListView is clicked in.
|
private boolean |
itemCountDirty
*
Listeners *
*
|
private InvalidationListener |
itemsObserver |
private boolean |
listSelectionLock |
private <any> |
listView |
private <any> |
listViewItems |
private <any> |
listViewItemsListener |
private boolean |
listViewSelectionDirty |
private static PseudoClass |
PSEUDO_CLASS_EMPTY |
private static PseudoClass |
PSEUDO_CLASS_FILLED |
private static PseudoClass |
PSEUDO_CLASS_SELECTED
*
Stylesheet Handling *
*
|
private <any> |
weakListViewItemsListener |
popup
arrow, arrowButton
Constructor and Description |
---|
ComboBoxListViewSkin(<any> control)
Creates a new ComboBoxListViewSkin instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
Modifier and Type | Method and Description |
---|---|
protected double |
computeMaxHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMaxWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
private <any> |
createListView() |
void |
dispose() |
(package private) ComboBoxBaseBehavior |
getBehavior()
*
Private implementation *
*
|
protected <any> |
getConverter()
Subclasses are responsible for getting the converter.
|
private <any> |
getDefaultCellFactory() |
Node |
getDisplayNode()
This method should return a Node that will be positioned within the
ComboBox 'button' area.
|
protected TextField |
getEditor()
Subclasses are responsible for getting the editor.
|
private int |
getIndexOfComboBoxValueInItemsList() |
(package private) <any> |
getListView()
API for testing
|
private double |
getListViewPrefHeight() |
Node |
getPopupContent()
This method should return the Node that will be displayed when the user
clicks on the ComboBox 'button' area.
|
BooleanProperty |
hideOnClickProperty()
By default this skin hides the popup whenever the ListView is clicked in.
|
boolean |
isHideOnClick()
Gets the value of the property hideOnClick.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
java.lang.Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
java.lang.Object... parameters) |
void |
setHideOnClick(boolean value)
Sets the value of the property hideOnClick.
|
private void |
updateButtonCell() |
private void |
updateCellFactory() |
private void |
updateComboBoxItems() |
(package private) void |
updateDisplayNode() |
private boolean |
updateDisplayText(<any> cell,
T item,
boolean empty) |
private void |
updateListViewItems() |
private void |
updateValue() |
getEditableInputNode, getPopup, hide, reconfigurePopup, setTextFromTextFieldIntoComboBoxValue, show, updateEditable
computeBaselineOffset, focusLost, getMode, setMode, updateDisplayArea
public final BooleanProperty hideOnClickProperty
isHideOnClick()
,
setHideOnClick(boolean)
private static final java.lang.String COMBO_BOX_ROWS_TO_MEASURE_WIDTH_KEY
private final <any> comboBox
private <any> comboBoxItems
private <any> buttonCell
private <any> cellFactory
private final <any> listView
private <any> listViewItems
private boolean listSelectionLock
private boolean listViewSelectionDirty
private final ComboBoxListViewBehavior behavior
private boolean itemCountDirty
private final <any> listViewItemsListener
private final InvalidationListener itemsObserver
private final <any> weakListViewItemsListener
private final BooleanProperty hideOnClick
private static final PseudoClass PSEUDO_CLASS_SELECTED
private static final PseudoClass PSEUDO_CLASS_EMPTY
private static final PseudoClass PSEUDO_CLASS_FILLED
public ComboBoxListViewSkin(<any> control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.public final BooleanProperty hideOnClickProperty()
isHideOnClick()
,
setHideOnClick(boolean)
public final boolean isHideOnClick()
public final void setHideOnClick(boolean value)
public void dispose()
protected TextField getEditor()
getEditor
in class ComboBoxPopupControl<T>
protected <any> getConverter()
getConverter
in class ComboBoxPopupControl<T>
public Node getDisplayNode()
getDisplayNode
in class ComboBoxBaseSkin<T>
public Node getPopupContent()
getPopupContent
in class ComboBoxPopupControl<T>
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class ComboBoxBaseSkin<T>
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computeMaxWidth
in class ComboBoxBaseSkin<T>
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefHeight
in class ComboBoxBaseSkin<T>
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computeMaxHeight
in class ComboBoxBaseSkin<T>
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class ComboBoxBaseSkin<T>
void updateDisplayNode()
updateDisplayNode
in class ComboBoxPopupControl<T>
ComboBoxBaseBehavior getBehavior()
getBehavior
in class ComboBoxBaseSkin<T>
private void updateComboBoxItems()
private void updateListViewItems()
private void updateValue()
private boolean updateDisplayText(<any> cell, T item, boolean empty)
private int getIndexOfComboBoxValueInItemsList()
private void updateButtonCell()
private void updateCellFactory()
private <any> getDefaultCellFactory()
private <any> createListView()
private double getListViewPrefHeight()
<any> getListView()
public java.lang.Object queryAccessibleAttribute(AccessibleAttribute attribute, java.lang.Object... parameters)