Package org.opencms.ui.components
Class CmsResourceTableProperty
- java.lang.Object
-
- org.opencms.ui.components.CmsResourceTableProperty
-
- All Implemented Interfaces:
java.io.Serializable
public class CmsResourceTableProperty extends java.lang.Object implements java.io.Serializable
Class whose instances contain the static data needed for a table column.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmsResourceTableProperty.DateConverterConverter for dates represented by their time stamp.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CmsResourceTableProperty(java.lang.String id, java.lang.Class<?> columnType, java.lang.Object defaultValue, java.lang.String headerKey, boolean collapsible, float expandRation, int columnWidth)Creates a new instance.CmsResourceTableProperty(java.lang.String id, java.lang.Class<?> columnType, java.lang.Object defaultValue, java.lang.String headerKey, boolean collapsible, float expandRation, int columnWidth, com.vaadin.v7.data.util.converter.Converter<java.lang.String,?> converter)Creates a new instance.CmsResourceTableProperty(java.lang.String id, java.lang.String editPropertyId, java.lang.Class<?> columnType, java.lang.Object defaultValue, java.lang.String headerKey, boolean collapsible, float expandRation, int columnWidth)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<CmsResourceTableProperty>defaultProperties()Gets the list of default columns.booleanequals(java.lang.Object other)java.lang.Class<?>getColumnType()Returns the columnType.intgetColumnWidth()Returns the column width.com.vaadin.v7.data.util.converter.Converter<java.lang.String,?>getConverter()Returns the property converter.static java.util.Map<java.lang.String,CmsResourceTableProperty>getDefaultColumnsByName()Gets a map of default columns by name.java.lang.ObjectgetDefaultValue()Returns the defaultValue.java.lang.StringgetEditPropertyId()Returns the edit property id.floatgetExpandRatio()Returns the expand ratio.java.lang.StringgetHeaderKey()Returns the headerKey.java.lang.StringgetId()Gets the id of the column.inthashCode()booleanisCollapsible()Returns the column collapsible flag.booleanisEditProperty()Checks whether this is an edit property.java.lang.StringtoString()
-
-
-
Field Detail
-
PROPERTY_CACHE
public static final CmsResourceTableProperty PROPERTY_CACHE
Resource table property.
-
PROPERTY_COPYRIGHT
public static final CmsResourceTableProperty PROPERTY_COPYRIGHT
Resource table property.
-
PROPERTY_DATE_CREATED
public static final CmsResourceTableProperty PROPERTY_DATE_CREATED
Resource table property.
-
PROPERTY_DATE_EXPIRED
public static final CmsResourceTableProperty PROPERTY_DATE_EXPIRED
Resource table property.
-
PROPERTY_DATE_MODIFIED
public static final CmsResourceTableProperty PROPERTY_DATE_MODIFIED
Resource table property.
-
PROPERTY_DATE_RELEASED
public static final CmsResourceTableProperty PROPERTY_DATE_RELEASED
Resource table property.
-
PROPERTY_DISABLED
public static final CmsResourceTableProperty PROPERTY_DISABLED
Resource table property.
-
PROPERTY_INSIDE_PROJECT
public static final CmsResourceTableProperty PROPERTY_INSIDE_PROJECT
Resource table property.
-
PROPERTY_IS_FOLDER
public static final CmsResourceTableProperty PROPERTY_IS_FOLDER
Resource table property.
-
PROPERTY_NAVIGATION_POSITION
public static final CmsResourceTableProperty PROPERTY_NAVIGATION_POSITION
Resource table property.
-
PROPERTY_NAVIGATION_TEXT
public static final CmsResourceTableProperty PROPERTY_NAVIGATION_TEXT
Resource table property.
-
PROPERTY_IN_NAVIGATION
public static final CmsResourceTableProperty PROPERTY_IN_NAVIGATION
Resource table property.
-
PROPERTY_PERMISSIONS
public static final CmsResourceTableProperty PROPERTY_PERMISSIONS
Resource table property.
-
PROPERTY_PROJECT
public static final CmsResourceTableProperty PROPERTY_PROJECT
Resource table property.
-
PROPERTY_RELEASED_NOT_EXPIRED
public static final CmsResourceTableProperty PROPERTY_RELEASED_NOT_EXPIRED
Resource table property.
-
PROPERTY_RESOURCE_NAME
public static final CmsResourceTableProperty PROPERTY_RESOURCE_NAME
Resource table property.
-
PROPERTY_RESOURCE_TYPE
public static final CmsResourceTableProperty PROPERTY_RESOURCE_TYPE
Resource table property.
-
PROPERTY_INTERNAL_RESOURCE_TYPE
public static final CmsResourceTableProperty PROPERTY_INTERNAL_RESOURCE_TYPE
Resource table property.
-
PROPERTY_SITE_PATH
public static final CmsResourceTableProperty PROPERTY_SITE_PATH
Resource table property.
-
PROPERTY_SIZE
public static final CmsResourceTableProperty PROPERTY_SIZE
Resource table property.
-
PROPERTY_STATE
public static final CmsResourceTableProperty PROPERTY_STATE
Resource table property.
-
PROPERTY_STATE_NAME
public static final CmsResourceTableProperty PROPERTY_STATE_NAME
Resource table property.
-
PROPERTY_TITLE
public static final CmsResourceTableProperty PROPERTY_TITLE
Resource table property.
-
PROPERTY_TREE_CAPTION
public static final CmsResourceTableProperty PROPERTY_TREE_CAPTION
Resource table property.
-
PROPERTY_TYPE_ICON
public static final CmsResourceTableProperty PROPERTY_TYPE_ICON
Resoure table property.
-
PROPERTY_USER_CREATED
public static final CmsResourceTableProperty PROPERTY_USER_CREATED
Resource table property.
-
PROPERTY_USER_LOCKED
public static final CmsResourceTableProperty PROPERTY_USER_LOCKED
Resource table property.
-
PROPERTY_USER_MODIFIED
public static final CmsResourceTableProperty PROPERTY_USER_MODIFIED
Resource table property.
-
-
Constructor Detail
-
CmsResourceTableProperty
public CmsResourceTableProperty(java.lang.String id, java.lang.Class<?> columnType, java.lang.Object defaultValue, java.lang.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(java.lang.String id, java.lang.Class<?> columnType, java.lang.Object defaultValue, java.lang.String headerKey, boolean collapsible, float expandRation, int columnWidth, com.vaadin.v7.data.util.converter.Converter<java.lang.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(java.lang.String id, java.lang.String editPropertyId, java.lang.Class<?> columnType, java.lang.Object defaultValue, java.lang.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 Detail
-
defaultProperties
public static java.util.List<CmsResourceTableProperty> defaultProperties()
Gets the list of default columns.- Returns:
- the default columns
-
getDefaultColumnsByName
public static java.util.Map<java.lang.String,CmsResourceTableProperty> getDefaultColumnsByName()
Gets a map of default columns by name.- Returns:
- the default columns with their names as keys
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
getColumnType
public java.lang.Class<?> getColumnType()
Returns the columnType.- Returns:
- the columnType
-
getColumnWidth
public int getColumnWidth()
Returns the column width.- Returns:
- the column width
-
getConverter
public com.vaadin.v7.data.util.converter.Converter<java.lang.String,?> getConverter()
Returns the property converter.- Returns:
- the converter
-
getDefaultValue
public java.lang.Object getDefaultValue()
Returns the defaultValue.- Returns:
- the defaultValue
-
getEditPropertyId
public java.lang.String getEditPropertyId()
Returns the edit property id.- Returns:
- the edit property id
-
getExpandRatio
public float getExpandRatio()
Returns the expand ratio.- Returns:
- the expand ratio
-
getHeaderKey
public java.lang.String getHeaderKey()
Returns the headerKey.- Returns:
- the headerKey
-
getId
public java.lang.String getId()
Gets the id of the column.- Returns:
- the id
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
isCollapsible
public boolean isCollapsible()
Returns the column collapsible flag.- Returns:
- the column collapsible flag
-
isEditProperty
public boolean isEditProperty()
Checks whether this is an edit property.- Returns:
trueif this is an edit property
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-