Class TableCellUtil
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.TableCellUtil
-
public class TableCellUtil extends java.lang.Object
Utility functions for table cells.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INTERN_PREFIX
static java.lang.String
USER_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ISerializableComparable
createTableCell(java.lang.String token)
Returns an appropriate table cell for the specified string token.static java.lang.String
getPropertyTypeCode(PropertyType propertyType)
Returns the code of specified property type with prefixINTERN-
orUSER-
depending on whether it is internal name space or not.static boolean
isEditiableProperty(PropertyType propertyType)
-
-
-
Field Detail
-
USER_PREFIX
public static final java.lang.String USER_PREFIX
- See Also:
- Constant Field Values
-
INTERN_PREFIX
public static final java.lang.String INTERN_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createTableCell
public static ISerializableComparable createTableCell(java.lang.String token)
Returns an appropriate table cell for the specified string token. If it can be parsed as an integer number aIntegerTableCell
is returned. If it can be parsed as a floating point number aDoubleTableCell
is returned. Otherwise aStringTableCell
is returned.
-
getPropertyTypeCode
public static java.lang.String getPropertyTypeCode(PropertyType propertyType)
Returns the code of specified property type with prefixINTERN-
orUSER-
depending on whether it is internal name space or not.
-
isEditiableProperty
public static boolean isEditiableProperty(PropertyType propertyType)
-
-