|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.rules.discriminator.TotalsDiscriminator
public class TotalsDiscriminator
Discriminator for a rule that applies to databody cells that do not
represent calculated totals.
This discriminator allows you to exclude calculated totals when you
apply formatting.
For example, if you want to apply a background color to values above
8000, but you do not want that background color applied to calculated totals,
then you create a CompositeDiscriminator that combines
the NumberValueDiscriminator with this TotalsDiscriminator,
as shown in the following example:
NumberValueDiscriminator nvDisc = new NumberValueDiscriminator(8000, NumberValueDiscriminator.GT);
CompositeDiscriminator compDisc =
new CompositeDiscriminator(new TotalsDiscriminator(), nvDisc, CompositeDiscriminator.AND);
DataDirector.insertMemberCalc(int, int, int, int, java.lang.Object),
DataDirector.deleteMemberCalc(int, int, int),
DataMap.DATA_ISTOTAL,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
NAME_TOTALS_DISC
|
protected static java.lang.String |
S_NAME_TOTALS_DISC
|
| Constructor Summary | |
|---|---|
TotalsDiscriminator()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
applies(RuleContext context)
Specifies whether this Discriminator applies. |
java.lang.Object |
clone()
Clones this Discriminator. |
boolean |
equals(java.lang.Object o)
Indicates whether the specified object is equivalent to this TotalsDiscriminator. |
oracle.dss.util.xml.ObjectNode |
getStateAsObjectNode(java.util.List memberContext,
DiscriminatorState baseState)
|
oracle.dss.util.xml.ObjectNode |
getXML(boolean allProperties,
ComponentTypeConverter converter,
boolean emptyElement)
Retrieves XML that represents properties and their values in the form of and ObjectNode. |
void |
setStateAsObjectNode(java.util.List context,
oracle.dss.util.xml.ObjectNode node,
DiscriminatorState baseState)
|
boolean |
setXML(oracle.dss.util.xml.ObjectNode node,
ComponentTypeConverter converter,
java.lang.String version,
int reset)
Specifies XML that represents properties and values. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String S_NAME_TOTALS_DISC
public static final java.lang.String NAME_TOTALS_DISC
| Constructor Detail |
|---|
public TotalsDiscriminator()
| Method Detail |
|---|
public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties,
ComponentTypeConverter converter,
boolean emptyElement)
DiscriminatorXMLObjectNode.
getXML in interface DiscriminatorXMLallProperties - true to store all property values in XML,
false to store only values that are different
from default values.converter - A converter that converts component strings to integers
and integers to strings.emptyElement - true if an empty element needs to be returned
when none of the property values have changed from default.
false if null should should be returned when
none of the property values have changed from default.
This argument is considered only if
allProperties is false.
public boolean setXML(oracle.dss.util.xml.ObjectNode node,
ComponentTypeConverter converter,
java.lang.String version,
int reset)
DiscriminatorXMLDiscriminatorXML.
setXML in interface DiscriminatorXMLnode - ObjectNode that has the properties and their values.converter - A converter that converts component strings to integers
and vice versa.version - The XML version.reset - A constant that indicates how much to reset when XML
is applied. Valid values are listed in the See Also section.
true if XML is properly applied,
false if the XML cannot be applied.Rule.RESET_NONE,
Rule.RESET_XML_PROPERTIES,
Rule.RESET_EVERYTHINGpublic boolean applies(RuleContext context)
Discriminator applies.
Compares the information in the specified RuleContext
with its internal information.
If they match, this Discriminator applies.
applies in interface Discriminatorcontext - The context of the item to be painted.
true if the information from the context meets
the condition specified in this Discriminator,
false if not.public java.lang.Object clone()
Discriminator.
clone in interface Discriminatorclone in class java.lang.ObjectDiscriminator.public boolean equals(java.lang.Object o)
TotalsDiscriminator.
equals in class java.lang.Objecto - The object to compare with this TotalsDiscriminator.
true if the specified object is a
TotalsDiscriminator,
false if it is not a TotalsDiscriminator.
public void setStateAsObjectNode(java.util.List context,
oracle.dss.util.xml.ObjectNode node,
DiscriminatorState baseState)
setStateAsObjectNode in interface DiscriminatorState
public oracle.dss.util.xml.ObjectNode getStateAsObjectNode(java.util.List memberContext,
DiscriminatorState baseState)
getStateAsObjectNode in interface DiscriminatorState
|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||