Need Help in EditableProperty class

How can I know that EditableProperty is CheckBox or HorizontalPanel or something other ?

I am using this code but this didn't works.

String st = property.getEditor().asWidget().getClass().toString();
if (st == "com.google.gwt.user.client.ui.CheckBox") {
 // codes
}

Is there any other way to do this ?

Sir @ewpatton, Please help

Try instanceof from Java

3 Likes