本文整理汇总了Java中org.apache.isis.applib.annotation.PropertyLayout类的典型用法代码示例。如果您正苦于以下问题:Java PropertyLayout类的具体用法?Java PropertyLayout怎么用?Java PropertyLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyLayout类属于org.apache.isis.applib.annotation包,在下文中一共展示了PropertyLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: if
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = ActionDomainEvent.class
)
@ActionLayout(
contributed = Contributed.AS_ASSOCIATION
)
@Property(
)
@PropertyLayout(
hidden=Where.REFERENCES_PARENT
)
@MemberOrder(name="Feature", sequence = "4")
public ApplicationFeatureViewModel $$(final ApplicationPermission permission) {
if(permission.getFeatureType() == null) {
return null;
}
final ApplicationFeatureId featureId = getFeatureId(permission);
return ApplicationFeatureViewModel.newViewModel(featureId, applicationFeatureRepository, container);
}
示例2: getParent
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
domainEvent = ParentDomainEvent.class
)
@PropertyLayout(hidden=Where.ALL_TABLES)
@MemberOrder(name = "Parent", sequence = "2.6")
public ApplicationFeatureViewModel getParent() {
final ApplicationFeatureId parentId;
parentId = getType() == ApplicationFeatureType.MEMBER
? getFeatureId().getParentClassId()
: getFeatureId().getParentPackageId();
if(parentId == null) {
return null;
}
final ApplicationFeature feature = applicationFeatureRepository.findFeature(parentId);
if (feature == null) {
return null;
}
final Class<?> cls = viewModelClassFor(parentId, applicationFeatureRepository);
return (ApplicationFeatureViewModel) container.newViewModelInstance(cls, parentId.asEncodedString());
}
示例3: getName
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
domainEvent = NameDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(
hidden=Where.OBJECT_FORMS
)
@MemberOrder(name="Id", sequence = "1")
public String getName() {
final StringBuilder buf = new StringBuilder();
if(getFamilyName() != null) {
if(getKnownAs() != null) {
buf.append(getKnownAs());
} else {
buf.append(getGivenName());
}
buf.append(' ')
.append(getFamilyName())
.append(" (").append(getUsername()).append(')');
} else {
buf.append(getUsername());
}
return buf.toString();
}
示例4: getNotification
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@PropertyLayout(multiLine = 5)
public String getNotification(){
final StringBuilder result = new StringBuilder();
final String noBuyerBarcodeMatch = buyerBarcodeMatchValidation();
if (noBuyerBarcodeMatch!=null){
result.append(noBuyerBarcodeMatch);
}
final String sameInvoiceNumberCheck = doubleInvoiceCheck();
if (sameInvoiceNumberCheck !=null){
result.append(sameInvoiceNumberCheck);
}
return result.length()>0 ? result.toString() : null;
}
示例5: getNotification
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@PropertyLayout(multiLine = 5)
public String getNotification(){
final StringBuilder result = new StringBuilder();
final String noBuyerBarcodeMatch = buyerBarcodeMatchValidation();
if (noBuyerBarcodeMatch!=null){
result.append(noBuyerBarcodeMatch);
}
final String sameOrderNumberCheck = doubleOrderCheck();
if (sameOrderNumberCheck !=null){
result.append(sameOrderNumberCheck);
}
return result.length()>0 ? result.toString() : null;
}
示例6: getApplicationTenancy
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@PropertyLayout(
hidden = Where.ALL_TABLES,
describedAs = "Determines those users for whom this object is available to view and/or modify."
)
@Programmatic
public ApplicationTenancy getApplicationTenancy() {
final ApplicationTenancy applicationTenancy = applicationTenancyRepository.findByPathCached(applicationTenancyPath);
if (applicationTenancy == null) {
throw new FatalException("Domain Object without Application Tenancy.");
}
return applicationTenancy;
}
示例7: getNotYetComplete
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@PropertyLayout(
multiLine=5
)
public String getNotYetComplete() {
final List<ToDoItem> notYetComplete = getItemsNotYetComplete();
return Joiner.on(", ").join(
Iterables.transform(subcategories(), summarizeBySubcategory(notYetComplete)));
}
示例8: getComplete
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@PropertyLayout(
multiLine=5
)
public String getComplete() {
final List<ToDoItem> completeInCategory = getItemsComplete();
return Joiner.on(", ").join(
Iterables.transform(subcategories(), summarizeBySubcategory(completeInCategory)));
}
示例9: getMetadataRegionDummyProperty
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
/**
* Exists just that the Wicket viewer will render an (almost) empty metadata region (on which the
* framework contributed mixin actions will be attached). The field itself can optionally be hidden
* using CSS.
*/
@NotPersistent
@Property(domainEvent = MetadataRegionDummyPropertyDomainEvent.class, notPersisted = true)
@PropertyLayout(labelPosition = LabelPosition.NONE, hidden = Where.ALL_TABLES)
@MemberOrder(name="Metadata", sequence = "1")
public String getMetadataRegionDummyProperty() {
return null;
}
示例10: getPackageName
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
domainEvent = PackageNameDomainEvent.class
)
@PropertyLayout(typicalLength=ApplicationFeature.TYPICAL_LENGTH_PKG_FQN)
@MemberOrder(name="Id", sequence = "2.2")
public String getPackageName() {
return getFeatureId().getPackageName();
}
示例11: getClassName
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
/**
* For packages, will be null. Is in this class (rather than subclasses) so is shown in
* {@link ApplicationPackage#getContents() package contents}.
*/
@Property(
domainEvent = ClassNameDomainEvent.class
)
@PropertyLayout(typicalLength=ApplicationFeature.TYPICAL_LENGTH_CLS_NAME)
@MemberOrder(name="Id", sequence = "2.3")
public String getClassName() {
return getFeatureId().getClassName();
}
示例12: getMemberName
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
/**
* For packages and class names, will be null.
*/
@Property(
domainEvent = MemberNameDomainEvent.class
)
@PropertyLayout(typicalLength=ApplicationFeature.TYPICAL_LENGTH_MEMBER_NAME)
@MemberOrder(name="Id", sequence = "2.4")
public String getMemberName() {
return getFeatureId().getMemberName();
}
示例13: getUser
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
domainEvent = UserDomainEvent.class
)
@PropertyLayout(hidden=Where.PARENTED_TABLES)
@MemberOrder(name = "Permission", sequence = "1")
public ApplicationUser getUser() {
return applicationUserRepository.findOrCreateUserByUsername(getUsername());
}
示例14: getVerb
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
domainEvent = VerbDomainEvent.class
)
@PropertyLayout(typicalLength=UserPermissionViewModel.TYPICAL_LENGTH_VERB)
@MemberOrder(name="Permission", sequence = "2")
public String getVerb() {
return changingGranted
? "Can change"
: viewingGranted
? "Can view"
: "No access to";
}
示例15: getFeature
import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
domainEvent = FeatureDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(hidden=Where.REFERENCES_PARENT)
@MemberOrder(name = "Permission",sequence = "4")
public ApplicationFeatureViewModel getFeature() {
if(getFeatureId() == null) {
return null;
}
return ApplicationFeatureViewModel.newViewModel(getFeatureId(), applicationFeatureRepository, container);
}