@Test @SuppressWarnings("unchecked") public void checkEdit() { final GridBodyCellEditContext context = mock(GridBodyCellEditContext.class); header.edit(context); verify(factory).attachDomElement(eq(context), any(Consumer.class), any(Consumer.class)); }
@Override public void edit(final GridBodyCellEditContext context) { factory.attachDomElement(context, (e) -> e.setValue(getTitle()), (e) -> e.setFocus(true)); }
EditableTextHeaderMetaData implements EditableHeaderMetaData { @Override public void edit(final GridBodyCellEditContext context) { factory.attachDomElement(context, (e) -> e.setValue(getTitle()), (e) -> e.setFocus(true)); } }
EditableTextHeaderMetaData implements EditableHeaderMetaData { @Override public void edit(final GridBodyCellEditContext context) { factory.attachDomElement(context, (e) -> e.setValue(getTitle()), (e) -> e.setFocus(true)); } EditableTextHeaderMetaData(final Supplier<String> titleGetter,
                                      final Consumer<String> titleSetter,
                                      final SingletonDOMElementFactory<W, E> factory);  EditableTextHeaderMetaData(final Supplier<String> titleGetter,
                                      final Consumer<String> titleSetter,
                                      final SingletonDOMElementFactory<W, E> factory,
                                      final String columnGroup); }
EditableTextHeaderMetaData implements EditableHeaderMetaData { @Override public void edit(final GridBodyCellEditContext context) { factory.attachDomElement(context, (e) -> e.setValue(getTitle()), (e) -> e.setFocus(true)); } EditableTextHeaderMetaData(final Supplier<String> titleGetter,
                                      final Consumer<String> titleSetter,
                                      final SingletonDOMElementFactory<W, E> factory);  EditableTextHeaderMetaData(final Supplier<String> titleGetter,
                                      final Consumer<String> titleSetter,
                                      final SingletonDOMElementFactory<W, E> factory,
                                      final String columnGroup); @Override String getTitle(); @Override void setTitle(final String title); @Override String getColumnGroup(); @Override void setColumnGroup(final String columnGroup); @Override void destroyResources(); @Override void edit(final GridBodyCellEditContext context); @Override GridCellEditAction getSupportedEditAction(); @Override boolean equals(final Object o); @Override int hashCode(); }
EditableTextHeaderMetaData implements EditableHeaderMetaData { @Override public void edit(final GridBodyCellEditContext context) { factory.attachDomElement(context, (e) -> e.setValue(getTitle()), (e) -> e.setFocus(true)); } EditableTextHeaderMetaData(final Supplier<String> titleGetter,
                                      final Consumer<String> titleSetter,
                                      final SingletonDOMElementFactory<W, E> factory);  EditableTextHeaderMetaData(final Supplier<String> titleGetter,
                                      final Consumer<String> titleSetter,
                                      final SingletonDOMElementFactory<W, E> factory,
                                      final String columnGroup); @Override String getTitle(); @Override void setTitle(final String title); @Override String getColumnGroup(); @Override void setColumnGroup(final String columnGroup); @Override void destroyResources(); @Override void edit(final GridBodyCellEditContext context); @Override GridCellEditAction getSupportedEditAction(); @Override boolean equals(final Object o); @Override int hashCode();  }