DisplayTextFormatterSupport

DisplayTextFormatterSupport

Overview

DisplayTextFormatterSupport is a class in Aspose.Cells FOSS for Java.

Internal utility class for selecting and formatting display text sections.

This class provides 16 methods for working with DisplayTextFormatterSupport objects in Java programs. Available methods include: containsNumericPlaceholder, convertToDouble, evaluateCondition, expandSectionPattern, getAbsoluteNumericValue, isNumericValue, parseSections, sanitizeNumericSection, selectDateTimeSection, selectNumericSection, selectTextSection, shouldUseAbsoluteValue, and 4 additional methods. All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.

Methods

SignatureDescription
parseSections(formatCode: String)List<DisplayFormatSectionInfo>Parses format code into a list of section info objects.
splitSections(formatCode: String)List<String>Splits sections.
tryParseSectionCondition(section: String, conditionOperator: String[], conditionValue: double[])booleanAttempts to process parse section condition.
tryParseConditionToken(token: String, conditionOperator: String[], conditionValue: double[])booleanAttempts to process parse condition token.
evaluateCondition(conditionOperator: String, numericValue: double, conditionValue: double)booleanEvaluates condition.
shouldUseAbsoluteValue(section: String, numericValue: double)booleanProcesses should use absolute value.
sanitizeNumericSection(section: String)StringSanitizes numeric section.
stripDirectiveBrackets(section: String, preserveElapsedTokens: boolean)StringStrips directive brackets.
containsNumericPlaceholder(pattern: String)booleanChecks whether the content contains numeric placeholder.
expandSectionPattern(pattern: String, valueText: String, replaceTextPlaceholder: boolean)StringExpands section pattern.
isNumericValue(value: Object)booleanIndicates whether numeric value.
convertToDouble(value: Object)doubleConverts to double.
getAbsoluteNumericValue(value: Object)ObjectProcesses get absolute numeric value.
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double)DisplayFormatSectionInfoSelects the appropriate numeric section based on the value.
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double, useAbsoluteValue: boolean[])DisplayFormatSectionInfoSelects the appropriate numeric section and reports whether formatting should use the absolute value.
selectTextSection(sections: List<DisplayFormatSectionInfo>)DisplayFormatSectionInfoSelects the text section from the format sections.
selectDateTimeSection(sections: List<DisplayFormatSectionInfo>)DisplayFormatSectionInfoSelects the date/time section from the format sections.

See Also