|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StaticTableTypeStylesInterface
Defines an interface for accessing a table's relational type styles.
The documentation for our parent interface, StaticTableTypeInterface, notes that:
A view can use this type information to provide type-based traffic-lighting. For example, a view can allow a user to specify that cells of type "pass" should be colored blue while cells of type "fail" should be in red.Well, this interface simply extends that one so that models may provide their own type-based traffic-lighting. (Views will typically defer to a model's preferences unless instructed otherwise.)
The traffic-lighting information is encapsulated in an object known as a style. A style is a set of property keys (Strings) with associated values (Objects) that are used as formatting defaults and rendering hints by a view.
Consumers of this interface (e.g. views) should listen for PropertyBagChangedEvents from the styles.
StaticTableStyleInterface
,
CellStyle
,
ColumnStyle
,
RowStyle
Method Summary | |
---|---|
com.sas.collection.StaticPropertyBagInterface |
getCellTypeStyle(java.lang.String type)
Returns the style associated with a given cell type. |
com.sas.collection.StaticPropertyBagInterface[] |
getCellTypeStyles()
Returns the complete set of styles associated with cell types. |
com.sas.collection.StaticPropertyBagInterface |
getColumnTypeStyle(java.lang.String type)
Returns the style associated with a given column type. |
com.sas.collection.StaticPropertyBagInterface[] |
getColumnTypeStyles()
Returns the complete set of styles associated with column types. |
com.sas.collection.StaticPropertyBagInterface |
getRowTypeStyle(java.lang.String type)
Returns the style associated with a given row type. |
com.sas.collection.StaticPropertyBagInterface[] |
getRowTypeStyles()
Returns the complete set of styles associated with row types. |
Methods inherited from interface com.sas.table.StaticTableTypeInterface |
---|
getCellType, getCellTypes, getColumnLabelType, getColumnType, getColumnTypes, getRowLabelType, getRowType, getRowTypes |
Method Detail |
---|
com.sas.collection.StaticPropertyBagInterface[] getCellTypeStyles() throws com.sas.table.TableException
null
, or a StaticPropertyBagInterface array ordered such that there
is a one-to-one correspondence between its elements and the elements
of the array returned by getCellTypes. Individual array elements
may be null
.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).StaticTableTypeInterface.getCellTypes()
,
getCellTypeStyle(java.lang.String)
com.sas.collection.StaticPropertyBagInterface getCellTypeStyle(java.lang.String type) throws com.sas.table.TableException
type
- One of the types returned by getCellTypes()
.
null
.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).StaticTableTypeInterface.getCellTypes()
com.sas.collection.StaticPropertyBagInterface[] getColumnTypeStyles() throws com.sas.table.TableException
null
, or a StaticPropertyBagInterface array ordered such that there
is a one-to-one correspondence between its elements and the elements
of the array returned by getColumnTypes. Individual array elements
may be null
.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).StaticTableTypeInterface.getColumnTypes()
,
getColumnTypeStyle(java.lang.String)
com.sas.collection.StaticPropertyBagInterface getColumnTypeStyle(java.lang.String type) throws com.sas.table.TableException
type
- One of the types returned by getColumnTypes()
.
null
.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).StaticTableTypeInterface.getColumnTypes()
com.sas.collection.StaticPropertyBagInterface[] getRowTypeStyles() throws com.sas.table.TableException
null
, or a StaticPropertyBagInterface array ordered such that there
is a one-to-one correspondence between its elements and the elements
of the array returned by getRowTypes. Individual array elements
may be null
.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).StaticTableTypeInterface.getRowTypes()
,
getRowTypeStyle(java.lang.String)
com.sas.collection.StaticPropertyBagInterface getRowTypeStyle(java.lang.String type) throws com.sas.table.TableException
type
- One of the types returned by getRowTypes()
.
null
.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).StaticTableTypeInterface.getRowTypes()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |