public class BooleanPropertyColumnDefinition extends AbstractColumnDefinition
Modifier and Type | Class and Description |
---|---|
static class |
BooleanPropertyColumnDefinition.BooleanPropertyColumnFormatter
Generates xhtml cell content (icon and/or text) for the
BooleanPropertyColumnDefinition . |
static class |
BooleanPropertyColumnDefinition.DisplayMode
Specifies the display mode for representing the value of the boolean property.
|
Constructor and Description |
---|
BooleanPropertyColumnDefinition() |
Modifier and Type | Method and Description |
---|---|
BooleanPropertyColumnDefinition.DisplayMode |
getDisplayMode()
Defines the display mode for representing the value of the boolean property.
|
String |
getFalseIcon()
Defines the icon to display when the value of the boolean property is
false . |
String |
getFalseLabel()
Defines the text to display when the value of the boolean property is
false . |
String |
getTrueIcon()
Defines the icon to display when the value of the boolean property is
true . |
String |
getTrueLabel()
Defines the text to display when the value of the boolean property is
true . |
Class<?> |
getType()
The concrete type represented in this column, ie Long, Double, Date, etc.
|
void |
setDisplayMode(BooleanPropertyColumnDefinition.DisplayMode displayMode) |
void |
setFalseIcon(String falseIcon) |
void |
setFalseLabel(String falseLabel) |
void |
setTrueIcon(String trueIcon) |
void |
setTrueLabel(String trueLabel) |
getExpandRatio, getFormatterClass, getLabel, getName, getPropertyName, getRuleClass, getWidth, isDisplayInChooseDialog, isEditable, isEnabled, isSearchable, isSortable, setDisplayInChooseDialog, setEditable, setEnabled, setExpandRatio, setFormatterClass, setLabel, setName, setPropertyName, setRuleClass, setSearchable, setSortable, setWidth
public Class<?> getType()
AbstractColumnDefinition
getType
in interface ColumnDefinition
getType
in class AbstractColumnDefinition
public BooleanPropertyColumnDefinition.DisplayMode getDisplayMode()
public void setDisplayMode(BooleanPropertyColumnDefinition.DisplayMode displayMode)
public String getFalseIcon()
false
.public void setFalseIcon(String falseIcon)
public String getTrueIcon()
true
.
Default value is "icon-tick"
public void setTrueIcon(String trueIcon)
public String getFalseLabel()
false
.public void setFalseLabel(String falseLabel)
public String getTrueLabel()
true
.public void setTrueLabel(String trueLabel)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.