public Action( final String handler, final String title, final String scope, final String nameResolver) { this.handler = Handlebars.stripHandlebar(handler); this.handlerRef = HandlerRef.referenceFor(handler); this.title = Handlebars.templateSafeValue(title); // title can be a simple value or an expression this.scope = scope != null ? Button.Scope.valueOf(scope.toUpperCase()) : null; this.nameResolver = Handlebars.stripHandlebar(nameResolver); // name resolver has to be an expression this.attributes = new ArrayList<>(); }
DataTableInfo( final String name, final String selector, final TypeParameter typeParameter, final MetadataInfo metadata, final String title) { super(name, selector); this.typeParameter = typeParameter; this.metadata = metadata; this.title = Handlebars.templateSafeValue(title); // title can be a simple value or an expression this.columns = new ArrayList<>(); this.actions = new ArrayList<>(); }