|
|
@ -20,6 +20,7 @@ import com.fr.form.ui.container.WScaleLayout; |
|
|
|
import com.fr.form.ui.container.WTitleLayout; |
|
|
|
import com.fr.form.ui.container.WTitleLayout; |
|
|
|
import com.fr.form.ui.widget.CRBoundsWidget; |
|
|
|
import com.fr.form.ui.widget.CRBoundsWidget; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
@ -149,19 +150,12 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
|
|
|
|
|
|
|
|
private void initDefinePane() { |
|
|
|
private void initDefinePane() { |
|
|
|
currentEditorDefinePane = null; |
|
|
|
currentEditorDefinePane = null; |
|
|
|
XCreator creator = xCreator; |
|
|
|
boolean dedicateLayout = xCreator.acceptType(XWScaleLayout.class) && xCreator.getComponentCount() > 0 && ((XCreator) xCreator.getComponent(0)).shouldScaleCreator() || xCreator.acceptType(XWTitleLayout.class); |
|
|
|
if (xCreator.acceptType(XWScaleLayout.class)) { |
|
|
|
XCreator creator = dedicateLayout ? (XCreator) xCreator.getComponent(0) : xCreator; |
|
|
|
if (xCreator.getComponentCount() > 0 && ((XCreator) xCreator.getComponent(0)).shouldScaleCreator()) { |
|
|
|
|
|
|
|
creator = (XCreator) xCreator.getComponent(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(xCreator.acceptType(XWTitleLayout.class)){ |
|
|
|
|
|
|
|
creator = (XCreator) xCreator.getComponent(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
FormWidgetDefinePaneFactoryBase.RN rn = FormWidgetDefinePaneFactoryBase.createWidgetDefinePane(creator, creator.toData(), new Operator() { |
|
|
|
FormWidgetDefinePaneFactoryBase.RN rn = FormWidgetDefinePaneFactoryBase.createWidgetDefinePane(creator, creator.toData(), new Operator() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void did(DataCreatorUI ui, String cardName) { |
|
|
|
public void did(DataCreatorUI ui, String cardName) { |
|
|
|
|
|
|
|
//todo
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
DataModify<Widget> definePane = rn.getDefinePane(); |
|
|
|
DataModify<Widget> definePane = rn.getDefinePane(); |
|
|
@ -227,7 +221,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getIconPath() { |
|
|
|
public String getIconPath() { |
|
|
|
return ""; |
|
|
|
return StringUtils.EMPTY; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|