Examples of toXObject()


Examples of com.tensegrity.palo.gwt.core.server.converter.admin.AccountConverter.toXObject()

      accountToUse = bestMatch;
      viewToUse = bestView;
    }
    if (accountToUse != null) {
      AccountConverter co = new AccountConverter();
      XAccount xAccount = (XAccount) co.toXObject(accountToUse);
      data.setXAccount(xAccount);
      log.debug("AccountToUse:");
      log.debug("  Name: " + xAccount.getLogin());
      log.debug("  Pass: " + data.getUserPassword());
      log.debug("View: " + viewToUse.getName());
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.server.converter.admin.AccountConverter.toXObject()

          admService.save(accountToUse);
        }
      }
      if (accountToUse != null && authenticatedUser != null) {
        AccountConverter co = new AccountConverter();
        XAccount xAccount = (XAccount) co.toXObject(accountToUse);
        data.setXAccount(xAccount);
        data.setUserPassword(accountToUse.getUser().getPassword());
        log.debug("AccountToUse:");
        log.debug("  Name: " + xAccount.getLogin());
        log.debug("  Pass: " + data.getUserPassword());
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.server.converter.cubeviews.ViewConverter.toXObject()

          data.addError(UserSession.trans(locale, "viewCannotBeSeen", v.getName(), v.getId()));             
          continue;
        }
       
        ViewConverter conv = new ViewConverter();
        XView xView = (XView) conv.toXObject(v);
        if (xView != null) {         
          xView.setDisplayFlags(createDisplayFlags(linkToParse));
          allViews.add(xView);
        }
      }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.server.converter.cubeviews.ViewConverter.toXObject()

        JPaloSavingUtil util = new JPaloSavingUtil();
        String xml = util.getSubobjectForJPalo(getSession(), v.getName());
        //logger.info("saved subobj"+xml);
      }
      ViewConverter conv = new ViewConverter();
      XView xView = (XView) conv.toXObject(v);
      xView.setDisplayFlags(createDisplayFlags(link));

      data.setViews(new XView [] {xView});
      return data; 
     
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.server.converter.cubeviews.ViewConverter.toXObject()

      log.debug("  Name: " + xAccount.getLogin());
      log.debug("  Pass: " + data.getUserPassword());
      log.debug("View: " + viewToUse.getName());
      data.setAuthenticated(true);     
      ViewConverter conv = new ViewConverter();
      XView xView = (XView) conv.toXObject(viewToUse);                   
      data.setViews(new XView [] {xView});                   
    }
    if (viewIdFound != null && accountToUse == null) {
      data.addError(UserSession.trans(locale, "viewCannotBeSeen", viewIdFound.getName(), viewIdFound.getId()));
    }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.server.converter.cubeviews.ViewConverter.toXObject()

              int i3 = def.indexOf("\"", i2);
              if (i3 != -1) {
                String id = def.substring(i2, i3);
                if (viewId.equals(id)) {
                  ViewConverter conv = new ViewConverter();
                  XView xView = (XView) conv.toXObject(v);                   
                  data.setViews(new XView [] {xView});                   
                  return data;       
                }
              }
            }
View Full Code Here

Examples of org.pdfclown.documents.contents.entities.EAN13Barcode.toXObject()

    )
  {
    // Get the abstract barcode entity!
    EAN13Barcode barcode = new EAN13Barcode("8012345678901");
    // Create the reusable barcode within the document!
    XObject barcodeXObject = barcode.toXObject(document);

    Pages pages = document.getPages();
    // Page 1.
    {
      Page page = new Page(document);
View Full Code Here

Examples of org.pdfclown.documents.contents.entities.Image.toXObject()

        width *= frame.getHeight() / 2 / height;
        height = frame.getHeight() / 2;
      }
      // Show the image!
      composer.showXObject(
        image.toXObject(document),
        new Point2D.Double(
          (pageSize.getWidth() - 90 - width) / 2 + 20,
          blockComposer.getBoundBox().getMaxY() + 20
          ),
        new Dimension(width,height)
View Full Code Here

Examples of org.pdfclown.documents.contents.entities.Image.toXObject()

    }
    catch(Exception e)
    {/* NOOP. */}
    // Show the image inside the common content stream!
    composer.showXObject(
      image.toXObject(document),
      new Point2D.Double(0,0),
      new Dimension(
        (int)templateSize.getWidth() - 50,
        125
        )
View Full Code Here

Examples of org.pdfclown.documents.contents.entities.Image.toXObject()

    // Showing the 'GNU' image...
    // Instantiate a jpeg image object!
    Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg"); // Abstract image (entity).
    // Show the image!
    composer.showXObject(
      image.toXObject(document),
      new Point2D.Double(
        (pageSize.getWidth() - 90 - image.getWidth()) / 2 + 20,
        pageSize.getHeight() - 100 - image.getHeight()
        ),
      new Dimension(0,0)
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.