Package com.ponysdk.core.instruction

Examples of com.ponysdk.core.instruction.Update


            removeStyle(styleName);
        }
    }

    private void removeStyle(final String styleName) {
        final Update update = new Update(ID);
        update.put(PROPERTY.REMOVE_STYLE_NAME, styleName);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here


            ((HasPWidgets) parent).remove(this);
        } else if (parent != null) { throw new IllegalStateException("This widget's parent does not implement HasPWidgets"); }
    }

    protected void saveUpdate(final String key, final boolean value) {
        final Update update = new Update(getID());
        update.put(key, value);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        update.put(key, value);
        Txn.get().getTxnContext().save(update);
    }

    protected void saveUpdate(final String key, final int value) {
        final Update update = new Update(getID());
        update.put(key, value);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        update.put(key, value);
        Txn.get().getTxnContext().save(update);
    }

    protected void saveUpdate(final String key, final Object value) {
        final Update update = new Update(getID());
        update.put(key, value);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

    public Collection<PSelectionHandler<Integer>> getSelectionHandlers() {
        return Collections.unmodifiableCollection(selectionHandlers);
    }

    public void showWidget(final PWidget widget) {
        final Update update = new Update(getID());
        update.put(PROPERTY.OPEN, widget.getID());
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        addNativeHandler(this);
    }

    public void update(final JSONObject data) {
        final Update update = new Update(getID());
        update.put(Dictionnary.PROPERTY.NATIVE, data);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

        Txn.get().getTxnContext().save(add);
        return itemSeparator;
    }

    public void clearItems() {
        final Update update = new Update(getID());
        update.put(PROPERTY.CLEAR, true);
        Txn.get().getTxnContext().save(update);
        // clear
        items.clear();
    }
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

                styles = new HashSet<String>();
                styleNames.put(row, styles);
            }

            if (styles.add(styleName)) {
                final Update update = new Update(ID);
                update.put(PROPERTY.ROW, row);
                update.put(PROPERTY.HTMLTABLE_ROW_STYLE, true);
                update.put(PROPERTY.ROW_FORMATTER_ADD_STYLE_NAME, styleName);
                Txn.get().getTxnContext().save(update);
            }
        }
View Full Code Here

            final Set<String> styles = styleNames.get(row);

            if (styles == null) return;

            if (styles.remove(styleName)) {
                final Update update = new Update(ID);
                update.put(PROPERTY.ROW, row);
                update.put(PROPERTY.HTMLTABLE_ROW_STYLE, true);
                update.put(PROPERTY.ROW_FORMATTER_REMOVE_STYLE_NAME, styleName);
                Txn.get().getTxnContext().save(update);
            }
        }
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.