- java.lang.Object
-
- org.tentackle.fx.FxControlDelegate
-
- org.tentackle.fx.FxComponentDelegate
-
- org.tentackle.fx.FxTextComponentDelegate
-
- org.tentackle.fx.component.delegate.AbstractTextFieldDelegate<FxPasswordField>
-
- org.tentackle.fx.component.delegate.FxPasswordFieldDelegate
-
- All Implemented Interfaces:
java.util.function.Function<javafx.scene.control.TextFormatter.Change,javafx.scene.control.TextFormatter.Change>,java.util.function.UnaryOperator<javafx.scene.control.TextFormatter.Change>,ErrorPopupSupported,FxComponent,FxControl,FxTextComponent,InfoPopupSupported
public class FxPasswordFieldDelegate extends AbstractTextFieldDelegate<FxPasswordField>
Delegate for FxPasswordField.- Author:
- harald
-
-
Field Summary
-
Fields inherited from class org.tentackle.fx.FxComponentDelegate
ERROR_STYLE, INFO_STYLE, MANDATORY_STYLE
-
-
Constructor Summary
Constructors Constructor Description FxPasswordFieldDelegate(FxPasswordField component)Creates the delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.control.TextFormatter.Changeapply(javafx.scene.control.TextFormatter.Change t)protected ValueTranslator<?,?>createValueTranslator(java.lang.Class<?> type)intgetColumns()Gets the columns.java.lang.ObjectgetViewObject()Retrieves the internal native object of the component.voidsetColumns(int columns)Sets the number of columns in this component.
The visible width is adjusted according to the current font.voidsetMaxColumns(int maxColumns)Sets the maximum number of columns.
The number of columns will be enforced by the model.voidsetViewObject(java.lang.Object viewObject)Sets the internal native object of the component.voidsetViewValue(java.lang.Object value)Sets a value in this component.
The value's type is that of the model.voidupdateModel()Updates the model according to the view.-
Methods inherited from class org.tentackle.fx.component.delegate.AbstractTextFieldDelegate
getComponent, getViewValue, mapErrorOffsetToCaretPosition
-
Methods inherited from class org.tentackle.fx.FxTextComponentDelegate
autoSelect, createChangeableProperty, 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, setPattern, setScale, setTextAlignment, setTextConverter, setType, setUnsigned, setUTC, setValidChars, showErrorPopup, triggerViewModified, updateChangeable, updateMandatoryStyle, updateView
-
Methods inherited from class org.tentackle.fx.FxComponentDelegate
getBinding, getBindingPath, getComponentPath, getDelegate, getError, getGenericType, getInfo, getNode, getParentContainer, getSavedViewObject, getTableCell, getType, getValueTranslator, handleInputFailure, hideErrorPopup, hideInfoPopup, invalidateSavedView, isErrorTemporary, isMandatory, isModelUpdated, isSavedViewObjectValid, isUpdatingModel, isUpdatingView, mandatoryProperty, setBinding, setBindingPath, setComponentPath, setErrorTemporary, setGenericType, setInfo, setMandatory, setTableCell, 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, setContainerChangableIgnored, 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, getType, getValueTranslator, isMandatory, isModelUpdated, isSavedViewObjectValid, mandatoryProperty, setBinding, setBindingPath, setComponentPath, setGenericType, setMandatory, setTableCell, setValueTranslator
-
Methods inherited from interface org.tentackle.fx.FxControl
addModelToViewListener, addViewToModelListener, changeableProperty, getHelpUrl, getParentContainer, invalidateSavedView, isBindable, isChangeable, isContainerChangeableIgnored, isViewModified, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangableIgnored, setHelpUrl, setViewModified, showHelp, toGenericString, viewModifiedProperty
-
Methods inherited from interface org.tentackle.fx.InfoPopupSupported
getInfo, hideInfoPopup, setInfo, showInfoPopup
-
-
-
-
Constructor Detail
-
FxPasswordFieldDelegate
public FxPasswordFieldDelegate(FxPasswordField component)
Creates the delegate.- Parameters:
component- the component
-
-
Method Detail
-
createValueTranslator
protected ValueTranslator<?,?> createValueTranslator(java.lang.Class<?> type)
- Overrides:
createValueTranslatorin classFxTextComponentDelegate
-
apply
public javafx.scene.control.TextFormatter.Change apply(javafx.scene.control.TextFormatter.Change t)
- Specified by:
applyin interfacejava.util.function.Function<javafx.scene.control.TextFormatter.Change,javafx.scene.control.TextFormatter.Change>- Overrides:
applyin classFxTextComponentDelegate
-
getViewObject
public java.lang.Object getViewObject()
Description copied from interface:FxComponentRetrieves the internal native object of the component.- Returns:
- the component's object
-
setViewObject
public void setViewObject(java.lang.Object viewObject)
Description copied from interface:FxComponentSets the internal native object of the component.- Parameters:
viewObject- the internal object
-
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
-
setMaxColumns
public void setMaxColumns(int maxColumns)
Description copied from interface:FxTextComponentSets the maximum number of columns.
The number of columns will be enforced by the model.- Specified by:
setMaxColumnsin interfaceFxTextComponent- Overrides:
setMaxColumnsin classFxTextComponentDelegate- Parameters:
maxColumns- the maximum number of columns, 0 if unlimited (default)
-
setViewValue
public void setViewValue(java.lang.Object value)
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 classAbstractTextFieldDelegate<FxPasswordField>- Parameters:
value- is the value to set
-
updateModel
public void updateModel()
Description copied from interface:FxControlUpdates the model according to the view.- Specified by:
updateModelin interfaceFxControl- Overrides:
updateModelin classFxTextComponentDelegate
-
-