Examples of ImageList


Examples of com.google.api.services.compute.model.ImageList

  }

  private Iterable<Image> listImages(String projectId) throws OpsException {
    List<Image> ret = Lists.newArrayList();

    ImageList imageList;
    try {
      log.debug("Listing images in project " + projectId);
      imageList = compute.images().list(projectId).execute();
    } catch (IOException e) {
      throw new OpsException("Error listing images", e);
    }
    if (imageList.getItems() != null) {
      ret.addAll(imageList.getItems());
    }

    return ret;
  }
View Full Code Here

Examples of com.google.api.services.compute.model.ImageList

        try {
            Storage storage = gccStackUtil.buildStorage((GccCredential) stack.getCredential(), stack);
            Compute compute = gccStackUtil.buildCompute((GccCredential) stack.getCredential(), stack.getName());
            GccTemplate template = (GccTemplate) stack.getTemplate();
            GccCredential credential = (GccCredential) stack.getCredential();
            ImageList list = compute.images().list(credential.getProjectId()).execute();
            Long time = new Date().getTime();
            if (!containsSpecificImage(list)) {
                try {
                    Bucket bucket = new Bucket();
                    bucket.setName(credential.getProjectId() + time);
View Full Code Here

Examples of com.lightcrafts.ui.browser.model.ImageList

        logger.setUseParentHandlers(false);

        ProgressDialog dialog = Platform.getPlatform().getProgressDialog();
        ProgressThread thread = new ProgressThread(dialog) {
            public void run() {
                Images = new ImageList(
                    directory,
                    100,
                    FileCacheFactory.get(directory),
                    true,
                    ImageDatumComparator.CaptureTime,
View Full Code Here

Examples of com.lightcrafts.ui.browser.model.ImageList

            info.endEditing();
        }

        editor.hideWait();

        ImageList oldImages = images;

        initImages(folder, useCache);

        if (ApplicationMode.isBasicMode()) {
            browser = BrowserFactory.createExpanded(images);
        }
        else {
            browser = BrowserFactory.createRecent(images);
        }
        setBrowser();   // Puts browser as the viewport in browserScroll

        initBrowserSelection(folder);

        images.start();

        if (oldImages != null) {
            // migrate the pause depth to the new browser
            int pauses = oldImages.getPauseDepth();
            for (int n=0; n<pauses; n++) {
                images.pause();
            }
        }
        menus.update();
View Full Code Here

Examples of com.lightcrafts.ui.browser.model.ImageList

    private void initImages(final File directory, final boolean useCache) {
        ProgressDialog dialog = Platform.getPlatform().getProgressDialog();
        ProgressThread thread = new ProgressThread(dialog) {
            public void run() {
                DocumentDatabase.addDocumentDirectory(directory);
                images = new ImageList(
                    directory,
                    100,
                    FileCacheFactory.get(directory),
                    useCache,
                    ImageDatumComparator.CaptureTime,
View Full Code Here

Examples of com.sun.star.wizards.ui.ImageList

  /**
   * builds the layouts image list.
   */
  public void buildStepX() {
    ilLayouts = new ImageList();
    ilLayouts.setPos(new Size(97,38));
    ilLayouts.setImageSize(new Size(34,30));
    ilLayouts.setCols(5);
    ilLayouts.setRows(3);
    ilLayouts.setStep(new Short((short)3));
View Full Code Here

Examples of com.sun.star.wizards.ui.ImageList

        XMultiServiceFactory xmsf, int hid_, String[] resources_)
  {
    super(xmsf);
    hid = hid_;
    resources = resources_;
    il = new ImageList();
    il.counterRenderer = new ARenderer(resources[RES_COUNTER]);
  }
View Full Code Here

Examples of com.sun.star.wizards.ui.ImageList

              new String[] {"Height", "Label", "PositionX", "PositionY", "Step", "TabIndex", "Width"},
              new Object[] {UIConsts.INTEGERS[8], sArrangementHeader[_formindex], new Integer(97), YPos, IControlStep, new Short(curtabindex++), new Integer(207)}
            );
           
            int nypos = SOBASEIMAGEYPOSITION + 12+ _formindex * SOIMAGELISTHEIGHT;
            ilLayouts = new ImageList();
            ilLayouts.setPos(new Size( 107,nypos));
            ilLayouts.setImageSize(new Size(26,26));
            ilLayouts.setCols(4);
            ilLayouts.setRows(1);
            ilLayouts.name = "ImageList_" + formindex;
View Full Code Here

Examples of com.sun.star.wizards.ui.ImageList

            XMultiServiceFactory xmsf, int hid_, String[] resources_)
    {
        super(xmsf);
        hid = hid_;
        resources = resources_;
        il = new ImageList();
        il.counterRenderer = new ARenderer(resources[RES_COUNTER]);
    }
View Full Code Here

Examples of com.sun.star.wizards.ui.ImageList

    /**
     * builds the layouts image list.
     */
    public void buildStepX()
    {
        ilLayouts = new ImageList();
        ilLayouts.setPos(new Size(97, 38));
        ilLayouts.setImageSize(new Size(34, 30));
        ilLayouts.setCols(5);
        ilLayouts.setRows(3);
        ilLayouts.setStep(new Short((short) 3));
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.