public void listing5() { // tag::listing5[] PropertyListing listing = Components.listing.properties(PROPERTIES) // .render(ID, new NumberRenderer(Locale.US)) // <1> .render(ID, value -> String.valueOf(value), new TextRenderer()) // <2> .build(); // end::listing5[] }
@Override public TextRenderer getRenderer(ColumnDefinition definition) { return new TextRenderer(); }
@Override public TextRenderer getImplementation() { return (TextRenderer) super.getImplementation(); }
@Override protected TextRenderer createImplementation() { return new TextRenderer(getNullRepresentation()); }