Thanks Roger, got it working.
public void render(Object item, int index, ListView listView, boolean
selected, boolean checked, boolean highlighted, boolean disabled) {
renderStyles(listView, selected, highlighted, disabled);
if(item==null) {
label.setText("--select--");
}
else {
try {
label.setText((String)
item.getClass().getMethod("getName").invoke(item, null));
}
catch (Exception e) {
e.printStackTrace();
}
}
}
This message and its attachments may contain legally privileged or confidential
information. It is for the intended addressee(s) only.
If you are not the intended recipient you must not disclose or use the
information contained in it. If you have received this email in error please
notify us immediately by return email and delete the document.
Any views expressed in this message are those of the individual sender, except
where the sender specifies and with authority, states them to be the views of
the Company.
Uecomm accepts no liability for any damage caused by this email or its
attachments due to viruses, interference, interception, corruption or
unauthorised access.
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by NetIQ MailMarshal
#####################################################################################