Package org.opencms.ui.components
Class CmsResourceTableProperty
java.lang.Object
org.opencms.ui.components.CmsResourceTableProperty
- All Implemented Interfaces:
Serializable
Class whose instances contain the static data needed for a table column.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Converter for dates represented by their time stamp. -
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resoure table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property.static final CmsResourceTableProperty
Resource table property. -
Constructor Summary
ConstructorDescriptionCmsResourceTableProperty
(String id, Class<?> columnType, Object defaultValue, String headerKey, boolean collapsible, float expandRation, int columnWidth) Creates a new instance.CmsResourceTableProperty
(String id, Class<?> columnType, Object defaultValue, String headerKey, boolean collapsible, float expandRation, int columnWidth, com.vaadin.v7.data.util.converter.Converter<String, ?> converter) Creates a new instance.CmsResourceTableProperty
(String id, String editPropertyId, Class<?> columnType, Object defaultValue, String headerKey, boolean collapsible, float expandRation, int columnWidth) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<CmsResourceTableProperty>
Gets the list of default columns.boolean
Class<?>
Returns the columnType.int
Returns the column width.com.vaadin.v7.data.util.converter.Converter<String,
?> Returns the property converter.static Map<String,
CmsResourceTableProperty> Gets a map of default columns by name.Returns the defaultValue.Returns the edit property id.float
Returns the expand ratio.Returns the headerKey.getId()
Gets the id of the column.int
hashCode()
boolean
Returns the column collapsible flag.boolean
Checks whether this is an edit property.toString()
-
Field Details
-
PROPERTY_CACHE
Resource table property. -
PROPERTY_COPYRIGHT
Resource table property. -
PROPERTY_DATE_CREATED
Resource table property. -
PROPERTY_DATE_EXPIRED
Resource table property. -
PROPERTY_DATE_MODIFIED
Resource table property. -
PROPERTY_DATE_RELEASED
Resource table property. -
PROPERTY_DISABLED
Resource table property. -
PROPERTY_INSIDE_PROJECT
Resource table property. -
PROPERTY_IS_FOLDER
Resource table property. -
PROPERTY_NAVIGATION_POSITION
Resource table property. -
PROPERTY_NAVIGATION_TEXT
Resource table property. -
PROPERTY_IN_NAVIGATION
Resource table property. -
PROPERTY_PERMISSIONS
Resource table property. -
PROPERTY_PROJECT
Resource table property. -
PROPERTY_RELEASED_NOT_EXPIRED
Resource table property. -
PROPERTY_RESOURCE_NAME
Resource table property. -
PROPERTY_RESOURCE_TYPE
Resource table property. -
PROPERTY_INTERNAL_RESOURCE_TYPE
Resource table property. -
PROPERTY_SITE_PATH
Resource table property. -
PROPERTY_SIZE
Resource table property. -
PROPERTY_STATE
Resource table property. -
PROPERTY_STATE_NAME
Resource table property. -
PROPERTY_TITLE
Resource table property. -
PROPERTY_TREE_CAPTION
Resource table property. -
PROPERTY_TYPE_ICON
Resoure table property. -
PROPERTY_USER_CREATED
Resource table property. -
PROPERTY_USER_LOCKED
Resource table property. -
PROPERTY_USER_MODIFIED
Resource table property.
-
-
Constructor Details
-
CmsResourceTableProperty
public CmsResourceTableProperty(String id, Class<?> columnType, Object defaultValue, String headerKey, boolean collapsible, float expandRation, int columnWidth) Creates a new instance.- Parameters:
id
- the id (should be unique)columnType
- the column typedefaultValue
- the default valueheaderKey
- the message key for the headercollapsible
- the column collapsible flagexpandRation
- the column expand ratiocolumnWidth
- the column width
-
CmsResourceTableProperty
public CmsResourceTableProperty(String id, Class<?> columnType, Object defaultValue, String headerKey, boolean collapsible, float expandRation, int columnWidth, com.vaadin.v7.data.util.converter.Converter<String, ?> converter) Creates a new instance.- Parameters:
id
- the id (should be unique)columnType
- the column typedefaultValue
- the default valueheaderKey
- the message key for the headercollapsible
- the column collapsible flagexpandRation
- the column expand ratiocolumnWidth
- the column widthconverter
- the property converter
-
CmsResourceTableProperty
public CmsResourceTableProperty(String id, String editPropertyId, Class<?> columnType, Object defaultValue, String headerKey, boolean collapsible, float expandRation, int columnWidth) Creates a new instance.- Parameters:
id
- the id (should be unique)editPropertyId
- the editable property idcolumnType
- the column typedefaultValue
- the default valueheaderKey
- the message key for the headercollapsible
- the column collapsible flagexpandRation
- the column expand ratiocolumnWidth
- the column width
-
-
Method Details
-
defaultProperties
Gets the list of default columns.- Returns:
- the default columns
-
getDefaultColumnsByName
Gets a map of default columns by name.- Returns:
- the default columns with their names as keys
-
equals
-
getColumnType
Returns the columnType.- Returns:
- the columnType
-
getColumnWidth
Returns the column width.- Returns:
- the column width
-
getConverter
Returns the property converter.- Returns:
- the converter
-
getDefaultValue
Returns the defaultValue.- Returns:
- the defaultValue
-
getEditPropertyId
Returns the edit property id.- Returns:
- the edit property id
-
getExpandRatio
Returns the expand ratio.- Returns:
- the expand ratio
-
getHeaderKey
Returns the headerKey.- Returns:
- the headerKey
-
getId
Gets the id of the column.- Returns:
- the id
-
hashCode
-
isCollapsible
Returns the column collapsible flag.- Returns:
- the column collapsible flag
-
isEditProperty
Checks whether this is an edit property.- Returns:
true
if this is an edit property
-
toString
-