Examples of parseTextEntry()


Examples of org.apache.isis.core.metamodel.facets.object.parseable.ParseableFacet.parseTextEntry()

            } else {
                // REVIEW this block uses the existing adapter as it contains the regex needed. This needs to
                // be reviewed in line with Dan's proposed changes to the reflector.
                final ObjectAdapter valueAdapter = initialState[i];
                final ParseableFacet parser = spec.getFacet(ParseableFacet.class);
                parser.parseTextEntry(valueAdapter, textEntry);
                // REVIEW what do we do when an exception is thrown - a parse fails?
            }
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void pasteFromClipboard() {
        try {
            final String text = (String) getViewManager().getClipboard(String.class);
            final TextParseableContent content = (TextParseableContent) getContent();
            content.parseTextEntry(text);
            content.entryComplete();
            LOG.debug("pasted " + text);
        } catch (final Throwable e) {
            LOG.error("invalid paste operation " + e);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void clear() {
        try {
            final TextParseableContent content = (TextParseableContent) getContent();
            content.parseTextEntry("");
            content.entryComplete();
            LOG.debug("cleared");
        } catch (final Throwable e) {
            LOG.error("invalid paste operation " + e);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

        parseEntry(value.titleString());
    }

    protected void parseEntry(final String entryText) {
        final TextParseableContent content = (TextParseableContent) getContent();
        content.parseTextEntry(entryText);
        content.entryComplete();
    }

}
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void setSelection(final OptionContent selectedContent) {
        final ObjectAdapter option = selectedContent.getAdapter();
        final TextParseableContent content = (TextParseableContent) getContent();
        content.parseTextEntry(option.titleString());
        content.entryComplete();
    }
}
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void pasteFromClipboard() {
        try {
            final String text = (String) getViewManager().getClipboard(String.class);
            final TextParseableContent content = (TextParseableContent) getContent();
            content.parseTextEntry(text);
            content.entryComplete();
            LOG.debug("pasted " + text);
        } catch (final Throwable e) {
            LOG.error("invalid paste operation " + e);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void clear() {
        try {
            final TextParseableContent content = (TextParseableContent) getContent();
            content.parseTextEntry("");
            content.entryComplete();
            LOG.debug("cleared");
        } catch (final Throwable e) {
            LOG.error("invalid paste operation " + e);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

        parseEntry(value.titleString());
    }

    protected void parseEntry(final String entryText) {
        final TextParseableContent content = (TextParseableContent) getContent();
        content.parseTextEntry(entryText);
        content.entryComplete();
    }

}
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void pasteFromClipboard() {
        try {
            final String text = (String) getViewManager().getClipboard(String.class);
            final TextParseableContent content = (TextParseableContent) getContent();
            content.parseTextEntry(text);
            content.entryComplete();
            LOG.debug("pasted " + text);
        } catch (final Throwable e) {
            LOG.error("invalid paste operation " + e);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.TextParseableContent.parseTextEntry()

    @Override
    protected void clear() {
        try {
            final TextParseableContent content = (TextParseableContent) getContent();
            content.parseTextEntry("");
            content.entryComplete();
            LOG.debug("cleared");
        } catch (final Throwable e) {
            LOG.error("invalid paste operation " + e);
        }
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.