Search in sources :

Example 1 with DeleteServerAction

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();
}
Also used : DeleteServerAction(org.geosdi.geoplatform.gui.client.action.server.DeleteServerAction) AddServerAction(org.geosdi.geoplatform.gui.client.action.server.AddServerAction) GPSecureButton(org.geosdi.geoplatform.gui.action.button.GPSecureButton)

Aggregations

GPSecureButton (org.geosdi.geoplatform.gui.action.button.GPSecureButton)1 AddServerAction (org.geosdi.geoplatform.gui.client.action.server.AddServerAction)1 DeleteServerAction (org.geosdi.geoplatform.gui.client.action.server.DeleteServerAction)1