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 StringSESSION_EXCEL_KEYstatic StringTYPE-
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 StringgetDataKeyLine()protected MenuElementgetNextPage(ContentContext ctx)StringgetType()return the type of the element.booleanisEvent()protected booleanisFilledFromCookies()protected booleanisFormExpire()check if form is expired (too much time for submit)protected booleanisSendEmail()voidprepareView(ContentContext ctx)prepare the rendering of a component. default attributes put in request : style, value, type, compidprotected intstoreResult(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:IContentVisualComponentreturn the type of the element.- Specified by:
getTypein interfaceIContentVisualComponent- Overrides:
getTypein classSmartGenericForm- Returns:
- the type of the element.
-
isEvent
public boolean isEvent()
- Overrides:
isEventin classSmartGenericForm
-
isSendEmail
protected boolean isSendEmail()
- Overrides:
isSendEmailin classSmartGenericForm
-
getNextPage
protected MenuElement getNextPage(ContentContext ctx)
- Overrides:
getNextPagein classSmartGenericForm
-
getDataKeyLine
protected String getDataKeyLine()
-
isFilledFromCookies
protected boolean isFilledFromCookies()
- Overrides:
isFilledFromCookiesin classSmartGenericForm
-
prepareView
public void prepareView(ContentContext ctx) throws Exception
Description copied from class:AbstractVisualComponentprepare the rendering of a component. default attributes put in request : style, value, type, compid- Specified by:
prepareViewin interfaceIContentVisualComponent- Overrides:
prepareViewin classSmartGenericForm- Throws:
Exception
-
storeResult
protected int storeResult(ContentContext ctx, Map<String,String> data, boolean sort) throws Exception
- Overrides:
storeResultin classSmartGenericForm- Throws:
Exception
-
isFormExpire
protected boolean isFormExpire()
Description copied from class:SmartGenericFormcheck if form is expired (too much time for submit)- Overrides:
isFormExpirein classSmartGenericForm- Returns:
-
-