forked from fanruan/design
Starryi
3 years ago
6 changed files with 191 additions and 25 deletions
@ -0,0 +1,23 @@ |
|||||||
|
package com.fr.design.mainframe.theme.provider; |
||||||
|
|
||||||
|
import com.fr.stable.fun.impl.AbstractProvider; |
||||||
|
import com.fr.stable.fun.mark.API; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Starryi |
||||||
|
* @version 1.0 |
||||||
|
* Created by Starryi on 2021/9/7 |
||||||
|
*/ |
||||||
|
@API(level = ThemeManageActionProvider.CURRENT_LEVEL) |
||||||
|
public abstract class AbstractThemeManageActionProvider extends AbstractProvider implements ThemeManageActionProvider { |
||||||
|
|
||||||
|
@Override |
||||||
|
public int currentAPILevel() { |
||||||
|
return CURRENT_LEVEL; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String mark4Provider() { |
||||||
|
return getClass().getName(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,23 @@ |
|||||||
|
package com.fr.design.mainframe.theme.provider; |
||||||
|
|
||||||
|
import com.fr.stable.fun.impl.AbstractProvider; |
||||||
|
import com.fr.stable.fun.mark.API; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Starryi |
||||||
|
* @version 1.0 |
||||||
|
* Created by Starryi on 2021/9/7 |
||||||
|
*/ |
||||||
|
@API(level = ThemeProfileActionProvider.CURRENT_LEVEL) |
||||||
|
public abstract class AbstractThemeProfileActionProvider extends AbstractProvider implements ThemeProfileActionProvider { |
||||||
|
|
||||||
|
@Override |
||||||
|
public int currentAPILevel() { |
||||||
|
return CURRENT_LEVEL; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String mark4Provider() { |
||||||
|
return getClass().getName(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,28 @@ |
|||||||
|
package com.fr.design.mainframe.theme.provider; |
||||||
|
|
||||||
|
import com.fr.base.theme.TemplateTheme; |
||||||
|
import com.fr.base.theme.TemplateThemeConfig; |
||||||
|
import com.fr.design.gui.ibutton.UIButton; |
||||||
|
import com.fr.design.mainframe.theme.dialog.TemplateThemeDialog; |
||||||
|
import com.fr.stable.fun.mark.Mutable; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Starryi |
||||||
|
* @version 1.0 |
||||||
|
* Created by Starryi on 2021/9/7 |
||||||
|
*/ |
||||||
|
public interface ThemeManageActionProvider extends Mutable { |
||||||
|
|
||||||
|
String MARK_STRING = "ThemeManageActionProvider"; |
||||||
|
|
||||||
|
int CURRENT_LEVEL = 1; |
||||||
|
|
||||||
|
UIButton createButton(ThemeManageActionContext context); |
||||||
|
|
||||||
|
interface ThemeManageActionContext { |
||||||
|
|
||||||
|
TemplateThemeDialog getDialog(); |
||||||
|
|
||||||
|
TemplateThemeConfig<? extends TemplateTheme> getConfig(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,27 @@ |
|||||||
|
package com.fr.design.mainframe.theme.provider; |
||||||
|
|
||||||
|
import com.fr.base.theme.TemplateTheme; |
||||||
|
import com.fr.design.gui.ibutton.UIButton; |
||||||
|
import com.fr.design.mainframe.theme.TemplateThemeProfilePane; |
||||||
|
import com.fr.design.mainframe.theme.dialog.TemplateThemeDialog; |
||||||
|
import com.fr.stable.fun.mark.Mutable; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Starryi |
||||||
|
* @version 1.0 |
||||||
|
* Created by Starryi on 2021/9/7 |
||||||
|
*/ |
||||||
|
public interface ThemeProfileActionProvider extends Mutable { |
||||||
|
|
||||||
|
String MARK_STRING = "ThemeProfileActionProvider"; |
||||||
|
|
||||||
|
int CURRENT_LEVEL = 1; |
||||||
|
|
||||||
|
UIButton createButton(ThemeProfileActionContext context); |
||||||
|
|
||||||
|
interface ThemeProfileActionContext { |
||||||
|
TemplateThemeDialog getDialog(); |
||||||
|
|
||||||
|
TemplateThemeProfilePane<? extends TemplateTheme> getProfilePane(); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue