MaskedView to fade out the elements on the
side. This ensures that the scroll buttons will be fully visible.
| Modifier and Type | Class and Description |
|---|---|
| public static class | StripView.
the type of the model object shown by the cell T>A strip cell is being used by cell factories of the |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BooleanProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private static final int | |
| private DoubleProperty | |
| private final ListProperty | |
| private final BooleanProperty | |
| public final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | Returns: true if the selected item will be centeredA flag used to signal whether the currently selected item should always end up in the center location of the view (if possible). |
| public final BooleanProperty | Returns: true if the scroll operation will be animatedEnables or disables whether animation is being used when scrolling to the left or right. |
| public final ObjectProperty | Returns: the scroll animation durationDetermines the duration of the scroll animation. |
| public final BooleanProperty | Returns: true if the control uses automatic scrolling when an item becomes selectedDetermines whether the view will automatically scroll to a newly selected item. |
| public final ObjectProperty | Returns: the cell factoryA factory used for creating cells that will display the items added to the strip view. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final DoubleProperty | Returns: the size of the fading areas / the clips used for fadingSpecifies the size of the fade in / out areas on the left- and right-hand side. |
| public final Duration | |
| public final Callback | |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| protected List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final double | |
| public final ObservableList | |
| public final T | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final ListProperty | Returns: the list of items shown in the viewThe model used by the strip view control. |
| public final BooleanProperty | loopSelectionProperty()
Property to determine whether the selection should loop from the end to the start and vice versa. |
| public void | |
| public final ObjectProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void |
| alwaysCenter | back to summary |
|---|---|
| private final BooleanProperty alwaysCenter | |
| animateScrolling | back to summary |
|---|---|
| private final BooleanProperty animateScrolling | |
| animationDuration | back to summary |
|---|---|
| private final ObjectProperty<Duration> animationDuration | |
| autoScrolling | back to summary |
|---|---|
| private final BooleanProperty autoScrolling | |
| cellFactory | back to summary |
|---|---|
| private final ObjectProperty<Callback<StripView<T>, StripView. | |
| DEFAULT_FADING_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_FADING_SIZE | |
| fadingSize | back to summary |
|---|---|
| private DoubleProperty fadingSize | |
| items | back to summary |
|---|---|
| private final ListProperty<T> items | |
| loopSelection | back to summary |
|---|---|
| private final BooleanProperty loopSelection | |
| selectedItem | back to summary |
|---|---|
| public final ObjectProperty<T> selectedItem | |
| StripView | back to summary |
|---|---|
| public StripView() Constructs a new strip view. | |
| alwaysCenterProperty | back to summary |
|---|---|
| public final BooleanProperty alwaysCenterProperty() A flag used to signal whether the currently selected item should always end up in the center location of the view (if possible).
| |
| animateScrollingProperty | back to summary |
|---|---|
| public final BooleanProperty animateScrollingProperty() Enables or disables whether animation is being used when scrolling to the left or right.
| |
| animationDurationProperty | back to summary |
|---|---|
| public final ObjectProperty Determines the duration of the scroll animation.
| |
| autoScrollingProperty | back to summary |
|---|---|
| public final BooleanProperty autoScrollingProperty() Determines whether the view will automatically scroll to a newly selected item.
| |
| cellFactoryProperty | back to summary |
|---|---|
| public final ObjectProperty A factory used for creating cells that will display the items added to the strip view.
| |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| fadingSizeProperty | back to summary |
|---|---|
| public final DoubleProperty fadingSizeProperty() Specifies the size of the fade in / out areas on the left- and right-hand side.
| |
| getAnimationDuration | back to summary |
|---|---|
| public final Duration getAnimationDuration() | |
| getCellFactory | back to summary |
|---|---|
| public final Callback | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getControlCssMetaData | back to summary |
|---|---|
| protected List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getFadingSize | back to summary |
|---|---|
| public final double getFadingSize() | |
| getItems | back to summary |
|---|---|
| public final ObservableList | |
| getSelectedItem | back to summary |
|---|---|
| public final T getSelectedItem() | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| isAlwaysCenter | back to summary |
|---|---|
| public final boolean isAlwaysCenter() | |
| isAnimateScrolling | back to summary |
|---|---|
| public final boolean isAnimateScrolling() | |
| isAutoScrolling | back to summary |
|---|---|
| public final boolean isAutoScrolling() | |
| isLoopSelection | back to summary |
|---|---|
| public final boolean isLoopSelection() | |
| itemsProperty | back to summary |
|---|---|
| public final ListProperty The model used by the strip view control.
| |
| loopSelectionProperty | back to summary |
|---|---|
| public final BooleanProperty loopSelectionProperty() Property to determine whether the selection should loop from the end to the start and vice versa. true means that the selection will loop. | |
| scrollTo | back to summary |
|---|---|
| public void scrollTo(T item) | |
| selectedItemProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the currently selected item.
| |
| setAlwaysCenter | back to summary |
|---|---|
| public final void setAlwaysCenter(boolean alwaysCenter) | |
| setAnimateScrolling | back to summary |
|---|---|
| public final void setAnimateScrolling(boolean animateScrolling) | |
| setAnimationDuration | back to summary |
|---|---|
| public final void setAnimationDuration(Duration animationDuration) | |
| setAutoScrolling | back to summary |
|---|---|
| public final void setAutoScrolling(boolean autoScrolling) | |
| setCellFactory | back to summary |
|---|---|
| public final void setCellFactory(Callback<StripView<T>, StripView. | |
| setFadingSize | back to summary |
|---|---|
| public final void setFadingSize(double fadingSize) | |
| setItems | back to summary |
|---|---|
| public final void setItems(ObservableList<T> items) | |
| setLoopSelection | back to summary |
|---|---|
| public final void setLoopSelection(boolean value) | |
| setSelectedItem | back to summary |
|---|---|
| public final void setSelectedItem(T selectedItem) | |
StripView control.
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private static final PseudoClass | |
| private BooleanProperty | |
| private final InvalidationListener | |
| private final ObjectProperty | |
| private final WeakInvalidationListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final T | |
| public final StripView | |
| public final boolean | |
| public final ObjectProperty | |
| public final BooleanProperty | Returns: true if the cell is selectedDefines whether a cell is currently selected or not. |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | Returns: the parent controlStores a reference back to the strip view where the cell is being used. |
| private void |
| item | back to summary |
|---|---|
| private final ObjectProperty<T> item | |
| PSEUDO_CLASS_SELECTED | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_SELECTED | |
| selected | back to summary |
|---|---|
| private BooleanProperty selected | |
| selectionListener | back to summary |
|---|---|
| private final InvalidationListener selectionListener | |
| stripView | back to summary |
|---|---|
| private final ObjectProperty<StripView<T>> stripView | |
| weakSelectionListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakSelectionListener | |
| StripCell | back to summary |
|---|---|
| public StripCell() Constructs a new cell. | |
| getItem | back to summary |
|---|---|
| public final T getItem() | |
| getStripView | back to summary |
|---|---|
| public final StripView | |
| isSelected | back to summary |
|---|---|
| public final boolean isSelected() | |
| itemProperty | back to summary |
|---|---|
| public final ObjectProperty The model item shown in the cell.
| |
| selectedProperty | back to summary |
|---|---|
| public final BooleanProperty selectedProperty() Defines whether a cell is currently selected or not.
| |
| setItem | back to summary |
|---|---|
| public final void setItem(T item) | |
| setSelected | back to summary |
|---|---|
| public final void setSelected(boolean value) | |
| setStripView | back to summary |
|---|---|
| public final void setStripView(StripView<T> stripView) | |
| stripViewProperty | back to summary |
|---|---|
| public final ObjectProperty Stores a reference back to the strip view where the cell is being used.
| |
| updateSelection | back to summary |
|---|---|
| private void updateSelection() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| FADING_SIZE | back to summary |
|---|---|
| private static final CssMetaData<StripView<T>, Number> FADING_SIZE | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |