|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface StaticColumnLabelInterface
Defines an interface for accessing a table's column labels. This will usually be implemented in tandem with the primary interface to tables, StaticTableInterface.
StaticTableInterface,
StaticRowLabelInterface,
ColumnLabelInterface| Method Summary | |
|---|---|
java.lang.Object |
getColumnLabel(int index)
Returns the label for a column. |
java.lang.Object[] |
getColumnLabels(int startIndex,
int count)
Returns the labels for a range of columns. |
boolean |
isColumnLabelsSupported()
Indicates whether getColumnLabel() and getColumnLabels() should be called. |
boolean |
isColumnsLabelSupported()
Indicates whether there is support for a column labels label, i.e. a label for the set of column labels taken as a whole. |
| Method Detail |
|---|
java.lang.Object getColumnLabel(int index)
throws com.sas.table.TableException
When isColumnsLabelSupported() is true, getColumnLabel(0) can
be used to retrieve the label for the entire set of column labels.
index - A one-based index that identifies the column.
See note about use of zero above.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).
java.lang.IndexOutOfBoundsException - Thrown if index is negative, zero, or greater than
the number of columns. See note about use of zero above.isColumnLabelsSupported(),
isColumnsLabelSupported()
java.lang.Object[] getColumnLabels(int startIndex,
int count)
throws com.sas.table.TableException
startIndex - A one-based index which identifies the start of the range.count - The number of labels to return (the extent of the range).
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).
java.lang.IndexOutOfBoundsException - Thrown if startIndex or count is negative, zero, or
greater than the number of columns; except when getColumnCount() has
returned -1 -- in that case, the implementation should return an array
whose length is less than count and the caller should be
prepared for this.StaticTableInterface.getColumnCount(),
isColumnLabelsSupported()
boolean isColumnLabelsSupported()
throws com.sas.table.TableException
true if labels are available,
and false otherwise.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).
boolean isColumnsLabelSupported()
throws com.sas.table.TableException
getColumnLabel(0) can be used to access it.
true if a column labels label is supported,
and false otherwise.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).getColumnLabel(int)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||