public interface IHiddenRegionFormatter
IHiddenRegionFormatter is used to build a formatting setting for a hidden region.IHiddenRegionFormatting| Modifier and Type | Field and Description |
|---|---|
static int |
HIGH_PRIORITY |
static int |
LOW_PRIORITY |
static int |
NORMAL_PRIORITY |
| Modifier and Type | Method and Description |
|---|---|
void |
autowrap()
Configure autowrap.
|
void |
autowrap(int triggerLength)
Configure autowrap.
|
FormatterRequest |
getRequest()
Returns teh current formatter request and allows to read configuration settings.
|
void |
highPriority()
When merging, treat this configuration with a high priority.
|
void |
indent() |
void |
lowPriority()
When merging, treat this configuration with a low priority.
|
void |
newLine()
Forces a line break in this hidden region.
|
void |
noAutowrap()
Suppresses auto wrap in this hidden region.
|
void |
noIndentation()
Resets the indentation level to zero.
|
void |
noSpace()
Format this hidden region with using no space (zero characters).
|
void |
oneSpace()
One space is added at this hidden region.
|
void |
setNewLines(int newLines)
Forces the number of newlines in this hidden region.
|
void |
setNewLines(int minNewLines,
int defaultNewLines,
int maxNewLines)
Configures the given new lines for this hidden region.
|
void |
setOnAutowrap(IAutowrapFormatter formatter)
Callback if autowrapping was applied.
|
void |
setPriority(int priority)
Sets the priority of this formatting configuration.
|
void |
setSpace(java.lang.String space)
The given space is used for this hidden region.
|
static final int HIGH_PRIORITY
static final int LOW_PRIORITY
static final int NORMAL_PRIORITY
void autowrap()
autowrap(0).void autowrap(int triggerLength)
void noAutowrap()
void setOnAutowrap(IAutowrapFormatter formatter)
FormatterRequest getRequest()
void highPriority()
lowPriority(),
HIGH_PRIORITYvoid lowPriority()
highPriority(),
LOW_PRIORITYvoid setPriority(int priority)
NORMAL_PRIORITY.void noIndentation()
void indent()
void newLine()
setNewLines(1).void setNewLines(int newLines)
setNewLines(nl,
nl, nl)void setNewLines(int minNewLines,
int defaultNewLines,
int maxNewLines)
minNewLines and maxNewLines. Applies defaultNewLines otherwise.void noSpace()
setSpace("").void oneSpace()
setSpace(" ").void setSpace(java.lang.String space)