Module org.tentackle.fx.rdc
Class RdcBoxDelegateImpl
java.lang.Object
org.tentackle.fx.rdc.component.delegate.RdcBoxDelegateImpl
Common implementation for choice- and combobox delegates.
-
Constructor Summary
ConstructorsConstructorDescriptionRdcBoxDelegateImpl(FxComponent component, Supplier<javafx.collections.ObservableList> itemSupplier, Supplier<PdoComponentAddon> pdoAddonSupplier) Creates the delegate impl. -
Method Summary
Modifier and TypeMethodDescriptionGets the domain context from the binding properties.voidprepareSetType(Class<?> type) Prepare the component's setType method.voidPrepare the component's setViewValue method.
-
Constructor Details
-
RdcBoxDelegateImpl
public RdcBoxDelegateImpl(FxComponent component, Supplier<javafx.collections.ObservableList> itemSupplier, Supplier<PdoComponentAddon> pdoAddonSupplier) Creates the delegate impl.- Parameters:
component- the componentitemSupplier- gets the list of items shown by the componentpdoAddonSupplier- get the PDO addon
-
-
Method Details
-
prepareSetType
Prepare the component's setType method.- Parameters:
type- the type
-
getDomainContext
Gets the domain context from the binding properties.- Returns:
- the context, null if not bound or no such property
-
prepareSetViewValue
public void prepareSetViewValue()Prepare the component's setViewValue method.
-