added icons

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/resource-sweeper@65413 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2012-12-28 12:43:49 +00:00
parent cd117f061b
commit 7156b95b80
11 changed files with 25 additions and 9 deletions

View File

@ -9,6 +9,7 @@
<entry-point
class='org.gcube.portlets.admin.resourcesweeper.client.Resource_sweeper' />
<stylesheet src='Resource_sweeper.css' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />

View File

@ -6,11 +6,12 @@ import com.google.gwt.core.client.EntryPoint;
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class Resource_sweeper implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
//new SweeperDialog("/gcube/devNext");
//### Just for testing leave commented
//snew SweeperDialog("/gcube/devNext");
}
}

View File

@ -84,13 +84,13 @@ public class SweeperDialog {
ResourceTypeDecorator.GHN.getIcon());
AtomicTreeNode ghn_expired = new AtomicTreeNode(SweeperActions.GET_GHN_MOVE_TO_UNREACHABLE.name(),
SweeperActions.GET_GHN_MOVE_TO_UNREACHABLE.getLabel());
SweeperActions.GET_GHN_MOVE_TO_UNREACHABLE.getLabel(), ResourceTypeDecorator.Sweeper_GHN_Expired.getIcon());
// setting tooltip
ghn_expired.set("tooltip", SweeperActions.GET_GHN_MOVE_TO_UNREACHABLE.getTooltip());
ghn_expired.set("operation", SweeperActions.GET_GHN_MOVE_TO_UNREACHABLE.getOperationDescription());
AtomicTreeNode ghn_dead = new AtomicTreeNode(SweeperActions.GET_GHN_DELETE.name(),
SweeperActions.GET_GHN_DELETE.getLabel());
SweeperActions.GET_GHN_DELETE.getLabel(), ResourceTypeDecorator.Sweeper_GHN_Dead.getIcon());
// setting tooltip
ghn_dead.set("tooltip", SweeperActions.GET_GHN_DELETE.getTooltip());
ghn_dead.set("operation", SweeperActions.GET_GHN_DELETE.getOperationDescription());
@ -105,7 +105,7 @@ public class SweeperDialog {
ResourceTypeDecorator.RunningInstance.getLabel(),
ResourceTypeDecorator.RunningInstance.getIcon());
AtomicTreeNode ri_orphan = new AtomicTreeNode(SweeperActions.GET_RI_DELETE.name(),
SweeperActions.GET_RI_DELETE.getLabel());
SweeperActions.GET_RI_DELETE.getLabel(), ResourceTypeDecorator.Sweeper_RI_Orphan.getIcon());
// setting tooltip
ri_orphan.set("tooltip", SweeperActions.GET_RI_DELETE.getTooltip());
ri_orphan.set("operation", SweeperActions.GET_RI_DELETE.getOperationDescription());
@ -243,7 +243,7 @@ public class SweeperDialog {
public final void initDialog(String scope) {
this.dialog = new Dialog();
this.dialog.setBodyBorder(false);
this.dialog.setIconStyle("sweeper-icon");
this.dialog.setIconStyle("sweeper-dialog-icon");
this.dialog.setHeading("Resource Sweeper " + "(" + scope + ")");
this.dialog.setWidth(900);
this.dialog.setHeight(450);

View File

@ -56,7 +56,11 @@ public enum ResourceTypeDecorator {
* Models for SWEEPER
***************************************/
Sweeper_GHN("gCube Hosting Node", "ghn-icon"),
Sweeper_RI("Running Instance", "runninginstance-icon");
Sweeper_RI("Running Instance", "runninginstance-icon"),
Sweeper_RI_Orphan("Orphan Running Instance", "orphan-runninginstance-icon"),
Sweeper_GHN_Expired("Expired gHN", "expired-ghn-icon"),
Sweeper_GHN_Dead("Dead gHN", "dead-ghn-icon");
private String label = null;

View File

@ -0,0 +1,12 @@
.sweeper-dialog-icon {
background-image: url(sweep-imgs/sweeper2.png) !important;
}
.dead-ghn-icon {
background-image: url(sweep-imgs/death.png) !important;
}
.expired-ghn-icon {
background-image: url(sweep-imgs/expired.png) !important;
}
.orphan-runninginstance-icon {
background-image: url(sweep-imgs/orphan.png) !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

View File

@ -7,8 +7,6 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="Resource_sweeper.css">
<link type="text/css" rel="stylesheet" href="gxt/css/gxt-all.css" />
<script type="text/javascript" language="javascript" src="resource_sweeper/resource_sweeper.nocache.js"></script>