@Test public void testGetJavaInitializationString() { assertThat( editor.getJavaInitializationString(), is( equalTo( "null" ) ) ); ElementType type = mock( ElementType.class ); editor.setValue( type ); assertThat( editor.getJavaInitializationString(), is( equalTo( type.getClass().getName() + "()" ) ) ); }
public String getJavaInitializationString() { if ( value == null ) { return "null"; } return value.getClass().getName() + "()"; }
ElementTypePropertyEditor implements PropertyEditor { public String getJavaInitializationString() { if ( value == null ) { return "null"; } return value.getClass().getName() + "()"; } }
ElementTypePropertyEditor implements PropertyEditor { public String getJavaInitializationString() { if ( value == null ) { return "null"; } return value.getClass().getName() + "()"; } ElementTypePropertyEditor(); }
ElementTypePropertyEditor implements PropertyEditor { public String getJavaInitializationString() { if ( value == null ) { return "null"; } return value.getClass().getName() + "()"; } ElementTypePropertyEditor(); void setValue( final Object value ); Object getValue(); boolean isPaintable(); void paintValue( final Graphics gfx, final Rectangle box ); String getJavaInitializationString(); String getAsText(); void setAsText( final String text ); String[] getTags(); Component getCustomEditor(); boolean supportsCustomEditor(); void addPropertyChangeListener( final PropertyChangeListener listener ); void removePropertyChangeListener( final PropertyChangeListener listener ); }
ElementTypePropertyEditor implements PropertyEditor { public String getJavaInitializationString() { if ( value == null ) { return "null"; } return value.getClass().getName() + "()"; } ElementTypePropertyEditor(); void setValue( final Object value ); Object getValue(); boolean isPaintable(); void paintValue( final Graphics gfx, final Rectangle box ); String getJavaInitializationString(); String getAsText(); void setAsText( final String text ); String[] getTags(); Component getCustomEditor(); boolean supportsCustomEditor(); void addPropertyChangeListener( final PropertyChangeListener listener ); void removePropertyChangeListener( final PropertyChangeListener listener );  }