java.lang.Object
org.tentackle.fx.FxControlDelegate
org.tentackle.fx.FxComponentDelegate
org.tentackle.fx.FxTextComponentDelegate
org.tentackle.fx.component.delegate.FxDatePickerDelegate
- All Implemented Interfaces:
Function<javafx.scene.control.TextFormatter.Change,,javafx.scene.control.TextFormatter.Change> UnaryOperator<javafx.scene.control.TextFormatter.Change>,ErrorPopupSupported,FxComponent,FxControl,FxTextComponent,InfoPopupSupported
Delegate for FxDatePicker.
- 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.FxComponent
mandatoryProperties 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 TypeMethodDescriptionvoidSelects or deselects all text in the text input.intGets the columns.Gets the component of this delegate.javafx.scene.NodegetNode()Gets the component as a node.Retrieves the internal native object of the component.voidSets the caret position according to the error offset.
Does nothing if error offset is null.voidsetColumns(int columns) Sets the number of columns in this component.
The visible width is adjusted according to the current font.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.Methods inherited from class org.tentackle.fx.FxTextComponentDelegate
apply, createChangeableProperty, createValueTranslator, filter, getCaseConversion, getErrorOffset, getFiller, getInvalidChars, getMaxColumns, getPattern, getScale, getTextAlignment, getTextComponent, getTextConverter, getValidChars, isAutoSelect, isLenient, isUnsigned, isUTC, saveView, setAutoSelect, setCaseConversion, setContainerChangeable, setError, setErrorOffset, setFiller, setInvalidChars, setLenient, setMaxColumns, setPattern, setScale, setTextAlignment, setTextConverter, setUnsigned, setUTC, setValidChars, showErrorPopup, triggerViewModified, updateChangeable, updateMandatoryStyle, updateModel, updateViewMethods inherited from class org.tentackle.fx.FxComponentDelegate
getBinding, getBindingPath, getComponentPath, getDelegate, getError, getGenericType, getInfo, getLastViewObject, getParentContainer, getSavedViewObject, getTableCell, getTreeTableCell, getType, getValueTranslator, getViewValue, handleInputFailure, hideErrorPopup, hideInfoPopup, invalidateSavedView, isErrorTemporary, isListenerSuppressedIfModelUnchanged, isListenerSuppressedIfViewUnchanged, isMandatory, isModelUpdated, isSavedViewObjectValid, isUpdatingModel, isUpdatingView, mandatoryProperty, setBinding, setBindingPath, setComponentPath, setErrorTemporary, setGenericType, setInfo, setLastViewObject, setListenerSuppressedIfModelUnchanged, setListenerSuppressedIfViewUnchanged, setMandatory, setTableCell, setTreeTableCell, setValueTranslator, showInfoPopup, toGenericString, toString, updateErrorStyle, updateInfoStyleMethods 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.ErrorPopupSupported
getError, hideErrorPopup, isErrorTemporary, setErrorTemporaryMethods inherited from interface org.tentackle.fx.FxComponent
getBinding, getBindingPath, getComponentPath, getDelegate, getGenericType, getSavedViewObject, getTableCell, getTreeTableCell, getType, getValueTranslator, getViewValue, isCellEditor, isListenerSuppressedIfModelUnchanged, isListenerSuppressedIfViewUnchanged, isMandatory, isModelUpdated, isSavedViewObjectValid, mandatoryProperty, setBinding, setBindingPath, setComponentPath, setGenericType, setListenerSuppressedIfModelUnchanged, setListenerSuppressedIfViewUnchanged, setMandatory, setTableCell, setTreeTableCell, setValueTranslatorMethods inherited from interface org.tentackle.fx.FxControl
addModelToViewListener, addViewToModelListener, changeableProperty, getHelpUrl, getParentContainer, invalidateSavedView, isBindable, isChangeable, isContainerChangeableIgnored, isViewModified, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangeableIgnored, setHelpUrl, setViewModified, showHelp, toGenericString, viewModifiedPropertyMethods inherited from interface org.tentackle.fx.InfoPopupSupported
getInfo, hideInfoPopup, setInfo, showInfoPopup
-
Constructor Details
-
FxDatePickerDelegate
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
-
setColumns
public void setColumns(int columns) Description copied from interface:FxTextComponentSets the number of columns in this component.
The visible width is adjusted according to the current font.- Parameters:
columns- the number of columns ≥ 0
-
getColumns
public int getColumns()Description copied from interface:FxTextComponentGets the columns.- Returns:
- the columns
-
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
-
mapErrorOffsetToCaretPosition
public void mapErrorOffsetToCaretPosition()Description copied from interface:FxTextComponentSets the caret position according to the error offset.
Does nothing if error offset is null. -
autoSelect
public void autoSelect()Description copied from interface:FxTextComponentSelects or deselects all text in the text input.- Specified by:
autoSelectin interfaceFxTextComponent- Overrides:
autoSelectin classFxTextComponentDelegate- See Also:
-
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 classFxTextComponentDelegate- Parameters:
type- the type
-
getNode
public javafx.scene.Node getNode()Description copied from class:FxComponentDelegateGets the component as a node.- Overrides:
getNodein classFxComponentDelegate- Returns:
- the node
-