java.lang.Object
org.tentackle.fx.FxControlDelegate
org.tentackle.fx.FxComponentDelegate
org.tentackle.fx.component.delegate.FxTableViewDelegate
- All Implemented Interfaces:
ErrorPopupSupported,FxComponent,FxControl,InfoPopupSupported
Delegate for FxTableView.
- 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 TypeMethodDescriptionFxTableView<?>Gets the component of this delegate.Gets the parent container.javafx.collections.ObservableListRetrieves the internal native object of the component.booleanGets the value of the property viewModified.voidsetContainerChangeable(boolean containerChangeable) Invoked when setChangeable() is invoked on the container of this component.voidSets the type for this component.voidsetViewObject(Object viewObject) Sets the internal native object of the component.voidsetViewValue(Object value) Sets a value in this component.
The value's type is that of the model.voidWalks up the component hierarchy and updates the viewModified property.
This is done by comparing the saved view value with the current view.protected voidupdateChangeable(boolean changeable) Updates other properties if changeable is bound to something else.voidUpdates the model according to the view.Methods inherited from class org.tentackle.fx.FxComponentDelegate
createChangeableProperty, getBinding, getBindingPath, getComponentPath, getDelegate, getError, getGenericType, getInfo, getLastViewObject, getNode, getSavedViewObject, getTableCell, getTreeTableCell, getType, getValueTranslator, getViewValue, handleInputFailure, hideErrorPopup, hideInfoPopup, invalidateSavedView, isErrorTemporary, isListenerSuppressedIfModelUnchanged, isListenerSuppressedIfViewUnchanged, isMandatory, isModelUpdated, isSavedViewObjectValid, isUpdatingModel, isUpdatingView, mandatoryProperty, saveView, setBinding, setBindingPath, setComponentPath, setError, setErrorTemporary, setGenericType, setInfo, setLastViewObject, setListenerSuppressedIfModelUnchanged, setListenerSuppressedIfViewUnchanged, setMandatory, setTableCell, setTreeTableCell, setValueTranslator, showErrorPopup, showInfoPopup, toGenericString, toString, updateErrorStyle, updateInfoStyle, updateMandatoryStyle, updateViewMethods inherited from class org.tentackle.fx.FxControlDelegate
addModelToViewListener, addViewToModelListener, changeableProperty, fireModelToViewListeners, fireViewToModelListeners, getHelpUrl, getModelToViewListeners, getViewToModelListeners, isBindable, isChangeable, isContainerChangeableIgnored, isControlChangeable, 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, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangeableIgnored, setHelpUrl, setViewModified, showHelp, viewModifiedProperty
-
Constructor Details
-
FxTableViewDelegate
Creates the delegate.- Parameters:
component- the component
-
-
Method Details
-
getComponent
Description copied from class:FxComponentDelegateGets the component of this delegate.- Specified by:
getComponentin classFxComponentDelegate- Returns:
- the component
-
getParentContainer
Description copied from interface:FxControlGets the parent container.- Specified by:
getParentContainerin interfaceFxControl- Overrides:
getParentContainerin classFxComponentDelegate- Returns:
- the parent, null if not a component of a container
-
setType
Description copied from interface:FxComponentSets the type for this component.Notice that the type can be applied only once. This is because previously installed listeners could cause memory leaks.
- Specified by:
setTypein interfaceFxComponent- Overrides:
setTypein classFxComponentDelegate- Parameters:
type- the type
-
getViewObject
public javafx.collections.ObservableList getViewObject()Description copied from interface:FxComponentRetrieves the internal native object of the component.- Returns:
- the component's object
-
setViewObject
Description copied from interface:FxComponentSets the internal native object of the component.- Parameters:
viewObject- the internal object
-
setViewValue
Description copied from interface:FxComponentSets a value in this component.
The value's type is that of the model.- Specified by:
setViewValuein interfaceFxComponent- Overrides:
setViewValuein classFxComponentDelegate- Parameters:
value- is the value to set
-
isViewModified
public boolean isViewModified()Description copied from class:FxControlDelegateGets the value of the property viewModified.- Specified by:
isViewModifiedin interfaceFxControl- Overrides:
isViewModifiedin classFxControlDelegate- Returns:
- true if user changed the visual representation
-
triggerViewModified
public void triggerViewModified()Description copied from interface:FxControlWalks up the component hierarchy and updates the viewModified property.
This is done by comparing the saved view value with the current view.- Specified by:
triggerViewModifiedin interfaceFxControl- Overrides:
triggerViewModifiedin classFxComponentDelegate
-
updateModel
public void updateModel()Description copied from interface:FxControlUpdates the model according to the view.- Specified by:
updateModelin interfaceFxControl- Overrides:
updateModelin classFxComponentDelegate
-
updateChangeable
protected void updateChangeable(boolean changeable) Description copied from class:FxControlDelegateUpdates other properties if changeable is bound to something else.- Overrides:
updateChangeablein classFxComponentDelegate- Parameters:
changeable- the flag
-
setContainerChangeable
public void setContainerChangeable(boolean containerChangeable) Description copied from interface:FxControlInvoked when setChangeable() is invoked on the container of this component.- Specified by:
setContainerChangeablein interfaceFxControl- Overrides:
setContainerChangeablein classFxComponentDelegate- Parameters:
containerChangeable- true if container is changeable, false if all components readonly
-