[jboss-svn-commits] JBL Code SVN: r36042 - in labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor: client/resources/css and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Nov 24 04:51:21 EST 2010
Author: Rikkola
Date: 2010-11-24 04:51:21 -0500 (Wed, 24 Nov 2010)
New Revision: 36042
Added:
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/FlowImages.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/GuvnorResources.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/HeaderCss.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/css/Header.css
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/GuidedEditor.html
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/drools.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/jbossrules_hdrbkg_blue.gif
Log:
Made Guvnor use ClientBundle for images
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/FlowImages.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/FlowImages.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/FlowImages.java 2010-11-24 09:51:21 UTC (rev 36042)
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2010 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.drools.guvnor.client.resources;
+
+import com.google.gwt.resources.client.ClientBundle;
+import com.google.gwt.resources.client.ImageResource;
+
+/**
+ *
+ * @author rikkola
+ *
+ */
+public interface FlowImages
+ extends
+ ClientBundle {
+
+ @Source("images/ruleflow/process_start.gif")
+ ImageResource processStart();
+
+ @Source("images/ruleflow/process_stop.gif")
+ ImageResource processStop();
+
+ @Source("images/ruleflow/human_task.gif")
+ ImageResource humanTask();
+
+ @Source("images/ruleflow/import_statement.gif")
+ ImageResource importStatement();
+
+ @Source("images/ruleflow/action.gif")
+ ImageResource action();
+
+ @Source("images/ruleflow/process.gif")
+ ImageResource process();
+
+ @Source("images/ruleflow/question.gif")
+ ImageResource question();
+
+ @Source("images/ruleflow/timer.gif")
+ ImageResource timer();
+
+ @Source("images/ruleflow/fault.gif")
+ ImageResource fault();
+
+ @Source("images/ruleflow/event.gif")
+ ImageResource event();
+}
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/GuvnorResources.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/GuvnorResources.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/GuvnorResources.java 2010-11-24 09:51:21 UTC (rev 36042)
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2010 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.drools.guvnor.client.resources;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.resources.client.ClientBundle;
+import com.google.gwt.resources.client.ImageResource;
+import com.google.gwt.resources.client.ImageResource.ImageOptions;
+import com.google.gwt.resources.client.ImageResource.RepeatStyle;
+
+/**
+ *
+ * @author rikkola
+ *
+ */
+public interface GuvnorResources
+ extends
+ ClientBundle {
+
+ GuvnorResources INSTANCE = GWT.create( GuvnorResources.class );
+
+ @ImageOptions(repeatStyle = RepeatStyle.Horizontal)
+ @Source("images/jbossrulesBlue.gif")
+ ImageResource jbossrulesBlue();
+
+ @Source("css/Header.css")
+ HeaderCss headerCss();
+
+}
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/HeaderCss.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/HeaderCss.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/HeaderCss.java 2010-11-24 09:51:21 UTC (rev 36042)
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2010 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.drools.guvnor.client.resources;
+
+import com.google.gwt.resources.client.CssResource;
+
+/**
+ *
+ * @author rikkola
+ *
+ */
+public interface HeaderCss
+ extends
+ CssResource {
+
+ @ClassName("header")
+ String headerClass();
+
+ @ClassName("headerUserInfo")
+ String headerUserInfoClass();
+
+}
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/css/Header.css
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/css/Header.css (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/resources/css/Header.css 2010-11-24 09:51:21 UTC (rev 36042)
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2010 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+ at sprite .header {
+ gwt-image: 'jbossrulesBlue';
+ height: 50px;
+}
+
+.headerUserInfo {
+ position: absolute;
+ right: 1em;
+ top: 0;
+ color: #fff;
+ font-size: .9em;
+}
+
+.headerUserInfo a {
+ color: #fff;
+}
\ No newline at end of file
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/GuidedEditor.html
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/GuidedEditor.html (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/GuidedEditor.html 2010-11-24 09:51:21 UTC (rev 36042)
@@ -0,0 +1,68 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <!-- Note you can append #asset=UUID to the end of the URL to preload a given asset.
+ Also, if you appent #asset=UUID&nochrome it will only show the asset without all the GUI "chrome"
+
+ To select a locale, specify &locale=en_US at the end of the URL to pick the appropriate bundle.
+ -->
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
+ <title>JBoss Guvnor</title>
+ <link rel="shortcut icon" href="drools.gif" type="image/gif"/>
+ <link rel="icon" href="drools.gif" type="image/gif"/>
+
+ <!--CSS for loading message at application Startup-->
+ <style type="text/css">
+ #loading {
+ position: absolute;
+ left: 45%;
+ top: 40%;
+ padding: 2px;
+ z-index: 20001;
+ height: auto;
+ border: 1px solid #ccc;
+ }
+ #loading a {
+ color: #225588;
+ }
+
+ #loading .loading-indicator {
+ background: white;
+ color: #444;
+ font: bold 13px tahoma, arial, helvetica;
+ padding: 10px;
+ margin: 0;
+ height: auto;
+ }
+
+ #loading-msg {
+ font: normal 10px arial, tahoma, sans-serif;
+ }
+ </style>
+
+ <link rel="stylesheet" href="Guvnor.css">
+ <link rel="stylesheet" href="Guvnor_DecoratedPopupPanel.css">
+ <link rel="stylesheet" href="ruleflow.css">
+ </head>
+ <body>
+ <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
+
+ <!--add loading indicator while the app is being loaded-->
+ <div id="loading">
+ <div class="loading-indicator">
+ <img src="js/ext/resources/images/default/shared/large-loading.gif" width="32" height="32"
+ style="margin-right:8px;float:left;vertical-align:top;"/>Please wait<br/>
+ <span id="loading-msg">Loading application...</span></div>
+ </div>
+
+
+
+ <!-- The GWT js file generated at run time -->
+ <script type="text/javascript" src='org.drools.guvnor.Guvnor.nocache.js'></script>
+
+ <!--hide loading message-->
+ <script type="text/javascript">Ext.get('loading').fadeOut({remove: true, duration:.25});</script>
+
+ </body>
+</html>
\ No newline at end of file
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/drools.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/drools.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/jbossrules_hdrbkg_blue.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/public/jbossrules_hdrbkg_blue.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the jboss-svn-commits
mailing list