use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class TablePanel method setStyle.
public void setStyle(String value) {
Validate.notEmpty(value, "Value must not be null or empty.");
DataTable table = getDataTable();
table.add(new AttributeModifier("style", new Model(value)));
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class CheckBoxColumn method populateItem.
@Override
public void populateItem(final Item<ICellPopulator<T>> cellItem, String componentId, final IModel<T> rowModel) {
IModel<Boolean> selected = getCheckBoxValueModel(rowModel);
CheckBoxPanel check = new CheckBoxPanel(componentId, selected, enabled) {
@Override
public void onUpdate(AjaxRequestTarget target) {
DataTable table = findParent(DataTable.class);
onUpdateRow(target, table, rowModel);
//updating table row
// target.add(cellItem.findParent(SelectableDataTable.SelectableRowItem.class));
}
};
check.setOutputMarkupId(true);
cellItem.add(check);
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class CheckBoxHeaderColumn method getHeader.
@Override
public Component getHeader(final String componentId) {
final IModel<Boolean> model = new Model<Boolean>(false);
CheckBoxPanel panel = new CheckBoxPanel(componentId, model, getEnabled()) {
@Override
public void onUpdate(AjaxRequestTarget target) {
DataTable table = findParent(DataTable.class);
boolean selected = model.getObject() != null ? model.getObject() : false;
onUpdateHeader(target, selected, table);
}
};
panel.setOutputMarkupId(true);
panel.add(new VisibleEnableBehaviour() {
@Override
public boolean isVisible() {
return CheckBoxHeaderColumn.this.isCheckboxVisible();
}
});
return panel;
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageCertDecisions method searchFilterPerformed.
private void searchFilterPerformed(AjaxRequestTarget target) {
ObjectQuery query = createCaseQuery();
Table panel = getDecisionsTable();
DataTable table = panel.getDataTable();
CertWorkItemDtoProvider provider = (CertWorkItemDtoProvider) table.getDataProvider();
provider.setQuery(query);
provider.setNotDecidedOnly(Boolean.TRUE.equals(showNotDecidedOnlyModel.getObject()));
table.setCurrentPage(0);
target.add(getFeedbackPanel());
target.add((Component) getDecisionsTable());
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class ObjectSelectionPanel method updateTablePerformed.
public void updateTablePerformed(AjaxRequestTarget target, ObjectQuery query) {
TablePanel table = getTablePanel();
DataTable dataTable = table.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) dataTable.getDataProvider();
provider.setQuery(query);
target.add(this, WebComponentUtil.getPageBase(this).getFeedbackPanel(), table);
}
Aggregations