Package org.jbpm.formapi.shared.api.items

Examples of org.jbpm.formapi.shared.api.items.AbsolutePanelRepresentation$Position


  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here


    if (!super.setdoc(docId)) {
      return false;
    }

    // read header - number of enhancements and their lengths
    Position position = new Position();
    nEnhancements = Vint8.decode(buffer, position);
    for (int i = 0; i < nEnhancements; i++) {
      enhancementLength[i] = Vint8.decode(buffer, position);
    }
View Full Code Here

  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here

        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        AbsolutePanelRepresentation rep = super.getRepresentation(new AbsolutePanelRepresentation());
        rep.setId(this.id);
        for (FBFormItem item : getItems()) {
            rep.addItem(item.getRepresentation(),
                    item.getDesiredX() - panel.getAbsoluteLeft(),
                    item.getDesiredY() - panel.getAbsoluteTop());
        }
        return rep;
    }
View Full Code Here

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof AbsolutePanelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "AbsolutePanelRepresentation"));
        }
        super.populate(rep);
        AbsolutePanelRepresentation arep = (AbsolutePanelRepresentation) rep;
        panel.clear();
        getItems().clear();
        if (arep.getItems() != null) {
            for (Map.Entry<AbsolutePanelRepresentation.Position, FormItemRepresentation> entry : arep.getItems().entrySet()) {
                FBFormItem item = super.createItem(entry.getValue());
                item.setDesiredPosition(entry.getKey().getX(), entry.getKey().getY());
                this.add(item);
            }
        }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.shared.api.items.AbsolutePanelRepresentation$Position

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.