Examples of SWTFSImage


Examples of org.xhtmlrenderer.swt.SWTFSImage

            NodeList images = bc.getElement().getElementsByTagName("img");
            if (images.getLength() > 0) {
                Element img = (Element) images.item(0);
                String uri = c.getNamespaceHandler().getImageSourceURI(img);
                ImageResource res = uac.getImageResource(uri);
                SWTFSImage fsi = (SWTFSImage) res.getImage();
                // copy the image to prevent disposal, and apply a disabled
                // effect if needed
                _image = new Image(button.getDisplay(), fsi.getImage(), (bc
                    .isEnabled() ? SWT.IMAGE_COPY : SWT.IMAGE_DISABLE));
                button.setImage(_image);
            }
        }
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.