Interface AdjustableColumnFormat
- All Known Implementing Classes:
AbstractAdjustableColumnFormat,NumericAdjustableColumnFormat
public interface AdjustableColumnFormat
Base class for all Adjustable Column Formats
-
Method Summary
Modifier and TypeMethodDescriptionGets the current format type.booleanisCompatible(Class<?> type) Check if the specified type is compatible with the current formatter.default voidsetDefaultFormatter(Format formatter) Sets a default formatter to use whenFormatType.DEFAULTis selectedvoidsetFormatType(FormatType type) Sets the format type.
-
Method Details
-
getFormatType
FormatType getFormatType()Gets the current format type.- Returns:
- the format type
-
setFormatType
Sets the format type. This causes the text to be formatted differently.- Parameters:
type- the format type
-
isCompatible
Check if the specified type is compatible with the current formatter.- Parameters:
type- the type to check- Returns:
- true if it is compatible
-
setDefaultFormatter
Sets a default formatter to use whenFormatType.DEFAULTis selected- Parameters:
formatter- the new default formatter
-