/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** differentiate so we can avoid having creation events for regions, * map operations, and other "new ST" events used during interp. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** Differentiate so we can avoid having creation events for regions, * map operations, and other implicit "new ST" events during rendering. */ public ST createStringTemplateInternally(CompiledST impl) { ST st = createStringTemplate(impl); if ( trackCreationEvents && st.debugState!=null ) { st.debugState.newSTEvent = null; // toss it out } return st; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like a/b */ public ST getInstanceOf(String name) { if ( verbose ) System.out.println("getInstanceOf("+name+") in group "+getName()); if ( name==null ) return null; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
@Override @JsonIgnore public ST generateTemplate(STGroup group) { ST template = group.createStringTemplate(group.rawGetTemplate(AweConstants.TEMPLATE_INFO)); ST children = super.generateTemplate(group); // Generate template template.add("e", this).add("children", children); // Retrieve code return template; } }
/** * Generates the output HTML of the element * * @param group String Template Group * @return Code */ public ST generateTemplate(STGroup group) { ST template = group.createStringTemplate(group.rawGetTemplate(getTemplate())); List<ST> children = new ArrayList<>(); // Call generate method on all children if (this.getElementList() != null) { for (Element element : (List<Element>) this.getElementList()) { // Generate the children children.add(element.generateTemplate(group)); } } // Generate template template.add("e", this).add("children", children); // Retrieve code return template; }
/** * Generates the output HTML of the element * * @param group String Template Group * @return Code */ @Override public ST generateTemplate(STGroup group) { ST template = group.createStringTemplate(group.rawGetTemplate(getTemplate())); List<ST> children = new ArrayList<>(); // Call generate method on all children if (this.getElementList() != null) { for (Element element : this.getElementList()) { // Generate the children children.add(element.generateTemplate(group)); } } // Generate template template.add("e", this).add("component", getComponentTag()).add("children", children); // Retrieve code return template; }
@Override public ST generateHelpTemplate(STGroup group, String label, boolean developers) { ST template = group.createStringTemplate(group.rawGetTemplate(getHelpTemplate())); List<ST> columns = new ArrayList<>(); List<ST> buttons = new ArrayList<>(); String currentLabel = getLabel() == null ? label : getLabel(); // Get grid columns List<Column> gridColumns = getElementsByType(Column.class); for (Column column : gridColumns) { // Generate the children if (!column.isHidden() && column.getLabel() != null) { columns.add(column.generateHelpTemplate(group, null, developers)); } } // Get grid buttons List<Button> buttonList = getElementsByType(Button.class); for (Button button : buttonList) { // Generate the children buttons.add(button.generateHelpTemplate(group, null, AweConstants.TEMPLATE_HELP_BUTTON_GRID, developers)); } // Generate template template.add("e", this).add("label", currentLabel).add("developers", developers).add("columns", columns).add("buttons", buttons); // Retrieve code return template; }