Search in sources :

Example 21 with DataTable

use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.

the class OrgUnitAddDeletePopup method setState.

public void setState(ActionState state, AjaxRequestTarget target) {
    this.state = state;
    AjaxButton actionButton = (AjaxButton) getContent().get(ID_BUTTON_ACTION);
    actionButton.setModel(createActionButtonStringResource());
    actionButton.add(new AttributeAppender("class", getActionButtonClass()));
    target.add(actionButton);
    TablePanel panel = getTable();
    DataTable table = panel.getDataTable();
    ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
    provider.setQuery(getDataProviderQuery());
    target.add(panel);
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) AjaxButton(com.evolveum.midpoint.web.component.AjaxButton) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider) AttributeAppender(org.apache.wicket.behavior.AttributeAppender) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Aggregations

DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)21 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)10 Table (com.evolveum.midpoint.web.component.data.Table)8 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)8 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)3 LoadableModel (com.evolveum.midpoint.gui.api.model.LoadableModel)2 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)2 ConfigurationStorage (com.evolveum.midpoint.web.session.ConfigurationStorage)2 TasksStorage (com.evolveum.midpoint.web.session.TasksStorage)2 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)2 AuthUtil (com.evolveum.midpoint.authentication.api.util.AuthUtil)1 GuiStyleConstants (com.evolveum.midpoint.gui.api.GuiStyleConstants)1 BasePanel (com.evolveum.midpoint.gui.api.component.BasePanel)1 LabelWithHelpPanel (com.evolveum.midpoint.gui.api.component.LabelWithHelpPanel)1 PasswordPanel (com.evolveum.midpoint.gui.api.component.password.PasswordPanel)1 GuiDisplayTypeUtil (com.evolveum.midpoint.gui.api.util.GuiDisplayTypeUtil)1 WebComponentUtil (com.evolveum.midpoint.gui.api.util.WebComponentUtil)1 WebModelServiceUtils (com.evolveum.midpoint.gui.api.util.WebModelServiceUtils)1 ProgressInformation (com.evolveum.midpoint.model.api.ProgressInformation)1 StringLimitationResult (com.evolveum.midpoint.model.api.validator.StringLimitationResult)1