Search in sources :

Example 1 with ImageCellRenderer

use of de.jaret.util.ui.table.renderer.ImageCellRenderer in project translationstudio8 by heartsome.

the class JaretTable method registerDefaultRenderers.

/**
     * Register all default renderers.
     * 
     */
private void registerDefaultRenderers() {
    ICellRenderer cellRenderer = new TextCellRenderer();
    registerCellRenderer(void.class, cellRenderer);
    registerCellRenderer(String.class, cellRenderer);
    registerCellRenderer(Image.class, new ImageCellRenderer());
    cellRenderer = new BooleanCellRenderer();
    registerCellRenderer(Boolean.class, cellRenderer);
    registerCellRenderer(Boolean.TYPE, cellRenderer);
    cellRenderer = new DateCellRenderer();
    registerCellRenderer(Date.class, cellRenderer);
    registerCellRenderer(JaretDate.class, cellRenderer);
    cellRenderer = new DoubleCellRenderer();
    registerCellRenderer(Double.class, cellRenderer);
    registerCellRenderer(Double.TYPE, cellRenderer);
}
Also used : TextCellRenderer(de.jaret.util.ui.table.renderer.TextCellRenderer) DateCellRenderer(de.jaret.util.ui.table.renderer.DateCellRenderer) DoubleCellRenderer(de.jaret.util.ui.table.renderer.DoubleCellRenderer) ICellRenderer(de.jaret.util.ui.table.renderer.ICellRenderer) BooleanCellRenderer(de.jaret.util.ui.table.renderer.BooleanCellRenderer) ImageCellRenderer(de.jaret.util.ui.table.renderer.ImageCellRenderer)

Aggregations

BooleanCellRenderer (de.jaret.util.ui.table.renderer.BooleanCellRenderer)1 DateCellRenderer (de.jaret.util.ui.table.renderer.DateCellRenderer)1 DoubleCellRenderer (de.jaret.util.ui.table.renderer.DoubleCellRenderer)1 ICellRenderer (de.jaret.util.ui.table.renderer.ICellRenderer)1 ImageCellRenderer (de.jaret.util.ui.table.renderer.ImageCellRenderer)1 TextCellRenderer (de.jaret.util.ui.table.renderer.TextCellRenderer)1