Package org.javlo.component.web2.survey
Class SurveyGenericForm
- java.lang.Object
-
- org.javlo.component.core.AbstractVisualComponent
-
- org.javlo.component.form.SmartGenericForm
-
- org.javlo.component.web2.survey.SurveyGenericForm
-
- All Implemented Interfaces:
Comparable<IContentVisualComponent>
,IAction
,IEventRegistration
,IContentVisualComponent
,IDataContainer
,IRestItem
public class SurveyGenericForm extends SmartGenericForm
-
-
Field Summary
Fields Modifier and Type Field Description static String
SESSION_EXCEL_KEY
static String
TYPE
-
Fields inherited from class org.javlo.component.form.SmartGenericForm
FOLDER, LOCK_ACCESS_FILE, RECAPTCHAKEY, RECAPTCHASECRETKEY
-
Fields inherited from class org.javlo.component.core.AbstractVisualComponent
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, config, EDIT_CLASS, FLUID_COL_SIZE, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, MAX_COL_VALUE, MOBILE_TYPE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME, VALUE_SEPARATOR
-
Fields inherited from interface org.javlo.component.core.IContentVisualComponent
COLORED_WRAPPER_CLASS, COMP_ID_REQUEST_PARAM, COMPLEXITY_ADMIN, COMPLEXITY_EASY, COMPLEXITY_STANDARD, CONTAINER_COLOR, DEFAULT_COLOR, DYN_COMP_COLOR, ECOM_COLOR, EDIT_ACTION_CSS_CLASS, GRAPHIC_COLOR, HIGH_LABEL_LEVEL, ID_SEPARATOR, LINK_COLOR, LOW_LABEL_LEVEL, META_COLOR, MIDDLE_LABEL_LEVEL, SEARCH_LEVEL_HIGH, SEARCH_LEVEL_LOW, SEARCH_LEVEL_MIDDLE, SEARCH_LEVEL_NONE, TEXT_COLOR, VIEW_DEFINITION_REQUEST_ID, WEB2_COLOR
-
-
Constructor Summary
Constructors Constructor Description SurveyGenericForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDataKeyLine()
protected MenuElement
getNextPage(ContentContext ctx)
String
getType()
return the type of the element.boolean
isEvent()
protected boolean
isFilledFromCookies()
protected boolean
isFormExpire()
check if form is expired (too much time for submit)protected boolean
isSendEmail()
void
prepareView(ContentContext ctx)
prepare the rendering of a component. default attributes put in request : style, value, type, compidprotected int
storeResult(ContentContext ctx, Map<String,String> data, boolean sort)
-
Methods inherited from class org.javlo.component.form.SmartGenericForm
acceptLinks, decodeEditNumber, decodeUserEditNumber, delField, encodeEditNumber, getActionGroupName, getAttachFolder, getColumnableDefaultValue, getComplexityLevel, getConfirmToEmail, getCountSubscription, getData, getData, getDataKey, getEditXHTMLCode, getField, getFields, getFields, getFile, getFontAwesome, getInputEditLineName, getInputValidLineName, getLocalConfig, getMailFooter, getMailHeader, getMaxFileSize, getNewFieldKey, getParticipants, getRecaptchaKey, getRecaptchaSecretKey, getRenderer, getTableSqlName, getTableSqlNameReference, getTitle, getUserLink, importFieldAsExcel, initContent, isCaptcha, isCaptcha, isClose, isClosedEventSite, isContentCachable, isContentCachableByQuery, isDocument, isFile, isFullEventSite, isHTMLMail, isList, isRealContent, isStorage, isUpdate, isWarningEventSite, performDownloadForm, performEdit, performSubmit, setValue, store, store
-
Methods inherited from class org.javlo.component.core.AbstractVisualComponent
applyReplacement, cleanResources, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, drawColumn, equals, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, forceInit, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getColomnablePrefix, getColomnableSuffix, getColumn, getColumnMaxSize, getColumnSize, getColumnSizes, getColumnStyle, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigInValue, getConfigMessage, getContainerPage, getContentAsMap, getContentAsText, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDataAttributes, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditorComplexity, getEditRenderer, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getExternalModules, getExternalResources, getFileDirectory, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedRenderer, getForcedSuffixViewXHTMLCode, getFormName, getGroup, getHeaderContent, getHelpText, getHelpType, getHelpURI, getHelpURL, getHexColor, getI18nEditableKeys, getIcon, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameColomn, getInputNameColomnStyle, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLocalMessage, getLock, getManualCssClass, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixCssClass, getPrefixViewXHTMLCode, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getReferenceComponent, getRemplacement, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssId, getSpecialTagTitle, getSpecialTagXHTML, getSpecificClass, getSpecificCssClass, getStyle, getStyleLabel, getStyleLabelList, getStyleList, getStyleTitle, getSuffixViewXHTMLCode, getTag, getTextColor, getTextForSearch, getTextLabel, getTextMessage, getTextPosition, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getViewXHTMLCode, getWidth, getWordCount, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, init, init, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isCloseRow, isColored, isColumnable, isConfig, isContentTimeCachable, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isHiddenInModeValue, isInline, isInsertable, isList, isListable, isMetaTitle, isMirroredByDefault, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isOpenRow, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isRestMatch, isReversedLink, isStyleHidden, isUnique, isValueProperties, isValueTranslatable, isViewDataFile, isVisible, isVisible, isVisibleFromCookies, isWrapped, isXML, loadViewData, markAsNew, newInstance, next, onStyleChange, performColumnable, performConfig, performUpdate, prepareEdit, previous, processView, renderOtherComponent, renderViewXHTMLCode, replaceAllInContent, replaceInContent, resetContentCache, resetViewData, setBackgroundColor, setColumnSize, setColumnStyle, setComponentBean, setContainerPage, setContentCache, setContentTimeCache, setDisplayHidden, setForcedId, setForcedRenderer, setGroup, setHidden, setHiddenInMode, setList, setLocalMessage, setMessage, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setTextColor, setTextPosition, setValid, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, toString, transflateFrom, updateCache
-
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javlo.actions.IEventRegistration
getId
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
SESSION_EXCEL_KEY
public static final String SESSION_EXCEL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:IContentVisualComponent
return the type of the element.- Specified by:
getType
in interfaceIContentVisualComponent
- Overrides:
getType
in classSmartGenericForm
- Returns:
- the type of the element.
-
isEvent
public boolean isEvent()
- Overrides:
isEvent
in classSmartGenericForm
-
isSendEmail
protected boolean isSendEmail()
- Overrides:
isSendEmail
in classSmartGenericForm
-
getNextPage
protected MenuElement getNextPage(ContentContext ctx)
- Overrides:
getNextPage
in classSmartGenericForm
-
getDataKeyLine
protected String getDataKeyLine()
-
isFilledFromCookies
protected boolean isFilledFromCookies()
- Overrides:
isFilledFromCookies
in classSmartGenericForm
-
prepareView
public void prepareView(ContentContext ctx) throws Exception
Description copied from class:AbstractVisualComponent
prepare the rendering of a component. default attributes put in request : style, value, type, compid- Specified by:
prepareView
in interfaceIContentVisualComponent
- Overrides:
prepareView
in classSmartGenericForm
- Throws:
Exception
-
storeResult
protected int storeResult(ContentContext ctx, Map<String,String> data, boolean sort) throws Exception
- Overrides:
storeResult
in classSmartGenericForm
- Throws:
Exception
-
isFormExpire
protected boolean isFormExpire()
Description copied from class:SmartGenericForm
check if form is expired (too much time for submit)- Overrides:
isFormExpire
in classSmartGenericForm
- Returns:
-
-