Browse Source

Merge pull request #871 in BA/design from ~HUGH/design:release to release

* commit 'cc4994a9eb6feea66425bd927d98322045ac9a58':
  去掉之前接口冗余操作
  表单支持背景接口
  增加限制,不允许添加同分组名的插件
master
superman 8 years ago
parent
commit
b75425f52a
  1. 33
      designer_base/src/com/fr/design/gui/style/BackgroundSpecialPane.java

33
designer_base/src/com/fr/design/gui/style/BackgroundSpecialPane.java

@ -1,6 +1,12 @@
package com.fr.design.gui.style; package com.fr.design.gui.style;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.event.UIObserverListener; import com.fr.design.event.UIObserverListener;
import com.fr.design.fun.BackgroundQuickUIProvider;
import com.fr.design.mainframe.backgroundpane.*; import com.fr.design.mainframe.backgroundpane.*;
/** /**
@ -40,11 +46,26 @@ public class BackgroundSpecialPane extends BackgroundPane{
fireStateChanged(); fireStateChanged();
} }
}); });
return new BackgroundQuickPane[] { //hugh:表单支持背景接口
new NullBackgroundQuickPane(), List<BackgroundQuickPane> kinds = new ArrayList<BackgroundQuickPane>();
colorBackgroundPane,
imageBackgroundPane, kinds.add(new NullBackgroundQuickPane());
gradientPane kinds.add(colorBackgroundPane);
}; kinds.add(imageBackgroundPane);
kinds.add(gradientPane);
Set<BackgroundQuickUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(BackgroundQuickUIProvider.MARK_STRING);
for (BackgroundQuickUIProvider provider : providers) {
BackgroundQuickPane newTypePane = provider.appearanceForBackground();
newTypePane.registerChangeListener(new UIObserverListener() {
@Override
public void doChange() {
fireStateChanged();
}
});
kinds.add(newTypePane);
}
return kinds.toArray(new BackgroundQuickPane[kinds.size()]);
} }
} }
Loading…
Cancel
Save