本文整理汇总了Java中org.apache.isis.applib.util.TitleBuffer.append方法的典型用法代码示例。如果您正苦于以下问题:Java TitleBuffer.append方法的具体用法?Java TitleBuffer.append怎么用?Java TitleBuffer.append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.isis.applib.util.TitleBuffer
的用法示例。
在下文中一共展示了TitleBuffer.append方法的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: 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();
}
示例8: 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();
}
示例9: 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();
}
示例10: 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();
}
示例11: 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();
}
示例12: title
import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
public String title() {
final TitleBuffer buf = new TitleBuffer();
if(getSessionTitle().length()>20) {
buf.append(getSessionTitle().substring(0, 20)).append("...");
} else {
buf.append(getSessionTitle());
}
if(getSpeaker() != null) {
buf.append("(").append(container.titleOf(getSpeaker())).append(")");
}
return buf.toString();
}
示例13: 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) {
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
buf.append(" due by ", sdf.format(getDueBy()));
}
}
return buf.toString();
}
示例14: title
import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
/**
* Titulo identificatorio en la UI.
*
* @return String
*/
public String title() {
final TitleBuffer buf = new TitleBuffer();
buf.append(getNombre()+" "+getApellido());
return buf.toString();
}
示例15: title
import org.apache.isis.applib.util.TitleBuffer; //导入方法依赖的package包/类
/**
* Titulo identificatorio en la UI. Retorna el nombre de la Categoria.
*
* @return String
*/
public String title() {
final TitleBuffer buf = new TitleBuffer();
buf.append(getNombre());
return buf.toString();
}