@Test public void buttons() { basic(); pp.addButton(BD_A) .addButton(BD_B); assertEquals("wrong buttons", 2, pp.buttons().size()); verifyButtons(KEY_A, KEY_B); pp.removeButtons(BD_B) .addButton(BD_C) .addButton(BD_Z); assertEquals("wrong buttons", 3, pp.buttons().size()); verifyButtons(KEY_A, KEY_C, KEY_Z); pp.removeAllButtons() .addButton(BD_B); assertEquals("wrong buttons", 1, pp.buttons().size()); verifyButtons(KEY_B); }
public List<ButtonId> buttons() { return buttons; }
PropertyPanel { public List<ButtonId> buttons() { return buttons; } }
PropertyPanel { public List<ButtonId> buttons() { return buttons; } PropertyPanel(String title, String typeId); }
PropertyPanel { public List<ButtonId> buttons() { return buttons; } 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 List<ButtonId> buttons() { return buttons; } 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();  }