/** * Construct a new instance of the input type field * <p> * * @param inputType */ public Input(InputTypes inputType) { super(ComponentTypes.Input); if (inputType != null) { this.inputType = inputType; addAttribute(GlobalAttributes.Type, getInputType().name() .toLowerCase()); addAttribute(GlobalAttributes.Name, getID()); } if (!getInlineClosingTag() && getPage().getHtmlVersion() .name() .startsWith("X") || !"select".equals(getTag())) { setInlineClosingTag(true); } setClosingTag(false); }
/** * Construct a new instance of the input type field * <p> * * @param inputType */ public Input(InputTypes inputType) { super(ComponentTypes.Input); if (inputType != null) { this.inputType = inputType; addAttribute(GlobalAttributes.Type, getInputType().name() .toLowerCase()); addAttribute(GlobalAttributes.Name, getID()); } if (!getInlineClosingTag() && getPage().getHtmlVersion() .name() .startsWith("X") || !"select".equals(getTag())) { setInlineClosingTag(true); } setClosingTag(false); }
/** * Construct a new instance of the input type field * <p> * * @param inputType */ public Input(InputTypes inputType) { super(ComponentTypes.Input); if (inputType != null) { this.inputType = inputType; addAttribute(GlobalAttributes.Type, getInputType().name() .toLowerCase()); addAttribute(GlobalAttributes.Name, getID()); } if (!getInlineClosingTag() && getPage().getHtmlVersion() .name() .startsWith("X") || !"select".equals(getTag())) { setInlineClosingTag(true); } setClosingTag(false); }