/** * {@inheritDoc} */ @Override public String draw() { return Util.combine(new String(new char[] { AbstractTabularComponent.BORDER }), Util.repeat(new String(new char[] { content }), getTable().getTotalWidth() - 2), new String(new char[] { AbstractTabularComponent.BORDER }), NEWLINE); }
/** * {@inheritDoc} */ @Override public String draw() { return Util.combine(new String(new char[] { AbstractTabularComponent.BORDER }), Util.pad(title, enclosing, getTable().getTotalWidth() - 2, orientation), new String(new char[] { AbstractTabularComponent.BORDER }), NEWLINE); }