public class DataComponentHandle extends ComponentHandle
GridView,
or a data marker in a Graph.
This normally represents a selected cell or marker, or the cell or marker
that you want to select programmatically.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_PATH
Key Path for the data value in a data control hierarchical
Collection object.
|
protected boolean |
m_seriesAreRows |
static java.lang.String |
ROW_KEY
Row Key of the row that contains the data value in a data control
RowSet Collection object.
|
static java.lang.String |
UNFORMATTED_VALUE
Unformatted value(eg 50, 200)
|
m_dataAccess| Constructor and Description |
|---|
DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
DataComponentInfo dataInfo)
Class constructor that uses a
DataComponentInfo to
specify the row and column. |
DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
DataComponentInfo info,
boolean seriesAreRows)
Constructor that uses a
DataComponentInfo to identify the
row and column, for a graph component. |
DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
DataComponentInfo info,
int group,
int series)
Constructor that uses
int values to specify the row, column,
group, and series for a graph. |
DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int r,
int c)
Constructor that uses
int values to specify the row and
column. |
DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int r,
int c,
boolean seriesAreRows)
Constructor that uses
int values to specify the row and
column, for a graph. |
DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int row,
int column,
int group,
int series)
Constructor that uses
int values to specify the row, column,
group, and series for a graph. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getColumn()
Retrieves the column number of the component or cell.
|
ComponentInfo |
getComponentInfo()
Retrieves the
DataComponentInfo for the component
or cell that this
DataComponentHandle represents. |
int |
getGroup()
Retrieves the group number of the component.
|
Attributes[] |
getGroupAttributes()
The attributes that make up the group ex: Employee -SMITH
|
int |
getRow()
Retrieves the row number of the component or cell.
|
int |
getSeries()
Retrieves the series number of the component or cell.
|
Attributes[] |
getSeriesAttributes()
The attributes that make up the series ex: Country - USA, Product - Coke
|
java.lang.Object |
getValue(java.lang.String attrName)
Retrieves the data attribute values associated with attrName argument.
|
boolean |
isSeriesComponent()
Indicates whether this data component represents a series.
|
void |
setSeriesAreRows(boolean seriesAreRows) |
void |
setSeriesComponent(boolean series)
Specifies whether this data component represents a series.
|
java.lang.String |
toString()
Converts this object to a
String. |
getComponent, getID, getName, setDataAccessprotected boolean m_seriesAreRows
public static final java.lang.String UNFORMATTED_VALUE
public static final java.lang.String ROW_KEY
public static final java.lang.String KEY_PATH
public DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int r,
int c)
int values to specify the row and
column.id - In a graph, a constant that identifies the represented
graph component, such as Graph.DATAMARKER.
For a GridView, the constant
GridView.DATA_CELL.name - The name of the component that this
DataComponentHandle represents.comp - The actual reference to the component.r - The row of the component or cell.c - The column of the component or cell.public DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int r,
int c,
boolean seriesAreRows)
int values to specify the row and
column, for a graph.id - A constant, such as Graph.DATAMARKER, that
identifies the component that this
DataComponentHandle represents.
The constants are defined in the Graph class.name - The name of the component that this
DataComponentHandle represents.comp - The actual reference to the component.r - The row of the component.c - The column of the component.seriesAreRows - true if the graph displays data rows
as series,
false if data rows appear as groups in the graph.public DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
DataComponentInfo dataInfo)
DataComponentInfo to
specify the row and column.id - In a graph, a constant that identifies the represented
graph component, such as Graph.DATAMARKER.
For a GridView, the constant
DATA_CELL.name - The name of the component that this
DataComponentHandle represents.comp - The actual reference to the component.info - The DataComponentInfo that identifies the
row and column of the component.public DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
DataComponentInfo info,
boolean seriesAreRows)
DataComponentInfo to identify the
row and column, for a graph component.id - A constant, such as Graph.DATAMARKER, that
identifies the component that this
DataComponentHandle represents.
The constants are defined in the Graph class.name - The name of the component that this
DataComponentHandle represents.comp - The actual reference to the component.info - Information about the row and column of the component.seriesAreRows - true if the graph displays data rows
as series,
false if data rows appear as groups in the graph.public DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int row,
int column,
int group,
int series)
int values to specify the row, column,
group, and series for a graph.id - A constant, such as Graph.DATAMARKER, that
identifies the component that this
DataComponentHandle represents.
The constants are defined in the Graph class.name - The name of the component that this
DataComponentHandle represents.comp - The actual reference to the component.row - The row of the component.column - The column of the component.group - The group of the component.series - The series of the component.public DataComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
DataComponentInfo info,
int group,
int series)
int values to specify the row, column,
group, and series for a graph.id - A constant, such as Graph.DATAMARKER, that
identifies the component that this
DataComponentHandle represents.
The constants are defined in the Graph class.name - The name of the component that this
DataComponentHandle represents.comp - The actual reference to the component.info - The DataComponentInfo that identifies the
row and column of the component.group - The group of the component.series - The series of the component.public java.lang.Object getValue(java.lang.String attrName)
attrName - A constant for the attribute name UNFORMATTED_VALUE
or ROW_KEYUNFORMATTED_VALUE,
ROW_KEYpublic Attributes[] getSeriesAttributes()
public Attributes[] getGroupAttributes()
public int getRow()
DataComponentInfo.
Row numbers begin at zero.public int getColumn()
DataComponentInfo.
Column numbers begin at zero.public int getSeries()
Graph.isDataRowShownAsASeries returns true,
then this method returns the same value that the getRow
method returns.
When Graph.isDataRowShownAsASeries returns false,
then this method returns the same value that the getColumn
method returns.Graph.isDataRowShownAsASeries()public int getGroup()
DataComponentHandle
must have been constructed by a constructor that has group
and series arguments.DataComponentHandle(int, String, Object, DataComponentInfo, int, int),
DataComponentHandle(int, String, Object, int, int, int, int),
Graph.isDataRowShownAsASeries()public java.lang.String toString()
String.
The String contains the name of this class, the name of the
component, the row number, and the column number.
Row and column numbers begin at zero.toString in class java.lang.ObjectString representation of this object.public ComponentInfo getComponentInfo()
DataComponentInfo for the component
or cell that this
DataComponentHandle represents.getComponentInfo in class ComponentHandleDataComponentInfo can be null, but this not
normal.DataComponentHandlepublic boolean isSeriesComponent()
true if this data component represents series data,
false if it does not.public void setSeriesComponent(boolean series)
series - true if this data component represents series data,
false if it does not.public void setSeriesAreRows(boolean seriesAreRows)
public boolean equals(java.lang.Object o)
equals in class ComponentHandleDataComponentHandle.