1 package org.kuali.rice.krad.uif.element;
2
3 /**
4 * Content element that renders a non-breaking space HTML <code>&nbsp;</code> tag
5 *
6 * @author Kuali Rice Team (rice.collab@kuali.org)
7 */
8 public class Space extends ContentElementBase {
9 private static final long serialVersionUID = 4655642965438419569L;
10
11 public Space() {
12 super();
13 }
14
15 /**
16 * Indicates that this element renders itself and does not use a template
17 *
18 * <p>
19 * Since this method returns true, the renderOutput property provides
20 * the HTML string representing this element.
21 * </p>
22 *
23 * @return true - this object renders itself
24 * @see org.kuali.rice.krad.uif.component.Component#isSelfRendered()
25 */
26 @Override
27 public boolean isSelfRendered() {
28 return true;
29 }
30
31 /**
32 * Provides the HTML string to be used to render a non-breaking space
33 *
34 * <p>The HTML for a Space element is <code>&nbsp;</code></p>
35 *
36 * @return the HTML string for a non-breaking space
37 * @see org.kuali.rice.krad.uif.component.Component#getRenderedHtmlOutput()
38 */
39 @Override
40 public String getRenderedHtmlOutput() {
41 return " ";
42 }
43 }