"Kevin A. Burton" wrote:
> 
> Today I was thinking of better/different ways to have content rendered
> within Jetspeed.
> 
> Currently it is impossible for a controller to determine the best way to
> layout content so that maximum space is used.  I was thinking that we
> could have some "size" meta info that would be portlet specific.
> 

Would this parameter be settable by the user ? If so, the portlet needs to
be aware of the setting, and should certainly alter its content to suite the
current "mode" it is in.

> So a new method layout suggestion would be
> 
> <layout size=""/>
> 
> This would be one of the following
> 
> maximum
> medium
> minimum
> 
> maximum would mean that the Portlet wants to have the entire screen from
> left to right.  You could stack things on top or below but just not next
> to it:
> 
>  --------------------------
>  |   maximum portlet      |
>  --------------------------
>  ----------- -------------
>  | regular | |  regular  |
>  ----------- -------------
> 
> Medium would be like:
> 
>   ------------------- --------
>   |   medium        | | reg  |
>   ------------------- --------
>    ----------- -------------
>    | regular | |  regular  |
>    ----------- -------------
> 
> This would also just mean that regular would be fixed width and stuck to
> the right but medium would be 100% width and would resize itself.
> 
> Minimum would just be the default and would mean that he Portlet could
> run anywhere.
> 

+1 on the idea, but implementing this kind of layout would require something
like a gridbag layout controller to handle both rowspan and colspan for
portlets...

> A good example of this would be the JetspeedContentPortlet.  This will
> have a *lot* of content and I want it to be a medium portlet.
> 
> Probably another medium portlet would be a "mail" reader like XSP-Mail
> that would allow you to keep (or load balance) other portlets to the
> right or left.
> 

Does the current default setting in PanedController suit your need ?

--
Rapha�l Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to