superman
8 years ago
3 changed files with 50 additions and 0 deletions
@ -0,0 +1,20 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.file.FILE; |
||||
import com.fr.stable.fun.mark.Immutable; |
||||
|
||||
/** |
||||
* 指定设计器启动时默认打开的文件 |
||||
* Created by rinoux on 2016/12/16. |
||||
*/ |
||||
public interface DesignerStartOpenFileProcessor extends Immutable { |
||||
|
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
String XML_TAG = "DesignerStartOpenFileProcessor"; |
||||
|
||||
/** |
||||
* 显示需要打开的报表文件 |
||||
*/ |
||||
FILE fileToShow(); |
||||
} |
@ -0,0 +1,18 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.DesignerStartOpenFileProcessor; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
/** |
||||
* Created by rinoux on 2016/12/16. |
||||
*/ |
||||
@API(level = DesignerStartOpenFileProcessor.CURRENT_LEVEL) |
||||
public abstract class AbstractDesignerStartOpenFileProcessor implements DesignerStartOpenFileProcessor { |
||||
public int currentAPILevel() { |
||||
return DesignerStartOpenFileProcessor.CURRENT_LEVEL; |
||||
} |
||||
|
||||
public int layerIndex() { |
||||
return DEFAULT_LAYER_INDEX; |
||||
} |
||||
} |
Loading…
Reference in new issue