本文整理汇总了Java中org.apache.isis.applib.util.TitleBuffer类的典型用法代码示例。如果您正苦于以下问题:Java TitleBuffer类的具体用法?Java TitleBuffer怎么用?Java TitleBuffer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TitleBuffer类属于org.apache.isis.applib.util包,在下文中一共展示了TitleBuffer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer();
buf.append(getDescription());
if (isComplete()) {
buf.append("- Completed!");
} else {
try {
final LocalDate dueBy = wrapperFactory.wrap(this).getDueBy();
if (dueBy != null) {
buf.append(" due by", dueBy);
}
} catch(final HiddenException ignored) {
}
}
return buf.toString();
}
示例2: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer();
final Optional<Document> document = lookupAttachedPdfService.lookupIncomingInvoicePdfFrom(this);
document.ifPresent(d -> buf.append(d.getName()));
final Party seller = getSeller();
if(seller != null) {
buf.append(": ", seller);
}
final String invoiceNumber = getInvoiceNumber();
if(invoiceNumber != null) {
buf.append(", ", invoiceNumber);
}
return buf.toString();
}
示例3: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer();
final Optional<Document> document = lookupAttachedPdfService.lookupOrderPdfFrom(this);
document.ifPresent(d -> buf.append(d.getName()));
final Party seller = getSeller();
if(seller != null) {
buf.append(": ", seller);
}
final String orderNumber = getOrderNumber();
if(orderNumber != null) {
buf.append(", ", orderNumber);
}
return buf.toString();
}
示例4: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
// nb: not thread-safe
// formats defined in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
final TitleBuffer buf = new TitleBuffer();
buf.append(format.format(getTimestamp()));
buf.append(" - ", getTargetStr());
buf.append(", ", getPropertyId());
return buf.toString();
}
示例5: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer();
buf.append(getDescription());
if (isComplete()) {
buf.append("- Completed!");
} else {
if (getDueBy() != null) {
buf.append(" due by", getDueBy());
}
}
return buf.toString();
}
示例6: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer();
buf.append(getDescription());
if (isComplete()) {
buf.append("- Completed!");
}
return buf.toString();
}
示例7: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
return new TitleBuffer()
.append(titleService.titleOf(getType()))
.append(":")
.append(titleService.titleOf(getRole()))
.append(titleService.titleOf(getCommunicationChannel()))
.toString();
}
示例8: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
return new TitleBuffer()
.append(dueDate.toString("dd-MM-yyyy"))
.append(",", getSeller().getName())
.append(" :", getGrossAmount())
.toString();
}
示例9: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer()
.append(titleService.titleOf(getParty()))
.append(titleService.titleOf(getType()))
.append("for")
.append(titleService.titleOf(getProject()));
return buf.toString();
}
示例10: change
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public Person change(
final PersonGenderType gender,
final @Parameter(optionality = Optionality.OPTIONAL, regexPattern = InitialsType.Meta.REGEX, regexPatternReplacement = InitialsType.Meta.REGEX_DESCRIPTION) String initials,
final String firstName,
final String lastName) {
setGender(gender);
setInitials(initials);
setFirstName(firstName);
setLastName(lastName);
TitleBuffer tb = new TitleBuffer();
setName(tb.append(getLastName()).append(",", getFirstName()).toString());
return this;
}
示例11: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
return new TitleBuffer()
.append(getName())
.append("until")
.append(getEndDate().toString("dd-MMM-yyyy"))
.toString();
}
示例12: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer()
.append(titleService.titleOf(getParty()))
.append(titleService.titleOf(getType()))
.append("for")
.append(titleService.titleOf(getAsset()));
return buf.toString();
}
示例13: title
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer()
.append(titleService.titleOf(getFixedAsset()))
.append(titleService.titleOf(getFinancialAccount()));
return buf.toString();
}
示例14: toString
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
public String toString() {
TitleBuffer tb = new TitleBuffer();
tb
.append(" -", property().getReference())
.append(" -", leasesToReferences())
.append(" -", leaseItemTypes())
.append(" -", invoiceDueDate())
.append(" -", new LocalDateInterval(
startDueDate,
nextDueDate,
IntervalEnding.EXCLUDING_END_DATE))
.toString();
return tb.toString();
}
示例15: titleOf
import org.apache.isis.applib.util.TitleBuffer; //导入依赖的package包/类
private String titleOf(final Alias alias) {
final TitleBuffer buf = new TitleBuffer();
buf.append(alias.getAtPath());
buf.append(",");
buf.append(alias.getAliasTypeId());
buf.append(",");
buf.append(alias.getReference());
buf.append(":");
buf.append(titleService.titleOf(alias.getAliased()));
return buf.toString();
}