|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.datatable.ColumnDescription
public class ColumnDescription
Holds all the information we keep for a single column in a DataTable.
This does not include all the values, which are kept in TableCells.
The information that is included is:
ValueType)Query))
| Constructor Summary | |
|---|---|
ColumnDescription(java.lang.String id,
ValueType type,
java.lang.String label)
Creates a new column description. |
|
| Method Summary | |
|---|---|
ColumnDescription |
clone()
Returns a clone of the ColumnDescription, meaning a column descriptor with the exact same properties. |
java.util.Map<java.lang.String,java.lang.String> |
getCustomProperties()
Returns an immutable map of the custom properties. |
java.lang.String |
getCustomProperty(java.lang.String key)
Retrieves a custom property. |
java.lang.String |
getId()
Returns the column id. |
java.lang.String |
getLabel()
Returns the column label. |
java.lang.String |
getPattern()
Returns the column pattern. |
ValueType |
getType()
Returns the column type. |
void |
setCustomProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
Sets a custom property. |
void |
setLabel(java.lang.String label)
Sets a column label. |
void |
setPattern(java.lang.String pattern)
Sets a column pattern. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnDescription(java.lang.String id,
ValueType type,
java.lang.String label)
id - The column's identifier.type - The column's data type.label - The column's displayed name (label).| Method Detail |
|---|
public java.lang.String getId()
public ValueType getType()
public java.lang.String getLabel()
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern - A pattern to set for this column.public void setLabel(java.lang.String label)
label - A label to set for this column.public java.lang.String getCustomProperty(java.lang.String key)
key - The property key.
public void setCustomProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
propertyKey - The property key.propertyValue - The property value.public java.util.Map<java.lang.String,java.lang.String> getCustomProperties()
public ColumnDescription clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||