public class IndesignUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BORDER |
static String |
CELLPADDING |
static String |
CELLSPACING |
static String |
CLOSE_TAG |
static float |
DEFAULT_SURPRESSED_BORDER_WIDTH |
static String |
NO |
static String |
OPEN_TAG |
static String |
PARASTYLE_OPEN |
static String |
STYLE_NAME |
static String |
SURPRESSED_BORDER_WIDTH |
static String |
WIDTH |
static String |
YES |
| Constructor and Description |
|---|
IndesignUtility(Properties properties)
Create a new InDesign Utility and specify the InDesign specific configuration
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
cellIsRenderable(AbstractNode node) |
static String |
closeForcedParentsTags(AbstractNode node)
Get back the close tags of the node's open parents
Example: |
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: |
String |
getBorder(AbstractNode node) |
static String |
getCellpadding(AbstractNode node) |
static String |
getCellspacing(AbstractNode node) |
static String |
getColumnWidth(AbstractNode node,
int column)
This method
|
Properties |
getProperties()
Returns the InDesign specific configuration that is declared in the file "indesign.properties"
|
static String |
initializeCharStyle(AbstractNode node) |
static void |
initializeParaStyle(AbstractNode node,
String styleName) |
static String |
openForcedParentsTags(AbstractNode node)
Get back the open tags of the node's closed parents
Example: |
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: |
static boolean |
parentIsMain(AbstractNode node) |
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 |
public static final String STYLE_NAME
public static final String PARASTYLE_OPEN
public static final String YES
public static final String NO
public static final String OPEN_TAG
public static final String CLOSE_TAG
public static final String BORDER
public static final String CELLPADDING
public static final String CELLSPACING
public static final String WIDTH
public static final String SURPRESSED_BORDER_WIDTH
public static final float DEFAULT_SURPRESSED_BORDER_WIDTH
public IndesignUtility(Properties properties)
properties - The InDesign specific configurationpublic Properties getProperties()
public static void initializeParaStyle(AbstractNode node, String styleName)
public static String initializeCharStyle(AbstractNode node)
public static String closeParentsTags(AbstractNode node)
node - the actual nodepublic static String closeForcedParentsTags(AbstractNode node)
node - the actual nodepublic static String openParentsTags(AbstractNode node)
node - the actual nodepublic static String openForcedParentsTags(AbstractNode node)
node - the actual nodeprotected static String parentTags(AbstractNode node, boolean checkOpenTags, boolean openClose)
node - the actual nodecheckOpenTags - should be checked if the parent tag is already open (true - yes, false - no)openClose - true - open tags; false - closed tagspublic static boolean parentIsMain(AbstractNode node)
public String getBorder(AbstractNode node)
public static String getCellpadding(AbstractNode node)
public static String getCellspacing(AbstractNode node)
public static String getColumnWidth(AbstractNode node, int column)
node - a TableNodecolumn - current column count starting from 0public static boolean cellIsRenderable(AbstractNode node)
Copyright © 2017 SAP SE. All Rights Reserved.