Module org.tentackle.fx.rdc
Class RdcChoiceBoxDelegate
java.lang.Object
org.tentackle.fx.FxControlDelegate
org.tentackle.fx.FxComponentDelegate
org.tentackle.fx.component.delegate.FxChoiceBoxDelegate
org.tentackle.fx.rdc.component.delegate.RdcChoiceBoxDelegate
- All Implemented Interfaces:
ErrorPopupSupported,FxComponent,FxControl,InfoPopupSupported
Delegate for RdcChoiceBox.
- Author:
- harald
-
Property Summary
Properties inherited from class org.tentackle.fx.FxComponentDelegate
mandatoryProperties inherited from class org.tentackle.fx.FxControlDelegate
changeable, viewModifiedProperties inherited from interface org.tentackle.fx.FxControl
changeable, viewModified -
Field Summary
Fields inherited from class org.tentackle.fx.FxComponentDelegate
ERROR_STYLE, INFO_STYLE, MANDATORY_STYLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PdoComponentAddonCreates the PDO style implementation.Gets the domain context from the binding properties.<T extends PersistentDomainObject<T>>
javafx.util.Callback<T, Collection<T>> Gets the callback to load all PDOs.
Used byPdoComponentAddon.getAllPdos(PersistentDomainObject).Gets the PDO addon.<T extends PersistentDomainObject<T>>
voidsetLoadAllPdosCallback(javafx.util.Callback<T, Collection<T>> loadAllPdosCallback) Sets the callback to load all PDOs.
Used byPdoComponentAddon.getAllPdos(PersistentDomainObject).voidvoidsetViewValue(Object value) Methods inherited from class org.tentackle.fx.component.delegate.FxChoiceBoxDelegate
getComponent, getParentContainer, getViewObject, getViewValue, isDeselectAllowed, setViewObjectMethods inherited from class org.tentackle.fx.FxComponentDelegate
createChangeableProperty, getBinding, getBindingPath, getComponentPath, getDelegate, getError, getGenericType, getInfo, getLastViewObject, getNode, getSavedViewObject, getTableCell, getTreeTableCell, getType, getValueTranslator, handleInputFailure, hideErrorPopup, hideInfoPopup, invalidateSavedView, isErrorTemporary, isListenerSuppressedIfModelUnchanged, isListenerSuppressedIfViewUnchanged, isMandatory, isModelUpdated, isSavedViewObjectValid, isUpdatingModel, isUpdatingView, mandatoryProperty, saveView, setBinding, setBindingPath, setComponentPath, setContainerChangeable, setError, setErrorTemporary, setGenericType, setInfo, setLastViewObject, setListenerSuppressedIfModelUnchanged, setListenerSuppressedIfViewUnchanged, setMandatory, setTableCell, setTreeTableCell, setValueTranslator, showErrorPopup, showInfoPopup, toGenericString, toString, triggerViewModified, updateChangeable, updateErrorStyle, updateInfoStyle, updateMandatoryStyle, updateModel, updateViewMethods inherited from class org.tentackle.fx.FxControlDelegate
addModelToViewListener, addViewToModelListener, changeableProperty, fireModelToViewListeners, fireViewToModelListeners, getHelpUrl, getModelToViewListeners, getViewToModelListeners, isBindable, isChangeable, isContainerChangeableIgnored, isControlChangeable, isViewModified, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangeableIgnored, setHelpUrl, setViewModified, showHelp, viewModifiedPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.fx.FxComponent
isCellEditorMethods inherited from interface org.tentackle.fx.FxControl
addModelToViewListener, addViewToModelListener, changeableProperty, getHelpUrl, isBindable, isChangeable, isContainerChangeableIgnored, isViewModified, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangeableIgnored, setHelpUrl, setViewModified, showHelp, viewModifiedProperty
-
Constructor Details
-
RdcChoiceBoxDelegate
Creates the delegate.- Parameters:
component- the component
-
-
Method Details
-
setType
- Specified by:
setTypein interfaceFxComponent- Overrides:
setTypein classFxChoiceBoxDelegate
-
setViewValue
- Specified by:
setViewValuein interfaceFxComponent- Overrides:
setViewValuein classFxChoiceBoxDelegate
-
getDomainContext
Gets the domain context from the binding properties.- Returns:
- the context, null if not bound or no such property
-
getLoadAllPdosCallback
public <T extends PersistentDomainObject<T>> javafx.util.Callback<T,Collection<T>> getLoadAllPdosCallback()Gets the callback to load all PDOs.
Used byPdoComponentAddon.getAllPdos(PersistentDomainObject).- Returns:
- the callback
-
setLoadAllPdosCallback
public <T extends PersistentDomainObject<T>> void setLoadAllPdosCallback(javafx.util.Callback<T, Collection<T>> loadAllPdosCallback) Sets the callback to load all PDOs.
Used byPdoComponentAddon.getAllPdos(PersistentDomainObject).- Parameters:
loadAllPdosCallback- the callback
-
getPdoAddon
Gets the PDO addon.- Returns:
- the addon
-
createPdoAddon
Creates the PDO style implementation.- Returns:
- the implementation
-