Feature Requests item #1437111, was opened at 2006-02-22 16:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1437111&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Priority: 5
Submitted By: Jonathan Locke (jonathanlocke)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add formal style object for html tag styling
Initial Comment:
the basic idea is to encapsulate what before/after text
does for links and extend it to include css styling as
well. links would use these style objects to render
enabled, disabled and selected states. other
components could use styles as well. details from
offline discussion:
On 2/22/06, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:
Maybe you should put this in an RFE so that we
don't forget about it.
On 2/22/06, Jonathan Locke
<[EMAIL PROTECTED]> wrote:
>
> i think you're right that we don't need to change
attribute modifiers
> to do things with tag bodies. that should be
part of the rendering
> process for an individual component. it's fine
as it is now.
>
> don't want to write this right now, but maybe
someone will want to.
> here's a sketch that would make a good starting
point:
>
> public abstract class
wicket.markup.html.AbstractTagStyle
> {
> // Any of these could be dynamically determined
> public abstract String getCssStyle();
> public abstract String getBeforeBody();
> public abstract String getAfterBody();
> }
>
> TagStyle extends AbstractTagStyle { get/set
properties }
>
> Link { AbstractTagStyle enabled, disabled,
selected. render tag using tag
> style by directly modifying tag's css style
attribute. could put the method
> that does this up in WebComponent if it's general
enough. override
> component body rendering to use tag style for
before/after text }
>
> i think that would do it nicely. and with your
change to make attribute
> modifiers threadsafe, you could easily share a
tag style throughout
> an application, making the size of link only
slightly larger than it was
> before (one slot).
>
>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1437111&group_id=119783
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop