Skip to content

Package io.github.qishr.cascara.ui.form

Class AbstractFormComponent

java.lang.Object
        javafx.scene.Node
                javafx.scene.Parent
                        javafx.scene.layout.Region
                                javafx.scene.layout.Pane
                                        javafx.scene.layout.VBox
                                                io.github.qishr.cascara.ui.form.AbstractFormComponent

Direct Known Subtypes:
    Section, Field


public abstract class AbstractFormComponent
extends VBox

Field Summary

Modifier and Type Field Description
protected FieldLabel description
protected InvalidationListener listener
protected final SimpleStringProperty query
protected FieldLabel title

Constructor Summary

Constructor Description
AbstractFormComponent()

Method Summary

Modifier and Type Method Description
public void setTitle(FieldLabel title)
public void setDescription(FieldLabel description)
protected void internalChange()
protected abstract void onTextChanged()
protected abstract void performLayout()
public String getQuery()
protected void updateSearchHighlight()

Field Details

description

protected FieldLabel description


listener

protected InvalidationListener listener


query

protected final SimpleStringProperty query


title

protected FieldLabel title


Method Details

setTitle

public void setTitle(FieldLabel title)


setDescription

public void setDescription(FieldLabel description)


internalChange

protected void internalChange()


onTextChanged

protected abstract void onTextChanged()


performLayout

protected abstract void performLayout()


getQuery

public String getQuery()


updateSearchHighlight

protected void updateSearchHighlight()