Class IndesignUtility

java.lang.Object
de.hybris.platform.commons.translator.renderers.IndesignUtility

public class IndesignUtility extends Object
  • Field Details

  • Constructor Details

    • IndesignUtility

      public IndesignUtility(Properties properties)
      Create a new InDesign Utility and specify the InDesign specific configuration
      Parameters:
      properties - The InDesign specific configuration
  • Method Details

    • getProperties

      public Properties 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

      public static void initializeParaStyle(AbstractNode node, String styleName)
    • initializeCharStyle

      public static String initializeCharStyle(AbstractNode node)
    • closeParentsTags

      public static String closeParentsTags(AbstractNode node)
      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

      public static String closeForcedParentsTags(AbstractNode node)
      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

      public static String openParentsTags(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>
      Parameters:
      node - the actual node
      Returns:
      the open tags of the node's closed parents as string
    • openForcedParentsTags

      public static String openForcedParentsTags(AbstractNode node)
      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

      protected static String parentTags(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
      Parameters:
      node - the actual node
      checkOpenTags - 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

      public static boolean parentIsMain(AbstractNode node)
    • getBorder

      public String getBorder(AbstractNode node)
    • getCellpadding

      public static String getCellpadding(AbstractNode node)
    • getCellspacing

      public static String getCellspacing(AbstractNode node)
    • getColumnWidth

      public static String getColumnWidth(AbstractNode node, int column)
      This method
      Parameters:
      node - a TableNode
      column - current column count starting from 0
      Returns:
      indesign tag that define width for column
    • cellIsRenderable

      public static boolean cellIsRenderable(AbstractNode node)