Package com.ponysdk.core.instruction

Examples of com.ponysdk.core.instruction.Update


            }

            styles.clear();
            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_SET_STYLE_NAME, styleName);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here


    }

    public class PCellFormatter {

        public void addStyleName(final int row, final int column, final String styleName) {
            final Update update = new Update(ID);
            update.put(PROPERTY.ROW, row);
            update.put(PROPERTY.COLUMN, column);
            update.put(PROPERTY.CELL_FORMATTER_ADD_STYLE_NAME, styleName);
            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }

        public void removeStyleName(final int row, final int column, final String styleName) {
            final Update update = new Update(ID);
            update.put(PROPERTY.ROW, row);
            update.put(PROPERTY.COLUMN, column);
            update.put(PROPERTY.CELL_FORMATTER_REMOVE_STYLE_NAME, styleName);
            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }

        public void setStyleName(final int row, final int column, final String styleName) {
            final Update update = new Update(ID);
            update.put(PROPERTY.ROW, row);
            update.put(PROPERTY.COLUMN, column);
            update.put(PROPERTY.CELL_FORMATTER_SET_STYLE_NAME, styleName);
            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }

        public void setVerticalAlignment(final int row, final int column, final PVerticalAlignment align) {
            final Update update = new Update(getID());
            update.put(PROPERTY.ROW, row);
            update.put(PROPERTY.COLUMN, column);
            update.put(PROPERTY.CELL_VERTICAL_ALIGNMENT, align.ordinal());
            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }

        public void setHorizontalAlignment(final int row, final int column, final PHorizontalAlignment align) {
            final Update update = new Update(getID());
            update.put(PROPERTY.ROW, row);
            update.put(PROPERTY.COLUMN, column);
            update.put(PROPERTY.CELL_HORIZONTAL_ALIGNMENT, align.ordinal());
            update.put(PROPERTY.HTMLTABLE_CELL_STYLE, true);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

    }

    public class PColumnFormatter {

        public void setWidth(final int column, final String width) {
            final Update update = new Update(ID);
            update.put(PROPERTY.HTMLTABLE_COLUMN_STYLE, true);
            update.put(PROPERTY.COLUMN_FORMATTER_COLUMN_WIDTH, width);
            update.put(PROPERTY.COLUMN, column);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.COLUMN, column);
            Txn.get().getTxnContext().save(update);
        }

        public void addStyleName(final int column, final String styleName) {
            final Update update = new Update(ID);
            update.put(PROPERTY.HTMLTABLE_COLUMN_STYLE, true);
            update.put(PROPERTY.COLUMN_FORMATTER_ADD_STYLE_NAME, styleName);
            update.put(PROPERTY.COLUMN, column);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.COLUMN, column);
            Txn.get().getTxnContext().save(update);
        }

        public void removeStyleName(final int column, final String styleName) {
            final Update update = new Update(ID);
            update.put(PROPERTY.HTMLTABLE_COLUMN_STYLE, true);
            update.put(PROPERTY.COLUMN_FORMATTER_REMOVE_STYLE_NAME, styleName);
            update.put(PROPERTY.COLUMN, column);
            Txn.get().getTxnContext().save(update);
        }
View Full Code Here

            update.put(PROPERTY.COLUMN, column);
            Txn.get().getTxnContext().save(update);
        }

        public void setStyleName(final int column, final String styleName) {
            final Update update = new Update(ID);
            update.put(PROPERTY.HTMLTABLE_COLUMN_STYLE, true);
            update.put(PROPERTY.COLUMN_FORMATTER_SET_STYLE_NAME, styleName);
            update.put(PROPERTY.COLUMN, column);
            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.