Browse Source

Merge pull request #1024 in DESIGN/design from ~HADES/design:feature/10.0 to feature/10.0

* commit '8df1092d6d75f1875d54e84a8ec03baa9b1e6425':
  REPORT-19468 【匹配移动端】H5超链标题显示处理
research/10.0
Hades 5 years ago
parent
commit
d46f25e1df
  1. 11
      designer-form/src/main/java/com/fr/design/designer/creator/XWBorderLayout.java

11
designer-form/src/main/java/com/fr/design/designer/creator/XWBorderLayout.java

@ -42,6 +42,7 @@ public class XWBorderLayout extends XLayoutContainer {
* 默认名称 * 默认名称
* @return 名称 * @return 名称
*/ */
@Override
public String createDefaultName() { public String createDefaultName() {
return "border"; return "border";
} }
@ -50,6 +51,7 @@ public class XWBorderLayout extends XLayoutContainer {
* 转化成相应 WBorderLayout * 转化成相应 WBorderLayout
* @return 相应 WBorderLayout * @return 相应 WBorderLayout
*/ */
@Override
public WBorderLayout toData() { public WBorderLayout toData() {
return (WBorderLayout) data; return (WBorderLayout) data;
} }
@ -62,6 +64,7 @@ public class XWBorderLayout extends XLayoutContainer {
* 初始大小 * 初始大小
* @return 初始大小 * @return 初始大小
*/ */
@Override
public Dimension initEditorSize() { public Dimension initEditorSize() {
return new Dimension(WBorderLayout.DEFAULT_WIDTH, WBorderLayout.DEFAULT_HEIGHT); return new Dimension(WBorderLayout.DEFAULT_WIDTH, WBorderLayout.DEFAULT_HEIGHT);
} }
@ -71,15 +74,18 @@ public class XWBorderLayout extends XLayoutContainer {
* @return 属性名 * @return 属性名
* @throws java.beans.IntrospectionException 抛错 * @throws java.beans.IntrospectionException 抛错
*/ */
@Override
public CRPropertyDescriptor[] supportedDescriptor() throws IntrospectionException { public CRPropertyDescriptor[] supportedDescriptor() throws IntrospectionException {
return new CRPropertyDescriptor[] { return new CRPropertyDescriptor[] {
new CRPropertyDescriptor("widgetName", this.data.getClass()).setI18NName(Toolkit.i18nText("Fine-Design_Form_Form_Widget_Name")) new CRPropertyDescriptor("widgetName", this.data.getClass()).setI18NName(Toolkit.i18nText("Fine-Design_Form_Form_Widget_Name")),
new CRPropertyDescriptor("customTitleName", this.data.getClass()).setI18NName(Toolkit.i18nText("Fine-Design_Form_Title"))
}; };
} }
/** /**
* 将WLayout转换为XLayoutContainer * 将WLayout转换为XLayoutContainer
*/ */
@Override
public void convert() { public void convert() {
isRefreshing = true; isRefreshing = true;
WBorderLayout wb = this.toData(); WBorderLayout wb = this.toData();
@ -101,6 +107,7 @@ public class XWBorderLayout extends XLayoutContainer {
* 设计界面中有组件添加时要通知WLayout容器重新paint * 设计界面中有组件添加时要通知WLayout容器重新paint
* @param e 事件 * @param e 事件
*/ */
@Override
public void componentAdded(ContainerEvent e) { public void componentAdded(ContainerEvent e) {
if (isRefreshing) { if (isRefreshing) {
return; return;
@ -158,6 +165,7 @@ public class XWBorderLayout extends XLayoutContainer {
/** /**
* 重新计算大小 * 重新计算大小
*/ */
@Override
public void recalculateChildrenSize() { public void recalculateChildrenSize() {
Dimension d = getSize(); Dimension d = getSize();
WBorderLayout layout = toData(); WBorderLayout layout = toData();
@ -173,6 +181,7 @@ public class XWBorderLayout extends XLayoutContainer {
* @param comp 组件 * @param comp 组件
* @param constraints 方位 * @param constraints 方位
*/ */
@Override
public void add(Component comp, Object constraints) { public void add(Component comp, Object constraints) {
super.add(comp, constraints); super.add(comp, constraints);
if (comp == null) { if (comp == null) {

Loading…
Cancel
Save