protected Component newRemoveComponent ( ) { return new PaletteButton ( "removeButton" ) { private static final long serialVersionUID = 1L ; @ Override protected void onComponentTag ( ComponentTag tag ) { super . onComponentTag ( tag ) ; tag . getAttributes ( ) . put ( "onclick" , getRemoveOnClickJS ( ) ) ; } } ; }
factory method for the remove component