|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.table.styles.DefaultStyleModel
public class DefaultStyleModel
DefaultStyleModel is the default StyleModel implementation that is used by AdvancedJTable. This class stores styles in a list and applies them in the order in which they appear in that list.
| Field Summary | |
|---|---|
protected ArrayList |
styles
The list of styles. |
| Constructor Summary | |
|---|---|
DefaultStyleModel()
Constructs a DefaultStyleModel. |
|
| Method Summary | |
|---|---|
void |
addStyle(Style s)
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 i)
Retrieves the style at index. |
Style[] |
getStyles()
Returns the styles of the style model as an array. |
void |
insertStyle(Style s,
int index)
Inserts a new style at index. |
void |
removeStyle(Style s)
Removes a style from the style model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList styles
| Constructor Detail |
|---|
public DefaultStyleModel()
| Method Detail |
|---|
public void addStyle(Style s)
addStyle in interface StyleModels - the new style to add.
public void applyStyles(Component c,
JTable table,
int row,
int column)
applyStyles in interface StyleModelc - 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 tablepublic void clearStyles()
clearStyles in interface StyleModelpublic Style getStyle(int i)
getStyle in interface StyleModeli - the location of the style.
public Style[] getStyles()
getStyles in interface StyleModel
public void insertStyle(Style s,
int index)
insertStyle in interface StyleModels - the new style to addindex - the location of the stylepublic void removeStyle(Style s)
removeStyle in interface StyleModels - the style to remove.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||