Browse Source

代码规范

代码规范
master
zpc 8 years ago
parent
commit
181473e663
  1. 2
      designer/src/com/fr/design/report/freeze/RepeatAndFreezeSettingPane.java
  2. 4
      designer_base/src/com/fr/design/designer/creator/CRPropertyDescriptor.java
  3. 5
      designer_base/src/com/fr/design/fun/ParameterWindowEditorProcessor.java
  4. 6
      designer_base/src/com/fr/design/fun/impl/AbstractParameterWindowEditorProcessor.java
  5. 4
      designer_form/src/com/fr/design/designer/creator/XWParameterLayout.java

2
designer/src/com/fr/design/report/freeze/RepeatAndFreezeSettingPane.java

@ -218,7 +218,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane {
JPanel freezePanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); JPanel freezePanel = FRGUIPaneFactory.createBorderLayout_S_Pane();
//自适应插件 //自适应插件
JPanel infoPane = FRGUIPaneFactory.createTitledBorderPane(Inter.getLocText("Attention")); JPanel infoPane = FRGUIPaneFactory.createTitledBorderPane(Inter.getLocText("FR-Designer_Attention"));
BoxCenterAligmentPane actionLabel = getURLActionLabel(Inter.getLocText("FR-Designer_Form-Fit-Tip")); BoxCenterAligmentPane actionLabel = getURLActionLabel(Inter.getLocText("FR-Designer_Form-Fit-Tip"));
infoPane.add(actionLabel, BorderLayout.SOUTH); infoPane.add(actionLabel, BorderLayout.SOUTH);

4
designer_form/src/com/fr/design/designer/creator/CRPropertyDescriptor.java → designer_base/src/com/fr/design/designer/creator/CRPropertyDescriptor.java

@ -3,7 +3,6 @@
*/ */
package com.fr.design.designer.creator; package com.fr.design.designer.creator;
import com.fr.design.gui.xtable.AbstractPropertyGroupModel;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.stable.core.PropertyChangeAdapter; import com.fr.stable.core.PropertyChangeAdapter;
@ -15,6 +14,7 @@ import java.beans.PropertyDescriptor;
* @since 6.5.3 * @since 6.5.3
*/ */
public final class CRPropertyDescriptor extends PropertyDescriptor { public final class CRPropertyDescriptor extends PropertyDescriptor {
public static final String RENDERER = "renderer";
private PropertyChangeAdapter l; private PropertyChangeAdapter l;
@ -51,7 +51,7 @@ public final class CRPropertyDescriptor extends PropertyDescriptor {
} }
public CRPropertyDescriptor setRendererClass(Class<?> clazz) { public CRPropertyDescriptor setRendererClass(Class<?> clazz) {
this.putKeyValue(AbstractPropertyGroupModel.RENDERER, clazz); this.putKeyValue(RENDERER, clazz);
return this; return this;
} }

5
designer_base/src/com/fr/design/fun/ParameterWindowEditorProcessor.java

@ -1,8 +1,7 @@
package com.fr.design.fun; package com.fr.design.fun;
import com.fr.design.designer.creator.CRPropertyDescriptor;
import com.fr.stable.fun.mark.Immutable; import com.fr.stable.fun.mark.Immutable;
import java.beans.PropertyDescriptor;
/** /**
* Created by zpc on 16/7/21. * Created by zpc on 16/7/21.
@ -16,6 +15,6 @@ public interface ParameterWindowEditorProcessor extends Immutable {
/** /**
* 生成属性表 * 生成属性表
*/ */
PropertyDescriptor[] createPropertyDescriptor(Class<?> temp); CRPropertyDescriptor[] createPropertyDescriptor(Class<?> temp);
} }

6
designer_base/src/com/fr/design/fun/impl/AbstractParameterWindowEditorProcessor.java

@ -1,8 +1,8 @@
package com.fr.design.fun.impl; package com.fr.design.fun.impl;
import com.fr.design.designer.creator.CRPropertyDescriptor;
import com.fr.design.fun.ParameterWindowEditorProcessor; import com.fr.design.fun.ParameterWindowEditorProcessor;
import com.fr.stable.fun.mark.API; import com.fr.stable.fun.mark.API;
import java.beans.PropertyDescriptor;
/** /**
@ -25,7 +25,7 @@ public abstract class AbstractParameterWindowEditorProcessor implements Paramete
* 生成属性表 * 生成属性表
*/ */
@Override @Override
public PropertyDescriptor[] createPropertyDescriptor(Class<?> temp) { public CRPropertyDescriptor[] createPropertyDescriptor(Class<?> temp) {
return new PropertyDescriptor[0]; return new CRPropertyDescriptor[0];
} }
} }

4
designer_form/src/com/fr/design/designer/creator/XWParameterLayout.java

@ -73,9 +73,9 @@ public class XWParameterLayout extends XWAbsoluteLayout {
if (processor == null) { if (processor == null) {
return propertyTableEditor; return propertyTableEditor;
} }
PropertyDescriptor[] extraEditor = processor.createPropertyDescriptor(this.data.getClass()); CRPropertyDescriptor[] extraEditor = processor.createPropertyDescriptor(this.data.getClass());
return (CRPropertyDescriptor[]) ArrayUtils.addAll(propertyTableEditor, extraEditor); return ArrayUtils.addAll(propertyTableEditor, extraEditor);
} }
@Override @Override

Loading…
Cancel
Save