use of org.geosdi.geoplatform.gui.client.action.server.DeleteServerAction in project geo-platform by geosdi.
the class CSWServerPaginationContainer method createButtons.
private void createButtons() {
super.panel.setButtonAlign(Style.HorizontalAlignment.CENTER);
GPSecureButton newServerButton = new GPSecureButton(CatalogFinderConstants.INSTANCE.CSWServerPaginationContainer_newServerButtonText(), new AddServerAction(GPTrustedLevel.NONE, this.serverForm));
newServerButton.setIcon(AbstractImagePrototype.create(BasicWidgetResources.ICONS.done()));
newServerButton.setToolTip(CatalogFinderConstants.INSTANCE.CSWServerPaginationContainer_newServerButtonTooltipText());
super.panel.addButton(newServerButton);
deleteServerButton = new GPSecureButton(CatalogFinderConstants.INSTANCE.CSWServerPaginationContainer_deleteServerButtonText(), new DeleteServerAction(GPTrustedLevel.HIGH, this));
deleteServerButton.setIcon(AbstractImagePrototype.create(BasicWidgetResources.ICONS.delete()));
deleteServerButton.setToolTip(CatalogFinderConstants.INSTANCE.CSWServerPaginationContainer_deleteServerButtonTooltipText());
super.panel.addButton(deleteServerButton);
deleteServerButton.disable();
}
Aggregations