|
||||||||||
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()
StyleModel
UIManager
that the L&F has changed.
updateUI
in interface StyleModel
public 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)
ResizableGrid
rowCount
rows at row
.
insertRows
in interface ResizableGrid
row
- the row to insert atrowCount
- the number of rows to insertpublic void removeRows(int row, int rowCount)
ResizableGrid
rowCount
rows at row
.
removeRows
in interface ResizableGrid
row
- the row to remove fromrowCount
- the number of rows to removepublic void insertColumns(int column, int columnCount)
ResizableGrid
columnCount
columns at column
.
insertColumns
in interface ResizableGrid
column
- the column to insert atcolumnCount
- the number of columns to insertpublic void removeColumns(int column, int columnCount)
ResizableGrid
columnCount
columns at column
.
removeColumns
in interface ResizableGrid
column
- 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 |