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

Examples of org.jbpm.formapi.shared.api.items.BorderPanelRepresentation.Position


    @Override
    public FormItemRepresentation getRepresentation() {
        BorderPanelRepresentation rep = super.getRepresentation(new BorderPanelRepresentation());
        for (Map.Entry<Position, FBFormItem> entry : this.locations.entrySet()) {
            Position key = entry.getKey();
            FormItemRepresentation value = entry.getValue().getRepresentation();
            rep.putItem(key, value);
        }
        return rep;
    }
View Full Code Here


        super.populate(rep);
        BorderPanelRepresentation brep = (BorderPanelRepresentation) rep;
        Map<Position, FormItemRepresentation> repItems = brep.getItems();
        if (repItems != null) {
            for (Map.Entry<Position, FormItemRepresentation> entry : repItems.entrySet()) {
                Position key = entry.getKey();
                FBFormItem value = super.createItem(entry.getValue());
                this.currentPosition = key;
                this.add(value);
            }
        }
View Full Code Here

        }
    }
   
    @Override
    public void add(PhantomPanel phantom, int x, int y) {
        Position pos = obtainPosition(x, y);
        if (locations.get(pos) == null) {
            grid.setWidget(getRow(pos), getColumn(pos), phantom);
        }
    }
View Full Code Here

    @Override
    public boolean remove(Widget child) {
        boolean removed = false;
        if (child instanceof FBFormItem) {
            Position pos = null;
            for (Map.Entry<Position, FBFormItem> entry : this.locations.entrySet()) {
                if (entry.getValue().equals(child)) {
                    pos = entry.getKey();
                    break;
                }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.shared.api.items.BorderPanelRepresentation.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.