Author: wesleyhales
Date: 2008-02-09 23:31:21 -0500 (Sat, 09 Feb 2008)
New Revision: 9917
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
Log:
remote control cleanup
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java 2008-02-10
03:38:03 UTC (rev 9916)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java 2008-02-10
04:31:21 UTC (rev 9917)
@@ -42,23 +42,27 @@
{
resourceResponse.setContentType("text/html");
PrintWriter writer = resourceResponse.getWriter();
- writer.print("<script type='text/javascript'>function
openLinkInParent(url){window.open(url,'jbp_parent');}</script>");
+ writer.print("<html><head><script
type='text/javascript'>function
openLinkInParent(url){window.open(url,'jbp_parent');}</script>" +
+ "<link rel=\"stylesheet\"
href=\"/simple/css/master.css\"
type=\"text/css\"/></head><body>");
PortletURL url = resourceResponse.createRenderURL();
url.setWindowState(WindowState.MINIMIZED);
- writer.print("<ul><li><a href='#' onclick=\""
+ createParentURL(url) + "\">minimize parent
portlet</a></li>");
+ writer.print("<div
class=\"remote-container\"><ul><li><a href='#'
onclick=\"" + createParentURL(url) + "\"><img\n" +
+ " src=\"/simple/images/icon-minimize.gif\"
alt=\"\"/> minimize parent portlet</a></li>");
url.setWindowState(WindowState.MAXIMIZED);
- writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\">maximize parent
portlet</a></li>");
+ writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\"><img\n" +
+ " src=\"/simple/images/icon-maximize.gif\"
alt=\"\"/> maximize parent portlet</a></li>");
url.setWindowState(WindowState.NORMAL);
- writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\">make parent portlet
normal</a></li></ul>");
- writer.print("<p><b>'zipcode'</b> public render
parameter value: " + resourceRequest.getParameter(ZIPCODE) +
"<br/>");
- writer.print("Set value of <b>'zipcode'</b> public render
parameter to:</p>");
+ writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\"><img\n" +
+ " src=\"/simple/images/icon-normal.gif\"
alt=\"\"/> make parent portlet
normal</a></li></ul>");
+
writer.print("<br/><ul><li><b>'zipcode'</b>
public render parameter value: " + resourceRequest.getParameter(ZIPCODE) +
"<br/>");
+ writer.print("Set value of <b>'zipcode'</b> public render
parameter to:</li>");
url.setParameter(ZIPCODE, "80201");
- writer.print("<ul><li><a href='#' onclick=\""
+ createParentURL(url) + "\">Denver</a>");
+ writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\">Denver</a>");
url.setParameter(ZIPCODE, "94102");
writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\">San Francisco</a>");
url.setParameter(ZIPCODE, "20001");
writer.print("<li><a href='#' onclick=\"" +
createParentURL(url) + "\">Washington, DC</a>");
- writer.print("</ul>");
+ writer.print("</ul></div></body></html>");
}
private String createParentURL(PortletURL url)
Modified:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp
===================================================================
---
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp 2008-02-10
03:38:03 UTC (rev 9916)
+++
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp 2008-02-10
04:31:21 UTC (rev 9917)
@@ -1,4 +1,5 @@
<%@ page language="java" %>
+
<div class="portlet">
<div class="portlet-frame">
<div class="header full-width">
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
===================================================================
---
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-10
03:38:03 UTC (rev 9916)
+++
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-10
04:31:21 UTC (rev 9917)
@@ -281,4 +281,24 @@
color: #cc1100
}
+/*-------------------------------------Remote Window*/
+div.remote-container {
+ padding: 8px 0 0 0;
+}
+
+div.remote-container ul {
+ list-style: none;
+ list-style-position: inside;
+ width: 90%;
+ margin: 0 auto 0 auto;
+}
+
+div.remote-container ul li {
+ padding: 3px 0 3px 0;
+ border-bottom: 1px solid #777777;
+}
+
+div.remote-container ul li a {
+ color: #332299
+}
Show replies by date