Package org.pushingpixels.flamingo.api.common

Examples of org.pushingpixels.flamingo.api.common.AsynchronousLoadListener


    if (icon instanceof AsynchronousLoading) {
      AsynchronousLoading async = (AsynchronousLoading) icon;
      if (async.isLoading()) {
        final CountDownLatch latch = new CountDownLatch(1);
        final boolean[] status = new boolean[1];
        AsynchronousLoadListener all = new AsynchronousLoadListener() {
          public void completed(boolean success) {
            status[0] = success;
            latch.countDown();
          }
        };
View Full Code Here


    //RIBBONS - to set the right icon size
    if(item.getIcon() != null && item.getIcon() instanceof ImageIcon) {
      ImageIcon ico = (ImageIcon)item.getIcon();
      ImageWrapperResizableIcon newIco = ImageWrapperResizableIcon.getIcon(ico.getImage(), new Dimension(ico.getIconWidth(), ico.getIconHeight()));
      newIco.setPreferredSize(new Dimension(16, 16));
      newIco.addAsynchronousLoadListener(new AsynchronousLoadListener() {
        public void completed(boolean success) {
          item.repaint();
        }
      });
      item.setIcon(newIco);
View Full Code Here

        if (icon instanceof AsynchronousLoading) {
          AsynchronousLoading async = (AsynchronousLoading) icon;
          if (async.isLoading()) {
            final CountDownLatch latch = new CountDownLatch(1);
            final boolean[] status = new boolean[1];
            AsynchronousLoadListener all = new AsynchronousLoadListener() {
              @Override
                            public void completed(boolean success) {
                status[0] = success;
                latch.countDown();
              }
View Full Code Here

    if (icon instanceof AsynchronousLoading) {
      AsynchronousLoading async = (AsynchronousLoading) icon;
      if (async.isLoading()) {
        final CountDownLatch latch = new CountDownLatch(1);
        final boolean[] status = new boolean[1];
        AsynchronousLoadListener all = new AsynchronousLoadListener() {
          @Override
                    public void completed(boolean success) {
            status[0] = success;
            latch.countDown();
          }
View Full Code Here

        if (icon instanceof AsynchronousLoading) {
          AsynchronousLoading async = (AsynchronousLoading) icon;
          if (async.isLoading()) {
            final CountDownLatch latch = new CountDownLatch(1);
            final boolean[] status = new boolean[1];
            AsynchronousLoadListener all = new AsynchronousLoadListener() {
              @Override
                            public void completed(boolean success) {
                status[0] = success;
                latch.countDown();
              }
View Full Code Here

    if (icon instanceof AsynchronousLoading) {
      AsynchronousLoading async = (AsynchronousLoading) icon;
      if (async.isLoading()) {
        final CountDownLatch latch = new CountDownLatch(1);
        final boolean[] status = new boolean[1];
        AsynchronousLoadListener all = new AsynchronousLoadListener() {
          @Override
                    public void completed(boolean success) {
            status[0] = success;
            latch.countDown();
          }
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.common.AsynchronousLoadListener

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.