Examples of AttributeEvent


Examples of com.cburch.logisim.data.AttributeEvent

    while (ait.hasNext()) {
      Object a = ait.next();
      vit.next();
      if (a.equals(attr)) {
        vit.set(value);
        AttributeEvent e = new AttributeEvent(this, attr, value);
        for (AttributeListener listener : listeners) {
          listener.attributeValueChanged(e);
        }
        if (attr == DrawAttr.PAINT_TYPE) {
          e = new AttributeEvent(this);
          for (AttributeListener listener : listeners) {
            listener.attributeListChanged(e);
          }
        }
        return;
View Full Code Here

Examples of com.cburch.logisim.data.AttributeEvent

  public <V> void setValue(Attribute<V> attr, V value) {
    getBase().setValue(attr, value);
  }

  public void attributeListChanged(AttributeEvent baseEvent) {
    AttributeEvent e = null;
    for (AttributeListener l : listeners) {
      if (e == null) {
        e = new AttributeEvent(this, baseEvent.getAttribute(),
            baseEvent.getValue());
      }
      l.attributeListChanged(e);
    }
  }
View Full Code Here

Examples of com.cburch.logisim.data.AttributeEvent

      l.attributeListChanged(e);
    }
  }

  public void attributeValueChanged(AttributeEvent baseEvent) {
    AttributeEvent e = null;
    for (AttributeListener l : listeners) {
      if (e == null) {
        e = new AttributeEvent(this, baseEvent.getAttribute(),
            baseEvent.getValue());
      }
      l.attributeValueChanged(e);
    }
  }
View Full Code Here

Examples of com.cburch.logisim.data.AttributeEvent

  public final <V> void setValue(Attribute<V> attr, V value) {
    Object old = getValue(attr);
    boolean same = old == null ? value == null : old.equals(value);
    if (!same) {
      updateValue(attr, value);
      AttributeEvent e = new AttributeEvent(this, attr, value);
      for (AttributeListener listener : listeners) {
        listener.attributeValueChanged(e);
      }
    }
  }
View Full Code Here

Examples of com.cburch.logisim.data.AttributeEvent

      }
    }
  }
 
  protected void fireAttributeListChanged() {
    AttributeEvent e = new AttributeEvent(this);
    for (AttributeListener listener : listeners) {
      listener.attributeListChanged(e);
    }
  }
View Full Code Here

Examples of com.topologi.diffx.event.AttributeEvent

   *
   * @throws IOException Should an I/O error occur.
   */
  private void flushAttributes(Stack<AttributeEvent> atts, int mod) throws IOException {
    while (!atts.empty()) {
      AttributeEvent att = atts.pop();
      this.xml.openElement(Constants.BASE_NS_URI, mod > 0? "ins" : "del", false);
      this.xml.attribute(att.getURI(), att.getName(), att.getValue());
      this.xml.closeElement();
    }
  }
View Full Code Here

Examples of javanet.staxutils.events.AttributeEvent

    private StartElementEvent createStartElementEvent()
    {
        List attributes = new ArrayList();
        for (int i = 0; i < getAttributeCount(); i++)
        {
            attributes.add(new AttributeEvent(getAttributeName(i), getAttributeValue(i)));
        }

        return new StartElementEventX(getName(), attributes, getNamespaces(),
            createContext(), getLocation(), null);
    }
View Full Code Here

Examples of net.sf.wsdl2jibx.compiler.event.AttributeEvent

  /**
   *
   * @param attribute
   */
  protected void processAttribute(XmlSchemaAttribute attribute) {
    AttributeEvent event = createNewAttributeEvent(attribute);
   
    handler.foundAttribute(event);
  }
View Full Code Here

Examples of net.sf.wsdl2jibx.compiler.event.AttributeEvent

   
    if(simpleType!=null) {
      simpleTypeQName = XmlSchemaUtils.getSimpleTypeQName(simpleType);
    }
   
    AttributeEvent event = new AttributeEvent();
    event.setAttribute(attribute);
    event.setJavaQName(JavaSourceUtils.toJavaQName(simpleTypeQName));
    event.setName(attribute.getName());
    event.setRequired(event.getAttribute().getUse().getValue().equals("required"));
    event.setSimpleType(simpleTypeQName);
   
    return event;
  }
View Full Code Here

Examples of org.apache.cayenne.map.event.AttributeEvent

     *             attribute
     * @since 3.0
     */
    public void addAttribute(DbAttribute attr) {
        super.addAttribute(attr);
        this.dbAttributeAdded(new AttributeEvent(this, attr, this, MapEvent.ADD));
    }
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.