Browse Source
* commit '94812bbd237a643e296a77ff4ce039947be99716': 调æupdate 调整格式化 remove extraButtonPorviders update interface.xml_tag update EditToolBar add interfacemaster
richie
8 years ago
3 changed files with 92 additions and 16 deletions
@ -0,0 +1,41 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.form.ui.Widget; |
||||
import com.fr.stable.fun.mark.Mutable; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* 报表工具栏设计器端拓展,用于配置按钮额外属性 |
||||
* Created by harry on 2016-12-23. |
||||
*/ |
||||
public interface ExtraButtonToolBarProvider extends Mutable { |
||||
|
||||
String XML_TAG = "ExtraButtonToolBarProvider"; |
||||
|
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
/** |
||||
* 用于添加属性面板 |
||||
* |
||||
* @param centerPane 面板 |
||||
*/ |
||||
void updateCenterPane(JPanel centerPane); |
||||
|
||||
/** |
||||
* 更新界面 |
||||
* |
||||
* @param widget 控件 |
||||
* @param card 卡片布局 |
||||
* @param centerPane 面板 |
||||
*/ |
||||
void populate(Widget widget, CardLayout card, JPanel centerPane); |
||||
|
||||
/** |
||||
* 保存界面设置 |
||||
* |
||||
* @param widget 控件 |
||||
*/ |
||||
void update(Widget widget); |
||||
} |
@ -0,0 +1,19 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.ExtraButtonToolBarProvider; |
||||
import com.fr.stable.fun.impl.AbstractProvider; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
/** |
||||
* Created by harry on 2016-12-23. |
||||
*/ |
||||
@API(level = ExtraButtonToolBarProvider.CURRENT_LEVEL) |
||||
public abstract class AbstractExtraButtonToolBarProvider extends AbstractProvider implements ExtraButtonToolBarProvider { |
||||
public int currentAPILevel() { |
||||
return ExtraButtonToolBarProvider.CURRENT_LEVEL; |
||||
} |
||||
|
||||
public String mark4Provider() { |
||||
return getClass().getName(); |
||||
} |
||||
} |
Loading…
Reference in new issue