|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.report.model.core.Structure
org.eclipse.birt.report.model.api.elements.structures.SortKey
public class SortKey
This class represents a sort entry for a table or list item, it defines the column and sort direction pair. Each sort key has the following properties:
| Field Summary | |
|---|---|
static java.lang.String |
DIRECTION_MEMBER
Name of the "direction" member. |
static java.lang.String |
KEY_MEMBER
Name of the "key" member. |
static java.lang.String |
SORT_STRUCT
Name of this structure. |
| Constructor Summary | |
|---|---|
SortKey()
Default constructor. |
|
SortKey(java.lang.String key,
java.lang.String direction)
Constructs the sort key with the key to sort and the direction. |
|
| Method Summary | |
|---|---|
java.lang.String |
getColumnName()
Deprecated. This property has been removed. See the method getKey(). |
java.lang.String |
getDirection()
Returns the sort direction. |
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
|
java.lang.String |
getKey()
Returns the expression that gives the sort key on which to sort. |
java.lang.String |
getStructName()
Returns the name of the structure definition. |
StructureHandle |
handle(SimpleValueHandle valueHandle,
int index)
|
void |
setColumnName(java.lang.String columnName)
Deprecated. This property has been removed. See the method setKey(String). |
void |
setDirection(java.lang.String direction)
Sets the sort direction. |
protected void |
setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
|
void |
setKey(java.lang.String key)
Sets the expression that gives the sort key on which to sort. |
java.util.List |
validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
|
| Methods inherited from class org.eclipse.birt.report.model.core.Structure |
|---|
copy, equals, getContext, getDefn, getElement, getHandle, getHandle, getListMemberRef, getLocalProperty, getLocalProperty, getObjectDefn, getProperty, getProperty, getReferencableProperty, isDesignTime, isReferencable, setContext, setProperty, setProperty, updateReference |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SORT_STRUCT
public static final java.lang.String KEY_MEMBER
public static final java.lang.String DIRECTION_MEMBER
| Constructor Detail |
|---|
public SortKey(java.lang.String key,
java.lang.String direction)
key - the key of the sort entrydirection - sort direction: Ascending or descending orderpublic SortKey()
| Method Detail |
|---|
public java.lang.String getStructName()
IStructure
protected java.lang.Object getIntrinsicProperty(java.lang.String propName)
getIntrinsicProperty in class org.eclipse.birt.report.model.core.Structure
protected void setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
setIntrinsicProperty in class org.eclipse.birt.report.model.core.Structurepublic java.lang.String getKey()
public void setKey(java.lang.String key)
key - the sort key to setpublic java.lang.String getDirection()
DesignChoiceConstants,
and they are:
public void setDirection(java.lang.String direction)
DesignChoiceConstants,
and they are:
direction - the direction to set
public StructureHandle handle(SimpleValueHandle valueHandle,
int index)
handle in class org.eclipse.birt.report.model.core.Structurepublic java.lang.String getColumnName()
getKey().
public void setColumnName(java.lang.String columnName)
setKey(String).
columnName - the column name to set
public java.util.List validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
validate in class org.eclipse.birt.report.model.core.Structure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||