public abstract class AbstractWidget extends java.lang.Object implements Widget
Widget
that implements property methods. This also has a method
exportProperties
that allows subclasses to easily add properties.Type | Property and Description |
---|---|
javafx.beans.property.StringProperty |
title
Gets the label for this component.
|
Modifier and Type | Field and Description |
---|---|
protected javafx.collections.ObservableList<DataSource> |
sources |
Modifier | Constructor and Description |
---|---|
protected |
AbstractWidget() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(DataSource source)
Adds a source.
|
protected void |
exportProperties(javafx.beans.property.Property<?>... properties)
Exports the given properties so other parts of the app can see the properties of this widget.
|
javafx.collections.ObservableList<javafx.beans.property.Property<?>> |
getProperties()
Gets the user-configurable properties for this widget.
|
javafx.collections.ObservableList<DataSource> |
getSources()
Gets an observable list of the sources for this object.
|
void |
setTitle(java.lang.String title)
Sets the value of the property title.
|
javafx.beans.property.StringProperty |
titleProperty()
Gets the label for this component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allComponents
getName, getTitle, getView
getDataTypes, removeAllSources, removeSource
public javafx.beans.property.StringProperty titleProperty
titleProperty
in interface Component
setTitle(String)
protected final javafx.collections.ObservableList<DataSource> sources
public void setTitle(java.lang.String title)
protected final void exportProperties(javafx.beans.property.Property<?>... properties)
properties
- the properties to exportpublic javafx.beans.property.StringProperty titleProperty()
Component
titleProperty
in interface Component
setTitle(String)
public final javafx.collections.ObservableList<javafx.beans.property.Property<?>> getProperties()
Widget
getProperties
in interface Widget
public final javafx.collections.ObservableList<DataSource> getSources()
Sourced
getSources
in interface Sourced
public void addSource(DataSource source) throws IncompatibleSourceException
Sourced
addSource
in interface Sourced
source
- the source to addIncompatibleSourceException
- if the source is not compatible with this object