-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all.
How to get the Default Rendered Class name of a Component, like Listbox, Combobox, Grid, etc.??
Thanks
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);
}
};
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
Asked: 2010-01-20 13:47:14 +0800
Seen: 295 times
Last updated: Jan 21 '10