Permalink
Browse files

* updated the portlet.ui.xml.

  • Loading branch information...
1 parent 11ed479 commit a33ee642b93e3ecd0b78196617a679a44629bf77 @jeffyu jeffyu committed Mar 26, 2012
View
22 gadget-web/src/main/java/org/guvnor/sam/gadget/web/client/widgets/Portlet-backup.ui.xml
@@ -0,0 +1,22 @@
+<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
+ xmlns:g='urn:import:com.google.gwt.user.client.ui'>
+
+ <g:FlowPanel styleName="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">
+ <g:FlowPanel styleName="portlet-header ui-widget-header ui-corner-all">
+ <g:InlineLabel ui:field="title" ></g:InlineLabel>
+ <g:InlineLabel ui:field="minBtn" styleName="ui-icon ui-icon-triangle-1-s portlet-min"></g:InlineLabel>
+ <g:InlineLabel ui:field="settingsBtn" styleName="ui-icon ui-icon-gear portlet-settings"></g:InlineLabel>
+ <g:FlowPanel styleName="portlet-menu">
+ <g:InlineLabel>Edit settings</g:InlineLabel>
+ <g:InlineLabel>Delete this gadget</g:InlineLabel>
+ <g:InlineLabel>Maximize this gadget</g:InlineLabel>
+ </g:FlowPanel>
+ </g:FlowPanel>
+ <g:FlowPanel ui:field="userPreference">
+ </g:FlowPanel>
+ <g:FlowPanel styleName="portlet-content" ui:field="portletContent">
+ <g:Frame width="300" ui:field="gadgetSpec" styleName="portlet-iframe"></g:Frame>
+ </g:FlowPanel>
+ </g:FlowPanel>
+
+</ui:UiBinder>
View
17 gadget-web/src/main/java/org/guvnor/sam/gadget/web/client/widgets/Portlet.ui.xml
@@ -2,18 +2,21 @@
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<g:FlowPanel styleName="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">
+
<g:FlowPanel styleName="portlet-header ui-widget-header ui-corner-all">
<g:InlineLabel ui:field="title" ></g:InlineLabel>
<g:InlineLabel ui:field="minBtn" styleName="ui-icon ui-icon-triangle-1-s portlet-min"></g:InlineLabel>
<g:InlineLabel ui:field="settingsBtn" styleName="ui-icon ui-icon-gear portlet-settings"></g:InlineLabel>
- <g:FlowPanel styleName="portlet-menu">
- <g:InlineLabel>Edit settings</g:InlineLabel>
- <g:InlineLabel>Delete this gadget</g:InlineLabel>
- <g:InlineLabel>Maximize this gadget</g:InlineLabel>
- </g:FlowPanel>
- </g:FlowPanel>
- <g:FlowPanel ui:field="userPreference">
+ <g:HTMLPanel styleName="portlet-menu">
+ <div>
+ <div>Edit Preference</div>
+ <div>Maximize</div>
+ <div>Delete</div>
+ <div>About</div>
+ </div>
+ </g:HTMLPanel>
</g:FlowPanel>
+ <g:FlowPanel ui:field="userPreference"></g:FlowPanel>
<g:FlowPanel styleName="portlet-content" ui:field="portletContent">
<g:Frame width="300" ui:field="gadgetSpec" styleName="portlet-iframe"></g:Frame>
</g:FlowPanel>
View
42 gadget-web/src/main/webapp/WEB-INF/web-resteasy.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <display-name>Gadget Server</display-name>
+
+ <context-param>
+ <param-name>javax.ws.rs.Application</param-name>
+ <param-value>org.guvnor.sam.gadget.web.server.RestApplication</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>resteasy.servlet.mapping.prefix</param-name>
+ <param-value>/rs</param-value>
+ </context-param>
+
+ <listener>
+ <listener-class>
+ org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
+ </listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>Resteasy</servlet-name>
+ <servlet-class>
+ org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
+ </servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Resteasy</servlet-name>
+ <url-pattern>/rs/*</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>Application.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>
View
14 gadget-web/src/main/webapp/WEB-INF/web-ui.xml
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app
- PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
- "http://java.sun.com/dtd/web-app_2_3.dtd">
-
-<web-app>
-
- <display-name>Gadget Server</display-name>
-
- <welcome-file-list>
- <welcome-file>Application.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
View
28 gadget-web/src/main/webapp/WEB-INF/web.xml
@@ -7,34 +7,6 @@
<display-name>Gadget Server</display-name>
- <context-param>
- <param-name>javax.ws.rs.Application</param-name>
- <param-value>org.guvnor.sam.gadget.web.server.RestApplication</param-value>
- </context-param>
-
- <context-param>
- <param-name>resteasy.servlet.mapping.prefix</param-name>
- <param-value>/rs</param-value>
- </context-param>
-
- <listener>
- <listener-class>
- org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
- </listener-class>
- </listener>
-
- <servlet>
- <servlet-name>Resteasy</servlet-name>
- <servlet-class>
- org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
- </servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Resteasy</servlet-name>
- <url-pattern>/rs/*</url-pattern>
- </servlet-mapping>
-
<welcome-file-list>
<welcome-file>Application.html</welcome-file>
</welcome-file-list>

0 comments on commit a33ee64

Please sign in to comment.