Package de.chris_soft.fyllgen.widget.listener

Examples of de.chris_soft.fyllgen.widget.listener.RelationshipChangeEvent


   * Eine andere Person wurde in der ComboBox angew�hlt.
   */
  private void changed() {
    if (!bCurrentPersonChanging) {
      if (currentPerson != null && combo.getSelectionIndex() >= 0) {
        sendRelationshipChangeListenerEvent(new RelationshipChangeEvent(relships[combo.getSelectionIndex()]));
        sendCurrentPersonChangeListenerEvent(new CurrentPersonChangeEvent(
            relships[combo.getSelectionIndex()].getOtherPerson(currentPerson)));
      }
      else {
        // 20110916 - Ein Versuch...
        sendRelationshipChangeListenerEvent(new RelationshipChangeEvent(null));
      }
    }
  }
View Full Code Here


   */
  public void addRelationshipChangeListener(RelationshipChangeListener listener) {
    // Den neuen Listener merken und ihm die aktuelle Beziehung anzeigen.
    vRelationshipChangeListener.add(listener);
    if (currentPerson == null || relships == null || relships.length == 0) {
      listener.relationshipChanged(new RelationshipChangeEvent(null));
    }
    else {
      listener.relationshipChanged(new RelationshipChangeEvent(relships[combo.getSelectionIndex()]));
    }
  }
View Full Code Here

TOP

Related Classes of de.chris_soft.fyllgen.widget.listener.RelationshipChangeEvent

Copyright © 2018 www.massapicom. 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.