|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.Field
com.inet.report.SortField
public class SortField
With this field you can only set the sorting of the report data. This field can not be displayed
with a FieldElement.
This class is part of the RDC.
Fields.addSortField(String, int),
Fields.getSortFieldsCount(),
Fields.getSortField(int),
Fields.removeSortField(int),
FieldElement,
FieldPart,
Serialized Form| Field Summary | |
|---|---|
static int |
ASCENDING_ORDER
Sort records ascending. |
static int |
DESCENDING_ORDER
Sort records descending. |
static int |
ORIGINAL_ORDER
Do not sort records, let it unsorted. |
| Fields inherited from class com.inet.report.Field |
|---|
BINARY, BOOLEAN, CURRENCY, CURSOR, DATABASE_FIELD, DATE, DATETIME, FORMULA_FIELD, GROUP_NAME_FIELD, NUMBER, PARAMETER_FIELD, SORT_FIELD, SPECIAL_FIELD, SQL_FIELD, STRING, SUMMARY_FIELD, TIME, UNKNOWN |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other SortField is "equal to" this one. |
int |
getSort()
Returns the value of the property 'sort direction'. |
FormulaField |
getSortDirectionFormula()
Returns the formula of sort direction for this sort field. |
int |
getValueType()
Returns the value type (or return type) of the field. |
NodeParser |
parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
FOR INTERNAL USE ONLY Internal method for reading report XML Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. |
protected void |
saveFieldXML2(java.io.PrintWriter pw,
int depth)
XML2: FOR INTERNAL USE ONLY |
void |
setName(java.lang.String name)
Sets the name of the sort field. |
void |
setSort(int newValue)
Sets the value of the property 'sort direction'. |
void |
setSortDirectionFormula(FormulaField formula)
Sets the formula of sort direction. |
void |
updateName()
Updates the field's ref name. |
Validity |
validate()
Check if the object is valid and returns the state and details of possible errors. |
| Methods inherited from class com.inet.report.Field |
|---|
checkNameExists, duplicate, extractReference, getField, getGroup, getName, getPlaceholderName, getRefName, getType, indexOf, paramString, setField, setGroup, setValueType, trimAwayBrackets |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseEndElement, parseText |
| Field Detail |
|---|
public static final int ASCENDING_ORDER
public static final int DESCENDING_ORDER
public static final int ORIGINAL_ORDER
| Method Detail |
|---|
public void setName(java.lang.String name)
throws ReportException
setName in class Fieldname - The name of the sort field for example, Users.UserID
ReportException - if no database field with this name exists
java.lang.IllegalArgumentException - if a sort field with name equals name already existspublic void setSort(int newValue)
newValue - The new value of the property 'sort direction'.setSortDirectionFormula(FormulaField formula),
ASCENDING_ORDER,
DESCENDING_ORDER,
ORIGINAL_ORDERpublic int getSort()
ASCENDING_ORDER,
DESCENDING_ORDER,
ORIGINAL_ORDER,
setSort(int)
public void setSortDirectionFormula(FormulaField formula)
throws ReportException
formula - for sort direction or null to remove the sort direction formula.
ReportException - Wrong formula, formula type or return value of formulapublic FormulaField getSortDirectionFormula()
setSortDirectionFormula(FormulaField formula)
protected void saveFieldXML2(java.io.PrintWriter pw,
int depth)
pw - the print writerdepth - the current depthpublic boolean equals(java.lang.Object obj)
SortField is "equal to" this one.
equals in class java.lang.Objectobj - the reference SortField with which to compare.
true if this SortField is the same as the SortField
argument; false otherwise.public int getValueType()
getValueType in class FieldField.UNKNOWN
if the current value of the 'field' property is not set.
Use validate() to check this.Field.NUMBER,
Field.CURRENCY,
Field.BOOLEAN,
Field.DATE,
Field.TIME,
Field.STRING,
Field.DATETIMEpublic void updateName()
Field.getRefName().
Field.getRefName()
public NodeParser parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
throws FatalParserException
Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
parseElement in interface NodeParsergroup - XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group
of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag - The XMLTag to be parsedatts - The set of attributes in the current XMLTagparserMap - The map of current Parser.
FatalParserException - if an exception occurs which causes the report to not be able to be read: causes the abortion of the
reading of the report.public Validity validate()
validate in interface Validatable
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||