Class IndesignUtility
java.lang.Object
de.hybris.platform.commons.translator.renderers.IndesignUtility
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndesignUtility(Properties properties) Create a new InDesign Utility and specify the InDesign specific configuration -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancellIsRenderable(AbstractNode node) static StringGet back the close tags of the node's open parents
Example: <cStrikethru:><cTypeface:>static StringcloseParentsTags(AbstractNode node) Get back the close tags of the node's open parents
Check if the parent tag is already closed
Example: <cStrikethru:><cTypeface:>getBorder(AbstractNode node) static StringgetCellpadding(AbstractNode node) static StringgetCellspacing(AbstractNode node) static StringgetColumnWidth(AbstractNode node, int column) This methodReturns the InDesign specific configuration that is declared in the file "indesign.properties"static Stringstatic voidinitializeParaStyle(AbstractNode node, String styleName) static StringGet back the open tags of the node's closed parents
Example: <cTypeface:Bold><cStrikethru:1>static StringopenParentsTags(AbstractNode node) Get back the open tags of the node's closed parents
Check if the parent tag is already closed
Example: <cTypeface:Bold><cStrikethru:1>static booleanparentIsMain(AbstractNode node) protected static StringparentTags(AbstractNode node, boolean checkOpenTags, boolean openClose) Get back the tags of the node's parents according to the openClose parameter
This method runs recursively up thru the node tree to find the parents
-
Field Details
-
STYLE_NAME
- See Also:
-
PARASTYLE_OPEN
- See Also:
-
YES
- See Also:
-
NO
- See Also:
-
OPEN_TAG
- See Also:
-
CLOSE_TAG
- See Also:
-
BORDER
- See Also:
-
CELLPADDING
- See Also:
-
CELLSPACING
- See Also:
-
WIDTH
- See Also:
-
SURPRESSED_BORDER_WIDTH
- See Also:
-
DEFAULT_SURPRESSED_BORDER_WIDTH
public static final float DEFAULT_SURPRESSED_BORDER_WIDTH- See Also:
-
-
Constructor Details
-
IndesignUtility
Create a new InDesign Utility and specify the InDesign specific configuration- Parameters:
properties- The InDesign specific configuration
-
-
Method Details
-
getProperties
Returns the InDesign specific configuration that is declared in the file "indesign.properties"- Returns:
- The InDesign specific configuration that is declared in the file "indesign.properties"
-
initializeParaStyle
-
initializeCharStyle
-
closeParentsTags
Get back the close tags of the node's open parents
Check if the parent tag is already closed
Example: <cStrikethru:><cTypeface:>- Parameters:
node- the actual node- Returns:
- the close tags of the node's open parents as string
-
closeForcedParentsTags
Get back the close tags of the node's open parents
Example: <cStrikethru:><cTypeface:>- Parameters:
node- the actual node- Returns:
- the close tags of the node's open parents as string
-
openParentsTags
Get back the open tags of the node's closed parents
Check if the parent tag is already closed
Example: <cTypeface:Bold><cStrikethru:1>- Parameters:
node- the actual node- Returns:
- the open tags of the node's closed parents as string
-
openForcedParentsTags
Get back the open tags of the node's closed parents
Example: <cTypeface:Bold><cStrikethru:1>- Parameters:
node- the actual node- Returns:
- the open tags of the node's closed parents as string
-
parentTags
Get back the tags of the node's parents according to the openClose parameter
This method runs recursively up thru the node tree to find the parents- Parameters:
node- the actual nodecheckOpenTags- should be checked if the parent tag is already open (true - yes, false - no)openClose- true - open tags; false - closed tags- Returns:
- the tags of the node's parents as string according to the openClose parameter
-
parentIsMain
-
getBorder
-
getCellpadding
-
getCellspacing
-
getColumnWidth
This method- Parameters:
node- a TableNodecolumn- current column count starting from 0- Returns:
- indesign tag that define width for column
-
cellIsRenderable
-