Class TextToFloatFieldSwitcher
java.lang.Object
com.axemble.vdp.ui.framework.foundation.Component
com.axemble.vdp.ui.framework.foundation.Widget
com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseComponent
com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent
com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseFieldComponent
com.vdoc.sdk.commons.ui.widget.view.inline.edit.switcher.TextToFloatFieldSwitcher
- All Implemented Interfaces:
IFieldComponent,IWidget,IWritable,com.axemble.vdp.form.classes.IBaseComponentSupport,com.axemble.vdp.ui.core.document.fields.IFieldControl,com.axemble.vdp.utils.parameters.ParamsHandler,IInlineEditSwitcher<Float,,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField> Serializable
public class TextToFloatFieldSwitcher
extends com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseFieldComponent
implements IInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText,com.axemble.vdp.ui.core.document.fields.FloatField>
Text to float field switcher
Created by amhin on 07/09/2015.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.axemble.vdp.ui.framework.widgets.CtlTextthe read render widgetprotected final com.axemble.vdp.ui.core.document.fields.FloatFieldthe edit render widgetFields inherited from class com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseFieldComponent
aggregate, hasServiceFields inherited from class com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent
accesskey, associatedLabel, condition, description, editable, errorInfo, formula, formulaCondition, includeErrorInfo, javascriptId, mandatory, modeFormula, property, propertytype, quickCreateLink, requiredFormula, rules, stringRecipient, tabindex, temporarypropertyname, throwDocumentChangedScript, throwEvents, throwEventsDefined, validationRulesFields inherited from class com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseComponent
additionalParameters, additionalParametersNodes, id, parametersFields inherited from class com.axemble.vdp.ui.framework.foundation.Widget
actionListeners, isHidden, param, parentBlock, sysname, userIdFields inherited from class com.axemble.vdp.ui.framework.foundation.Component
changeListeners, LOGGERFields inherited from interface com.axemble.vdp.utils.parameters.ParamsHandler
ERROR_EXCEED_ELEM_SIZE, ERROR_EXCEED_TOTAL_SIZE, ERROR_NOT_COMPLETED, ERROR_READ_FAILED, EXCEED_ELEM_NUMBER, NO_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionTextToFloatFieldSwitcher(com.axemble.vdp.ui.framework.widgets.CtlText readWidget, com.axemble.vdp.ui.core.document.fields.FloatField writeWidget) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel editingcom.axemble.vdp.ui.framework.widgets.CtlTextget the widget used inInlineEditMode.READmodegetValue()get the current valuecom.axemble.vdp.ui.core.document.fields.FloatFieldget the widget used inInlineEditMode.WRITEmodeprotected voidbooleanisEmpty()render()Render the widgetvoidset the current valuevoidUpdate widgetvoidUpdate field valuevoidupdate the read widget from the write widgetMethods inherited from class com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseFieldComponent
addCssDependency, addScriptDependency, getAbstractField, getField, getFieldChangeListener, getTemplateWriter, init, init, isHasService, setHasService, stateChangedMethods inherited from class com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent
addRefreshButton, addValidationRule, afterInit, canThrowEventsInWebBrowser, clearValidationRules, findStringRecipient, focus, getAccesskey, getAssociatedLabel, getDescription, getDocumentChangedScript, getErrorInfo, getFormula, getFormulaCondition, getHelpMessageIcon, getJavaScriptFocusScript, getJavascriptId, getModeFormula, getParentId, getProperty, getPropertyName, getPropertytype, getQuickCreateLink, getRefreshButton, getRequiredFormula, getTabindex, getTemporarypropertyname, getValidationRules, handleNoParams, handleParams, handleParams, hasValidationRules, inform, init, initParameters, initParameters, isCondition, isDescription, isDocumentChangedScript, isEditable, isFocus, isForceParentId, isIncludeErrorInfo, isMandatory, isThrowDocumentChangedScript, isThrowEvents, isThrowEventsDefined, registerWidget, renderErrorInfo, renderInfoMessage, renderQuickCreate, setAccesskey, setAssociatedLabel, setCondition, setDescription, setEditable, setErrorInfo, setFormula, setFormulaCondition, setIncludeErrorInfo, setJavascriptId, setMandatory, setModeFormula, setProperty, setPropertytype, setQuickCreateContextParameter, setQuickCreateScreen, setRequiredFormula, setTabindex, setTemporarypropertyname, setThrowDocumentChangedScript, setThrowEvents, setThrowEventsDefined, setValidationRules, validateMethods inherited from class com.axemble.vdp.ui.framework.widgets.components.sys.base.BaseComponent
addParameter, getAdditionalParameters, getAdditionalParametersNodes, getAdditionalParametersNodesElement, getId, getParameter, getParameter, getParameterBoolean, getParameterBoolean, getParameterDate, getParameterDate, getParameterInt, getParameterInteger, getParameterList, getParameterLong, getParameterNumber, getParameters, getParameterString, getParameterString, hasParameter, removeParameter, setAdditionalParameters, setAdditionalParametersNodes, setId, setParametersMethods inherited from class com.axemble.vdp.ui.framework.foundation.Widget
addActionListener, buildFireMessage, buildFireMessage, buildFireMessage, buildFireMessage, buildFireMessage, buildFireMessage, buildFireOnClickMessage, buildFireOnClickMessage, buildFormName, findFileRecipient, findXmlRecipient, fireActionEvent, getCtrlTemplate, getCtrlTemplateWriter, getParam, getParentBlock, getSysname, getUserDisplayName, getUserId, handleAction, hasActionListeners, isHidden, refresh, refreshWidgets, removeActionListener, removeActionListeners, renderMobile, setHidden, setParam, setParentBlock, setSysname, setUserId, writeMethods inherited from class com.axemble.vdp.ui.framework.foundation.Component
addChangeListener, createComponent, evaluateExpressions, fireChangeEvent, getDynamicDescription, getDynamicLabel, getLanguage, getNavigator, getRootNavigator, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, hasChangeListeners, removeChangeListener, removeChangeListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdp.form.classes.IBaseComponentSupport
getLanguage, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, isHidden, setHiddenMethods inherited from interface com.axemble.vdoc.sdk.interfaces.ui.IFieldComponent
addValidationRule, clearValidationRules, getUserId, getValidationRules, hasValidationRules, inform, isEditable, isHidden, isMandatory, setEditable, setHidden, setMandatory, setUserId, validateMethods inherited from interface com.axemble.vdp.ui.core.document.fields.IFieldControl
addValidationRule, clearValidationRules, getUserId, getValidationRules, hasValidationRules, inform, isEditable, isHidden, isMandatory, setEditable, setHidden, setMandatory, setUserId, validateMethods inherited from interface com.axemble.vdoc.sdk.interfaces.ui.IWidget
addActionListener, addChangeListener, afterInit, getCtrlTemplate, getCtrlTemplateWriter, getParam, getParentBlock, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysname, hasActionListeners, hasChangeListeners, refresh, refreshWidgets, removeActionListener, removeActionListeners, removeChangeListener, removeChangeListeners, renderMobile, setParentBlock, setSysname
-
Field Details
-
readWidget
protected final com.axemble.vdp.ui.framework.widgets.CtlText readWidgetthe read render widget -
writeWidget
protected final com.axemble.vdp.ui.core.document.fields.FloatField writeWidgetthe edit render widget
-
-
Constructor Details
-
TextToFloatFieldSwitcher
public TextToFloatFieldSwitcher(com.axemble.vdp.ui.framework.widgets.CtlText readWidget, com.axemble.vdp.ui.core.document.fields.FloatField writeWidget) Constructor- Parameters:
readWidget- the read render widgetwriteWidget- the edit render widget
-
-
Method Details
-
getValue
Description copied from interface:IInlineEditSwitcherget the current value- Specified by:
getValuein interfaceIInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField> - Returns:
-
setValue
Description copied from interface:IInlineEditSwitcherset the current value- Specified by:
setValuein interfaceIInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField>
-
getReadWidget
public com.axemble.vdp.ui.framework.widgets.CtlText getReadWidget()Description copied from interface:IInlineEditSwitcherget the widget used inInlineEditMode.READmode- Specified by:
getReadWidgetin interfaceIInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField> - Returns:
-
getWriteWidget
public com.axemble.vdp.ui.core.document.fields.FloatField getWriteWidget()Description copied from interface:IInlineEditSwitcherget the widget used inInlineEditMode.WRITEmode- Specified by:
getWriteWidgetin interfaceIInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField> - Returns:
-
updateWidgets
public void updateWidgets()Description copied from interface:IInlineEditSwitcherupdate the read widget from the write widget- Specified by:
updateWidgetsin interfaceIInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField>
-
cancel
public void cancel()Description copied from interface:IInlineEditSwitcherCancel editing- Specified by:
cancelin interfaceIInlineEditSwitcher<Float,com.axemble.vdp.ui.framework.widgets.CtlText, com.axemble.vdp.ui.core.document.fields.FloatField>
-
initAdditionalParameters
protected void initAdditionalParameters()- Specified by:
initAdditionalParametersin classcom.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classcom.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent
-
getValidationObject
- Specified by:
getValidationObjectin classcom.axemble.vdp.ui.framework.widgets.components.sys.base.BaseInputComponent
-
updateValue
public void updateValue()Description copied from interface:IFieldComponentUpdate field value- Specified by:
updateValuein interfaceIFieldComponent- Specified by:
updateValuein interfacecom.axemble.vdp.ui.core.document.fields.IFieldControl
-
updateControl
public void updateControl()Description copied from interface:IFieldComponentUpdate widget- Specified by:
updateControlin interfaceIFieldComponent- Specified by:
updateControlin interfacecom.axemble.vdp.ui.core.document.fields.IFieldControl
-
render
Description copied from interface:IWidgetRender the widget- Specified by:
renderin interfaceIWidget- Specified by:
renderin classcom.axemble.vdp.ui.framework.foundation.Widget- Returns:
- writableWidget
- Throws:
RenderException
-