Class DTColumnConfig52
- java.lang.Object
-
- org.drools.workbench.models.guided.dtable.shared.model.DTColumnConfig52
-
- All Implemented Interfaces:
BaseColumn,DiffColumn
- Direct Known Subclasses:
ActionCol52,AttributeCol52,ConditionCol52,DescriptionCol52,MetadataCol52,RowNumberCol52,RuleNameColumn
public class DTColumnConfig52 extends Object implements BaseColumn, DiffColumn
-
-
Field Summary
Fields Modifier and Type Field Description StringdefaultValuestatic StringFIELD_DEFAULT_VALUEAvailable fields for this type of column.static StringFIELD_HEADERstatic StringFIELD_HIDE_COLUMNstatic StringFIELD_WIDTH
-
Constructor Summary
Constructors Constructor Description DTColumnConfig52()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloneCommonColumnConfigFrom(DTColumnConfig52 model)Clones the configuration (width, header, hide, default value) of the argument into this instance.List<BaseColumnFieldDiff>diff(BaseColumn otherColumn)Analyze differences between two columns of same type.booleanequals(Object o)protected ObjectextractDefaultValue(DTCellValue52 dcv)DTCellValue52getDefaultValue()StringgetHeader()intgetWidth()inthashCode()static booleanisEqualOrNull(Object s1, Object s2)booleanisHideColumn()voidsetDefaultValue(DTCellValue52 defaultValue)voidsetHeader(String header)voidsetHideColumn(boolean hideColumn)voidsetWidth(int width)
-
-
-
Field Detail
-
FIELD_DEFAULT_VALUE
public static final String FIELD_DEFAULT_VALUE
Available fields for this type of column.- See Also:
- Constant Field Values
-
FIELD_HIDE_COLUMN
public static final String FIELD_HIDE_COLUMN
- See Also:
- Constant Field Values
-
FIELD_WIDTH
public static final String FIELD_WIDTH
- See Also:
- Constant Field Values
-
FIELD_HEADER
public static final String FIELD_HEADER
- See Also:
- Constant Field Values
-
defaultValue
public String defaultValue
-
-
Method Detail
-
getDefaultValue
public DTCellValue52 getDefaultValue()
- Specified by:
getDefaultValuein interfaceBaseColumn
-
getWidth
public int getWidth()
- Specified by:
getWidthin interfaceBaseColumn
-
isHideColumn
public boolean isHideColumn()
- Specified by:
isHideColumnin interfaceBaseColumn
-
setDefaultValue
public void setDefaultValue(DTCellValue52 defaultValue)
- Specified by:
setDefaultValuein interfaceBaseColumn
-
diff
public List<BaseColumnFieldDiff> diff(BaseColumn otherColumn)
Description copied from interface:DiffColumnAnalyze differences between two columns of same type.- Specified by:
diffin interfaceDiffColumn- Parameters:
otherColumn- The column to compare with this one.- Returns:
- A list of fields and its values that have changed.
-
cloneCommonColumnConfigFrom
public void cloneCommonColumnConfigFrom(DTColumnConfig52 model)
Clones the configuration (width, header, hide, default value) of the argument into this instance.- Parameters:
model- column instance to be cloned
-
extractDefaultValue
protected Object extractDefaultValue(DTCellValue52 dcv)
-
setHideColumn
public void setHideColumn(boolean hideColumn)
- Specified by:
setHideColumnin interfaceBaseColumn
-
setWidth
public void setWidth(int width)
- Specified by:
setWidthin interfaceBaseColumn
-
setHeader
public void setHeader(String header)
- Specified by:
setHeaderin interfaceBaseColumn
-
getHeader
public String getHeader()
- Specified by:
getHeaderin interfaceBaseColumn
-
-