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


Java TitleBuffer.toString方法代码示例

本文整理汇总了Java中org.apache.isis.applib.util.TitleBuffer.toString方法的典型用法代码示例。如果您正苦于以下问题:Java TitleBuffer.toString方法的具体用法?Java TitleBuffer.toString怎么用?Java TitleBuffer.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.isis.applib.util.TitleBuffer的用法示例。


在下文中一共展示了TitleBuffer.toString方法的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() {

		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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: titleOf

import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
private String titleOf(final Applicability applicability) {
    final TitleBuffer buf = new TitleBuffer();
    buf.append(simpleNameOf(applicability.getDomainType()));
    buf.append(" [");
    buf.append(applicability.getAtPath());
    buf.append("]: ");
    // can't use titleService.titleOf(...) if using guava, can't call events within events...
    buf.append(applicability.getTaxonomy().getName());
    return buf.toString();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:11,代码来源:Applicability.java

示例13: title

import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
/**
 * Titulo identificatorio en la UI
 * 
 * @return String
 */
@Named("Auto")
public String title() {
	final TitleBuffer buf = new TitleBuffer();
	buf.append(getPatente());
	return buf.toString();
}
 
开发者ID:rentacarPDF,项目名称:Proyecto,代码行数:12,代码来源:Disponible.java

示例14: title

import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
/**
 * Titulo identificatorio en la UI
 * 
 * @return String
 */
@Named("Auto")
public String title() {
	final TitleBuffer buf = new TitleBuffer();
	SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
	buf.append(formato.format(getFecha().toDate()));
	return buf.toString();
}
 
开发者ID:rentacarPDF,项目名称:Proyecto,代码行数:13,代码来源:AutoPorFecha.java

示例15: title

import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
/**
 * Titulo identificatorio en la UI.
 * 
 * @return String
 */
@Named("Estadistica")
public String title() {
	final TitleBuffer buf = new TitleBuffer();
	buf.append(getPatente());
	return buf.toString();
}
 
开发者ID:rentacarPDF,项目名称:Proyecto,代码行数:12,代码来源:Estadistica.java


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