|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.jeppers.grid.AbstractStyleModel
|
+--net.sf.jeppers.grid.DefaultStyleModel
Default implementation of StyleModel that uses a Map
between class types and editors / renderers.
| Field Summary |
| Fields inherited from class net.sf.jeppers.grid.AbstractStyleModel |
listenerList |
| Constructor Summary | |
DefaultStyleModel()
|
|
| Method Summary | |
CellStyle |
getCellStyle(int row,
int column)
Returns the style for the cell at row, column. |
CellStyle |
getDefaultCellStyle()
|
GridCellEditor |
getEditor(Class aClass,
int row,
int column,
JGrid grid)
Returns an appropriate editor for the cell specified by this row and column. |
GridCellRenderer |
getRenderer(Class aClass,
int row,
int column,
JGrid grid)
Returns an appropriate renderer for the cell specified by this row and column. |
void |
insertColumns(int column,
int columnCount)
Insert columnCount columns at column. |
void |
insertRows(int row,
int rowCount)
Insert rowCount rows at row. |
void |
removeColumns(int column,
int columnCount)
Remove columnCount columns at column. |
void |
removeRows(int row,
int rowCount)
Remove rowCount rows at row. |
void |
setCellStyle(CellStyle style,
int row,
int column)
|
void |
setEditor(Class clazz,
GridCellEditor editor)
|
void |
setRenderer(Class clazz,
GridCellRenderer renderer)
|
void |
updateUI()
Notification from the UIManager that the L&F has changed. |
| Methods inherited from class net.sf.jeppers.grid.AbstractStyleModel |
addStyleModelListener, fireCellStyleChanged, fireCellStylesChanged, fireEditorAdded, fireEditorChanged, fireEditorRemoved, fireEditorsChanged, fireModelChanged, fireRendererAdded, fireRendererChanged, fireRendererRemoved, fireRenderersChanged, fireStyleChanged, getListeners, removeStyleModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultStyleModel()
| Method Detail |
public GridCellEditor getEditor(Class aClass,
int row,
int column,
JGrid grid)
StyleModel
getEditor in interface StyleModel
public void setEditor(Class clazz,
GridCellEditor editor)
public GridCellRenderer getRenderer(Class aClass,
int row,
int column,
JGrid grid)
StyleModel
getRenderer in interface StyleModel
public void setRenderer(Class clazz,
GridCellRenderer renderer)
public void updateUI()
StyleModelUIManager that the L&F has changed.
updateUI in interface StyleModelpublic CellStyle getDefaultCellStyle()
public CellStyle getCellStyle(int row,
int column)
StyleModel
getCellStyle in interface StyleModel
public void setCellStyle(CellStyle style,
int row,
int column)
public void insertRows(int row,
int rowCount)
ResizableGridrowCount rows at row.
insertRows in interface ResizableGridrow - the row to insert atrowCount - the number of rows to insert
public void removeRows(int row,
int rowCount)
ResizableGridrowCount rows at row.
removeRows in interface ResizableGridrow - the row to remove fromrowCount - the number of rows to remove
public void insertColumns(int column,
int columnCount)
ResizableGridcolumnCount columns at column.
insertColumns in interface ResizableGridcolumn - the column to insert atcolumnCount - the number of columns to insert
public void removeColumns(int column,
int columnCount)
ResizableGridcolumnCount columns at column.
removeColumns in interface ResizableGridcolumn - the column to remove fromcolumnCount - the number of columns to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||