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