From portal-commits at lists.jboss.org Tue Mar 18 16:36:00 2008 Content-Type: multipart/mixed; boundary="===============2676983077826404136==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r10313 - in modules/portlet/trunk/portal/src/main: resources/simple-portal-war/css and 1 other directory. Date: Tue, 18 Mar 2008 16:35:58 -0400 Message-ID: --===============2676983077826404136== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: wesleyhales Date: 2008-03-18 16:35:58 -0400 (Tue, 18 Mar 2008) New Revision: 10313 Modified: modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/port= al/admin/ui/AdminPortlet.java modules/portlet/trunk/portal/src/main/resources/simple-portal-war/css/ad= min.css Log: admin portlet - small fixes Modified: modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portl= et/portal/admin/ui/AdminPortlet.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/por= tal/admin/ui/AdminPortlet.java 2008-03-18 20:15:05 UTC (rev 10312) +++ modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/por= tal/admin/ui/AdminPortlet.java 2008-03-18 20:35:58 UTC (rev 10313) @@ -22,27 +22,23 @@ *************************************************************************= *****/ package org.jboss.portal.portlet.portal.admin.ui; = -import org.jboss.portal.portlet.container.managed.PortletApplicationRegist= ry; +import org.jboss.portal.common.i18n.LocalizedString; +import org.jboss.portal.portlet.container.managed.ManagedObject; import org.jboss.portal.portlet.container.managed.ManagedPortletApplicatio= n; import org.jboss.portal.portlet.container.managed.ManagedPortletContainer; import org.jboss.portal.portlet.container.managed.ManagedPortletFilter; -import org.jboss.portal.portlet.container.managed.ManagedObject; -import org.jboss.portal.portlet.info.PortletInfo; +import org.jboss.portal.portlet.container.managed.PortletApplicationRegist= ry; import org.jboss.portal.portlet.info.MetaInfo; -import org.jboss.portal.common.i18n.LocalizedString; -import static org.jboss.unit.api.Assert.assertNotNull; = +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; import javax.portlet.GenericPortlet; +import javax.portlet.PortletException; +import javax.portlet.PortletURL; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; -import javax.portlet.PortletException; -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; -import javax.portlet.PortletURL; -import javax.portlet.PortletRequestDispatcher; import java.io.IOException; import java.io.PrintWriter; -import java.util.Locale; = /** * @author Julien Viet @@ -120,19 +116,19 @@ = // writer.print("" + - "" + - "" + - "
\n" + - "
\n" + - "
\n" + - " 3D\"\"/Expand A= ll\n" + - "
\n" + - "
\n" + - " 3D\"\"/Coll= apse All\n" + - "
\n" + - "
\n"); + "" + + "" + + "
\n" + + "
\n" + + " \n" + + " \n" + + "
\n"); = - = + for (ManagedPortletApplication application : registry.getManagedPort= letApplications()) { PortletURL url =3D resp.createActionURL(); @@ -146,47 +142,51 @@ url.setParameter("lifecycle", "start"); String startURL =3D url.toString(); = - String htmlId =3D application.getId().substring(1,application.get= Id().length()); + String htmlId =3D application.getId().substring(1, application.ge= tId().length()); = = - - = writer.print("" + = "\n" + "
\n" + "
\n" + " \n" + "\n" + "
\n"= + " "); = - if (application.getStatus().toString().equals("STARTED")){ - writer.print("3D\"\"/"); - }else{ - writer.print("3D\"\"/"); - } - writer.print("" + + if (application.getStatus().toString().equals("STARTED")) + { + writer.print("3D\"\"/"); + } + else + { + writer.print("3D\"\"/"); + } + writer.print("" + "" + application.getStatus() + "\n" + "\n" + "
\n" + " 3D\"\"/\n"); - if (application.getStatus().toString().equals("STARTED")){ - writer.print("Start\n"); - } + if (application.getStatus().toString().equals("STARTED")) + { + writer.print("S= top\n"); + } + else + { + writer.print("Start\n"); + } = - writer.print("" + + writer.print("" + "" + "" + "
\n" + @@ -219,7 +219,7 @@ = // //writer.print("
  • Filter " + filter.getId() + " " + filter.g= etStatus() + " Start St= op
  • "); + // startURL + "\">Start Stop= "); = writer.print("" + "" + @@ -227,11 +227,14 @@ " 3D\"\"/" + filter.getId() + "\n" + " " + filter.getStatus() += "\n" + " \n"); - if (filter.getStatus().toString().equals("STARTED")){ - writer.print(" Start | Stop\n"); - }else{ - writer.print(" Start | Stop<= /td>\n"); - } + if (filter.getStatus().toString().equals("STARTED")) + { + writer.print(" Start | Stop\n"= ); + } + else + { + writer.print(" Start | Stop\= n"); + } = = writer.print(" "); @@ -252,48 +255,62 @@ url.setParameter("lifecycle", "start"); startURL =3D url.toString(); = - = + LocalizedString description =3D null; String descString =3D ""; - try{ + try + { MetaInfo metaInfo =3D container.getInfo().getMeta(); description =3D metaInfo.getMetaValue("description"); - }catch(Exception e){ + } + catch (Exception e) + { //e.printStackTrace(); } - if (description !=3D null){ - descString =3D description.getString(req.getLocale(),true); + if (description !=3D null) + { + descString =3D description.getString(req.getLocale(), true); } = writer.print("" + "" + " \n" + " 3D\"\"/" + container.getId() + "\n" + - " " + container.getStatus(= ) + "\n" + + " " + container.getStatus(= )); + if (container.getStatus().toString().equals("FAILED")) + { + writer.print("3D\"\"/"); + } + + + writer.print("\n" + " " + descString + "\= n"); - if (container.getStatus().toString().equals("STARTED")){ - writer.print(" Start | Stop\n"); - }else{ - writer.print(" Start | Stop<= /td>\n"); - } + if (container.getStatus().toString().equals("STARTED")) + { + writer.print(" Start | Stop\n"= ); + } + else + { + writer.print(" Start | Stop\= n"); + } = = writer.print(" "); = } - writer.print("" + - "
    \n" + - ""); + writer.print("" + + "
    \n" + + ""); } = writer.print("
    " + "
    \n" + - "
    \n" + - " \n" + - "\n" + - " \n" + - "
    \n" + - ""); + " \n" + + " \n" + + "\n" + + " \n" + + "
    \n" + + ""); = // writer.close(); Modified: modules/portlet/trunk/portal/src/main/resources/simple-portal-war= /css/admin.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/resources/simple-portal-war/css/a= dmin.css 2008-03-18 20:15:05 UTC (rev 10312) +++ modules/portlet/trunk/portal/src/main/resources/simple-portal-war/css/a= dmin.css 2008-03-18 20:35:58 UTC (rev 10313) @@ -95,12 +95,14 @@ table.par-table { margin: 0; padding: 0; - border-collapse: collapse; + /*border-collapse: collapse;*/ border-spacing: 0; + border: 1px solid #999; } = table.par-table td { padding: 0 0 0 3px; + width: 25%; } = table.par-table tr.par-subhead { @@ -120,6 +122,10 @@ margin: 0 3px 0 0; } = +table.par-table td img.failed { + margin: 0 0 0 3px; +} + table.par-table td.par-header-left { padding: 0 0 0 15px; } --===============2676983077826404136==--