Top Fields Constructors Methods
com.dlsc.workbenchfx.view.controls.selectionstrip

public Class SelectionStrip<T>

extends Control
Class Inheritance
Imports
javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.Control, .Skin, javafx.util.Callback, .Duration

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private final ObjectProperty<Duration>
private final BooleanProperty
private final ObjectProperty<Callback<SelectionStrip<T>, StripCell<T>>>
private final ListProperty<T>
public final ObjectProperty<T>

Constructor Summary

AccessConstructor and Description
public
SelectionStrip()

Constructs a new SelectionStrip.

Method Summary

Modifier and TypeMethod and Description
public final BooleanProperty
public final ObjectProperty<Duration>
public final BooleanProperty
public ObjectProperty<Callback<SelectionStrip<T>, StripCell<T>>>
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final Duration
public Callback<SelectionStrip<T>, StripCell<T>>
public final ObservableList<T>
public final T
public String
getUserAgentStylesheet()

Overrides javafx.scene.layout.Region.getUserAgentStylesheet.

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 ListProperty<T>
public void
scrollTo(T item)

public final ObjectProperty<T>
public final void
setAnimateScrolling(boolean animateScrolling)

public final void
setAnimationDuration(Duration animationDuration)

public final void
setAutoScrolling(boolean autoScrolling)

public void
public final void
public final void
setSelectedItem(T selectedItem)

Inherited from javafx.scene.control.Control:
computeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthcontextMenuPropertyexecuteAccessibleActiongetBaselineOffsetgetClassCssMetaDatagetContextMenugetControlCssMetaDatagetCssMetaDatagetInitialFocusTraversablegetSkingetTooltipisResizablelayoutChildrenqueryAccessibleAttributesetContextMenusetSkinsetTooltipskinPropertytooltipProperty

Field Detail

animateScrollingback to summary
private final BooleanProperty animateScrolling
animationDurationback to summary
private final ObjectProperty<Duration> animationDuration
autoScrollingback to summary
private final BooleanProperty autoScrolling
cellFactoryback to summary
private final ObjectProperty<Callback<SelectionStrip<T>, StripCell<T>>> cellFactory
itemsback to summary
private final ListProperty<T> items
selectedItemback to summary
public final ObjectProperty<T> selectedItem

Constructor Detail

SelectionStripback to summary
public SelectionStrip()

Constructs a new SelectionStrip.

Method Detail

animateScrollingPropertyback to summary
public final BooleanProperty animateScrollingProperty()
animationDurationPropertyback to summary
public final ObjectProperty<Duration> animationDurationProperty()
autoScrollingPropertyback to summary
public final BooleanProperty autoScrollingProperty()
cellFactoryPropertyback to summary
public ObjectProperty<Callback<SelectionStrip<T>, StripCell<T>>> cellFactoryProperty()
createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

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 -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

Annotations
@Override
getAnimationDurationback to summary
public final Duration getAnimationDuration()
getCellFactoryback to summary
public Callback<SelectionStrip<T>, StripCell<T>> getCellFactory()
getItemsback to summary
public final ObservableList<T> getItems()
getSelectedItemback to summary
public final T getSelectedItem()
getUserAgentStylesheetback to summary
public String getUserAgentStylesheet()

Overrides javafx.scene.layout.Region.getUserAgentStylesheet.

Doc from javafx.scene.layout.Region.getUserAgentStylesheet.

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.



package com.example.javafx.app;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MyApp extends Application {

    @Override public void start(Stage stage) {
        Scene scene = new Scene(new Group());
        scene.getStylesheets().add("/com/example/javafx/app/mystyles.css");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
For additional information about using CSS with the scene graph, see the CSS Reference Guide.
Returns:String

A string URL

Annotations
@Override
isAnimateScrollingback to summary
public final boolean isAnimateScrolling()
isAutoScrollingback to summary
public final boolean isAutoScrolling()
itemsPropertyback to summary
public final ListProperty<T> itemsProperty()
scrollToback to summary
public void scrollTo(T item)
selectedItemPropertyback to summary
public final ObjectProperty<T> selectedItemProperty()
setAnimateScrollingback to summary
public final void setAnimateScrolling(boolean animateScrolling)
setAnimationDurationback to summary
public final void setAnimationDuration(Duration animationDuration)
setAutoScrollingback to summary
public final void setAutoScrolling(boolean autoScrolling)
setCellFactoryback to summary
public void setCellFactory(Callback<SelectionStrip<T>, StripCell<T>> cellFactory)
setItemsback to summary
public final void setItems(ObservableList<T> items)
setSelectedItemback to summary
public final void setSelectedItem(T selectedItem)