Package org.yaac.shared.property

Examples of org.yaac.shared.property.KeyInfo


    keys = new LinkedList<KeyInfo>();
    switchControlPanel.clear();
    mainDeck.clear();
   
    // step 2 : render UIs
    KeyInfo key = hierarchy.getKey();
   
    while (key != null) {
      keys.add(0, key);
     
      // render buttons on control panel
      ToggleButton btn = new ToggleButton(key.asSingleNodeDesc());
      btn.getElement().getStyle().setFloat(Style.Float.LEFT);
     
      // parent always goes the first
      switchControlPanel.insert(btn, 0);
      btnGroup.addButton(key, btn);

      // render contents on main deck
      final KeyInfo thisKey = key;
      EntityInfo e = hierarchy.lookupAncester(key);
      Widget w = e != null ? new EditorEntityPanel(e, editorManager) :
        new EditorEntityNotFoundPanel(
            new CreateButtonHandler() {
          @Override
View Full Code Here


    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("__key__", new KeyInfo(null, "kind_a", "entity_1", null, null)
        ).setNewInfo(new KeyInfo(null, "kind_b", "entity_2", null, null)));
   
    Entity actual = service.applyChange(e, changes);
   
    // key is not changed
    assertEquals("kind_b", actual.getKey().getKind());
View Full Code Here

    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("__key__", new KeyInfo(null, "kind_a", "entity_1", null, null)
        ).setNewInfo(new KeyInfo(null, "kind_b", "entity_2", null, null)),
        new PropertyUpdateInfo("p_3", new BooleanPropertyInfo(true)).setDeleteFlag(true),
        new PropertyUpdateInfo("p_2", new BooleanPropertyInfo(true)).setNewInfo(new LongPropertyInfo(5)).setNewName("p_5"),
        new PropertyUpdateInfo("p_1", new LongPropertyInfo(1l)).setNewName("p_6"));
   
    Entity actual = service.applyChange(e, changes);
View Full Code Here

TOP

Related Classes of org.yaac.shared.property.KeyInfo

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.