protected Label newButtonLabel ( final String id , final String resourceKey , final String defaultValue ) { final IModel < String > labelModel = ResourceModelFactory . newResourceModel ( resourceKey , this , defaultValue ) ; final Label label = new Label ( id , labelModel ) ; label . setOutputMarkupId ( true ) ; return label ; }
Factory method for creating the Button Label . This method is invoked in the constructor from the derived classes and can be overridden so users can provide their own version of a Label .