264265266267268269270271272273
selectedIndexes.add(index); } else { selectedIndexes.remove(index); } final Update update = new Update(getID()); update.put(PROPERTY.SELECTED, selected); update.put(PROPERTY.SELECTED_INDEX, index); Txn.get().getTxnContext().save(update); }
381382383384385386387388389
return values; } public void setVisibleItemCount(final int visibleItemCount) { this.visibleItemCount = visibleItemCount; final Update update = new Update(getID()); update.put(PROPERTY.VISIBLE_ITEM_COUNT, visibleItemCount); Txn.get().getTxnContext().save(update); }
747576777879808182
} @Override public void setText(final String text) { this.html = text; final Update update = new Update(getID()); update.put(PROPERTY.TEXT, text); Txn.get().getTxnContext().save(update); }
878889909192939495
} @Override public void setHTML(final String html) { this.html = html; final Update update = new Update(getID()); update.put(PROPERTY.HTML, html); Txn.get().getTxnContext().save(update); }
131132133134135136137138139
} public class Formatter { public void createLink(final String url) { final Update update = new Update(getID()); update.put(PROPERTY.CREATE_LINK, url); Txn.get().getTxnContext().save(update); }
137138139140141142143144145
update.put(PROPERTY.CREATE_LINK, url); Txn.get().getTxnContext().save(update); } public void insertHorizontalRule() { final Update update = new Update(getID()); update.put(PROPERTY.INSERT_HORIZONTAL_RULE); Txn.get().getTxnContext().save(update); }
143144145146147148149150151
update.put(PROPERTY.INSERT_HORIZONTAL_RULE); Txn.get().getTxnContext().save(update); } public void insertHTML(final String html) { final Update update = new Update(getID()); update.put(PROPERTY.INSERT_HTML, html); Txn.get().getTxnContext().save(update); }
149150151152153154155156157
update.put(PROPERTY.INSERT_HTML, html); Txn.get().getTxnContext().save(update); } public void insertImage(final String url) { final Update update = new Update(getID()); update.put(PROPERTY.IMAGE, url); Txn.get().getTxnContext().save(update); }
155156157158159160161162163
update.put(PROPERTY.IMAGE, url); Txn.get().getTxnContext().save(update); } public void insertOrderedList() { final Update update = new Update(getID()); update.put(PROPERTY.ORDERED); Txn.get().getTxnContext().save(update); }
161162163164165166167168169
update.put(PROPERTY.ORDERED); Txn.get().getTxnContext().save(update); } public void insertUnorderedList() { final Update update = new Update(getID()); update.put(PROPERTY.UNORDERED); Txn.get().getTxnContext().save(update); }