Class AddRecordsToolbar<D extends IDataSource<T>,​T extends Serializable,​S>

    • Constructor Detail

      • AddRecordsToolbar

        public AddRecordsToolbar​(DataGrid<D,​T,​S> grid,
                                 IModel<T> model,
                                 T defaultObject)
    • Method Detail

      • insert

        protected void insert()
        inserts data into the table
      • getNewData

        protected T getNewData()
        function to allow easy overrides for returning custom Data when adding new records to the table
        Returns:
        the object to use for populating new rows of the data-view