Browse Source

Merge pull request #103 in BA/design from ~RICHIE/design:dev to dev

* commit '0f54734d5afc7e9ba005c3d6df6e9def8caf5baf':
  web属性界面打不开
  给决策平台修改密码和认证等加一个事件监听,剩下的什么删除用户等还没有加
master
superman 9 years ago
parent
commit
c2d6c6758f
  1. 21
      designer_base/src/com/fr/design/fun/ElementUIProvider.java
  2. 2
      designer_base/src/com/fr/design/style/background/BackgroundFactory.java
  3. 6
      designer_base/src/com/fr/design/style/background/BackgroundPane.java
  4. 6
      designer_base/src/com/fr/design/style/background/BackgroundPane4Browser.java

21
designer_base/src/com/fr/design/fun/ElementUIProvider.java

@ -7,6 +7,7 @@ import com.fr.stable.fun.Level;
/**
* Created by richie on 16/4/25.
* 单元格元素和悬浮元素扩展,通过实现这个接口,可以在单元格中添加更多类型的元素.
*/
public interface ElementUIProvider extends Level {
@ -14,13 +15,33 @@ public interface ElementUIProvider extends Level {
int CURRENT_LEVEL = 1;
/**
* 单元格元素编辑器
* @return 编辑器
*/
Class<?> targetCellEditorClass();
/**
* 单元格内容
* @return 单元格内容
*/
Class<?> targetObjectClass();
/**
* 右侧的快速编辑器
* @return 编辑器
*/
QuickEditor<?> quickEditor();
/**
* 插件单元格元素
* @return 插入操作类
*/
Class<? extends UpdateAction> actionForInsertCellElement();
/**
* 插入悬浮元素
* @return 插入操作类
*/
Class<? extends UpdateAction> actionForInsertFloatElement();
}

2
designer_base/src/com/fr/design/style/background/BackgroundFactory.java

@ -87,7 +87,7 @@ public class BackgroundFactory {
return browser.keySet();
}
public static BackgroundUIWrapper getBrosweWrapper(Class<? extends Background> category) {
public static BackgroundUIWrapper getBrowserWrapper(Class<? extends Background> category) {
return browser.get(category);
}

6
designer_base/src/com/fr/design/style/background/BackgroundPane.java

@ -117,7 +117,7 @@ public class BackgroundPane extends BasicPane {
* Populate background.
*/
public void populate(Background background) {
BackgroundUIWrapper wrapper = BackgroundFactory.getWrapper(background == null ? null : background.getClass());
BackgroundUIWrapper wrapper = getBackgroundUIWrapper(background);
int index = wrapper.getIndex();
BackgroundDetailPane quickPane = getTabItemPane(background, index);
quickPane.populate(background);
@ -126,6 +126,10 @@ public class BackgroundPane extends BasicPane {
tabbedPane.validate();
}
protected BackgroundUIWrapper getBackgroundUIWrapper(Background background) {
return BackgroundFactory.getWrapper(background == null ? null : background.getClass());
}
/**
* Update background.
*/

6
designer_base/src/com/fr/design/style/background/BackgroundPane4Browser.java

@ -16,12 +16,16 @@ public class BackgroundPane4Browser extends BackgroundPane {
protected void initTabPane() {
int index = 0;
for (Class<? extends Background> key : BackgroundFactory.browserKindsOfKey()) {
BackgroundUIWrapper wrapper = BackgroundFactory.getBrosweWrapper(key);
BackgroundUIWrapper wrapper = BackgroundFactory.getBrowserWrapper(key);
wrapper.setIndex(index++);
tabbedPane.addTab(Inter.getLocText(wrapper.getTitle()), FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane());
}
}
protected BackgroundUIWrapper getBackgroundUIWrapper(Background background) {
return BackgroundFactory.getBrowserWrapper(background == null ? null : background.getClass());
}
protected BackgroundDetailPane getTabItemPane(Background background, int index) {
BackgroundDetailPane quickPane = cacheMap.get(index);
if (quickPane == null) {

Loading…
Cancel
Save