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_ONLY
static String
TYPE
-
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:
init
in classAbstractPropertiesComponent
- Throws:
Exception
-
getFieldNumberOnly
protected Set<String> getFieldNumberOnly()
- Overrides:
getFieldNumberOnly
in classTableComponent
-
getType
public String getType()
Description copied from interface:IContentVisualComponent
return the type of the element.- Returns:
- the type of the element.
-
getFields
public List<String> getFields(ContentContext ctx) throws Exception
- Overrides:
getFields
in classTableComponent
- Throws:
Exception
-
getViewXHTMLCode
public String getViewXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getViewXHTMLCode
in classTableComponent
- Throws:
Exception
-
closeTable
public static String closeTable(ContentContext ctx, TableContext tableContext)
-
getSuffixViewXHTMLCode
public String getSuffixViewXHTMLCode(ContentContext ctx)
Description copied from interface:IContentVisualComponent
code for sufix the view XHTML code.- Specified by:
getSuffixViewXHTMLCode
in interfaceIContentVisualComponent
- Overrides:
getSuffixViewXHTMLCode
in 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:
getEditXHTMLCode
in 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:TableComponent
return true if the component break the row.- Overrides:
isRowBreak
in classTableComponent
- Returns:
-
initContent
public boolean initContent(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponent
init the content with a default value. sample : "lorem ipsum" for text component.- Specified by:
initContent
in interfaceIContentVisualComponent
- Overrides:
initContent
in 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:IContentVisualComponent
this method is called when component is deleted.- Specified by:
delete
in interfaceIContentVisualComponent
- Overrides:
delete
in classAbstractVisualComponent
-
performEdit
public String performEdit(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponent
action call when update the content page.- Specified by:
performEdit
in interfaceIContentVisualComponent
- Overrides:
performEdit
in classTableComponent
- Returns:
- the error message, null if no error
- Throws:
Exception
-
getFontAwesome
public String getFontAwesome()
- Specified by:
getFontAwesome
in interfaceIContentVisualComponent
- Overrides:
getFontAwesome
in classAbstractVisualComponent
-
-