java.lang.Object
org.tentackle.fx.FxControlDelegate
org.tentackle.fx.FxComponentDelegate
org.tentackle.fx.FxTextComponentDelegate
org.tentackle.fx.component.delegate.AbstractTextFieldDelegate<FxTextField>
org.tentackle.fx.component.delegate.FxTextFieldDelegate
- 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 FxTextField.
- Author:
- harald
-
Property Summary
Properties inherited from class org.tentackle.fx.FxComponentDelegate
mandatory
Properties inherited from class org.tentackle.fx.FxControlDelegate
changeable, viewModified
Properties inherited from interface org.tentackle.fx.FxComponent
mandatory
Properties 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
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the columns.Retrieves the internal native object of the component.void
setColumns
(int columns) Sets the number of columns in this component.
The visible width is adjusted according to the current font.void
setMaxColumns
(int maxColumns) Sets the maximum number of columns.
The number of columns will be enforced by the model.void
setViewObject
(Object viewObject) Sets the internal native object of the component.void
setViewValue
(Object value) Sets a value in this component.
The value's type is that of the model.Methods inherited from class org.tentackle.fx.component.delegate.AbstractTextFieldDelegate
getComponent, mapErrorOffsetToCaretPosition, setAutoCompletion
Methods inherited from class org.tentackle.fx.FxTextComponentDelegate
apply, autoSelect, createChangeableProperty, createValueTranslator, filter, getAutoCompletion, getCaseConversion, getErrorOffset, getFiller, getInvalidChars, getMaxColumns, getPattern, getScale, getTextAlignment, getTextComponent, getTextConverter, getValidChars, isAutoSelect, isEditable, isLenient, isUnsigned, isUTC, saveView, setAutoSelect, setCaseConversion, setContainerChangeable, setError, setErrorOffset, setFiller, setInvalidChars, setLenient, setPattern, setScale, setTextAlignment, setTextConverter, setType, setUnsigned, setUTC, setValidChars, showErrorPopup, triggerViewModified, updateChangeable, updateMandatoryStyle, updateModel, updateView
Methods inherited from class org.tentackle.fx.FxComponentDelegate
getBinding, getBindingPath, getComponentPath, getDelegate, getError, getGenericType, getInfo, getLastViewObject, getNode, 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, updateInfoStyle
Methods 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, viewModifiedProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tentackle.fx.ErrorPopupSupported
getError, hideErrorPopup, isErrorTemporary, setErrorTemporary
Methods 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, setValueTranslator
Methods 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, viewModifiedProperty
Methods inherited from interface org.tentackle.fx.InfoPopupSupported
getInfo, hideInfoPopup, setInfo, showInfoPopup
-
Constructor Details
-
FxTextFieldDelegate
Creates the delegate.- Parameters:
component
- the component
-
-
Method Details
-
getViewObject
Description copied from interface:FxComponent
Retrieves the internal native object of the component.- Returns:
- the component's object
-
setViewObject
Description copied from interface:FxComponent
Sets the internal native object of the component.- Parameters:
viewObject
- the internal object
-
setColumns
public void setColumns(int columns) Description copied from interface:FxTextComponent
Sets 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:FxTextComponent
Gets the columns.- Returns:
- the columns
-
setMaxColumns
public void setMaxColumns(int maxColumns) Description copied from interface:FxTextComponent
Sets the maximum number of columns.
The number of columns will be enforced by the model.- Specified by:
setMaxColumns
in interfaceFxTextComponent
- Overrides:
setMaxColumns
in classFxTextComponentDelegate
- Parameters:
maxColumns
- the maximum number of columns, 0 if unlimited (default)
-
setViewValue
Description copied from interface:FxComponent
Sets a value in this component.
The value's type is that of the model.- Specified by:
setViewValue
in interfaceFxComponent
- Overrides:
setViewValue
in classFxComponentDelegate
- Parameters:
value
- is the value to set
-