Package com.ponysdk.core.instruction

Examples of com.ponysdk.core.instruction.Update


    }

    @Override
    public void setAnimationEnabled(final boolean animationEnabled) {
        this.animationEnabled = animationEnabled;
        final Update update = new Update(ID);
        update.put(PROPERTY.ANIMATION, animationEnabled);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here


        return WidgetType.DIALOG_BOX;
    }

    public void setCaption(final String caption) {
        this.caption = caption;
        final Update update = new Update(ID);
        update.put(PROPERTY.POPUP_CAPTION, caption);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        submitCompleteHandlers.add(handler);
    }

    public void setName(final String name) {
        this.name = name;
        final Update update = new Update(getID());
        update.put(PROPERTY.NAME, this.name);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        return enabled;
    }

    public void setEnabled(final boolean enabled) {
        this.enabled = enabled;
        final Update update = new Update(getID());
        update.put(PROPERTY.ENABLED, this.enabled);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

    }

    @Override
    public void setAnimationEnabled(final boolean animationEnabled) {
        this.animationEnabled = animationEnabled;
        final Update update = new Update(ID);
        update.put(PROPERTY.ANIMATION, animationEnabled);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        final ListItem groupItem = new ListGroupItem(group);
        this.items.add(groupItem);
        for (final String i : items) {
            this.items.add(new ListItem(i, i));
        }
        final Update update = new Update(getID());
        update.put(PROPERTY.ITEM_ADD);
        final String s = items.toString();
        update.put(PROPERTY.ITEM_TEXT, s.substring(1, s.length() - 1).replaceAll(",", ";").replaceAll(" ", ""));
        update.put(PROPERTY.ITEM_GROUP, group);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        final ListItem item = new ListItem(label, value);

        items.add(index, item);

        final Update update = new Update(getID());
        update.put(PROPERTY.ITEM_INSERTED);
        update.put(PROPERTY.INDEX, index);
        update.put(PROPERTY.ITEM_TEXT, label);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

    public void setItemText(final int index, final String text) {
        checkIndex(index);

        items.get(index).label = text;

        final Update update = new Update(getID());
        update.put(PROPERTY.ITEM_UPDATED);
        update.put(PROPERTY.INDEX, index);
        update.put(PROPERTY.ITEM_TEXT, text);

        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

            }
        }
    }

    private void sendRemoveItemInstruction(final int index) {
        final Update update = new Update(getID());

        update.put(PROPERTY.ITEM_REMOVED);
        update.put(PROPERTY.INDEX, index);
        Txn.get().getTxnContext().save(update);

        if (selectedIndex >= index) setSelectedIndex((selectedIndex - 1));
    }
View Full Code Here

    public void clear() {
        selectedIndex = -1;
        items.clear();
        selectedIndexes.clear();
        final Update update = new Update(getID());
        update.put(PROPERTY.CLEAR, true);
        Txn.get().getTxnContext().save(update);

        if (containsEmptyItem) {
            addItem("", null);
        }
View Full Code Here

TOP

Related Classes of com.ponysdk.core.instruction.Update

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.