Class Element<E extends Element<E>>

java.lang.Object
com.dlsc.formsfx.model.structure.Element<E>
Direct Known Subclasses:
Field, NodeElement

public abstract class Element<E extends Element<E>>
extends Object
Author:
Andres Almiray
  • Property Summary

    Properties 
    Type Property Description
    javafx.beans.property.StringProperty id
    Fields can be styled using CSS through ID or class hooks.
    javafx.beans.property.IntegerProperty span  
    javafx.beans.property.ListProperty<String> styleClass  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected javafx.beans.property.StringProperty id
    Fields can be styled using CSS through ID or class hooks.
    protected javafx.beans.property.IntegerProperty span  
    protected javafx.beans.property.ListProperty<String> styleClass  
  • Constructor Summary

    Constructors 
    Constructor Description
    Element()  
  • Method Summary

    Modifier and Type Method Description
    String getID()  
    int getSpan()
    Gets the value of the property span.
    javafx.collections.ObservableList<String> getStyleClass()
    Gets the value of the property styleClass.
    E id​(String newValue)
    Sets the id property of the current field.
    javafx.beans.property.StringProperty idProperty()
    Fields can be styled using CSS through ID or class hooks.
    E span​(int newValue)
    Sets the amount of columns the field takes up inside the section grid.
    E span​(ColSpan newValue)
    Sets the amount of columns the field takes up inside the section grid.
    javafx.beans.property.IntegerProperty spanProperty()  
    E styleClass​(String... newValue)
    Sets the style classes for the current field.
    javafx.beans.property.ListProperty<String> styleClassProperty()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

    • span

      public javafx.beans.property.IntegerProperty spanProperty
      See Also:
      getSpan()
    • id

      public javafx.beans.property.StringProperty idProperty
      Fields can be styled using CSS through ID or class hooks.
    • styleClass

      public javafx.beans.property.ListProperty<String> styleClassProperty
      See Also:
      getStyleClass()
  • Field Details

    • id

      protected final javafx.beans.property.StringProperty id
      Fields can be styled using CSS through ID or class hooks.
    • styleClass

      protected final javafx.beans.property.ListProperty<String> styleClass
    • span

      protected final javafx.beans.property.IntegerProperty span
  • Constructor Details

  • Method Details

    • id

      public E id​(String newValue)
      Sets the id property of the current field.
      Parameters:
      newValue - The new value for the id property.
      Returns:
      Returns the current field to allow for chaining.
    • styleClass

      public E styleClass​(String... newValue)
      Sets the style classes for the current field.
      Parameters:
      newValue - The new style classes.
      Returns:
      Returns the current field to allow for chaining.
    • span

      public E span​(int newValue)
      Sets the amount of columns the field takes up inside the section grid.
      Parameters:
      newValue - The new number of columns.
      Returns:
      Returns the current field to allow for chaining.
    • span

      public E span​(ColSpan newValue)
      Sets the amount of columns the field takes up inside the section grid.
      Parameters:
      newValue - The new span fraction.
      Returns:
      Returns the current field to allow for chaining.
    • getSpan

      public int getSpan()
      Gets the value of the property span.
      Property description:
    • spanProperty

      public javafx.beans.property.IntegerProperty spanProperty()
      See Also:
      getSpan()
    • getID

      public String getID()
    • idProperty

      public javafx.beans.property.StringProperty idProperty()
      Fields can be styled using CSS through ID or class hooks.
    • getStyleClass

      public javafx.collections.ObservableList<String> getStyleClass()
      Gets the value of the property styleClass.
      Property description:
    • styleClassProperty

      public javafx.beans.property.ListProperty<String> styleClassProperty()
      See Also:
      getStyleClass()