Examples of addAttribute()


Examples of javax.swing.text.StyleContext.NamedStyle.addAttribute()

    /*
     * NamedStyle(String, Style)
     */
    public void testNamedStyleStringStyle() {
        Style parent = StyleContext.getDefaultStyleContext().new NamedStyle();
        parent.addAttribute("key", "value");
        String name = "style_name";
        ns = StyleContext.getDefaultStyleContext().new NamedStyle(name, parent);
        assertEquals(parent, ns.getResolveParent());
        assertEquals(name, ns.getName());
    }

Examples of javax.swing.text.html.HTMLDocument.BlockElement.addAttribute()

        assertEquals("paragraph", block.getName());
        htmlDoc.lockWrite();

        final String name = "asddsa";
        block = htmlDoc.new BlockElement(null, null);
        block.addAttribute(StyleConstants.NameAttribute, name);
        assertEquals(name, block.getName());
    }

    public void testGetElement() {
        if (isHarmony()) {

Examples of javax.swing.text.html.HTMLDocument.RunElement.addAttribute()

        assertEquals("content", run.getName());
        htmlDoc.lockWrite();

        final String name = "asddsa";
        run = htmlDoc.new RunElement(null, null, 0, 0);
        run.addAttribute(StyleConstants.NameAttribute, name);
        assertEquals(name, run.getName());
    }

    public void testGetResolveParent() {
        AbstractElement parent = htmlDoc.new RunElement(null, null, 0, 0);

Examples of javax.xml.soap.SOAPBody.addAttribute()

        String value1 = "MyValue1";
        Name name2 = envelope.createName("MyAttr2");
        String value2 = "MyValue2";
        Name name3 = envelope.createName("MyAttr3");
        String value3 = "MyValue3";
        body.addAttribute(name1, value1);
        body.addAttribute(name2, value2);
        body.addAttribute(name3, value3);
        java.util.Iterator iterator = body.getAllAttributes();
        assertTrue(getIteratorCount(iterator) == 3);
        iterator = body.getAllAttributes();

Examples of javax.xml.soap.SOAPElement.addAttribute()

        Name elementName2 = sf.createName("UKAddress", "", "http://objectweb.org/type_test");
        Name xsiAttrName2 = sf.createName("type", "xsi", "http://www.w3.org/2001/XMLSchema-instance");
        SOAPElement x2 = sf.createElement(elementName2);
        x2.addNamespaceDeclaration("tns", "http://objectweb.org/type_test");
        x2.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x2.addAttribute(xsiAttrName2, "tns:UKAddressType22");
        x2.addTextNode("This is the text of the node for the second struct");

        swa.setAny(x);
        yOrig.setAny(x2);

Examples of javax.xml.soap.SOAPHeaderElement.addAttribute()

                    // QName soapMustUnderstand = new QName("http://schemas.xmlsoap.org/soap/envelope/",
                    // "mustUnderstand");
                    Name name = SOAPFactory.newInstance()
                        .createName("mustUnderstand", "soap", "http://schemas.xmlsoap.org/soap/envelope/");
                    headerElement.addAttribute(name, "1");
                } else {
                    getHandlerInfoList(ctx).add(getHandlerId());
                }
            }
        } catch (SOAPException e) {

Examples of l2p.gameserver.serverpackets.StatusUpdate.addAttribute()

    for(int field : fields)
    {
      switch(field)
      {
        case StatusUpdate.CUR_HP:
          su.addAttribute(field, (int) getCurrentHp());
          break;
        case StatusUpdate.MAX_HP:
          su.addAttribute(field, getMaxHp());
          break;
        case StatusUpdate.CUR_MP:

Examples of marauroa.common.game.RPClass.addAttribute()

   */
  private static RPClass createRPClass() {
    final RPClass rpclass = new RPClass("active_entity");

    rpclass.isA("entity");
    rpclass.addAttribute("dir", Type.BYTE, Definition.VOLATILE);
    rpclass.addAttribute("speed", Type.FLOAT, Definition.VOLATILE);

    return rpclass;
  }

Examples of net.fckeditor.tool.XHtmlTagTool.addAttribute()

      strEditor.append(iframeTag);

    } else {
      XHtmlTagTool textareaTag = new XHtmlTagTool("textarea",
          encodedValue);
      textareaTag.addAttribute("name", inputName);
      textareaTag.addAttribute("rows", "4");
      textareaTag.addAttribute("cols", "40");
      textareaTag.addAttribute("wrap", "virtual");
      textareaTag.addAttribute("style", "width: ".concat(width).concat(
          "; height: ").concat(height));

Examples of net.sf.ehcache.config.generator.model.SimpleNodeElement.addAttribute()

     * @return generated config element for this search attribute
     */
    public NodeElement asConfigElement(NodeElement parent) {
        SimpleNodeElement rv = new SimpleNodeElement(parent, "searchAttribute");

        rv.addAttribute(new SimpleNodeAttribute("name", name));

        if (expression != null) {
            rv.addAttribute(new SimpleNodeAttribute("expression", expression));
        } else if (className != null) {
            rv.addAttribute(new SimpleNodeAttribute("class", className));
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.