
wicket.extensions.markup.html.repeater.data.table.AbstractToolbar Maven / Gradle / Ivy
/*
* $Id: AbstractToolbar.java 3399 2005-12-09 08:43:11 +0100 (Fri, 09 Dec 2005) ivaynberg $
* $Revision: 3399 $
* $Date: 2005-12-09 08:43:11 +0100 (Fri, 09 Dec 2005) $
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package wicket.extensions.markup.html.repeater.data.table;
import wicket.markup.html.panel.Panel;
import wicket.model.IModel;
/**
* A base class for data table toolbars
*
* @see DefaultDataTable
*
* @author Igor Vaynberg (ivaynberg)
*
*/
public abstract class AbstractToolbar extends Panel
{
private static final long serialVersionUID = 1L;
private DataTable table;
/**
* Constructor
*
* @param model
* model
* @param table
* data table this toolbar will be attached to
*/
public AbstractToolbar(IModel model, DataTable table)
{
super(DataTable.TOOLBAR_COMPONENT_ID, model);
this.table = table;
}
/**
* Constructor
*
* @param table
* data table this toolbar will be attached to
*/
public AbstractToolbar(DataTable table)
{
super(DataTable.TOOLBAR_COMPONENT_ID);
this.table = table;
}
/**
* @return DataTable this toolbar is attached to
*/
protected DataTable getTable()
{
return table;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy