/** * This method must be used for all the cases when you need to display * property on UI. It converts its value from any type to string. * * @return */ public String getDisplayValue() { return getStringValue(); }
public TableProperty build() { return new TableProperty(this); } }
public String render(TableEditor editor) { return render(editor, null, null, null); }
public boolean isInheritedProperty() { return isModuleLevelProperty() || isCategoryLevelProperty() || isFolderLevelProperty() || isProjectLevelProperty() || isExternalPropery(); }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); TableEditor tableEditor = new TableEditor(context, component); if (tableEditor.getTable() == null) { // required attribute return; } writer.write(new HTMLRenderer().render(tableEditor)); }
@Override public String toString() { return new StringBuilder() .append(getDisplayName()) .append(" : ") .append(getDisplayValue()) .toString(); }
public String render(boolean showFormulas) { return render(showFormulas, null, "", null); }
private TableProperty getPropertyByName(String name) { for (TableProperty property : properties) { if (property.getName().equals(name)) { return property; } } return null; }
public String renderJS(String jsPath) { Set<String> resources = getResourcesWritten(); if (resources.add(jsPath)) { return "<script src=\"" + internalPath(jsPath) + "\"></script>"; } return ""; }
public int getMaxNumRowsToDisplay(List<ITestUnit> tests, int columnCount) { if (tests == null) { return HTMLRenderer.ALL_ROWS; } return HTMLRenderer.getMaxNumRowsToDisplay(tests.size(), columnCount); }
public String[] getEnumArrayValue() { if (value != null && isEnumArray()) { return EnumUtils.getNames((Enum<?>[]) value); } return null; }
public String renderJSBody(String jsBody) { Set<String> resources = getResourcesWritten(); if (resources.add(jsBody)) { return "<script>" + jsBody + "</script>"; } return ""; }
public boolean isInheritedProperty() { return isModuleLevelProperty() || isCategoryLevelProperty() || isFolderLevelProperty() || isProjectLevelProperty() || isExternalPropery(); }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); TableEditor tableEditor = new TableEditor(context, component); if (tableEditor.getTable() == null) { // required attribute return; } writer.write(new HTMLRenderer().render(tableEditor)); }
public String render(boolean showFormulas) { return render(showFormulas, null, "", null); }
/** * This method must be used for all the cases when you need to display * property on UI. It converts its value from any type to string. * * @return */ public String getDisplayValue() { return getStringValue(); }
public TableProperty build() { return new TableProperty(this); } }
/** * Set predefined properties into bean. * * @param properties List of properties. */ public void setProperties(List<TableProperty> properties) { this.properties = properties; for (TableProperty property : properties) { possibleToAddProps.remove(property.getName()); } }
public String renderCSS(String cssPath) { Set<String> resources = getResourcesWritten(); if (resources.add(cssPath)) { return "<link rel=\"stylesheet\" href=\"" + internalPath(cssPath) + "\"></link>"; } return ""; }
public String render(TableEditor editor) { return render(editor, null, null, null); }