Klasse SortField
java.lang.Object
com.inet.report.Field
com.inet.report.SortField
- Alle implementierten Schnittstellen:
NodeParser, com.inet.report.ReferencedObject, com.inet.report.ReferenceHolder, Validatable, Serializable
With this field you can only set the sorting of the report data. This field can not be displayed
with a
This class is part of the
FieldElement.This class is part of the
RDC.- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen Field
Field.FieldAttributeTag -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intSort records ascending.static final intSort records ascending.static final intSort records descending.static final intSort records descending.static final intDo not sort records, let it unsorted.Von Klasse geerbte Felder 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 -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal voidaddReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYbooleanIndicates whether some otherSortFieldis "equal to" this one.final intFOR INTERNAL USE ONLYfinal intFOR INTERNAL USE ONLYfinal com.inet.report.ReferencedObject[]FOR INTERNAL USE ONLYintgetSort()Returns the value of the property 'sort direction'.Returns the formula of sort direction for this sort field.intReturns the value type (or return type) of the field.booleanisUsed()FOR INTERNAL USE ONLYparseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLfinal voidremoveReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYfinal voidFOR INTERNAL USE ONLYprotected voidsaveFieldXML2(PrintWriter pw, int depth) XML2: FOR INTERNAL USE ONLYvoidSets the name of the sort field.final voidFOR INTERNAL USE ONLYvoidsetSort(int sort) Sets the value of the property 'sort direction'.voidsetSortDirectionFormula(FormulaField formula) Sets the formula of sort direction.voidUpdates the field's ref name.validate()Check if the object is valid and returns the state and details of possible errors.Von Klasse geerbte Methoden Field
addReferenceHolder, checkNameExists, duplicate, extractReference, getField, getGroup, getName, getPlaceholderName, getRealReferenceCount, getReferenceHolderCount, getReferenceHolders, getRefName, getType, indexOf, isDOMParser, paramString, parseDOM, parseEndElement, parseText, removeReferenceHolder, rename, setField, setGroup, setValueType, trimAwayBrackets
-
Felddetails
-
ASCENDING_ORDER
public static final int ASCENDING_ORDERSort records ascending.- Siehe auch:
-
DESCENDING_ORDER
public static final int DESCENDING_ORDERSort records descending.- Siehe auch:
-
ORIGINAL_ORDER
public static final int ORIGINAL_ORDERDo not sort records, let it unsorted.- Siehe auch:
-
ASCENDING_ALPHA_NUMERIC_ORDER
public static final int ASCENDING_ALPHA_NUMERIC_ORDERSort records ascending.- Siehe auch:
-
DESCENDING_ALPHA_NUMERIC_ORDER
public static final int DESCENDING_ALPHA_NUMERIC_ORDERSort records descending.- Siehe auch:
-
-
Methodendetails
-
setName
Sets the name of the sort field. The name must be the name of the database field, which should be the sort criterion. The name of the field should start with a special character for instanciation:
- no charcter, if the field is a database field
- a '%', if the field is a SqlExprField
- a '#', if the field is a SummaryField
- a '@', if the field is a FormulaField
- a '?', if the field is a PromptField
- Angegeben von:
setNamein KlasseField- Parameter:
name- The name of the sort field for example, Users.UserID- Löst aus:
ReportException- if no database field with this name existsIllegalArgumentException- if a sort field with name equals name already exists- Seit:
- 6.0
-
setSort
public void setSort(int sort) Sets the value of the property 'sort direction'. The sort direction determines the order of the fetched data in the presented list. It can be ascending, descending or original order.- Parameter:
sort- The new value of the property 'sort direction'.- Löst aus:
IllegalArgumentException- on illegal sort direction values- Seit:
- 6.0
- Siehe auch:
-
getSort
public int getSort()Returns the value of the property 'sort direction'.- Gibt zurück:
- The current value of the property 'sort direction'.
- Seit:
- 6.0
- Siehe auch:
-
setSortDirectionFormula
Sets the formula of sort direction. This formula must be of type FormulaField.FORMULA_PROPERTY and must return a positive int value. Allowed range of values 0 for ASCENDING_ORDER, 1 for DESCENDING_ORDER, 2 for ORIGINAL_ORDER (data stays unsorted). Other formula will be ignored.- Parameter:
formula- for sort direction ornullto remove the sort direction formula.- Löst aus:
ReportException- Wrong formula, formula type or return value of formula- Seit:
- 6.0
-
getSortDirectionFormula
Returns the formula of sort direction for this sort field.- Gibt zurück:
- sort direction formula
- Seit:
- 6.0
- Siehe auch:
-
saveFieldXML2
XML2: FOR INTERNAL USE ONLY- Angegeben von:
saveFieldXML2in KlasseField- Parameter:
pw- the print writerdepth- the current depth
-
addReferencedObject
public final void addReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Angegeben von:
addReferencedObjectin Schnittstellecom.inet.report.ReferenceHolder- Parameter:
reference- a new referenced object- Seit:
- 6.0
-
getReferencedObjects
public final com.inet.report.ReferencedObject[] getReferencedObjects()FOR INTERNAL USE ONLY- Angegeben von:
getReferencedObjectsin Schnittstellecom.inet.report.ReferenceHolder- Gibt zurück:
- the referenced objects
-
getRealReferencedObjectCount
public final int getRealReferencedObjectCount()FOR INTERNAL USE ONLY- Angegeben von:
getRealReferencedObjectCountin Schnittstellecom.inet.report.ReferenceHolder- Gibt zurück:
- the count of real referenced objects
- Seit:
- 6.0
-
getReferencedObjectCount
public final int getReferencedObjectCount()FOR INTERNAL USE ONLY- Angegeben von:
getReferencedObjectCountin Schnittstellecom.inet.report.ReferenceHolder- Gibt zurück:
- the count of referenced objects
-
removeReferencedObject
public final void removeReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Angegeben von:
removeReferencedObjectin Schnittstellecom.inet.report.ReferenceHolder- Parameter:
reference- the object- Seit:
- 6.0
-
setReferences
public final void setReferences()FOR INTERNAL USE ONLY- Angegeben von:
setReferencesin Schnittstellecom.inet.report.ReferenceHolder
-
resetReferences
public final void resetReferences()FOR INTERNAL USE ONLY- Angegeben von:
resetReferencesin Schnittstellecom.inet.report.ReferenceHolder
-
isUsed
-
equals
Indicates whether some otherSortFieldis "equal to" this one. -
getValueType
public int getValueType()Returns the value type (or return type) of the field.- Setzt außer Kraft:
getValueTypein KlasseField- Gibt zurück:
- The value of the property 'value type'. Will be
Field.UNKNOWNif the current value of the 'field' property is not set. Usevalidate()to check this. - Seit:
- 6.1
- Siehe auch:
-
updateName
public void updateName()Updates the field's ref name. Note that this method simply updates the name of this SortField by calling {FieldField.getRefName().- Seit:
- 7.0
- Siehe auch:
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLParses 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.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Setzt außer Kraft:
parseElementin KlasseField- Parameter:
group- 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.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
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.
-
validate
Check if the object is valid and returns the state and details of possible errors.- Angegeben von:
validatein SchnittstelleValidatable- Gibt zurück:
- the current state, never null.
-