@Test public void objectValue() { basic(); pp.addProp(KEY_A, new FooClass("a")) .addProp(KEY_B, new FooClass("bxyyzy"), "[xz]"); validateProp(KEY_A, ">a<"); validateProp(KEY_B, ">byyy<"); }
public PropertyPanel addProp(String key, String value) { properties.add(new Prop(key, value)); return this; }
PropertyPanel { public PropertyPanel addProp(String key, String value) { properties.add(new Prop(key, value)); return this; } }
PropertyPanel { public PropertyPanel addProp(String key, String value) { properties.add(new Prop(key, value)); return this; } PropertyPanel(String title, String typeId); }
PropertyPanel { public PropertyPanel addProp(String key, String value) { properties.add(new Prop(key, value)); return this; } PropertyPanel(String title, String typeId); PropertyPanel id(String id); PropertyPanel addProp(String key, String value); PropertyPanel addProp(String key, int value); PropertyPanel addProp(String key, long value); PropertyPanel addProp(String key, Object value); PropertyPanel addProp(String key, Object value, String reStrip); PropertyPanel addSeparator(); String title(); String typeId(); String id(); List<Prop> properties(); List<ButtonId> buttons(); PropertyPanel title(String title); PropertyPanel typeId(String typeId); PropertyPanel removeProps(String... keys); PropertyPanel removeAllProps(); PropertyPanel addButton(ButtonId button); PropertyPanel removeButtons(ButtonId... descriptors); PropertyPanel removeAllButtons(); }
PropertyPanel { public PropertyPanel addProp(String key, String value) { properties.add(new Prop(key, value)); return this; } PropertyPanel(String title, String typeId); PropertyPanel id(String id); PropertyPanel addProp(String key, String value); PropertyPanel addProp(String key, int value); PropertyPanel addProp(String key, long value); PropertyPanel addProp(String key, Object value); PropertyPanel addProp(String key, Object value, String reStrip); PropertyPanel addSeparator(); String title(); String typeId(); String id(); List<Prop> properties(); List<ButtonId> buttons(); PropertyPanel title(String title); PropertyPanel typeId(String typeId); PropertyPanel removeProps(String... keys); PropertyPanel removeAllProps(); PropertyPanel addButton(ButtonId button); PropertyPanel removeButtons(ButtonId... descriptors); PropertyPanel removeAllButtons();  }