Class InstanceListOrder
java.lang.Object
com.aquima.interactions.composer.model.Element
com.aquima.interactions.framework.container.instance.list.InstanceListOrder
- All Implemented Interfaces:
IElement
,Serializable
This class is used to specify the sort order.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
This member defines the ASCENDING sort order.static final int
This member defines the DESCENDING sort order. -
Constructor Summary
ConstructorsConstructorDescriptionInstanceListOrder
(String attribute, int order, DataType dataType, int columnNr) Constructs the class with the required parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method should clone the element and return the cloned element.boolean
This method returns the attribute that should be used for sorting.int
This method returns the column number containing the attribute.This method returns the type of the attribute.int
getOrder()
This method returns an integer indicating the direction of the sorting.int
hashCode()
toString()
Methods inherited from class com.aquima.interactions.composer.model.Element
accept, addPresentationStyle, evaluateTsl, getName, getParent, getPresentationStyles, getProperty, getPropertyKeys, getRuntimeKey, getVisibilityCondition, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible, setFocus, setParent, setPresentationStyle, setPresentationStyles, setPresentationStyles, setProperty, setReadonly, setReadonlyInheritFromParent, setRuntimeKey, setVisibilityCondition, setVisible
-
Field Details
-
ASCENDING
public static final int ASCENDINGThis member defines the ASCENDING sort order.- See Also:
-
DESCENDING
public static final int DESCENDINGThis member defines the DESCENDING sort order.- See Also:
-
-
Constructor Details
-
InstanceListOrder
Constructs the class with the required parameters.- Parameters:
attribute
- The attribute that should be used to sort on.order
- The direction of the sorting.dataType
- The type of the attribute.columnNr
- The column number.
-
-
Method Details
-
duplicate
Description copied from interface:IElement
This method should clone the element and return the cloned element. The duplicate method should usually make a deep copy of the element, with the exception of members that are not mutable (and thus can safely be shared between multiple copies). The properties of an element are considered to be non-mutable, and will thus by default be copied.- Returns:
- The cloned (duplicate) element.
-
getAttribute
This method returns the attribute that should be used for sorting.- Returns:
- the attribute that should be used for sorting.
-
getOrder
public int getOrder()This method returns an integer indicating the direction of the sorting.- Returns:
- an integer indicating the direction of the sorting.
-
getDataType
This method returns the type of the attribute.- Returns:
- the type of the attribute.
-
getColumnNr
public int getColumnNr()This method returns the column number containing the attribute.- Returns:
- the column number containing the attribute.
-
toString
-
equals
-
hashCode
public int hashCode()
-