public class ReactionComponent extends DynamicComponent implements IAction
Modifier and Type | Class and Description |
---|---|
static class |
ReactionComponent.Reaction |
DynamicComponent.FieldOrderComparator
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger
create a static logger.
|
static String |
TYPE |
HIDDEN, JSP_HEADER
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, config, EDIT_CLASS, FORCE_COMPONENT_ID, I18N_FILE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME, VALUE_SEPARATOR
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
NO_LINK
Constructor and Description |
---|
ReactionComponent() |
contains, contentHashCode, drawColumn, getAllResources, getAllResourcesLinks, getColumn, getColumnSize, getColumnSizes, getComponentLabel, getConfigProperties, getContainerType, getContentAsMap, getCSSClass, getDataPath, getDate, getDirSelected, getDynamicId, getExternalResources, getField, getFieldsNames, getFieldValue, getFiles, getImageDescription, getImageField, getImageLinkURL, getInputNameColomn, getLabel, getLabelLevel, getLatestValidDate, getList, getList, getNotififyPageName, getPageDescription, getPopularity, getPrefix, getPrefixViewXHTMLCode, getPriority, getProperties, getResourceURL, getSpecificClass, getStyleLabelList, getStyleList, getSubTitle, getSubTitleLevel, getSuffix, getSuffixViewXHTMLCode, getTextForSearch, getTextLabel, getTextTitle, getType, getURL, getViewListXHTMLCode, getViewXHTMLCode, getXHTMLId, init, initContent, isAutoDeletable, isColumnable, isFieldContainer, isImageValid, isLinkValid, isNotififyCreation, isRealContent, isRestMatch, isValidDate, isValueTranslatable, isWrapped, prepareView, reload, reloadProperties, renameResource, setColumnSize, setConfigProperties, setDirSelected, setDynamicId, setLatestValidDate, setProperties, setValue, storeProperties, transflateFrom
applyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentAsText, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditorComplexity, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURI, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLock, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getSpecialTagTitle, getSpecialTagXHTML, getStyle, getStyleLabel, getStyleTitle, getTag, getTextColor, getTextMessage, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getWordCount, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAskWidth, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isContentCachableByQuery, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isInsertable, isList, isListable, isMetaTitle, isMirroredByDefault, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isReversedLink, isUnique, isValueProperties, isViewDataFile, isVisible, isVisible, isVisibleFromCookies, isWrapped, isXML, loadViewData, markAsNew, next, onStyleChange, performConfig, performUpdate, previous, processView, renderViewXHTMLCode, replaceAllInContent, replaceInContent, resetContentCache, resetViewData, setBackgroundColor, setComponentBean, setContainerPage, setContentCache, setContentTimeCache, setDisplayHidden, setForcedId, setHidden, setHiddenInMode, setList, setMessage, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setTextColor, setValid, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPage
clearReplacement, delete, equals, extractFieldsFromRenderer, getArea, getAuthors, getClassName, getComponentBean, getComponentCssClass, getConfig, getConfigMessage, getContentAsText, getContentMessage, getContentName, getCreationDate, getCurrentRenderer, getDescription, getEditText, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getFirstPrefix, getHeaderContent, getHelpURL, getI18nEditableKeys, getId, getInputNameRenderer, getJSOnSubmit, getLastSufix, getLayout, getListGroup, getMarkerList, getMessage, getModificationDate, getNextComponent, getPreviousComponent, getRenderer, getSearchLevel, getSpecialTagTitle, getSpecialTagXHTML, getStyleLabel, getStyleTitle, getTextMessage, getTitleLevel, getValue, getVersion, getViewText, getWordCount, getXHTMLCode, getXHTMLConfig, insert, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstRepeated, isHelpURL, isHidden, isHiddenInMode, isInline, isInsertable, isList, isListable, isMetaTitle, isMirroredByDefault, isModify, isNeedRefresh, isNew, isNolink, isRepeat, isRepeatable, isUnique, isVisible, isVisible, isVisibleFromCookies, loadViewData, markAsNew, next, performConfig, previous, replaceAllInContent, replaceInContent, resetViewData, setContainerPage, setDisplayHidden, setList, setNeedRefresh, setNextComponent, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setValid, stored
compareTo
public static String TYPE
protected static Logger logger
public static final String performAdd(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public static final String performDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected String getReactionPrefix(ContentContext ctx)
protected String getDelReactionPrefix(ContentContext ctx)
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class DynamicComponent
Exception
protected String getEmail(ContentContext ctx)
protected String getTitle(ContentContext ctx)
protected boolean isWithTitle(ContentContext ctx)
protected boolean isReplyAllowed(ContentContext ctx)
protected boolean isRequestLoginToView(ContentContext ctx)
protected boolean isRequestLoginToAdd(ContentContext ctx)
public List<Field> getFields(ContentContext ctx) throws FileNotFoundException, IOException
getFields
in interface IFieldContainer
getFields
in class DynamicComponent
FileNotFoundException
IOException
public String getHexColor()
IContentVisualComponent
getHexColor
in interface IContentVisualComponent
getHexColor
in class DynamicComponent
protected String getInputName(String field)
getInputName
in class DynamicComponent
public String getKey()
IContentVisualComponent
getKey
in interface IContentVisualComponent
getKey
in class DynamicComponent
public Collection<ReactionComponent.Reaction> getAllReactions(ContentContext ctx)
public Collection<ReactionComponent.Reaction> getReactions(ContentContext ctx)
public Collection<ReactionComponent.Reaction> getDeletedReactions(ContentContext ctx)
public Collection<ReactionComponent.Reaction> getAllDeletedReactions(ContentContext ctx)
public String getReactionUnvalidInputName()
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
getType
in class DynamicComponent
protected List<Field> getViewFields(ContentContext ctx, String reactionId) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in interface IFieldContainer
getViewXHTMLCode
in class DynamicComponent
Exception
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
protected void init() throws ResourceNotFoundException
init
in class AbstractVisualComponent
ResourceNotFoundException
public IContentVisualComponent newInstance(ComponentBean bean, ContentContext newCtx, MenuElement page) throws Exception
IContentVisualComponent
newInstance
in interface IContentVisualComponent
newInstance
in class DynamicComponent
newCtx
- the context of the content manager.Exception
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class DynamicComponent
Exception
public void deleteReaction(ContentContext ctx, String id, boolean store) throws IOException
IOException
public void validReaction(ContentContext ctx, String id) throws IOException
IOException
public String getActionGroupName()
IAction
getActionGroupName
in interface IAction
public boolean isContentCachable(ContentContext ctx)
IContentVisualComponent
isContentCachable
in interface IContentVisualComponent
isContentCachable
in class DynamicComponent
public boolean isContentTimeCachable(ContentContext ctx)
isContentTimeCachable
in class DynamicComponent
public int getComplexityLevel(ContentContext ctx)
IContentVisualComponent
getComplexityLevel
in interface IContentVisualComponent
getComplexityLevel
in class DynamicComponent
ctx
- TODOpublic boolean isCaptcha(ContentContext ctx)
public boolean isAllowHtml(ContentContext ctx)
protected boolean isWithLink(ContentContext ctx)
public int getReactionSize(ContentContext ctx)
public static void main(String[] args)
public String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class DynamicComponent
Copyright © 2012-2018. All Rights Reserved.