Package org.apache.isis.core.metamodel.adapter

Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.titleString()


    }

    @Override
    public int compare(final ObjectAdapter sortedElement) {
        final ObjectAdapter refTo = field.get(sortedElement);
        String sortedTitle = refTo == null ? null : refTo.titleString();
        sortedTitle = sortedTitle == null ? "" : sortedTitle;
        final int compareTo = sortedTitle.compareTo(title);
        return compareTo;
    }
View Full Code Here


                buf.append(",");
            }
            buf.append(abbreviated(titleOf(argumentAdapter), 8));
        }

        return adapter.titleString(null) + "." + objectAction.getName() + (buf.length()>0?"(" + buf.toString() + ")":"");
    }

    @Override
    public boolean hasAsRootPolicy() {
        return true;
View Full Code Here

    // //////////////////////////////////////
   
    // called by EntityLinkSelect2Panel
    String getInput() {
        final ObjectAdapter pendingElseCurrentAdapter = getModel().getPendingElseCurrentAdapter();
        return pendingElseCurrentAdapter != null? pendingElseCurrentAdapter.titleString(null): "(no object)";
    }

    // //////////////////////////////////////

    // called by EntityLinkSelect2Panel
View Full Code Here

        if(!getDeploymentType().isProduction()) {
            getSpecificationLoader().invalidateCacheFor(objectAdapter.getObject());
        }

        if(titleString == null) {
            String titleStr = objectAdapter.titleString(null);
            setTitle(titleStr);
        }
       
        addChildComponents(themeDiv, model);
       
View Full Code Here

        // REVIEW: this check is because Wicket 6.0.0 seems to call onEndRequest prior to onDetach
        // so by the time we get here, there is no session to use...
        if(IsisContext.inSession()) {
            ObjectAdapter objectAdapter = this.getObjectAdapter(ConcurrencyChecking.NO_CHECK);
            if (objectAdapter.isTitleAvailable()) {
                this.titleHint = objectAdapter.titleString();
            }
        }
    }

    public String getTitleHint() {
View Full Code Here

                buf.append(",");
            }
            buf.append(abbreviated(titleOf(argumentAdapter), 8));
        }

        return adapter.titleString(null) + "." + objectAction.getName() + (buf.length()>0?"(" + buf.toString() + ")":"");
    }

    @Override
    public boolean hasAsRootPolicy() {
        return true;
View Full Code Here

    // //////////////////////////////////////
   
    // called by EntityLinkSelect2Panel
    String getInput() {
        final ObjectAdapter pendingElseCurrentAdapter = getModel().getPendingElseCurrentAdapter();
        return pendingElseCurrentAdapter != null? pendingElseCurrentAdapter.titleString(null): "(no object)";
    }

    // //////////////////////////////////////

    // called by EntityLinkSelect2Panel
View Full Code Here

    public StandaloneValuePanel(final String id, final ValueModel valueModel) {
        super(id, valueModel);
        final ObjectAdapter objectAdapter = getModel().getObject();

        final String label = objectAdapter.titleString(null);
        add(new Label(ID_STANDALONE_VALUE, label));
    }

}
View Full Code Here

    public String getObjectAsString() {
        final ObjectAdapter adapter = getObject();
        if (adapter == null) {
            return null;
        }
        return adapter.titleString(null);
    }

    @Override
    public void setObject(final ObjectAdapter adapter) {
        super.setObject(adapter); // associated value
View Full Code Here

        final ObjectAdapter targetAdapter = getModel().getTargetAdapter();
        final ObjectAction objectAction = getModel().getActionMemento().getAction();

        // TODO: render instead as links (providing isn't a service; provide a
        // component for this?)
        add(new Label(ID_TARGET, targetAdapter.titleString()));
        add(new Label(ID_ACTION_NAME, objectAction.getName()));
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.