Examples of removeAttribute()


Examples of org.w3c.dom.html.HTMLInputElement.removeAttribute()

            {
                input.setAttribute("id","q");
                inputSearch = input;
            }
            else
                input.removeAttribute("name"); // makes it useless
        }

        HTMLInputElement template = (HTMLInputElement)doc.createElement("input");
        template.setAttribute("type","hidden");
        template.setName("itsnat_doc_name");
View Full Code Here

Examples of org.w3c.dom.html.HTMLOptionElement.removeAttribute()

            {
                HTMLOptionElement option = (HTMLOptionElement)col.item(i);
                boolean selected = option.getSelected();
                if (selected)
                {
                    option.removeAttribute("selected");
                    i++;
                    i = i % len;
                    option = (HTMLOptionElement)col.item(i);
                    option.setAttribute("selected","selected");
                    break;
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement.removeAttribute()

    }

    public void setLineWrap(boolean wrap)
    {
        HTMLTextAreaElement element = getHTMLTextAreaElement();
        if (wrap) element.removeAttribute("wrap"); // Por defecto tanto MSIE como FireFox hace wrap
        else DOMUtilInternal.setAttribute(element,"wrap","off");
    }

    public boolean isEnabled()
    {
View Full Code Here

Examples of org.wildfly.clustering.web.session.SessionAttributes.removeAttribute()

        String name = "name";
        Object value = null;
        Object expected = new Object();

        when(this.session.getAttributes()).thenReturn(attributes);
        when(attributes.removeAttribute(name)).thenReturn(expected);
        when(this.manager.getSessionListeners()).thenReturn(listeners);
        when(this.manager.getSessionManager()).thenReturn(manager);
        when(manager.getBatcher()).thenReturn(batcher);
        when(batcher.resumeBatch(this.batch)).thenReturn(context);
       
View Full Code Here

Examples of org.xml.sax.helpers.AttributesImpl.removeAttribute()

            //Append only when the feature http://xml.org/sax/features/namespace-prefixes"
            //is TRUE
            if (rawName.startsWith( "xmlns" )) {
                if (rawName.length() == 5) {
                    startPrefixMapping( "", attrs.getValue( i ) );
                    attrsOnly.removeAttribute( i );
                } else if (rawName.charAt(5) == ':') {
                    startPrefixMapping(rawName.substring(6), attrs.getValue(i));
                    attrsOnly.removeAttribute( i );
                }
            }
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.removeAttribute()

          GpelAssignCopy copy = itr.next();
          String query = copy.getFrom().xml().attributeValue(QUERY_STR);
          XmlElement copyElmt = copy.getFrom().xml();
          //remove if attribute is found earlier
          if( null != query){
            copyElmt.removeAttribute(copyElmt.attribute(QUERY_STR));
            copyElmt.setAttributeValue(QUERY_STR, "/"+extractDataType(query));
          }
         
         
          query = copy.getTo().xml().attributeValue(QUERY_STR);
View Full Code Here

Examples of org.zkoss.zk.ui.Component.removeAttribute()

      } finally {
      if (comp.isListenerAvailable(event.getName(), true)) {
        EventListener listener = (EventListener) comp.getAttribute(event.getName());
        if (listener != null) {
          comp.removeEventListener(event.getName(), listener);
          comp.removeAttribute(event.getName());
        }
      }
    }
  }
View Full Code Here

Examples of org.zkoss.zk.ui.Desktop.removeAttribute()

  public static void start(org.zkoss.zk.ui.sys.ServerPush sp, Component info, Textbox tb) throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      Messagebox.show("Already started");
    } else {
      desktop.removeAttribute("sp.ceased");
      if (sp != null)
        ((DesktopCtrl)desktop).enableServerPush(sp);
      else
        desktop.enableServerPush(true);
      new WorkingThread(info, tb).start();
View Full Code Here

Examples of org.zkoss.zk.ui.Execution.removeAttribute()

        .render(this, out);
    } finally {
      if (oldrendering != null)
        exec.setAttribute(Attributes.PAGE_RENDERING, oldrendering);
      else
        exec.removeAttribute(Attributes.PAGE_RENDERING);
    }
  }
  private static boolean shallIE7Compatible() {
    if (_ie7compat == null)
      _ie7compat = Boolean.valueOf("true".equals(
View Full Code Here

Examples of org.zkoss.zk.ui.Page.removeAttribute()

              bean = comp.getAttributeOrFellow(beanid, true);
              if (bean == null)
                bean = page.getXelVariable(null, null, beanid, true);
            } finally {
              if (self == null) {
                page.removeAttribute("self");
              } else {
                page.setAttribute("self", self);
              }
            }
          }
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.