A segment represents one single selection block that contains elements which the user can pick from. Basically a
segment is composed by a predefined list of elements (items), and one
selected value.
Usually a segment is one piece of a bigger control called Picker, so in order to use segments a picker
must be created. In that sense, every time a Segment instance is required, it is also necessary to have a Picker
instance. The segment's value is independent of the picker value, so they do not have any direct binding.
However the segment's value can be used to compose the picker's value.
Picker
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final ObservableList | |
| private final Picker | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final BooleanProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final Callback | |
| protected List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final ObservableList | |
| public final Picker | |
| public final S | |
| public final boolean | |
| public final boolean | |
| public final BooleanProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | |
| public final BooleanProperty |
| cellFactory | back to summary |
|---|---|
| private final ObjectProperty<Callback<Segment<T, S>, SegmentCell<S>>> cellFactory | |
| items | back to summary |
|---|---|
| private final ObservableList<S> items | |
| picker | back to summary |
|---|---|
| private final Picker<T> picker | |
| readOnly | back to summary |
|---|---|
| private final BooleanProperty readOnly | |
| value | back to summary |
|---|---|
| private final ObjectProperty<S> value | |
| wrapItems | back to summary |
|---|---|
| private final BooleanProperty wrapItems | |
| Segment | back to summary |
|---|---|
| public Segment(Picker<T> picker) Creates a new instance of a segment with the given list of items and
| |
| cellFactoryProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| 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 | |
| getCellFactory | back to summary |
|---|---|
| public final Callback | |
| getControlCssMetaData | back to summary |
|---|---|
| protected List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getItems | back to summary |
|---|---|
public final ObservableList
| |
| getPicker | back to summary |
|---|---|
public final Picker
| |
| getValue | back to summary |
|---|---|
| public final S getValue() | |
| isReadOnly | back to summary |
|---|---|
| public final boolean isReadOnly() | |
| isWrapItems | back to summary |
|---|---|
| public final boolean isWrapItems() | |
| readOnlyProperty | back to summary |
|---|---|
| public final BooleanProperty readOnlyProperty() | |
| setCellFactory | back to summary |
|---|---|
| public final void setCellFactory(Callback<Segment<T, S>, SegmentCell<S>> cellFactory) | |
| setReadOnly | back to summary |
|---|---|
| public final void setReadOnly(boolean readOnly) | |
| setValue | back to summary |
|---|---|
| public final void setValue(S value) | |
| setWrapItems | back to summary |
|---|---|
| public final void setWrapItems(boolean wrapItems) | |
| valueProperty | back to summary |
|---|---|
public final ObjectProperty
| |
| wrapItemsProperty | back to summary |
|---|---|
| public final BooleanProperty wrapItemsProperty() | |