zack
8 years ago
4 changed files with 89 additions and 1 deletions
@ -0,0 +1,24 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.design.gui.ibutton.UIButton; |
||||
import com.fr.stable.fun.mark.Mutable; |
||||
|
||||
/** |
||||
* 设计器面板最上方的按钮接口(保存,赋值,撤销同级) |
||||
* Coder: zack |
||||
* Date: 2016/9/22 |
||||
* Time: 15:40 |
||||
*/ |
||||
public interface DesignerFrameUpButtonProvider extends Mutable { |
||||
|
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
String XML_TAG = "DesignerFrameUpButtonProvider"; |
||||
|
||||
/** |
||||
* 根据当前的设计状态返回最上层工具按钮 |
||||
* @param menuState 现在设计器的设计状态 |
||||
* @return 按钮 |
||||
*/ |
||||
UIButton[] getUpButtons(int menuState); |
||||
} |
@ -0,0 +1,23 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.DesignerFrameUpButtonProvider; |
||||
import com.fr.design.gui.ibutton.UIButton; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
/** |
||||
* Coder: zack |
||||
* Date: 2016/9/22 |
||||
* Time: 15:50 |
||||
*/ |
||||
@API(level = DesignerFrameUpButtonProvider.CURRENT_LEVEL) |
||||
public abstract class AbstractDsinFrameUpButtonProvider implements DesignerFrameUpButtonProvider { |
||||
@Override |
||||
public UIButton[] getUpButtons(int menuState) { |
||||
return new UIButton[0]; |
||||
} |
||||
|
||||
@Override |
||||
public String mark4Provider() { |
||||
return getClass().getName(); |
||||
} |
||||
} |
Loading…
Reference in new issue