public abstract class SingleSourceWidget extends AbstractWidget
Widget
that only has a single source.Type | Property and Description |
---|---|
javafx.beans.property.Property<DataSource> |
source |
titleProperty
Modifier and Type | Field and Description |
---|---|
protected javafx.beans.property.ObjectProperty<DataSource> |
source |
sources
Constructor and Description |
---|
SingleSourceWidget() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(DataSource source)
Adds a source.
|
DataSource |
getSource()
Gets the value of the property source.
|
void |
setSource(DataSource source)
Sets the value of the property source.
|
javafx.beans.property.Property<DataSource> |
sourceProperty() |
exportProperties, getProperties, getSources, setTitle, titleProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allComponents
getName, getTitle, getView
getDataTypes, removeAllSources, removeSource
public final javafx.beans.property.Property<DataSource> sourceProperty
getSource()
,
setSource(DataSource)
protected final javafx.beans.property.ObjectProperty<DataSource> source
public final void addSource(DataSource source) throws IncompatibleSourceException
Sourced
addSource
in interface Sourced
addSource
in class AbstractWidget
source
- the source to addIncompatibleSourceException
- if the source is not compatible with this objectpublic final javafx.beans.property.Property<DataSource> sourceProperty()
getSource()
,
setSource(DataSource)
public final DataSource getSource()
public final void setSource(DataSource source) throws IncompatibleSourceException
IncompatibleSourceException