public interface ProblemFinderWarning extends java.lang.Comparable<ProblemFinderWarning>
ProblemFinder
.ProblemFinderWarning
has a source object, which causes the Warning. Possible sources can be
Element
/Section
/Field
or a specific ProblemFinderWarning.Sources
object.getTriggeringRule()
returns the ProblemFinderRule
that causes this
Warning.canAutoFix()
returns true
if it is possible that this Warning can
be 'auto-fixed'. That means you can get via getAutoFixActions()
a list of one or more
Actions, that manipulates the Engine
to correct the problem by performing the Action.Engine
that has a Text
-Element with a height less than 30 Twips causes a
ProblemFinderWarning
with Type ProblemFinderWarning.Type.WARNING
.getTriggeringRule()
returns
the RuleElementToSmall
and getSource()
returns the Text
-Element itself.getAutoFixActions()
you get a list with two Action
s. The first Action
resizes the Element to a minimum of 300 Twips and the second Action sets the Element-Property
Element.setCanGrow(boolean)
to true
.
Attention: The ProblemFinderWarning
AutoFix-Actions manipulate the Engine
, use it carefully or back up your reports
if you plan on replacing your report files.
ProblemFinder
Modifier and Type | Interface and Description |
---|---|
static class |
ProblemFinderWarning.Sources
The source object exceptions that can be returned by
getSource() . |
static class |
ProblemFinderWarning.Type
The
ProblemFinderWarning types |
Modifier and Type | Method and Description |
---|---|
boolean |
canAutoFix()
Whether this warning can be auto-fixed
|
int |
compareTo(ProblemFinderWarning warning)
Compares this ProblemFinderWarning with the specified ProblemFinderWarning for order.
|
java.util.List<javax.swing.AbstractAction> |
getAutoFixActions()
Returns the Actions which autofix this problem.
|
java.lang.String |
getMessage()
Returns the message which describes this problem.
|
java.lang.Object |
getSource()
|
java.lang.String |
getSourceMessage()
Returns the message which describes the problem source.
|
ProblemFinderRule |
getTriggeringRule()
Returns the
ProblemFinderRule that causes the Warning. |
ProblemFinderWarning.Type |
getWarningType()
Returns the type of this problem, that can be error, warning or info.
|
boolean canAutoFix()
true
if can be auto-fixed, otherwise false
.java.util.List<javax.swing.AbstractAction> getAutoFixActions()
Action.getValue(Action.NAME)
ProblemFinderWarning.Type getWarningType()
ProblemFinderWarning.Type
java.lang.String getMessage()
ProblemFinderRule getTriggeringRule()
ProblemFinderRule
that causes the Warning.ProblemFinderRule
that initiate the Check that causes the Warning.java.lang.Object getSource()
java.lang.String getSourceMessage()
int compareTo(ProblemFinderWarning warning)
getWarningType()
are not equal, it compares the enum ProblemFinderWarning.Type
.getTriggeringRule()
are not equal, it compares the class name of the ProblemFinderRule
getMessage()
lexicographically.warning
- the ProblemFinderWarning to be compared.Copyright © 1999-2020 by i-net software GmbH