@Test public void testEditorLoad() { MultipleEnumValuePairEditor enumEditor = new MultipleEnumValuePairEditorExtended( view ); AnnotationValuePairDefinition valuePairDefinition = annotationDefinition.getValuePair( "enumArrayParam1" ); enumEditor.init( valuePairDefinition ); verify( view, times( 1 ) ).setValuePairLabel( valuePairDefinition.getName() ); verify( view, times( 1 ) ).showValuePairRequiredIndicator( false ); verify( view, times( 1 ) ).addOptionEditor( optionEditors.get( TestEnums.ENUM1.VALUE1.name() ) ); verify( view, times( 1 ) ).addOptionEditor( optionEditors.get( TestEnums.ENUM1.VALUE2.name() ) ); verify( view, times( 1 ) ).addOptionEditor( optionEditors.get( TestEnums.ENUM1.VALUE3.name() ) ); verify( view, times( 1 ) ).addOptionEditor( optionEditors.get( "{}" ) ); }
@Override public void init( AnnotationValuePairDefinition valuePairDefinition ) { this.valuePairDefinition = valuePairDefinition; view.setValuePairLabel( ValuePairEditorUtil.buildValuePairLabel( valuePairDefinition ) ); view.showValuePairRequiredIndicator( !valuePairDefinition.hasDefaultValue() ); initOptionEditors( createOptions( valuePairDefinition.enumValues() ) ); }
MultipleEnumValuePairEditor implements MultipleEnumValuePairEditorView.Presenter,
        ValuePairEditor<List<String>> { @Override public void init( AnnotationValuePairDefinition valuePairDefinition ) { this.valuePairDefinition = valuePairDefinition; view.setValuePairLabel( ValuePairEditorUtil.buildValuePairLabel( valuePairDefinition ) ); view.showValuePairRequiredIndicator( !valuePairDefinition.hasDefaultValue() ); initOptionEditors( createOptions( valuePairDefinition.enumValues() ) ); } }
MultipleEnumValuePairEditor implements MultipleEnumValuePairEditorView.Presenter,
        ValuePairEditor<List<String>> { @Override public void init( AnnotationValuePairDefinition valuePairDefinition ) { this.valuePairDefinition = valuePairDefinition; view.setValuePairLabel( ValuePairEditorUtil.buildValuePairLabel( valuePairDefinition ) ); view.showValuePairRequiredIndicator( !valuePairDefinition.hasDefaultValue() ); initOptionEditors( createOptions( valuePairDefinition.enumValues() ) ); } MultipleEnumValuePairEditor();  MultipleEnumValuePairEditor( MultipleEnumValuePairEditorView view ); }
MultipleEnumValuePairEditor implements MultipleEnumValuePairEditorView.Presenter,
        ValuePairEditor<List<String>> { @Override public void init( AnnotationValuePairDefinition valuePairDefinition ) { this.valuePairDefinition = valuePairDefinition; view.setValuePairLabel( ValuePairEditorUtil.buildValuePairLabel( valuePairDefinition ) ); view.showValuePairRequiredIndicator( !valuePairDefinition.hasDefaultValue() ); initOptionEditors( createOptions( valuePairDefinition.enumValues() ) ); } MultipleEnumValuePairEditor();  MultipleEnumValuePairEditor( MultipleEnumValuePairEditorView view ); @Override Widget asWidget(); @Override void init( AnnotationValuePairDefinition valuePairDefinition ); @Override void clear(); @Override void addEditorHandler( ValuePairEditorHandler editorHandler ); @Override void setValue( List<String> value ); List<String> getValue( ); @Override boolean isValid(); @Override AnnotationValuePairDefinition getValuePairDefinition(); @Override void setErrorMessage( String errorMessage ); @Override void clearErrorMessage(); @Override void showValidateButton( boolean show ); @Override void showValuePairName( boolean show ); @Override void refresh(); }
MultipleEnumValuePairEditor implements MultipleEnumValuePairEditorView.Presenter,
        ValuePairEditor<List<String>> { @Override public void init( AnnotationValuePairDefinition valuePairDefinition ) { this.valuePairDefinition = valuePairDefinition; view.setValuePairLabel( ValuePairEditorUtil.buildValuePairLabel( valuePairDefinition ) ); view.showValuePairRequiredIndicator( !valuePairDefinition.hasDefaultValue() ); initOptionEditors( createOptions( valuePairDefinition.enumValues() ) ); } MultipleEnumValuePairEditor();  MultipleEnumValuePairEditor( MultipleEnumValuePairEditorView view ); @Override Widget asWidget(); @Override void init( AnnotationValuePairDefinition valuePairDefinition ); @Override void clear(); @Override void addEditorHandler( ValuePairEditorHandler editorHandler ); @Override void setValue( List<String> value ); List<String> getValue( ); @Override boolean isValid(); @Override AnnotationValuePairDefinition getValuePairDefinition(); @Override void setErrorMessage( String errorMessage ); @Override void clearErrorMessage(); @Override void showValidateButton( boolean show ); @Override void showValuePairName( boolean show ); @Override void refresh();  }