|
|
|
@ -16,6 +16,7 @@ import com.fr.design.layout.FRGUIPaneFactory;
|
|
|
|
|
import com.fr.design.mainframe.widget.ui.FormWidgetCardPane; |
|
|
|
|
import com.fr.design.widget.ui.designer.mobile.MobileWidgetDefinePane; |
|
|
|
|
|
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
@ -173,7 +174,13 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
|
|
|
|
|
FormSelection selection = designer.getSelectionModel().getSelection(); |
|
|
|
|
WidgetPropertyUIProvider[] embeddedPropertyUIProviders = null; |
|
|
|
|
if (selection != null && selection.getSelectedCreator() != null) { |
|
|
|
|
XCreator xCreator = selection.getSelectedCreator(); |
|
|
|
|
embeddedPropertyUIProviders = selection.getSelectedCreator().getWidgetPropertyUIProviders(); |
|
|
|
|
if (xCreator instanceof XWScaleLayout |
|
|
|
|
&& ComparatorUtils.equals(((XWScaleLayout) xCreator).getXCreatorCount(), 1) |
|
|
|
|
&& ((XWScaleLayout) xCreator).getXCreator(0) instanceof XTextEditor) { |
|
|
|
|
embeddedPropertyUIProviders = ((XWScaleLayout) xCreator).getXCreator(0).getWidgetPropertyUIProviders(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Set<WidgetPropertyUIProvider> set = ExtraDesignClassManager.getInstance().getArray(WidgetPropertyUIProvider.XML_TAG); |
|
|
|
|
return ArrayUtils.addAll(embeddedPropertyUIProviders, set.toArray(new WidgetPropertyUIProvider[set.size()])); |
|
|
|
|