Rapha�l Luta wrote:
>
> "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.
I was thinking it would be in the registry. Maybe the user could set
it.
> > 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...
To do it right. I am really thinking that this should just be part of
the Portlets meta information and then if the user wants to size a
specific portlet. Maybe if "maximum" was set then Jetspeed wouldn't
allow the user to configure a Portlet that was smaller than what it
wanted.
> > 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 ?
It looks like it might. This would be the way it would be for 1.2. But
I don't want anyone to allow this Portlet to run in a smaller
configuration than that. It is really meant to be a large set of data
not some small '<portl>let' application.
Kevin
--
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN: "Please Open Source Java!"
"For evil to win is for good men to do nothing."
Open Source -> Join the conspiracy!
--
--------------------------------------------------------------
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]