Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.hris.global; import com.vaadin.server.FontAwesome; import com.vaadin.ui.Grid; import com.vaadin.ui.Window; /** * * @author jetberay */ public abstract class AbstractDataGridProperties extends Grid { public static final String DEL_BUTTON_ICON = FontAwesome.TRASH_O.getHtml(); public static final String EDIT_BUTTON_ICON = FontAwesome.EDIT.getHtml(); public static final String VIEW_BUTTON_ICON = FontAwesome.EYE.getHtml(); public AbstractDataGridProperties() { setWidth("100%"); setHeight("100%"); setSelectionMode(SelectionMode.SINGLE); setImmediate(true); } protected abstract void gridRenrderersAndGenerator(); protected abstract Window removeGridItem(int id, Object itemId); }