public void encodeBegin(FacesContext facesContext) throws IOException { super.encodeBegin(facesContext); }
public void encodeChildren(FacesContext facesContext) throws IOException { checkForListeners(facesContext, this); super.encodeChildren(facesContext); }
public String getOnkeyup() { if (_onkeyup != null) { return _onkeyup; } ValueBinding vb = getValueBinding("onkeyup"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
/** * @param a * @return HtmlTag : LI tag containing the text separator (3 small points). */ private HtmlTag makeLiText(final Application a) { HtmlTag liText = (HtmlTag) a.createComponent(HtmlTag.COMPONENT_TYPE); liText.setValue(HTML.LI_ELEM); liText.setStyle("border:none;background-color:transparent;"); if (getBundles() != null) { HtmlOutputText text = (HtmlOutputText) a.createComponent(HtmlOutputText.COMPONENT_TYPE); text.setValue(getBundles().get(TEXT_SEPARATOR_I18N_KEY)); text.setParent(liText); text.setStyleClass(TagsConfigurator.getInstance().getTextStyleClass()); liText.getChildren().add(text); } return liText; } /*
/** * Add the submitPopup. */ protected void addSubmitPopupIfNeeded() { // add a div Div div = new Div(); div.setId("submitPopup"); div.setStyleClass("form-submit-popup"); div.setStyle("visibility: hidden"); div.setRendered(true); getChildren().add(div); // add the image to the div HtmlGraphicImage img = new HtmlGraphicImage(); img.setId("submitPopupImage"); img.setValue(getAttributes().get(SUBMIT_POPUP_IMAGE)); img.setStyle("visibility: hidden"); img.setRendered(true); div.getChildren().add(img); // add the text to the div HtmlOutputText text = new HtmlOutputText(); text.setId("submitPopupText"); text.setValueExpression(JSFAttr.VALUE_ATTR, getValueExpression(SUBMIT_POPUP_TEXT)); text.setStyle("visibility: hidden"); text.setRendered(true); div.getChildren().add(text); }
comp.setValueBinding("onclick", vb); comp.getAttributes().put("onclick", _onclick); comp.setValueBinding("ondblclick", vb); comp.getAttributes().put("ondblclick", _ondblclick); comp.setValueBinding("onkeydown", vb); comp.getAttributes().put("onkeydown", _onkeydown); comp.setValueBinding("onkeypress", vb); comp.getAttributes().put("onkeypress", _onkeypress); comp.setValueBinding("onkeyup", vb); comp.getAttributes().put("onkeyup", _onkeyup); comp.setValueBinding("onmousedown", vb); comp.getAttributes().put("onmousedown", _onmousedown); comp.setValueBinding("onmousemove", vb); comp.getAttributes().put("onmousemove", _onmousemove); comp.setValueBinding("onmouseout", vb);
public void encodeEnd(FacesContext facesContext) throws IOException { ResponseWriter writer = facesContext.getResponseWriter(); writer.startElement(HTML.SPAN_ELEM, null); writer.writeAttribute("id", this.getClientId(facesContext), null); super.encodeEnd(facesContext); writer.endElement(HTML.SPAN_ELEM); }
/** * @param a * @return HtmlTag : LI tag containing the text separator (3 small points). */ private HtmlTag makeLiText(final Application a) { HtmlTag liText = (HtmlTag) a.createComponent(HtmlTag.COMPONENT_TYPE); liText.setValue(HTML.LI_ELEM); liText.setStyle("border:none;background-color:transparent;"); if (getBundles() != null) { HtmlOutputText text = (HtmlOutputText) a.createComponent(HtmlOutputText.COMPONENT_TYPE); text.setValue(getBundles().get(TEXT_SEPARATOR_I18N_KEY)); text.setParent(liText); text.setStyleClass(TagsConfigurator.getInstance().getTextStyleClass()); liText.getChildren().add(text); } return liText; } /*
public String getOnkeydown() { if (_onkeydown != null) { return _onkeydown; } ValueBinding vb = getValueBinding("onkeydown"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOnmousemove() { if (_onmousemove != null) { return _onmousemove; } ValueBinding vb = getValueBinding("onmousemove"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOnmouseover() { if (_onmouseover != null) { return _onmouseover; } ValueBinding vb = getValueBinding("onmouseover"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getLang() { if (_lang != null) { return _lang; } ValueBinding vb = getValueBinding("lang"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOndblclick() { if (_ondblclick != null) { return _ondblclick; } ValueBinding vb = getValueBinding("ondblclick"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOnmouseout() { if (_onmouseout != null) { return _onmouseout; } ValueBinding vb = getValueBinding("onmouseout"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getEnabledOnUserRole() { if (_enabledOnUserRole != null) { return _enabledOnUserRole; } ValueBinding vb = getValueBinding("enabledOnUserRole"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getTitle() { if (_title != null) { return _title; } ValueBinding vb = getValueBinding("title"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOnkeypress() { if (_onkeypress != null) { return _onkeypress; } ValueBinding vb = getValueBinding("onkeypress"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getDir() { if (_dir != null) { return _dir; } ValueBinding vb = getValueBinding("dir"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOnclick() { if (_onclick != null) { return _onclick; } ValueBinding vb = getValueBinding("onclick"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getOnmousedown() { if (_onmousedown != null) { return _onmousedown; } ValueBinding vb = getValueBinding("onmousedown"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }