forked from fanruan/design
Browse Source
Merge in DESIGN/design from ~HENRY.WANG/design:release/10.0 to release/10.0 * commit 'c8474323c481fa73cbe5e2b2473a7912b4f6123c': REPORT-46234 普通报表\聚合报表,点击para,上方是控件设置,但是下方是组件名称feature/big-screen
Henry.Wang
4 years ago
2 changed files with 29 additions and 12 deletions
@ -1,21 +1,37 @@ |
|||||||
package com.fr.design.mainframe.widget.ui; |
package com.fr.design.mainframe.widget.ui; |
||||||
|
|
||||||
import com.fr.design.designer.creator.XCreator; |
import com.fr.design.designer.creator.XCreator; |
||||||
|
import com.fr.design.designer.creator.XWParameterLayout; |
||||||
|
import com.fr.design.file.HistoryTemplateListCache; |
||||||
|
import com.fr.design.mainframe.EastRegionContainerPane; |
||||||
|
import com.fr.design.mainframe.JForm; |
||||||
|
|
||||||
/** |
/** |
||||||
* Created by kerry on 2017/9/30. |
* Created by kerry on 2017/9/30. |
||||||
*/ |
*/ |
||||||
public class WidgetBasicPropertyPaneFactory { |
public class WidgetBasicPropertyPaneFactory { |
||||||
|
|
||||||
public static FormBasicPropertyPane createBasicPropertyPane(XCreator xCreator){ |
public static FormBasicPropertyPane createBasicPropertyPane(XCreator xCreator) { |
||||||
if(xCreator.supportSetVisible() && xCreator.supportSetEnable()){ |
freshPropertyMode(xCreator); |
||||||
|
if (xCreator.supportSetVisible() && xCreator.supportSetEnable()) { |
||||||
return new FormBasicWidgetPropertyPane(); |
return new FormBasicWidgetPropertyPane(); |
||||||
} |
} |
||||||
if(xCreator.supportSetVisible()){ |
if (xCreator.supportSetVisible()) { |
||||||
return new BasicSetVisiblePropertyPane(); |
return new BasicSetVisiblePropertyPane(); |
||||||
}else{ |
} else { |
||||||
return new FormBasicPropertyPane(); |
return new FormBasicPropertyPane(); |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
|
private static void freshPropertyMode(XCreator xCreator) { |
||||||
|
if (!(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate() instanceof JForm)) { |
||||||
|
if (xCreator instanceof XWParameterLayout) { |
||||||
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.REPORT_PARA); |
||||||
|
} else { |
||||||
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.REPORT_PARA_WIDGET); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue