Examples of Markup


Examples of org.apache.myfaces.tobago.context.Markup

   */
  public void prepareRender(FacesContext facesContext, UIComponent component) throws IOException {

    if (component instanceof SupportsMarkup) {
      final SupportsMarkup supportsMarkup = (SupportsMarkup) component;
      Markup markup = ComponentUtils.updateMarkup(component, supportsMarkup.getMarkup());
      supportsMarkup.setCurrentMarkup(markup);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

    Style style = new Style(facesContext, time);
    writer.writeStyleAttribute(style);

    writer.startElement(HtmlElements.DIV, time);
    writer.writeAttribute(HtmlAttributes.ID, idPrefix + "borderDiv", false);
    Markup markup = time.getCurrentMarkup();
    if (hasSeconds) {
      markup = markup.add(Markup.SECONDS);
    }
    writer.writeClassAttribute(Classes.create(time, "borderDiv", markup));

    writeInput(writer, time, idPrefix + "hour", hour, true, title);
    writeInputSeparator(writer, time, ":");
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

    writer.startElement(HtmlElements.LABEL, null);
    if (clientId != null) {
      writer.writeAttribute(HtmlAttributes.FOR, clientId, false);
    }
    writer.writeAttribute(HtmlAttributes.TITLE, detail, true);
    final Markup markup = ComponentUtils.markupOfSeverity(message.getSeverity());
    writer.writeClassAttribute(Classes.create(messages, "item", markup));
    boolean writeEmptyText = true;
    if (summary != null && messages.isShowSummary()) {
      writer.writeText(summary);
      writeEmptyText = false;
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

    // adding the markups from the corresponding input component
    final UILabel label = (UILabel) component;
    final UIComponent corresponding = ComponentUtils.findFor(label);
    if (corresponding != null) {
      Markup markup = label.getCurrentMarkup();
      markup = ComponentUtils.updateMarkup(corresponding, markup);
      label.setCurrentMarkup(markup);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

          if (image != null) {
            String imagePath = ResourceManagerUtils.getImageWithPath(facesContext, image);
            writer.writeStyleAttribute("background-image: url('" + imagePath + "')");
          }
        }
        Markup markup = item instanceof SupportsMarkup ? ((SupportsMarkup) item).getMarkup() : Markup.NULL;
        if (onlySelected == null && contains) {
          writer.writeAttribute(HtmlAttributes.SELECTED, true);
          markup = Markup.SELECTED.add(markup);
        }
        if (item.isDisabled()) {
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

  // XXX optimize synchronized
  private static synchronized Classes create(
      UIComponent component, boolean markupFromComponent, String sub, Markup explicit, boolean ignoreCheck) {
    final String rendererName = StringUtils.uncapitalize(component.getRendererType());
    final Markup markup = markupFromComponent ? ((SupportsMarkup) component).getCurrentMarkup() : explicit;
    Classes value = (Classes) CACHE.get(rendererName, markup, sub);
    if (value == null) {
      value = new Classes(rendererName, markup, sub, ignoreCheck);
      CACHE.put(rendererName, markup, sub, value);
      if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

   */
  public void prepareRender(FacesContext facesContext, UIComponent component) throws IOException {

    if (component instanceof SupportsMarkup) {
      final SupportsMarkup supportsMarkup = (SupportsMarkup) component;
      Markup markup = ComponentUtils.updateMarkup(component, supportsMarkup.getMarkup());
      supportsMarkup.setCurrentMarkup(markup);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.context.Markup

      addMarkupClass((SupportsMarkup) component, rendererName, null);
    }
  }

  public void addMarkupClass(SupportsMarkup supportsMarkup, String rendererName, String sub) {
    Markup m = supportsMarkup.getCurrentMarkup();
    if (m != null) {
      for (String markup : m) {
        Theme theme = VariableResolverUtils.resolveClientProperties(FacesContext.getCurrentInstance()).getTheme();
        if (theme.getRenderersConfig().isMarkupSupported(rendererName, markup)) {
          addMarkupClass(rendererName, sub, markup);
View Full Code Here

Examples of org.apache.uima.ruta.type.MARKUP

          return t;
        }
        case 22:
          break;
        case 15: {
          MARKUP t = new MARKUP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 23:
          break;
        case 6: {
          EXCLAMATION t = new EXCLAMATION(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 24:
          break;
        case 7: {
          NBSP t = new NBSP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 25:
          break;
        case 14: {
          CAP t = new CAP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 26:
          break;
        case 12: {
          PERIOD t = new PERIOD(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 27:
          break;
        case 5: {
          BREAK t = new BREAK(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 28:
          break;
        case 2: {
          CW t = new CW(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 29:
          break;
        case 10: {
          COLON t = new COLON(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 30:
          break;
        case 9: {
          SEMICOLON t = new SEMICOLON(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 31:
          break;
        case 16: {
          AMP t = new AMP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 32:
          break;
View Full Code Here

Examples of org.apache.wicket.markup.Markup

    {
      // Must be a MarkupContainer to have associated markup file
      if (this instanceof MarkupContainer)
      {
        MarkupContainer container = (MarkupContainer)this;
        Markup associatedMarkup = container.getAssociatedMarkup();
        if (associatedMarkup != null)
        {
          markup = associatedMarkup;
          return markup;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.