com.inmethod.grid.toolbar.AbstractToolbar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicketstuff-inmethod-grid Show documentation
Show all versions of wicketstuff-inmethod-grid Show documentation
Advanced grid components for Apache Wicket
The newest version!
package com.inmethod.grid.toolbar;
import java.util.Collection;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import com.inmethod.grid.IGridColumn;
import com.inmethod.grid.common.AbstractGrid;
/**
* Base for toolbar classes.
*
* @param
* grid model object type
* @param
* row/item model object type
*
* @author Matej Knopp
*/
public abstract class AbstractToolbar extends Panel
{
private static final long serialVersionUID = 1L;
private final AbstractGrid grid;
/**
* Constructor
*
* @param grid
* @param model
*/
public AbstractToolbar(AbstractGrid grid, IModel model)
{
super(AbstractGrid.INTERNAL_TOOLBAR_ITEM_ID, model);
setRenderBodyOnly(true);
this.grid = grid;
}
/**
* Returns the collection of currently displayed columns in grid.
*
* @return collection of active columns.
*/
public Collection> getActiveColumns()
{
return grid.getActiveColumns();
}
/**
* Returns the grid this toolbar belongs to.
*
* @return grid this toolbar belongs to
*/
public AbstractGrid getGrid()
{
return grid;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy