Interface AdjustableColumnFormat
- All Known Implementing Classes:
AbstractAdjustableColumnFormat
,NumericAdjustableColumnFormat
public interface AdjustableColumnFormat
Base class for all Adjustable Column Formats
-
Method Summary
Modifier and Type Method Description FormatType
getFormatType()
Gets the current format type.boolean
isCompatible(Class<?> type)
Check if the specified type is compatible with the current formatter.default void
setDefaultFormatter(Format formatter)
Sets a default formatter to use whenFormatType.DEFAULT
is selectedvoid
setFormatType(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.DEFAULT
is selected- Parameters:
formatter
- the new default formatter
-