use of com.evolveum.midpoint.web.component.data.TablePanel 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);
}
use of com.evolveum.midpoint.web.component.data.TablePanel in project midpoint by Evolveum.
the class ResourceListPanel method initLayout.
protected void initLayout() {
TablePanel resources = new TablePanel("table", new ObjectDataProvider((PageBase) getPage(), ResourceType.class), initColumns());
resources.setOutputMarkupId(true);
add(resources);
}
use of com.evolveum.midpoint.web.component.data.TablePanel in project midpoint by Evolveum.
the class FocusTasksTabPanel method initLayout.
private void initLayout(final PageBase page) {
Label label = new Label(ID_LABEL, new AbstractReadOnlyModel<String>() {
private static final long serialVersionUID = 1L;
@Override
public String getObject() {
if (taskDtoProvider.size() > 0) {
return getString("pageAdminFocus.task.descriptionHasTasks");
} else {
return getString("pageAdminFocus.task.descriptionNoTasks");
}
}
});
add(label);
List<IColumn<TaskDto, String>> taskColumns = initTaskColumns();
TablePanel taskTable = new TablePanel<TaskDto>(ID_TASK_TABLE, taskDtoProvider, taskColumns);
add(taskTable);
taskTable.add(new VisibleEnableBehaviour() {
@Override
public boolean isVisible() {
return taskDtoProvider.size() > 0;
}
});
}
use of com.evolveum.midpoint.web.component.data.TablePanel in project midpoint by Evolveum.
the class LoggingConfigPanel method addStandardLoggerPerformed.
private void addStandardLoggerPerformed(AjaxRequestTarget target) {
LoggingDto dto = getModel().getObject();
StandardLogger logger = new StandardLogger(new ClassLoggerConfigurationType());
logger.setEditing(true);
dto.getLoggers().add(logger);
TablePanel loggersTable = getLoggersTable();
adjustLoggersTablePage(loggersTable, dto);
target.add(getLoggersTable());
}
use of com.evolveum.midpoint.web.component.data.TablePanel in project midpoint by Evolveum.
the class PageAccounts method listSyncDetailsPerformed.
private void listSyncDetailsPerformed(AjaxRequestTarget target) {
refreshSyncTotalsModels();
if (resourceModel.getObject() == null) {
warn(getString("pageAccounts.message.resourceNotSelected"));
refreshEverything(target);
return;
}
loadResourceObjectClass();
TablePanel table = getAccountsTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataTable().getDataProvider();
provider.setQuery(createObjectQuery());
table.getDataTable().setCurrentPage(0);
refreshEverything(target);
}
Aggregations