|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is an interface that provides a way to implement a renderer and an editor collection model.
The methods getRenderer and getEditor allow you
to implement your own model to choose which renderer and/or editor
the JSmartGrid should use, given a Class, a row, a column,
and a GridContext.
This is also a source of StyleModelEvents.
A basic implementation of a style model is provided as DefaultStyleModel.
StyleModelEvent,
StyleModelListener,
GridContext,
GridCellRenderer,
GridCellEditor| Method Summary | |
void |
addStyleModelListener(StyleModelListener l)
Adds a listener to the list that is notified each time a change to the style model occurs. |
GridCellEditor |
getEditor(java.lang.Class aClass,
int row,
int column,
GridContext aGridContext)
Returns an appropriate editor for the cell specified by this row and column. |
GridCellRenderer |
getRenderer(java.lang.Class aClass,
int row,
int column,
GridContext aGridContext)
Returns an appropriate renderer for the cell specified by this row and column. |
void |
installUI(javax.swing.JComponent c)
Installation of particular graphics attributes |
void |
removeStyleModelListener(StyleModelListener l)
Removes a listener from the list that is notified each time a change to the style model occurs. |
void |
updateUI()
Notification from the UIManager that the L&F has changed.
|
| Method Detail |
public void installUI(javax.swing.JComponent c)
public void updateUI()
UIManager that the L&F has changed.
Replaces the current UI object with the latest version from the
UIManager for all renderer and editor components.JSmartGrid.updateUI(),
JComponent.updateUI()
public GridCellRenderer getRenderer(java.lang.Class aClass,
int row,
int column,
GridContext aGridContext)
row - the row of the cell or top row of a span to render,
where 0 is the first row.column - the column of the cell or left column of a span to render,
where 0 is the first column.GridCellRenderer;
if null the DefaultGridCellRenderer
will be used by the JSmartGrid for this cell.DefaultGridCellRenderer
public GridCellEditor getEditor(java.lang.Class aClass,
int row,
int column,
GridContext aGridContext)
row - the row of the cell or top row of a span to edit,
where 0 is the first row.column - the column of the cell or left column of a span to edit,
where 0 is the first column.GridCellRenderer;
if null the DefaultGridCellEditor
will be used by the JSmartGrid for this cell.DefaultGridCellEditorpublic void addStyleModelListener(StyleModelListener l)
l - the StyleModelListenerpublic void removeStyleModelListener(StyleModelListener l)
l - the StyleModelListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||