Examples of Attributes


Examples of net.java.textilej.parser.Attributes

    @Override
    public void emitPhrase() {
      String text = group(1);
      if (text != null && text.length() > 0) {
        builder.beginSpan(SpanType.MONOSPACE, new Attributes(null,"monospaced",null,null));
        parserServices.emitText(text);
        builder.endSpan();
      }
    }
View Full Code Here

Examples of net.sf.rej.java.attribute.Attributes

    return "Attributes (" + this.attributes.size() + ")";
  }

  public void refresh() {
    this.attributes = new ArrayList<AttributeNode>();
    Attributes attrs = this.method.getAttributes();
    List list = attrs.getAttributes();
    for (int i = 0; i < list.size(); i++) {
      Attribute attr = (Attribute) list.get(i);
      this.attributes.add(new AttributeNode(attrs, attr));
    }
  }
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Attributes

            for ( Entity e : orm.getEntity() )
            {
                if ( e.getAttributes() == null )
                {
                    e.setAttributes( new Attributes() );
                }

                this.addMandatoryAttributes( orm, e.getAttributes(), this.getClassOutline( model, e.getClazz() ) );
            }
View Full Code Here

Examples of opennlp.tools.dictionary.serializer.Attributes

      public Entry next() {

        StringList tokens = mDictionaryIterator.next();

        Attributes attributes = new Attributes();

        attributes.setValue("value", get(tokens));

        return new Entry(tokens, attributes);
      }

      public void remove() {
View Full Code Here

Examples of org.apache.empire.commons.Attributes

    private void renderLink(HtmlWriter writer, String text, String action, String param, String value)
    {
        Map<String, Object> paramMap = null;
        if (param != null)
        {
            paramMap = new Attributes();
            paramMap.put(param, value);
        }
        // Render Link now
        HtmlTag link = writer.startTag("a");
        link.addAttribute("href", getUrl(action, paramMap));
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.action.Attributes

                    LOG.debug(tagName);

                    // TODO remove context & request from Attributes -- the tags
                    // will be re-used across
                    // requests
                    final Attributes attributes = new Attributes(tagNode, context);
                    int type = 0;
                    if (tagNode.isEndTag()) {
                        type = SwfTag.END;
                    } else {
                        type = tagNode.isEmptyXmlTag() ? SwfTag.EMPTY : SwfTag.START;
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Attributes

                field.setColumn(column);
            }

            if (bean.getKeyGenerator() != null) {
                // todo support complex primary keys
                Attributes attributes = entityData.entity.getAttributes();
                if (attributes != null && attributes.getId().size() == 1) {
                    Id id = attributes.getId().get(0);

                    // todo detect specific generation strategy
                    id.setGeneratedValue(new GeneratedValue(GenerationType.IDENTITY));
                }
            }
View Full Code Here

Examples of org.apache.shale.clay.config.beans.Attributes

            throw new NullPointerException(getMessages()
                    .getMessage("clay.null.facesContext"));
        }

        // create a new scoped symbol table
        Map symbolTable = new Attributes();
        // inherit the parents symbols
        symbolTable.putAll(clayContext.getSymbols());
        // override config (XML, HTML) symbols
        symbolTable.putAll(displayElement.getSymbols());
        // push to context
        clayContext.setSymbols(symbolTable);

        // evaluate nested symbols; symbols having symbols as values
        realizeSymbols(clayContext);
View Full Code Here

Examples of org.apache.struts2.views.java.Attributes

public class SubmitHandler extends AbstractTagHandler implements TagGenerator {

    public void generate() throws IOException {
        Map<String, Object> params = context.getParameters();
        Attributes attrs = new Attributes();

        String type = StringUtils.defaultString((String) params.get("type"), "input");

        if ("button".equals(type)) {
            attrs.addIfExists("name", params.get("name"))
                    .add("type", "submit")
                    .addIfExists("value", params.get("nameValue"))
                    .addIfTrue("disabled", params.get("disabled"))
                    .addIfExists("tabindex", params.get("tabindex"))
                    .addIfExists("id", params.get("id"))
                    .addIfExists("class", params.get("cssClass"))
                    .addIfExists("style", params.get("cssStyle"));

            start("button", attrs);
        } else if ("image".equals(type)) {
            attrs.addIfExists("src", params.get("src"))
                    .add("type", "image")
                .addIfExists("alt", params.get("label"))
                .addIfExists("id", params.get("id"))
                    .addIfExists("class", params.get("cssClass"))
                .addIfExists("style", params.get("cssStyle"));
             start("input", attrs);
        } else {
            attrs.addIfExists("name", params.get("name"))
                    .add("type", "submit")
                    .addIfExists("value", params.get("nameValue"))
                    .addIfTrue("disabled", params.get("disabled"))
                    .addIfExists("tabindex", params.get("tabindex"))
                    .addIfExists("id", params.get("id"))
View Full Code Here

Examples of org.apache.vinci.transport.Attributes

    return a;
  }

  public Attributes createAttributes() {
    if (a == null) {
      a = new Attributes();
    }
    return a;
  }
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.