public static class Table.Column<T extends Entity> extends java.lang.Object implements Component.HasXmlDescriptor, Component.HasCaption, HasHtmlCaption, HasFormatter<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected AggregationInfo |
aggregation |
protected Table.ColumnAlignment |
alignment |
protected java.lang.String |
caption |
protected boolean |
captionAsHtml |
protected boolean |
collapsed |
protected java.lang.String |
description |
protected boolean |
editable |
protected org.dom4j.Element |
element |
protected java.lang.Float |
expandRatio |
protected java.util.function.Function<? super java.lang.Object,java.lang.String> |
formatter |
protected boolean |
groupAllowed |
protected java.lang.Object |
id |
protected java.lang.Integer |
maxTextLength |
protected Table<T> |
owner |
protected boolean |
sortable |
protected java.lang.Class |
type |
protected java.lang.String |
valueDescription |
protected java.util.function.Function<T,java.lang.Object> |
valueProvider |
protected java.lang.Integer |
width |
Constructor and Description |
---|
Column(java.lang.Class<T> entityClass,
java.lang.String propertyPath)
Deprecated.
|
Column(MetaPropertyPath propertyPath,
java.lang.String caption) |
Column(java.lang.Object id) |
Column(java.lang.Object id,
java.lang.String caption)
Deprecated.
|
Column(java.lang.String id) |
Column(java.lang.String id,
java.lang.String caption) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
AggregationInfo |
getAggregation() |
Table.ColumnAlignment |
getAlignment() |
MetaPropertyPath |
getBoundProperty() |
MetaPropertyPath |
getBoundPropertyNN() |
java.lang.String |
getCaption() |
boolean |
getCaptionAsHtml()
Deprecated.
Use
isCaptionAsHtml() instead |
java.lang.String |
getDescription() |
java.lang.Float |
getExpandRatio() |
java.util.function.Function<java.lang.Object,java.lang.String> |
getFormatter() |
java.lang.Object |
getId() |
java.lang.String |
getIdString() |
java.lang.Integer |
getMaxTextLength() |
MetaPropertyPath |
getMetaPropertyPath() |
MetaPropertyPath |
getMetaPropertyPathNN() |
Table |
getOwner() |
java.lang.String |
getStringId() |
java.lang.Class |
getType() |
java.lang.String |
getValueDescription() |
java.util.function.Function<T,java.lang.Object> |
getValueProvider() |
java.lang.Integer |
getWidth() |
org.dom4j.Element |
getXmlDescriptor() |
int |
hashCode() |
boolean |
isAggregationEditable() |
boolean |
isCaptionAsHtml() |
boolean |
isCollapsed() |
boolean |
isEditable() |
boolean |
isGroupAllowed() |
boolean |
isSortable() |
void |
removeAggregationProperty()
Removes the column from aggregation cells list.
|
void |
setAggregation(AggregationInfo aggregation) |
void |
setAlignment(Table.ColumnAlignment alignment) |
void |
setCaption(java.lang.String caption)
Sets the component's caption.
|
void |
setCaptionAsHtml(boolean captionAsHtml)
Sets whether column caption should be interpreted as HTML or not.
|
void |
setCollapsed(boolean collapsed) |
void |
setColumnGenerator(java.util.function.Function<T,Component> columnGenerator) |
void |
setDescription(java.lang.String description)
Sets the component's description.
|
void |
setEditable(boolean editable) |
void |
setExpandRatio(java.lang.Float ratio)
Sets expand ration for the given column.
|
void |
setFormatter(java.util.function.Function<? super java.lang.Object,java.lang.String> formatter) |
void |
setGroupAllowed(boolean groupAllowed) |
void |
setMaxTextLength(java.lang.Integer maxTextLength) |
void |
setOwner(Table owner) |
void |
setSortable(boolean sortable) |
void |
setType(java.lang.Class type) |
void |
setValueDescription(java.lang.String valueDescription) |
void |
setValueProvider(java.util.function.Function<T,java.lang.Object> valueProvider)
Sets value provider for the column.
|
void |
setWidth(java.lang.Integer width) |
void |
setXmlDescriptor(org.dom4j.Element element) |
java.lang.String |
toString() |
protected java.lang.Object id
protected java.lang.String caption
protected java.lang.String description
protected java.lang.String valueDescription
protected boolean editable
protected java.util.function.Function<? super java.lang.Object,java.lang.String> formatter
protected java.lang.Integer width
protected boolean collapsed
protected boolean groupAllowed
protected boolean sortable
protected AggregationInfo aggregation
protected java.lang.Integer maxTextLength
protected Table.ColumnAlignment alignment
protected boolean captionAsHtml
protected java.lang.Float expandRatio
protected java.util.function.Function<T extends Entity,java.lang.Object> valueProvider
protected java.lang.Class type
protected org.dom4j.Element element
public Column(java.lang.Object id)
public Column(java.lang.String id)
public Column(MetaPropertyPath propertyPath, java.lang.String caption)
public Column(java.lang.String id, java.lang.String caption)
@Deprecated public Column(java.lang.Object id, java.lang.String caption)
@Deprecated public Column(java.lang.Class<T> entityClass, java.lang.String propertyPath)
public java.lang.Object getId()
@Nullable public MetaPropertyPath getBoundProperty()
@Nonnull public MetaPropertyPath getBoundPropertyNN()
@Nonnull public java.lang.String getStringId()
public void setColumnGenerator(java.util.function.Function<T,Component> columnGenerator)
public java.util.function.Function<T,java.lang.Object> getValueProvider()
public void setValueProvider(java.util.function.Function<T,java.lang.Object> valueProvider)
getType()
of the column.valueProvider
- a callback interface for providing column values from a given source@Nullable public MetaPropertyPath getMetaPropertyPath()
public MetaPropertyPath getMetaPropertyPathNN()
public java.lang.String getIdString()
public java.lang.String getCaption()
getCaption
in interface Component.HasCaption
public void setCaption(java.lang.String caption)
Component.HasCaption
setCaption
in interface Component.HasCaption
caption
- the new component's captionpublic java.lang.String getDescription()
getDescription
in interface Component.HasDescription
public void setDescription(java.lang.String description)
Component.HasDescription
setDescription
in interface Component.HasDescription
description
- the new description to setpublic java.lang.String getValueDescription()
public void setValueDescription(java.lang.String valueDescription)
public boolean isEditable()
public void setEditable(boolean editable)
public java.lang.Class getType()
public void setType(java.lang.Class type)
public java.util.function.Function<java.lang.Object,java.lang.String> getFormatter()
getFormatter
in interface HasFormatter<java.lang.Object>
public void setFormatter(java.util.function.Function<? super java.lang.Object,java.lang.String> formatter)
setFormatter
in interface HasFormatter<java.lang.Object>
public Table.ColumnAlignment getAlignment()
public void setAlignment(Table.ColumnAlignment alignment)
public java.lang.Integer getWidth()
public void setWidth(java.lang.Integer width)
public boolean isCollapsed()
public void setCollapsed(boolean collapsed)
public boolean isGroupAllowed()
public void setGroupAllowed(boolean groupAllowed)
public boolean isSortable()
public void setSortable(boolean sortable)
public AggregationInfo getAggregation()
public void setAggregation(AggregationInfo aggregation)
public java.lang.Integer getMaxTextLength()
public void setMaxTextLength(java.lang.Integer maxTextLength)
public Table getOwner()
public void setOwner(Table owner)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public org.dom4j.Element getXmlDescriptor()
getXmlDescriptor
in interface Component.HasXmlDescriptor
public void setXmlDescriptor(org.dom4j.Element element)
setXmlDescriptor
in interface Component.HasXmlDescriptor
public boolean isAggregationEditable()
public java.lang.String toString()
toString
in class java.lang.Object
public void setCaptionAsHtml(boolean captionAsHtml)
setCaptionAsHtml
in interface HasHtmlCaption
captionAsHtml
- interpret caption as HTMLComponent.HasCaption.setCaption(String)
@Deprecated public boolean getCaptionAsHtml()
isCaptionAsHtml()
insteadpublic boolean isCaptionAsHtml()
isCaptionAsHtml
in interface HasHtmlCaption
true
if the caption is rendered as HTML,
false
if rendered as plain textpublic void removeAggregationProperty()
public void setExpandRatio(java.lang.Float ratio)
ratio
- ratiopublic java.lang.Float getExpandRatio()