|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Methods that layout panels call to work on the layout before applying the layout to an actual query. The implementation of this interface should provide a representation of the layout part of a query that will be manipulated by layout panels.
Layout| Field Summary | |
static java.lang.String |
MEASUREConstant for type parameter in isSpecialDimension to determine if the dimension at a given edge and layer is the measure dimension or a measure |
static java.lang.String |
TIME_DIMENSIONConstant for type parameter in isSpecialDimension to determine if the dimension at a given edge and layer is a time dimension. |
| Method Summary | |
DataSource |
getDataSource()Retrieves the DataSource that reflects layout changes in this LayoutAccess. |
int |
getMeasureEdge()Retrieves the edge that has the measure dimension in the layout query. |
int |
getMeasureLayer()Retrieves the layer that has the measure dimension. |
java.lang.String[] |
getMeasures(java.lang.String type)Retrieves the list of measures that the user has chosen for the query. |
boolean |
isSpecialDimension(int edge, int layer, java.lang.String type)Determine if the dimension at the given edge and layer is of the type specified by the given constant. |
void |
release()Cleans up the LayoutAccess implementation. |
void |
setCursorEvaluation(boolean on)Specifies whether the cursor is evaluated. |
void |
setLayout(java.lang.String[][] layout)Specifies the layout of the data, as a two-dimensional array. |
void |
setMeasures(java.lang.String[] measures)Specifies the list of measures that should be considered in the layout of a data source. |
| Field Detail |
public static final java.lang.String TIME_DIMENSION
isSpecialDimension to determine if the dimension at a given edge and layer is a time dimension.public static final java.lang.String MEASURE
isSpecialDimension to determine if the dimension at a given edge and layer is the measure dimension or a measure| Method Detail |
public void setCursorEvaluation(boolean on)
on - true to have the cursor evaluated, false to turn off evaluation of the cursor.public DataSource getDataSource()
DataSource that reflects layout changes in this LayoutAccess. Initially, the DataSource that this method returns should be a copy of the query that will ultimately be affected by the layout panel. Layout panels then call DataDirector methods to manipulate the query that this method returns. The changes made to the query do not affect the original query until the applyLayoutAccess method of the LayoutContext is called.DataSource that reflects layout changes in this LayoutAccess.LayoutContext.applyLayoutAccess(oracle.dss.util.LayoutAccess, boolean), DataDirectorpublic void setMeasures(java.lang.String[] measures)
measures - The measures to use in the data source. The elements of the array should be a subset of the measures that are returned by a call to the getMeasures method, with MetadataMap.METADATA_VALUE as the parameter.getMeasures(java.lang.String)public java.lang.String[] getMeasures(java.lang.String type)
type - The type of labels that you want in the array that is returned. The types are those defined in the MetadataMap for the query. Possible values are listed in the See Also section, but only those that are specified in the query's MetadataMap are valid.MetadataMap.METADATA_LONGLABEL, MetadataMap.METADATA_MEDIUMLABEL, MetadataMap.METADATA_SHORTLABEL, MetadataMap.METADATA_VALUEpublic int getMeasureEdge()
DataDirector.COLUMN_EDGE, DataDirector.ROW_EDGE, DataDirector.PAGE_EDGEpublic int getMeasureLayer()
getMeasureEdge returns.
public boolean isSpecialDimension(int edge,
int layer,
java.lang.String type)
throws EdgeOutOfRangeException,
LayerOutOfRangeException
edge - the edge whose dimension should be checkedlayer - the layer within the edge whose dimension should be checkedtype - the type constant (defined in LayoutAccess, such as LayoutAccess.TIME_DIMENSION) against which to check the dimension at layer,edgetrue if the dimension at edge, layer is of the special type given by type.EdgeOutOfRangeException - if the given edge is illegal for the current dataLayerOutOfRangeException - if the given layer is illegal for the current dataTIME_DIMENSION, MEASUREpublic void setLayout(java.lang.String[][] layout)
Each element in the array represents a value that the DataDirector.getLayerMetadata method returns when you pass LayerMetadataMap.LAYER_METADATA_NAME to it. The location of each return value in the array specifies the location that you want it to have in the query.
Edges that you want to be empty should have a zero-element subarray at the edge location.
layout - The array that specifies the desired layout.DataAccess.getLayerMetadata(int, int, java.lang.String), LayerMetadataMap.LAYER_METADATA_NAMEpublic void release()
LayoutAccess implementation. This method should release any resources that the LayoutAccess has created. Call this method when you no longer need the LayoutAccess.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||