0

Default Rendered

asked 2010-01-20 13:47:14 +0800

kubiscopus gravatar image kubiscopus
40 1 1 2

Hi all.
How to get the Default Rendered Class name of a Component, like Listbox, Combobox, Grid, etc.??

Thanks

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-01-20 19:12:58 +0800

PeterKuo gravatar image PeterKuo
481 2

You may grep the source code, and see who has implemented needed renderer interface.

For example, Listbox.java has following code:

private static final ListitemRenderer _defRend = new ListitemRenderer() {
public void render(Listitem item, Object data) {
item.setLabel(Objects.toString(data));
item.setValue(data);
}
};

link publish delete flag offensive edit

answered 2010-01-21 02:16:51 +0800

kubiscopus gravatar image kubiscopus
40 1 1 2

Hi Peter.
Yes I alredy see that. But never mind I made my thing in other way. It shuld exist a public propertie in all the components that indicates the name of the actual render, the default one if none is assign. this will facilitate thing like the one i put in the general forum (bind with reflextion).
Thanks

link publish delete flag offensive edit

answered 2010-01-21 02:35:16 +0800

PeterKuo gravatar image PeterKuo
481 2

@kubiscopus
You are right, please post to feature request.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-01-20 13:47:14 +0800

Seen: 295 times

Last updated: Jan 21 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More