Package pivot.wtk.media

Examples of pivot.wtk.media.Image$ImageListenerList


    public static final void setIcon(Component component, URL icon) {
        if (icon == null) {
            throw new IllegalArgumentException("icon is null.");
        }

        Image iconImage = (Image)ApplicationContext.getResourceCache().get(icon);

        if (iconImage == null) {
            iconImage = Image.load(icon);
            ApplicationContext.getResourceCache().put(icon, iconImage);
        }
View Full Code Here


        public Image getIcon() {
            return icon;
        }

        public void setIcon(Image icon) {
            Image previousIcon = this.icon;
            this.icon = icon;

            Component component = getComponent();
            TabPane tabPane = (TabPane)component.getParent();
            if (tabPane != null) {
View Full Code Here

    public static final void setIcon(Component component, URL icon) {
        if (icon == null) {
            throw new IllegalArgumentException("icon is null.");
        }

        Image iconImage = (Image)ApplicationContext.getResourceCache().get(icon);

        if (iconImage == null) {
            iconImage = Image.load(icon);
            ApplicationContext.getResourceCache().put(icon, iconImage);
        }
View Full Code Here

        public Image getIcon() {
            return icon;
        }

        public void setIcon(Image icon) {
            Image previousIcon = this.icon;
            this.icon = icon;

            Component component = getComponent();
            Accordion accordion = (Accordion)component.getParent();
            if (accordion != null) {
View Full Code Here

    public static final void setIcon(Component component, URL icon) {
        if (icon == null) {
            throw new IllegalArgumentException("icon is null.");
        }

        Image iconImage = (Image)ApplicationContext.getResourceCache().get(icon);

        if (iconImage == null) {
            iconImage = Image.load(icon);
            ApplicationContext.getResourceCache().put(icon, iconImage);
        }
View Full Code Here

        public Image getIcon() {
            return icon;
        }

        public void setIcon(Image icon) {
            Image previousIcon = this.icon;
            this.icon = icon;

            Component component = getComponent();
            TabPane tabPane = (TabPane)component.getParent();
            if (tabPane != null) {
View Full Code Here

     *
     * @param image
     * The image to set, or <tt>null</tt> for no image.
     */
    public void setImage(Image image) {
        Image previousImage = this.image;

        if (previousImage != image) {
            this.image = image;
            imageViewListeners.imageChanged(this, previousImage);
        }
View Full Code Here

    public static final void setIcon(Component component, URL icon) {
        if (icon == null) {
            throw new IllegalArgumentException("icon is null.");
        }

        Image iconImage = (Image)ApplicationContext.getResourceCache().get(icon);

        if (iconImage == null) {
            iconImage = Image.load(icon);
            ApplicationContext.getResourceCache().put(icon, iconImage);
        }
View Full Code Here

        public Image getIcon() {
            return icon;
        }

        public void setIcon(Image icon) {
            Image previousIcon = this.icon;
            this.icon = icon;

            Component component = getComponent();
            Accordion accordion = (Accordion)component.getParent();
            if (accordion != null) {
View Full Code Here

        throws Exception {
        frame = new Frame();
        frame.setTitle("Tag Decorator Test");
        frame.setPreferredSize(480, 360);

        Image tag = Image.load(getClass().getResource("go-home.png"));

        frame.getDecorators().add(new TagDecorator(tag,
            HorizontalAlignment.RIGHT, VerticalAlignment.TOP,
            10, -10));
View Full Code Here

TOP

Related Classes of pivot.wtk.media.Image$ImageListenerList

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.