Top Description Fields Constructors Methods
org.controlsfx.control.spreadsheet

public abstract Class Picker

extends Object
Class Inheritance
Imports
java.util.Collection, javafx.collections.FXCollections, .ObservableList

Pickers can display some Images next to the headers.
You can specify the image by providing custom StyleClass :
.picker-label{
  -fx-graphic: url("add.png"); 
  -fx-background-color: white;
  -fx-padding: 0 0 0 0;
}
The onClick() method does nothing by default, so you can override it if you want to execute a custom action when the user will click on your Picker.

Visual:

Screenshot of Picker

Field Summary

Modifier and TypeField and Description
private final ObservableList<String>

Constructor Summary

AccessConstructor and Description
public
Picker()

Default constructor, the default "picker-label" styleClass is applied.

public
Picker(String... styleClass)

Initialize this Picker with the style classes provided.

public
Picker(Collection<String> styleClass)

Initialize this Picker with the style classes provided.

Method Summary

Modifier and TypeMethod and Description
public final ObservableList<String>
getStyleClass()

Returns: the style class of this picker.

public abstract void
onClick()

This method will be called whenever the user clicks on this picker.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

styleClassback to summary
private final ObservableList<String> styleClass

Constructor Detail

Pickerback to summary
public Picker()

Default constructor, the default "picker-label" styleClass is applied.

Pickerback to summary
public Picker(String... styleClass)

Initialize this Picker with the style classes provided.

Pickerback to summary
public Picker(Collection<String> styleClass)

Initialize this Picker with the style classes provided.

Method Detail

getStyleClassback to summary
public final ObservableList<String> getStyleClass()
Returns:ObservableList<String>

the style class of this picker.

onClickback to summary
public abstract void onClick()

This method will be called whenever the user clicks on this picker.