コード例 #1
0
ファイル: ResourceIcon.java プロジェクト: jasonchaffee/VUE
  private synchronized void loadImage(Object imageData) {
    if (DEBUG.IMAGE) out("loadImage " + imageData);

    // test of synchronous loading:
    // out("***GOT IMAGE " + Images.getImage(imageData));

    // TODO: refactor ResourceIcon to use the new ImageRef --
    // will be much simpler.

    if (Images.getImage(imageData, this) == null) {
      // will make callback to gotImage when we have it
      isLoading = true;
      showLoadingStatus();
    } else {
      // gotImage has already been called
      isLoading = false;
    }
  }