Top Fields Constructors Methods
com.dlsc.formsfx.model.structure

public abstract Class Element<E extends Element<E>>

extends Object
Class Inheritance
Known Direct Subclasses
com.dlsc.formsfx.model.structure.Field, com.dlsc.formsfx.model.structure.NodeElement
Imports
com.dlsc.formsfx.view.util.ColSpan, javafx.beans.property.IntegerProperty, .ListProperty, .SimpleIntegerProperty, .SimpleListProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, .ObservableList, java.util.UUID

Author
Andres Almiray

Field Summary

Modifier and TypeField and Description
protected final StringProperty
id

Fields can be styled using CSS through ID or class hooks.

protected final IntegerProperty
protected final ListProperty<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public int
public ObservableList<String>
public E

Returns:

Returns the current field to allow for chaining.
id
(String
The new value for the id property.
newValue
)

Sets the id property of the current field.

public StringProperty
public E

Returns:

Returns the current field to allow for chaining.
span
(int
The new number of columns.
newValue
)

Sets the amount of columns the field takes up inside the section grid.

public E

Returns:

Returns the current field to allow for chaining.
span
(ColSpan
The new span fraction.
newValue
)

Sets the amount of columns the field takes up inside the section grid.

public IntegerProperty
public E

Returns:

Returns the current field to allow for chaining.
styleClass
(String...
The new style classes.
newValue
)

Sets the style classes for the current field.

public ListProperty<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
protected final StringProperty id

Fields can be styled using CSS through ID or class hooks.

spanback to summary
protected final IntegerProperty span
styleClassback to summary
protected final ListProperty<String> styleClass

Constructor Detail

Elementback to summary
public Element()

Method Detail

getIDback to summary
public String getID()
getSpanback to summary
public int getSpan()
getStyleClassback to summary
public ObservableList<String> getStyleClass()
idback to summary
public E id(String newValue)

Sets the id property of the current field.

Parameters
newValue:String

The new value for the id property.

Returns:E

Returns the current field to allow for chaining.

idPropertyback to summary
public StringProperty idProperty()
spanback to summary
public E span(int newValue)

Sets the amount of columns the field takes up inside the section grid.

Parameters
newValue:int

The new number of columns.

Returns:E

Returns the current field to allow for chaining.

spanback to summary
public E span(ColSpan newValue)

Sets the amount of columns the field takes up inside the section grid.

Parameters
newValue:ColSpan

The new span fraction.

Returns:E

Returns the current field to allow for chaining.

spanPropertyback to summary
public IntegerProperty spanProperty()
styleClassback to summary
public E styleClass(String... newValue)

Sets the style classes for the current field.

Parameters
newValue:String[]

The new style classes.

Returns:E

Returns the current field to allow for chaining.

styleClassPropertyback to summary
public ListProperty<String> styleClassProperty()