Package com.ponysdk.core.instruction

Examples of com.ponysdk.core.instruction.Update


            update.put(PROPERTY.LEFT_INDENT);
            Txn.get().getTxnContext().save(update);
        }

        public void redo() {
            final Update update = new Update(getID());
            update.put(PROPERTY.REDO);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here


            update.put(PROPERTY.REDO);
            Txn.get().getTxnContext().save(update);
        }

        public void removeFormat() {
            final Update update = new Update(getID());
            update.put(PROPERTY.REMOVE_FORMAT);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.REMOVE_FORMAT);
            Txn.get().getTxnContext().save(update);
        }

        public void removeLink() {
            final Update update = new Update(getID());
            update.put(PROPERTY.REMOVE_LINK);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.REMOVE_LINK);
            Txn.get().getTxnContext().save(update);
        }

        public void rightIndent() {
            final Update update = new Update(getID());
            update.put(PROPERTY.TOGGLE_RIGHT_INDENT);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.TOGGLE_RIGHT_INDENT);
            Txn.get().getTxnContext().save(update);
        }

        public void selectAll() {
            final Update update = new Update(getID());
            update.put(PROPERTY.SELECT_ALL);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

    protected WidgetType getWidgetType() {
        return WidgetType.SCROLL_PANEL;
    }

    public void setHorizontalScrollPosition(final int position) {
        final Update update = new Update(ID);
        update.put(PROPERTY.HORIZONTAL_SCROLL_POSITION, position);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

    public void scrollToTop() {
        scrollTo(3);
    }

    private void scrollTo(final int type) {
        final Update update = new Update(ID);
        update.put(PROPERTY.SCROLL_TO, type);
        Txn.get().getTxnContext().save(update);
    }
View Full Code Here

     *            the minimum size for this widget
     */
    public void setWidgetMinSize(final PWidget child, final int minSize) {
        assertIsChild(child);
        if (getMinSize(child) != minSize) {
            final Update update = new Update(getID());
            update.put(PROPERTY.MIN_SIZE, minSize);
            update.put(PROPERTY.WIDGET, child.getID());
            Txn.get().getTxnContext().save(update);
            ensureWidgetInfo(child).minSize = minSize;
        }
    }
View Full Code Here

     *            the width below which the widget will close or -1 to disable.
     */
    public void setWidgetSnapClosedSize(final PWidget child, final int snapClosedSize) {
        assertIsChild(child);
        if (getSnapClosedSize(child) != snapClosedSize) {
            final Update update = new Update(getID());
            update.put(PROPERTY.SNAP_CLOSED_SIZE, snapClosedSize);
            update.put(PROPERTY.WIDGET, child.getID());
            Txn.get().getTxnContext().save(update);
            ensureWidgetInfo(child).snapClosedSize = snapClosedSize;
        }
    }
View Full Code Here

     *            whether or not display toggling is allowed for this widget
     */
    public void setWidgetToggleDisplayAllowed(final PWidget child, final boolean allowed) {
        assertIsChild(child);
        if (isToggleDisplayAllowed(child) != allowed) {
            final Update update = new Update(getID());
            update.put(PROPERTY.TOGGLE_DISPLAY_ALLOWED, allowed);
            update.put(PROPERTY.WIDGET, child.getID());
            Txn.get().getTxnContext().save(update);
            ensureWidgetInfo(child).toggleDisplayAllowed = allowed;
        }
    }
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.