Top Inners Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public Class AccordionBehavior

extends BehaviorBase<Accordion>
Class Inheritance
Imports
javafx.beans.property.ReadOnlyBooleanProperty, javafx.beans.value.ChangeListener, .ObservableValue, javafx.collections.ListChangeListener, .ObservableList, javafx.scene.control.Accordion, .FocusModel, .TitledPane, com.sun.javafx.scene.control.inputmap.InputMap, .KeyBinding, javafx.scene.input.KeyEvent, .MouseEvent

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private AccordionBehavior.AccordionFocusModel
private final InputMap<Accordion>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private void
public InputMap<Accordion>
private void
public void
mousePressed(MouseEvent e)

Mouse press over the background of the accordion i.e. it missed all of the titled panes select the last titled pane, or the accordion if none present

private void
private void
private void
pageDown(boolean doExpand)

private void
pageUp(boolean doExpand)

* Key event handling * *

Inherited from com.sun.javafx.scene.control.behavior.BehaviorBase:
addDefaultChildMapaddDefaultMappingaddDefaultMappingaddDefaultMappingcreateInputMapgetNodeisRTLremoveMappingrtlrtl

Field Detail

focusModelback to summary
private AccordionBehavior.AccordionFocusModel focusModel
inputMapback to summary
private final InputMap<Accordion> inputMap

Constructor Detail

AccordionBehaviorback to summary
public AccordionBehavior(Accordion accordion)

Method Detail

disposeback to summary
public void dispose()

Overrides com.sun.javafx.scene.control.behavior.BehaviorBase.dispose.

Annotations
@Override
endback to summary
private void end(KeyEvent e)
getInputMapback to summary
public InputMap<Accordion> getInputMap()

Implements abstract com.sun.javafx.scene.control.behavior.BehaviorBase.getInputMap.

Annotations
@Override
homeback to summary
private void home(KeyEvent e)
mousePressedback to summary
public void mousePressed(MouseEvent e)

Mouse press over the background of the accordion i.e. it missed all of the titled panes select the last titled pane, or the accordion if none present

moveBackwardback to summary
private void moveBackward(KeyEvent e)
moveForwardback to summary
private void moveForward(KeyEvent e)
pageDownback to summary
private void pageDown(boolean doExpand)
pageUpback to summary
private void pageUp(boolean doExpand)

* Key event handling * *

com.sun.javafx.scene.control.behavior back to summary

pack-priv Class AccordionBehavior.AccordionFocusModel

extends FocusModel<TitledPane>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Accordion
private final ChangeListener<Boolean>
private final ChangeListener<Boolean>
private final ListChangeListener<TitledPane>

Constructor Summary

AccessConstructor and Description
public
AccordionFocusModel(final Accordion accordion)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public void
focusNext()

Overrides javafx.scene.control.FocusModel.focusNext.

Attempts to give focus to the row after to the currently focused row.

public void
focusPrevious()

Overrides javafx.scene.control.FocusModel.focusPrevious.

Attempts to give focus to the row previous to the currently focused row.

protected int
getItemCount()

Implements abstract javafx.scene.control.FocusModel.getItemCount.

Returns the number of items in the data model that underpins the control.

protected TitledPane
getModelItem(int
The index of the item that is requested from the underlying data model.
row
)

Implements abstract javafx.scene.control.FocusModel.getModelItem.

Returns the item at the given index.

Inherited from javafx.scene.control.FocusModel:
focusfocusedIndexPropertyfocusedItemPropertygetFocusedIndexgetFocusedItemisFocused

Field Detail

accordionback to summary
private final Accordion accordion
focusListenerback to summary
private final ChangeListener<Boolean> focusListener
paneFocusListenerback to summary
private final ChangeListener<Boolean> paneFocusListener
panesListenerback to summary
private final ListChangeListener<TitledPane> panesListener

Constructor Detail

AccordionFocusModelback to summary
public AccordionFocusModel(final Accordion accordion)

Method Detail

disposeback to summary
pack-priv void dispose()
focusNextback to summary
public void focusNext()

Overrides javafx.scene.control.FocusModel.focusNext.

Doc from javafx.scene.control.FocusModel.focusNext.

Attempts to give focus to the row after to the currently focused row. If the current focus owner is the last row, calling this method will have no result.

Annotations
@Override
focusPreviousback to summary
public void focusPrevious()

Overrides javafx.scene.control.FocusModel.focusPrevious.

Doc from javafx.scene.control.FocusModel.focusPrevious.

Attempts to give focus to the row previous to the currently focused row. If the current focus owner is the first row, or is -1 (representing that there is no current focus owner), calling this method will have no result.

Annotations
@Override
getItemCountback to summary
protected int getItemCount()

Implements abstract javafx.scene.control.FocusModel.getItemCount.

Doc from javafx.scene.control.FocusModel.getItemCount.

Returns the number of items in the data model that underpins the control. An example would be that a ListView focus model would likely return listView.getItems().size(). The valid range of focusable indices is between 0 and whatever is returned by this method.

Returns:int

the number of items in the data model that underpins the control

Annotations
@Override
getModelItemback to summary
protected TitledPane getModelItem(int row)

Implements abstract javafx.scene.control.FocusModel.getModelItem.

Doc from javafx.scene.control.FocusModel.getModelItem.

Returns the item at the given index. An example using ListView would be listView.getItems().get(index).

Parameters
row:int

The index of the item that is requested from the underlying data model.

Returns:TitledPane

Returns null if the index is out of bounds, or an element of type T that is related to the given index.

Annotations
@Override