@Test public void testOnClear( ) { listItem.setClearValuePairHandler( clearValuePairHandler ); listItem.loadValuePair( annotation, valuePairDefinition, annotationSource ); listItem.onClear( ); verify( clearValuePairHandler, times( 1 ) ).onClearValuePair( annotation, VALUE_PAIR_NAME ); }
@Override public void onClear( ) { if ( clearValuePairHandler != null ) { clearValuePairHandler.onClearValuePair( annotation, valuePairDefinition.getName( ) ); } }
AnnotationValuePairListItem implements AnnotationValuePairListItemView.Presenter, IsWidget { @Override public void onClear( ) { if ( clearValuePairHandler != null ) { clearValuePairHandler.onClearValuePair( annotation, valuePairDefinition.getName( ) ); } } }
AnnotationValuePairListItem implements AnnotationValuePairListItemView.Presenter, IsWidget { @Override public void onClear( ) { if ( clearValuePairHandler != null ) { clearValuePairHandler.onClearValuePair( annotation, valuePairDefinition.getName( ) ); } } AnnotationValuePairListItem( ); @Inject  AnnotationValuePairListItem( AnnotationValuePairListItemView view ); }
AnnotationValuePairListItem implements AnnotationValuePairListItemView.Presenter, IsWidget { @Override public void onClear( ) { if ( clearValuePairHandler != null ) { clearValuePairHandler.onClearValuePair( annotation, valuePairDefinition.getName( ) ); } } AnnotationValuePairListItem( ); @Inject  AnnotationValuePairListItem( AnnotationValuePairListItemView view ); @Override Widget asWidget( ); void loadValuePair( final Annotation annotation,
                               final AnnotationValuePairDefinition valuePairDefinition,
                               final AnnotationSource annotationSource ); void setReadonly( boolean readonly ); void setClearValuePairHandler( AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler ); void setEditValuePairHandler( AdvancedAnnotationListEditorView.EditValuePairHandler editValuePairHandler ); @Override void onEdit( ); @Override void onClear( ); }
AnnotationValuePairListItem implements AnnotationValuePairListItemView.Presenter, IsWidget { @Override public void onClear( ) { if ( clearValuePairHandler != null ) { clearValuePairHandler.onClearValuePair( annotation, valuePairDefinition.getName( ) ); } } AnnotationValuePairListItem( ); @Inject  AnnotationValuePairListItem( AnnotationValuePairListItemView view ); @Override Widget asWidget( ); void loadValuePair( final Annotation annotation,
                               final AnnotationValuePairDefinition valuePairDefinition,
                               final AnnotationSource annotationSource ); void setReadonly( boolean readonly ); void setClearValuePairHandler( AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler ); void setEditValuePairHandler( AdvancedAnnotationListEditorView.EditValuePairHandler editValuePairHandler ); @Override void onEdit( ); @Override void onClear( );  }