@Override
protected Object getDefaultValue(Object b, String lnfClassname) {
if (b instanceof Component && Component.class.isAssignableFrom(beanClass)) {
WidgetAdapter wa = WidgetAdapter.getWidgetAdapter((Component) b);
if (wa.isRoot() && b.getClass().getSuperclass() == beanClass || !wa.isRoot() && b.getClass() == beanClass) {
ILookAndFeelAdapter adapter = null;
if (lnfClassname != null)
adapter = ExtensionRegistry.getLnfAdapter(lnfClassname);
else
adapter = ExtensionRegistry.getLnfAdapter(UIManager.getCrossPlatformLookAndFeelClassName());
if (adapter != null)
default_value = adapter.getDefaultValue(beanClass, propertyName);
} else {
Class compClass;
if(wa.isRoot()&&b.getClass()==beanClass){
compClass = b.getClass();
}else if (wa.isRoot() && b.getClass().getSuperclass() != beanClass)