superman
8 years ago
3 changed files with 52 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,20 @@ |
|||||||
|
package com.fr.design.fun.impl; |
||||||
|
|
||||||
|
import com.fr.design.fun.DesignerStartOpenFileProcessor; |
||||||
|
import com.fr.stable.fun.mark.API; |
||||||
|
|
||||||
|
import static com.fr.stable.fun.mark.Layer.DEFAULT_LAYER_INDEX; |
||||||
|
|
||||||
|
/** |
||||||
|
* Created by rinoux on 2016/12/16. |
||||||
|
*/ |
||||||
|
@API(level = DesignerStartOpenFileProcessor.CURRENT_LEVEL) |
||||||
|
public class AbstractDesignerStartOpenFileProcessor { |
||||||
|
public int currentAPILevel() { |
||||||
|
return DesignerStartOpenFileProcessor.CURRENT_LEVEL; |
||||||
|
} |
||||||
|
|
||||||
|
public int layerIndex() { |
||||||
|
return DEFAULT_LAYER_INDEX; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue