|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StyleModel
StyleModel is used for rendering the cells of a JTable. This class manages a collection of Style objects, which are applied to the cell component, just before showing it on the table.
Method Summary | |
---|---|
void |
addStyle(Style newStyle)
Adds a style to the end of the list of styles. |
void |
applyStyles(Component c,
JTable table,
int row,
int column)
Applies the styles currently in the model to the component c. |
void |
clearStyles()
Removes all styles. |
Style |
getStyle(int index)
Retrieves the style at index. |
Style[] |
getStyles()
Returns the styles of the style model as an array. |
void |
insertStyle(Style newStyle,
int index)
Inserts a new style at index. |
void |
removeStyle(Style style)
Removes a style from the style model. |
Method Detail |
---|
void addStyle(Style newStyle)
newStyle
- the new style to add.void applyStyles(Component c, JTable table, int row, int column)
c
- the component that we wish to apply a style to.table
- the associated tablerow
- the current row of the tablecolumn
- the current column of the tablevoid clearStyles()
Style getStyle(int index)
index
- the location of the style.
Style[] getStyles()
void insertStyle(Style newStyle, int index)
newStyle
- the new style to addindex
- the location of the stylevoid removeStyle(Style style)
style
- the style to remove.
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |