Re: Adding a IRenderer interface ?

2011-03-20 Thread jcgarciam
What about:
   IChoiceRenderer
??

On Fri, Mar 18, 2011 at 10:52 AM, zedros [via Apache Wicket] <
ml-node+3387253-1092151999-65...@n4.nabble.com> wrote:

> hi
>
> I was refactoring some code (to go from DropDownChoice to
> AutoCompleteEdit) when I stumbled upon there's no interface just about
> "how to render some given class instances".
>
> Well, it's for sure no big deal, but I was wondering if, for
> unification purpose, a IRenderer interface wouldn't make sense, being
> something like :
> public interface IRenderer
> {
> /**
>  * Get the value for displaying to an end user.
>  *
>  * @param object
>  *the actual object
>  * @return the value meant for displaying to an end user
>  */
> Object getDisplayValue(T object);
> }
>
> Just 2 cents really.
>
> thanks again for all the good work done with Wicket :)
>
> best
> zedros
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=3387253&i=0&by-user=t>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=3387253&i=1&by-user=t>
>
>
>
> ------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Adding-a-IRenderer-interface-tp3387253p3387253.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>



-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
--Anyone who has never made a mistake has never tried anything new.--


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-a-IRenderer-interface-tp3387253p3392206.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Adding a IRenderer interface ?

2011-03-18 Thread zedros schwartz
hi

I was refactoring some code (to go from DropDownChoice to
AutoCompleteEdit) when I stumbled upon there's no interface just about
"how to render some given class instances".

Well, it's for sure no big deal, but I was wondering if, for
unification purpose, a IRenderer interface wouldn't make sense, being
something like :
public interface IRenderer
{
/**
 * Get the value for displaying to an end user.
 *
 * @param object
 *the actual object
 * @return the value meant for displaying to an end user
 */
Object getDisplayValue(T object);
}

Just 2 cents really.

thanks again for all the good work done with Wicket :)

best
zedros

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org