protected Component newRemoveAllComponent ( ) { return new PaletteButton ( "removeAllButton" ) { private static final long serialVersionUID = 1L ; protected void onComponentTag ( ComponentTag tag ) { super . onComponentTag ( tag ) ; tag . getAttributes ( ) . put ( "onclick" , getRemoveAllOnClickJS ( ) ) ; } } ; }
factory method for the removeAll component