本文整理了Java中com.manydesigns.elements.annotations.Label
类的一些代码示例,展示了Label
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label
类的具体详情如下:
包路径:com.manydesigns.elements.annotations.Label
类名称:Label
暂无
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("timestamp.property")
public String getDatabaseBlobTimestampProperty() {
return databaseBlobTimestampProperty;
}
代码示例来源:origin: com.manydesigns/elements
public static String getLabel(PropertyAccessor accessor, TextProvider textProvider) {
String label;
if (accessor.isAnnotationPresent(LabelI18N.class)) {
String text = accessor.getAnnotation(LabelI18N.class).value();
logger.debug("LabelI18N annotation present with value: {}", text);
label = textProvider.getText(text);
} else if (accessor.isAnnotationPresent(Label.class)) {
String text = accessor.getAnnotation(Label.class).value();
logger.debug("Label annotation present with value: {}", text);
label = textProvider.getText(text);
} else {
label = Util.guessToWords(accessor.getName());
logger.debug("Setting label from property name: {}", label);
}
return label;
}
代码示例来源:origin: ManyDesigns/Portofino
public static String getLabel(PropertyAccessor accessor, TextProvider textProvider) {
String label;
if (accessor.isAnnotationPresent(LabelI18N.class)) {
String text = accessor.getAnnotation(LabelI18N.class).value();
logger.debug("LabelI18N annotation present with value: {}", text);
label = textProvider.getText(text);
} else if (accessor.isAnnotationPresent(Label.class)) {
String text = accessor.getAnnotation(Label.class).value();
logger.debug("Label annotation present with value: {}", text);
label = textProvider.getText(text);
} else {
label = Util.guessToWords(accessor.getName());
logger.debug("Setting label from property name: {}", label);
}
return label;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("users.table")
public String getUserTableName() {
return userTableName;
}
代码示例来源:origin: com.manydesigns/portofino-crud
protected void setupPropertyEdits() {
if(classAccessor == null) {
return;
}
PropertyAccessor[] propertyAccessors = classAccessor.getProperties();
propertyEdits = new CrudPropertyEdit[propertyAccessors.length];
for (int i = 0; i < propertyAccessors.length; i++) {
CrudPropertyEdit edit = new CrudPropertyEdit();
PropertyAccessor propertyAccessor = propertyAccessors[i];
edit.name = propertyAccessor.getName();
com.manydesigns.elements.annotations.Label labelAnn =
propertyAccessor.getAnnotation(com.manydesigns.elements.annotations.Label.class);
edit.label = labelAnn != null ? labelAnn.value() : null;
Enabled enabledAnn = propertyAccessor.getAnnotation(Enabled.class);
edit.enabled = enabledAnn != null && enabledAnn.value();
InSummary inSummaryAnn = propertyAccessor.getAnnotation(InSummary.class);
edit.inSummary = inSummaryAnn != null && inSummaryAnn.value();
Insertable insertableAnn = propertyAccessor.getAnnotation(Insertable.class);
edit.insertable = insertableAnn != null && insertableAnn.value();
Updatable updatableAnn = propertyAccessor.getAnnotation(Updatable.class);
edit.updatable = updatableAnn != null && updatableAnn.value();
Searchable searchableAnn = propertyAccessor.getAnnotation(Searchable.class);
edit.searchable = searchableAnn != null && searchableAnn.value();
propertyEdits[i] = edit;
}
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("username.property")
public String getUserNameProperty() {
return userNameProperty;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("token.property")
public String getUserTokenProperty() {
return userTokenProperty;
}
代码示例来源:origin: ManyDesigns/Portofino
@Label("driver major/minor version")
public String getDriverMajorMinorVersion() {
return driverMajorMinorVersion;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("password.property")
public String getUserPasswordProperty() {
return userPasswordProperty;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("password.encryption.algorithm")
public String getEncryptionAlgorithm() {
return encryptionAlgorithm;
}
代码示例来源:origin: com.manydesigns/portofino-model
@Label("database major/minor version")
public String getDatabaseMajorMinorVersion() {
return databaseMajorMinorVersion;
}
代码示例来源:origin: com.manydesigns/portofino-base
@Label("servlet API version")
public String getServletApiVersion() {
return servletApiVersion;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("file.name.property")
public String getDatabaseBlobFileNameProperty() {
return databaseBlobFileNameProperty;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("content.type.property")
public String getDatabaseBlobContentTypeProperty() {
return databaseBlobContentTypeProperty;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("user.id.property")
public String getUserIdProperty() {
return userIdProperty;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("property.that.links.to.group")
public String getGroupLinkProperty() {
return groupLinkProperty;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("property.that.links.to.user")
public String getUserLinkProperty() {
return userLinkProperty;
}
代码示例来源:origin: com.manydesigns/portofino-model
@Label("driver major/minor version")
public String getDriverMajorMinorVersion() {
return driverMajorMinorVersion;
}
代码示例来源:origin: ManyDesigns/Portofino
@Label("database major/minor version")
public String getDatabaseMajorMinorVersion() {
return databaseMajorMinorVersion;
}
代码示例来源:origin: com.manydesigns/portofino-admin
@Label("email.property")
public String getUserEmailProperty() {
return userEmailProperty;
}
内容来源于网络,如有侵权,请联系作者删除!