package pt.ist.fenixWebFramework.renderers; import pt.ist.fenixWebFramework.renderers.components.HtmlComponent; import pt.ist.fenixWebFramework.renderers.components.HtmlTextInput; /** * This renderer provides a standard way of doing the input of a string. The * string is read with a text input field. * *
* Example: * * * @author cfgi */ public class StringInputRenderer extends TextFieldRenderer { @Override protected HtmlComponent createTextField(Object object, Class type) { String string = (String) object; HtmlTextInput input = new HtmlTextInput(); input.setValue(string); return input; } }