Class CtlInlineEditWidget<T>
java.lang.Object
com.axemble.vdp.ui.framework.foundation.Component
com.axemble.vdp.ui.framework.foundation.Widget
com.vdoc.sdk.commons.ui.widget.view.inline.edit.CtlInlineEditWidget<T>
- Type Parameters:
T- the type
- All Implemented Interfaces:
IWidget,IWritable,INamedWidget,com.axemble.vdp.utils.parameters.ParamsHandler,Serializable
public class CtlInlineEditWidget<T>
extends com.axemble.vdp.ui.framework.foundation.Widget
implements INamedWidget
This class simply manager the cell render.
- Author:
- vmartinon
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected InlineEditModeThe current in line mode defaultInlineEditMode.READprotected final IInlineEditSwitcher<T, ?, ?> The switcher is used to obfuscate the switcher and updating value complexityprotected final Stringprotected List<ValidatorWrapper<T>> Fields 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
ConstructorsConstructorDescriptionCtlInlineEditWidget(String name, IInlineEditSwitcher<T, ? extends com.axemble.vdp.ui.framework.foundation.Widget, ? extends com.axemble.vdp.ui.framework.widgets.CtlInputWidget> inlineEditSwitcher) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddValidator(String name, com.axemble.vdoc.sdk.validators.BaseValidator<T> validator) Add a validatoraddValidator(String name, com.axemble.vdoc.sdk.validators.BaseValidator<T> validator, List<String> param) Add a validatorGets theinlineEditMode.IInlineEditSwitcher<T, ? extends com.axemble.vdp.ui.framework.foundation.Widget, ? extends com.axemble.vdp.ui.framework.widgets.CtlInputWidget> Gets theinlineEditSwitcher.getName()Gets thevalidatorList.final TgetValue()booleanGets thedefaultFocus.render()Render the widgetvoidsetDefaultFocus(boolean defaultFocus) Sets thedefaultFocus.voidsetInlineEditMode(InlineEditMode inlineEditMode) Sets theinlineEditMode.voidsetValidatorList(List<ValidatorWrapper<T>> validatorList) Sets thevalidatorList.Methods inherited from class com.axemble.vdp.ui.framework.foundation.Widget
addActionListener, afterInit, buildFireMessage, buildFireMessage, buildFireMessage, buildFireMessage, buildFireMessage, buildFireMessage, buildFireOnClickMessage, buildFireOnClickMessage, buildFormName, findFileRecipient, findStringRecipient, findXmlRecipient, fireActionEvent, focus, getCtrlTemplate, getCtrlTemplateWriter, getJavaScriptFocusScript, getJavascriptId, getParam, getParentBlock, getSysname, getUserDisplayName, getUserId, handleAction, handleParams, 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, removeChangeListeners, stateChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, isHidden, refresh, refreshWidgets, removeActionListener, removeActionListeners, removeChangeListener, removeChangeListeners, renderMobile, setHidden, setParentBlock, setSysname
-
Field Details
-
name
-
inlineEditMode
The current in line mode defaultInlineEditMode.READ -
inlineEditSwitcher
The switcher is used to obfuscate the switcher and updating value complexity -
defaultFocus
protected boolean defaultFocus -
validatorList
-
-
Constructor Details
-
CtlInlineEditWidget
public CtlInlineEditWidget(String name, IInlineEditSwitcher<T, ? extends com.axemble.vdp.ui.framework.foundation.Widget, ? extends com.axemble.vdp.ui.framework.widgets.CtlInputWidget> inlineEditSwitcher) Constructor- Parameters:
name- the nameinlineEditSwitcher- the switcher
-
-
Method Details
-
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- See Also:
-
getName
- Specified by:
getNamein interfaceINamedWidget
-
getInlineEditMode
Gets theinlineEditMode.- Returns:
inlineEditMode
-
setInlineEditMode
Sets theinlineEditMode.- Parameters:
inlineEditMode- theinlineEditModeto set
-
getInlineEditSwitcher
public IInlineEditSwitcher<T,? extends com.axemble.vdp.ui.framework.foundation.Widget, getInlineEditSwitcher()? extends com.axemble.vdp.ui.framework.widgets.CtlInputWidget> Gets theinlineEditSwitcher.- Returns:
inlineEditSwitcher
-
getValue
-
getValidatorList
Gets thevalidatorList.- Returns:
validatorList
-
setValidatorList
Sets thevalidatorList.- Parameters:
validatorList- thevalidatorListto set
-
addValidator
public ValidatorWrapper<T> addValidator(String name, com.axemble.vdoc.sdk.validators.BaseValidator<T> validator) Add a validator- Parameters:
name- the validator's namevalidator- the validator- Returns:
- the validator wrapper
-
addValidator
public ValidatorWrapper<T> addValidator(String name, com.axemble.vdoc.sdk.validators.BaseValidator<T> validator, List<String> param) Add a validator- Parameters:
name- the validator's namevalidator- the validatorparam- the parameters- Returns:
- the validator wrapper
-
isDefaultFocus
public boolean isDefaultFocus()Gets thedefaultFocus.- Returns:
defaultFocus
-
setDefaultFocus
public void setDefaultFocus(boolean defaultFocus) Sets thedefaultFocus.- Parameters:
defaultFocus- thedefaultFocusto set
-