You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Varela Santoalla, Daniel" <DV...@uni2.es> on 2001/04/26 13:40:08 UTC

Detecting when Maximized

Hello.

I'm starting with the HelloWorld Portlet, and just tried to show a different
String when maximized.
Could anybody tell me about how to do it?

Thanks

> Daniel Varela Santoalla
Analista
UNI2 - Sistemas Internet
C/ Juan Esplandiú 11-13,  28007 Madrid
%  (+34) 91 2521200 Ext: 27042
) dvarela@uni2.es



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Detecting when Maximized

Posted by Tom Adams <to...@PIsoftware.com>.
> I'm starting with the HelloWorld Portlet, and just tried to show a
> different String when maximized.
> Could anybody tell me about how to do it?

As a hack, from within a portlet you can use 
org.apache.jetspeed.util.URILookup:

if (URILookup.getURISubType(this, rundata) ==
    URILookup.SUBTYPE_MAXIMIZE)
{
  // we're maximised

else
{
  // we're not

} // end if

There's probably a better way to do it, try checking out URILookup 
source for how it's done...

Tom

-- 
Tom Adams            | Plugged In Software
Software Engineer    |     +61 7 3876 2188
tom@PIsoftware.com   |

Fingerprint: 7B49 AB1D 852C A251 787A  5979 12C9 3ADB DD07 A6DC
---------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org