Package org.javlo.component.column
Class TableBreak
- java.lang.Object
-
- org.javlo.component.core.AbstractVisualComponent
-
- org.javlo.component.properties.AbstractPropertiesComponent
-
- org.javlo.component.column.TableComponent
-
- org.javlo.component.column.TableBreak
-
- All Implemented Interfaces:
Comparable<IContentVisualComponent>,IContentVisualComponent,IRestItem
- Direct Known Subclasses:
DefaultTableBreak
public class TableBreak extends TableComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>FIELD_NUMBER_ONLYstatic StringTYPE-
Fields inherited from class org.javlo.component.column.TableComponent
FIELD_NEED_PX, FIELD_NEED_UNITY
-
Fields inherited from class org.javlo.component.properties.AbstractPropertiesComponent
properties
-
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, logger, 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 TableBreak()
-
Method Summary
-
Methods inherited from class org.javlo.component.column.TableComponent
getAlign, getAlignInputName, getBackgroundColorInputName, getBorderColor, getBorderColorInputName, getBorderSize, getBorderSizeInputName, getCellBackgroundColor, getColspan, getColSpanHTML, getColspanInputName, getComplexityLevel, getContext, getEmptyCode, getFieldNeedPixel, getFieldNeedUnity, getPadding, getPaddingInputName, getPrefixViewXHTMLCode, getTDStyle, getVAlign, getVAlignInputName, getWidth, getWidthInputName, isCellEmpty, isDefaultValue, isWidth, validateField
-
Methods inherited from class org.javlo.component.properties.AbstractPropertiesComponent
createKeyWithField, getColumnableDefaultValue, getContentAsMap, getContentAsText, getFieldChoice, getFieldDoubleValue, getFieldLongValue, getFieldName, getFieldType, getFieldValue, getFieldValue, getFieldValue, getHeader, getLabel, getListSeparator, getMdSize, getRowSize, getWordCount, getXsSize, isAllTranslated, isRealContent, main, prepareView, renderField, setFieldValue, storeProperties, transflateFrom
-
Methods inherited from class org.javlo.component.core.AbstractVisualComponent
applyReplacement, cleanResources, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, 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, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDataAttributes, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditorComplexity, getEditRenderer, getEditText, 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, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getReferenceComponent, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssId, getSpecialTagTitle, getSpecialTagXHTML, getSpecificClass, getSpecificCssClass, getStyle, getStyleLabel, getStyleLabelList, getStyleList, getStyleTitle, getTag, getTextColor, getTextForSearch, getTextLabel, getTextMessage, getTextPosition, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, init, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isCloseRow, isColored, isColumnable, isConfig, isContentCachable, isContentCachableByQuery, isContentTimeCachable, 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, setValue, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, toString, updateCache
-
-
-
-
Method Detail
-
init
public void init(ComponentBean bean, ContentContext newContext) throws Exception
- Overrides:
initin classAbstractPropertiesComponent- Throws:
Exception
-
getFieldNumberOnly
protected Set<String> getFieldNumberOnly()
- Overrides:
getFieldNumberOnlyin classTableComponent
-
getType
public String getType()
Description copied from interface:IContentVisualComponentreturn the type of the element.- Returns:
- the type of the element.
-
getFields
public List<String> getFields(ContentContext ctx) throws Exception
- Overrides:
getFieldsin classTableComponent- Throws:
Exception
-
getViewXHTMLCode
public String getViewXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getViewXHTMLCodein classTableComponent- Throws:
Exception
-
closeTable
public static String closeTable(ContentContext ctx, TableContext tableContext)
-
getSuffixViewXHTMLCode
public String getSuffixViewXHTMLCode(ContentContext ctx)
Description copied from interface:IContentVisualComponentcode for sufix the view XHTML code.- Specified by:
getSuffixViewXHTMLCodein interfaceIContentVisualComponent- Overrides:
getSuffixViewXHTMLCodein classTableComponent- Returns:
- XHTML code.
-
getOpenTableStyle
public String getOpenTableStyle(ContentContext ctx)
-
getBorderInputString
protected String getBorderInputString()
-
getGridInputString
protected String getGridInputString()
-
getSpacingInputString
protected String getSpacingInputString()
-
countSize
protected void countSize(ContentContext ctx) throws Exception
- Throws:
Exception
-
getTableBorderColorInputName
protected String getTableBorderColorInputName()
-
getTableBorderSizeInputName
protected String getTableBorderSizeInputName()
-
getEditXHTMLCode
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getEditXHTMLCodein classTableComponent- Throws:
Exception
-
isBorder
public boolean isBorder(ContentContext ctx)
-
isGrid
public boolean isGrid(ContentContext ctx)
-
getSpacing
public String getSpacing(ContentContext ctx)
-
isRowBreak
public boolean isRowBreak()
Description copied from class:TableComponentreturn true if the component break the row.- Overrides:
isRowBreakin classTableComponent- Returns:
-
initContent
public boolean initContent(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponentinit the content with a default value. sample : "lorem ipsum" for text component.- Specified by:
initContentin interfaceIContentVisualComponent- Overrides:
initContentin classAbstractVisualComponent- Returns:
- true if content is create.
- Throws:
Exception
-
getOpenTableComponent
public TableComponent getOpenTableComponent(ContentContext ctx) throws Exception
- Throws:
Exception
-
updateTable
protected boolean updateTable(ContentContext ctx, int newCol, int newRow) throws Exception
- Throws:
Exception
-
delete
public void delete(ContentContext ctx)
Description copied from interface:IContentVisualComponentthis method is called when component is deleted.- Specified by:
deletein interfaceIContentVisualComponent- Overrides:
deletein classAbstractVisualComponent
-
performEdit
public String performEdit(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponentaction call when update the content page.- Specified by:
performEditin interfaceIContentVisualComponent- Overrides:
performEditin classTableComponent- Returns:
- the error message, null if no error
- Throws:
Exception
-
getFontAwesome
public String getFontAwesome()
- Specified by:
getFontAwesomein interfaceIContentVisualComponent- Overrides:
getFontAwesomein classAbstractVisualComponent
-
-