Package org.apache.isis.applib.util

Examples of org.apache.isis.applib.util.TitleBuffer



public class SimpleViewModel extends AbstractDomainObject implements ViewModel {

    public String title() {
        final TitleBuffer buf = new TitleBuffer();
        buf.append(name);
        return buf.toString();
    }
View Full Code Here


    /**
     * Defines the title that will be displayed on the user interface in order
     * to identity this object.
     */
    public String title() {
        final TitleBuffer t = new TitleBuffer();
        t.append(getCode());
        t.append(":", getDescription());
        return t.toString();
    }
View Full Code Here

    /**
     * Defines the title that will be displayed on the user interface in order
     * to identity this object.
     */
    public String title() {
        final TitleBuffer t = new TitleBuffer();
        t.append(getFirstName()).append(getLastName());
        return t.toString();
    }
View Full Code Here

    /**
     * Defines the title that will be displayed on the user interface in order
     * to identity this object.
     */
    public String title() {
        final TitleBuffer t = new TitleBuffer();
        t.append(getName());
        return t.toString();
    }
View Full Code Here

    /**
     * Defines the title that will be displayed on the user interface in order
     * to identity this object.
     */
    public String title() {
        final TitleBuffer t = new TitleBuffer();
        // null guard because NOF may call title while still setting
        // up the object
        final Product product = getProduct();
        if (product != null) {
            t.append(product.getCode());
        } else {
            t.append("???");
        }
        t.append("x", getQuantity());
        return t.toString();
    }
View Full Code Here

    // //////////////////////////////////////
    // Identification
    // //////////////////////////////////////

    public String title() {
        final TitleBuffer buf = new TitleBuffer();
        buf.append(getEventType().name()).append(" ").append(getTargetStr());
        if(getEventType()==EventType.ACTION_INVOCATION) {
            buf.append(" ").append(getMemberIdentifier());
        }
        buf.append(",").append(getState());
        return buf.toString();
    }
View Full Code Here

    // //////////////////////////////////////
    // Identification
    // //////////////////////////////////////

    public String title() {
        final TitleBuffer buf = new TitleBuffer();
        buf.append(getTargetStr());
        buf.append(" ").append(getMemberIdentifier());
        return buf.toString();
    }
View Full Code Here

@ObjectType("MOBJ")
public class MyObject extends AbstractDomainObject {

    public String title() {
        final TitleBuffer title = new TitleBuffer();
        title.append(name);
        return title.toString();
    }
View Full Code Here

    private final static org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ToDoItem.class);
    //endregion

    // region > title, icon
    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(HiddenException ex) {
                // ignore
            }
        }
        return buf.toString();
    }
View Full Code Here

    private final static org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ToDoItem.class);
    //endregion

    // region > title, icon
    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(HiddenException ex) {
                // ignore
            }
        }
        return buf.toString();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.util.TitleBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.