- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.kaif.model.zone.ZoneInfo.getTheme()
方法的一些代码示例,展示了ZoneInfo.getTheme()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneInfo.getTheme()
方法的具体详情如下:
包路径:io.kaif.model.zone.ZoneInfo
类名称:ZoneInfo
方法名:getTheme
暂无
代码示例来源:origin: kaif-open/kaif
@CacheEvict(value = "listAdministrators", key = "#a0.zone")
public ZoneInfo create(ZoneInfo zoneInfo) {
jdbc().update(""
+ " INSERT "
+ " INTO ZoneInfo "
+ " (zone, aliasName, theme, voteAuthority, debateAuthority, writeAuthority, "
+ " createTime, adminAccountIds, hideFromTop) "
+ " VALUES "
+ questions(9),
zoneInfo.getZone().value(),
zoneInfo.getAliasName(),
zoneInfo.getTheme(),
zoneInfo.getVoteAuthority().name(),
zoneInfo.getDebateAuthority().name(),
zoneInfo.getWriteAuthority().name(),
Timestamp.from(zoneInfo.getCreateTime()),
createUuidArray(zoneInfo.getAdminAccountIds().stream()),
zoneInfo.isHideFromTop());
createZoneAdmin(zoneInfo);
return zoneInfo;
}
代码示例来源:origin: kaif-open/kaif
@Test
public void updateTheme() throws Exception {
service.createDefault("twfaq", "TW FAQ");
service.loadZone(Zone.valueOf("twfaq"));//populate cache
service.updateTheme(Zone.valueOf("twfaq"), ZoneInfo.THEME_KAIF);
assertEquals(ZoneInfo.THEME_KAIF, service.loadZone(Zone.valueOf("twfaq")).getTheme());
}
代码示例来源:origin: kaif-open/kaif
@Test
public void createDefault() throws Exception {
ZoneInfo zoneInfo = service.createDefault("abc", "Abc");
ZoneInfo loaded = zoneDao.loadZoneWithoutCache(Zone.valueOf("abc"));
assertEquals(zoneInfo, loaded);
assertEquals("abc", loaded.getName());
assertEquals("Abc", loaded.getAliasName());
assertEquals(Authority.CITIZEN, loaded.getVoteAuthority());
assertEquals(Authority.CITIZEN, loaded.getWriteAuthority());
assertEquals(Authority.CITIZEN, loaded.getDebateAuthority());
assertEquals(ZoneInfo.THEME_DEFAULT, loaded.getTheme());
assertFalse(loaded.isHideFromTop());
assertEquals(0, loaded.getAdminAccountIds().size());
}
代码示例来源:origin: kaif-open/kaif
@Test
public void createKaif() throws Exception {
ZoneInfo zoneInfo = service.createKaif("faq", "FAQ");
ZoneInfo loaded = zoneDao.loadZoneWithoutCache(Zone.valueOf("faq"));
assertEquals(zoneInfo, loaded);
assertEquals("faq", loaded.getZone().value());
assertEquals("FAQ", loaded.getAliasName());
assertEquals(Authority.CITIZEN, loaded.getVoteAuthority());
assertEquals(Authority.CITIZEN, loaded.getDebateAuthority());
assertEquals(Authority.FORBIDDEN, loaded.getWriteAuthority());
assertEquals(ZoneInfo.THEME_KAIF, loaded.getTheme());
assertTrue(loaded.isHideFromTop());
assertEquals(0, loaded.getAdminAccountIds().size());
}
代码示例来源:origin: kaif-open/kaif
@Test
public void createByUser() throws Exception {
accountDao.changeTotalVotedDebate(citizen.getAccountId(), 10, 0);
ZoneInfo zoneInfo = service.createByUser("aaa", "this is aaa", citizen);
ZoneInfo loaded = zoneDao.loadZoneWithoutCache(Zone.valueOf("aaa"));
assertEquals(zoneInfo, loaded);
assertEquals("aaa", loaded.getName());
assertEquals("this is aaa", loaded.getAliasName());
assertEquals(Authority.CITIZEN, loaded.getVoteAuthority());
assertEquals(Authority.CITIZEN, loaded.getWriteAuthority());
assertEquals(Authority.CITIZEN, loaded.getDebateAuthority());
assertEquals(ZoneInfo.THEME_DEFAULT, loaded.getTheme());
assertFalse(loaded.isHideFromTop());
assertEquals(citizen.getAccountId(), loaded.getAdminAccountIds().get(0));
List<ZoneInfo> zones = zoneDao.listZonesByAdmin(citizen.getAccountId());
assertEquals(zoneInfo, zones.get(0));
}
我有两个 Activity :MainActivity.java 和 ThemeActivity.java。在主题 Activity 中,我想在静态方法中使用 getTheme() 方法从主 Acti
当我多次将额外属性应用于 AppTheme 时,它会覆盖前一个。这是我正在使用的代码: 主要 Activity : @Override protected void onCreate(@Nulla
我意识到,对于 Context.getTheme() , 如果我们使用 Application 通常效果不佳作为 Context MyApplication.singletonInstance().g
context.getTheme.obtainStyledAttributes() 有什么区别和 context.obtainStyledAttributes()? 主题是我的应用风格吗? 最佳答案
本文整理了Java中io.kaif.model.zone.ZoneInfo.getTheme()方法的一些代码示例,展示了ZoneInfo.getTheme()的具体用法。这些代码示例主要来源于Git
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSlideMaster.getTheme()方法的一些代码示例,展示了XSLFSlideMaster.getTh
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSheet.getTheme()方法的一些代码示例,展示了XSLFSheet.getTheme()的具体用法。这
我想在 Android 应用程序中对图像运行一些 OpenCv 过滤器。我遇到了一个错误,我似乎无法找到它的起源。 堆栈跟踪: java.lang.NullPointerException: Atte
这是 fragment 的java文件代码: @SuppressLint({"NewApi", "ResourceAsColor"}) public void createCardView(Strin
我是一名优秀的程序员,十分优秀!