@Test public void testOnDelete( ) { listItem.loadAnnotation( annotation, annotationSource ); listItem.setDeleteAnnotationHandler( deleteAnnotationHandler ); listItem.onDelete( ); verify( deleteAnnotationHandler, times( 1 ) ).onDeleteAnnotation( annotation ); }
@Override public void onDelete( ) { if ( deleteAnnotationHandler != null ) { deleteAnnotationHandler.onDeleteAnnotation( annotation ); } }
AnnotationListItem implements AnnotationListItemView.Presenter, IsWidget { @Override public void onDelete( ) { if ( deleteAnnotationHandler != null ) { deleteAnnotationHandler.onDeleteAnnotation( annotation ); } } }
AnnotationListItem implements AnnotationListItemView.Presenter, IsWidget { @Override public void onDelete( ) { if ( deleteAnnotationHandler != null ) { deleteAnnotationHandler.onDeleteAnnotation( annotation ); } } AnnotationListItem( ); @Inject  AnnotationListItem( AnnotationListItemView view, Instance<AnnotationValuePairListItem> itemInstance ); }
AnnotationListItem implements AnnotationListItemView.Presenter, IsWidget { @Override public void onDelete( ) { if ( deleteAnnotationHandler != null ) { deleteAnnotationHandler.onDeleteAnnotation( annotation ); } } AnnotationListItem( ); @Inject  AnnotationListItem( AnnotationListItemView view, Instance<AnnotationValuePairListItem> itemInstance ); @Override Widget asWidget( ); void loadAnnotation( Annotation annotation, AnnotationSource annotationSource ); void setDeleteAnnotationHandler( AdvancedAnnotationListEditorView.DeleteAnnotationHandler deleteAnnotationHandler ); void setClearValuePairHandler( AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler ); void setEditValuePairHandler( AdvancedAnnotationListEditorView.EditValuePairHandler editValuePairHandler ); void setCollapseChangeHandler( AdvancedAnnotationListEditorView.CollapseChangeHandler collapseChangeHandler ); boolean isCollapsed( ); void setCollapsed( boolean collapsed ); void setReadonly( boolean readonly ); @Override void onDelete( ); @Override void onCollapseChange( ); }
AnnotationListItem implements AnnotationListItemView.Presenter, IsWidget { @Override public void onDelete( ) { if ( deleteAnnotationHandler != null ) { deleteAnnotationHandler.onDeleteAnnotation( annotation ); } } AnnotationListItem( ); @Inject  AnnotationListItem( AnnotationListItemView view, Instance<AnnotationValuePairListItem> itemInstance ); @Override Widget asWidget( ); void loadAnnotation( Annotation annotation, AnnotationSource annotationSource ); void setDeleteAnnotationHandler( AdvancedAnnotationListEditorView.DeleteAnnotationHandler deleteAnnotationHandler ); void setClearValuePairHandler( AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler ); void setEditValuePairHandler( AdvancedAnnotationListEditorView.EditValuePairHandler editValuePairHandler ); void setCollapseChangeHandler( AdvancedAnnotationListEditorView.CollapseChangeHandler collapseChangeHandler ); boolean isCollapsed( ); void setCollapsed( boolean collapsed ); void setReadonly( boolean readonly ); @Override void onDelete( ); @Override void onCollapseChange( );  }