当前位置: 首页>>代码示例>>Java>>正文


Java TitleBuffer类代码示例

本文整理汇总了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();
    }
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:18,代码来源:ToDoItem.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:19,代码来源:IncomingInvoice.java

示例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();
    }
 
开发者ID:estatio,项目名称:estatio,代码行数:20,代码来源:Order.java

示例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();
    }
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:13,代码来源:AuditEntry.java

示例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();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-excel,代码行数:13,代码来源:ExcelModuleDemoToDoItem.java

示例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();
}
 
开发者ID:IUSISProyecto,项目名称:IUSIS,代码行数:9,代码来源:ToDoItem.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:9,代码来源:AgreementRoleCommunicationChannel.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:8,代码来源:DirectDebitInvoiceViewModel.java

示例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();
	}
 
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:ProjectRole.java

示例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;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:14,代码来源:Person.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:8,代码来源:OrganisationPreviousName.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:9,代码来源:FixedAssetRole.java

示例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();

}
 
开发者ID:estatio,项目名称:estatio,代码行数:8,代码来源:FixedAssetFinancialAccount.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:15,代码来源:InvoiceCalculationParameters.java

示例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();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:12,代码来源:Alias.java


注:本文中的org.apache.isis.applib.util.TitleBuffer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。