Examples of titleString()


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

            return null;
        }
        final ProposedHolder proposedHolder = (ProposedHolder) context;
        final ObjectAdapter proposedArgument = proposedHolder.getProposed();
        if (doesNotMatch(proposedArgument)) {
            return "'" + proposedArgument.titleString() + "' does not match the mask '" + value() + "'";
        }
        return null;
    }

}
View Full Code Here

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

        // 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

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

    @Override
    protected void copyToClipboard() {
        final TextParseableContent content = (TextParseableContent) getContent();
        final ObjectAdapter object = content.getAdapter();
        if (object != null) {
            final String text = object.titleString();
            getViewManager().setClipboard(text, String.class);
            LOG.debug("copied " + text);
        }
    }
View Full Code Here

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

        if (action == null) {
            return Veto.DEFAULT;
        } else {
            final ObjectAdapter source = sourceContent.getAdapter();
            final Consent parameterSetValid = action.isProposedArgumentSetValid(adapter, new ObjectAdapter[] { source });
            parameterSetValid.setDescription("Execute '" + action.getName() + "' with " + source.titleString());
            return parameterSetValid;
        }
    }

    private ObjectAction actionFor(final Content sourceContent) {
View Full Code Here

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

        final ObjectAdapter adapter = adapterMemento.getObjectAdapter(ConcurrencyChecking.NO_CHECK);
       
        final Boolean persistent = adapter.representsPersistent();
        if (!persistent) {
            throw new IllegalArgumentException("Object '" + adapter.titleString(null) + "' is not persistent.");
        }

        // check visibility and whether enabled
        final AuthenticationSession session = getAuthenticationSession();
       
View Full Code Here

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

        final ProposedHolder proposedHolder = (ProposedHolder) context;
        final ObjectAdapter proposedArgument = proposedHolder.getProposed();
        if (proposedArgument == null) {
            return null;
        }
        final String titleString = proposedArgument.titleString();
        if (!doesNotMatch(titleString)) {
            return null;
        }
        return "Doesn't match pattern";
    }
View Full Code Here

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

                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

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

            if (col >= 0 && col < COLUMNS && row >= 0 && row < ROWS) {
                date.add(Calendar.DAY_OF_MONTH, row * 7 + col);
                final Content content = getContent();
                final DateValueFacet facet = content.getSpecification().getFacet(DateValueFacet.class);
                final ObjectAdapter value = facet.createValue(date.getTime());
                ((TextParseableContent) content).parseTextEntry(value.titleString());
                ((TextParseableContent) content).entryComplete();
                /*
                 * if (content.isObject()) { ((ObjectContent)
                 * content).setObject(value); }
                 */
 
View Full Code Here

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

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

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

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

        epv.setName("changed");

        iswf.bounceSystem();

        // then found
        List<ObjectAdapter> retrievedInstance = getStore().loadInstancesAndAdapt(new PersistenceQueryFindByTitle(epvSpecification, adapter.titleString()));
        assertEquals(1, retrievedInstance.size());
       
        final ObjectAdapter retrievedAdapter = retrievedInstance.get(0);
        assertNotSame(adapter, retrievedAdapter);
        assertEquals(((SimpleEntity)adapter.getObject()).getName(), ((SimpleEntity)retrievedAdapter.getObject()).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.