You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by sm...@apache.org on 2007/06/07 06:48:23 UTC
svn commit: r545061 - in
/portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean:
desktop.jsp desktop.vm resources/Messages.properties
Author: smilek
Date: Wed Jun 6 21:48:20 2007
New Revision: 545061
URL: http://svn.apache.org/viewvc?view=rev&rev=545061
Log:
---------
support loading status by portlet by changing the portlet title, with functions added to jetspeed.om.Portlet (loadingIndicatorShow, loadingIndicatorHide, loadingIndicatorIsShown) and management added to PortletChangeActionContentListener, PortletActionsContentListener, PortletContentListener, PortletActionContentListener, MoveAjaxApiContentListener - these layout decoration resources are required for loading/updating title change (this example is what has been added to tigris and blueocean) :
# if empty string, portlet title bar will not change during ajax calls for portlet render
desktop.action.loadportletrender=Loading ...
# if empty string, portlet title bar will not change during ajax calls for portlet action submits
desktop.action.loadportletaction=Updating ...
# if empty string, portlet title bar will not change during ajax calls for get-portlet-action, change-portlet-action, move-portlet
desktop.action.loadportletupdate=
---------
added support for disabling layout actions by layout fragment - if "NoActions" layout is detected, changes to the layout are prevented - can't move or resize portlets inside the layout, can't add a portlet to the layout, etc - for nested layouts, the "NoActions" setting is based on each individual layout fragment.- here are some changes made to each PortletWindow that is inside a "NoActions" layout:
- window cannot be moved
- window cannot be resized
- window title-bar cursor should be 'default' instead of 'move'
- window resize-handle should be hidden
- these actions are disabled: heightexpand, heightnormal, tile, untile - this usually causes the action-menu button to be hidden (the button is hidden when all menu options are disabled)
---------
added PortletWindow showAllPortletWindows/hideAllPortletWindows to properly support maximize window mode (all other PortletWindow widgets are now hidden when a window is maximized) - also, when maximized, we change the window in the same way it is changed when inside a "NoActions" layout (as listed above)
---------
in tigris and blueocean layout decorators, comment-out page level loading indicator: <div id="js-showloading" ...
Modified:
portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.jsp
portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.vm
portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/resources/Messages.properties
Modified: portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.jsp?view=diff&rev=545061&r1=545060&r2=545061
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.jsp (original)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.jsp Wed Jun 6 21:48:20 2007
@@ -89,6 +89,7 @@
<p>
<img src="$jetspeedDesktop.getLayoutBaseUrl('images/Jetspeed_blue_sm.png')" alt="Jetspeed 2 Powered" border="0" />
</p>
+<!-- uncomment for page level loading indicator (associated with layout decoration resource: desktop.action.loadpage)
<div id="js-showloading" style="display: none">
<table class="js-showloading">
<tr>
@@ -100,5 +101,6 @@
</tr>
</table>
</div>
+-->
</body>
</html>
Modified: portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.vm?view=diff&rev=545061&r1=545060&r2=545061
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.vm (original)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/desktop.vm Wed Jun 6 21:48:20 2007
@@ -75,16 +75,18 @@
<p>
<img src="$jetspeedDesktop.getLayoutBaseUrl('images/Jetspeed_blue_sm.png')" alt="Jetspeed 2 Powered" border="0" />
</p>
+<!-- uncomment for page level loading indicator (associated with layout decoration resource: desktop.action.loadpage)
<div id="js-showloading" style="display: none">
<table class="js-showloading">
<tr>
<td class="js-showloading-left"> </td>
<td class="js-showloading-middle">
- <div class="js-showloading-content" id="js-showloading-content"><loading> ...</div>
+ <div class="js-showloading-content" id="js-showloading-content"><Loading> ...</div>
</td>
<td class="js-showloading-right"> </td>
</tr>
</table>
</div>
+-->
</body>
</html>
Modified: portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/resources/Messages.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/resources/Messages.properties?view=diff&rev=545061&r1=545060&r2=545061
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/resources/Messages.properties (original)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/blueocean/resources/Messages.properties Wed Jun 6 21:48:20 2007
@@ -20,6 +20,18 @@
desktop.action.heightnormal=Height - Normal
desktop.action.restore=Restore
desktop.action.removeportlet=Delete Portlet
+
+# if empty string, portlet title bar will not change during ajax calls for portlet render
+desktop.action.loadportletrender=Loading ...
+
+# if empty string, portlet title bar will not change during ajax calls for portlet action submits
+desktop.action.loadportletaction=Updating ...
+
+# if empty string, portlet title bar will not change during ajax calls for get-portlet-action, change-portlet-action, move-portlet
+desktop.action.loadportletupdate=
+
desktop.action.addportlet=Add Portlet
desktop.action.editpage=Edit Page
-desktop.action.loading=loading ...
+
+# if not defined, HTMLNode id="js-showloading" will not get its inner element text changed during ajax calls
+desktop.action.loadpage=Loading ...
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org