Package org.apache.isis.core.metamodel.facets.value.image

Examples of org.apache.isis.core.metamodel.facets.value.image.ImageValueFacet


    private void buildGui() {
        final String name = getModel().getName();
        final Label scalarName = new Label(ID_SCALAR_NAME, name);
        addOrReplace(scalarName);

        final ImageValueFacet imageValueFacet = getModel().getTypeOfSpecification().getFacet(ImageValueFacet.class);
        final ObjectAdapter adapter = getModel().getObject();
        if (adapter != null) {
            final java.awt.Image imageValue = imageValueFacet.getImage(adapter);
            final RenderedDynamicImageResource imageResource = new RenderedDynamicImageResource(
                    imageValue.getWidth(null), imageValue.getHeight(null)) {

                private static final long serialVersionUID = 1L;
View Full Code Here


    private void buildGui() {
        final String name = getModel().getName();
        final Label scalarName = new Label(ID_SCALAR_NAME, name);
        addOrReplace(scalarName);

        final ImageValueFacet imageValueFacet = getModel().getTypeOfSpecification().getFacet(ImageValueFacet.class);
        final ObjectAdapter adapter = getModel().getObject();
        if (adapter != null) {
            final java.awt.Image imageValue = imageValueFacet.getImage(adapter);
            final RenderedDynamicImageResource imageResource = new RenderedDynamicImageResource(
                    imageValue.getWidth(null), imageValue.getHeight(null)) {

                private static final long serialVersionUID = 1L;
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.value.image.ImageValueFacet

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.