Examples of removeObserver()


Examples of com.art.anette.datamodel.dataobjects.simple.DataObject.removeObserver()

        this.showOnlyOwnTasks = showOnlyOwnTasks;
        this.tree = tree;
        DataObject oldValue = nodeMap.put((DefaultMutableTreeNode) root, mob);
        // Abmelden bei dem alten Objekt, falls eines zurückgeliefert wurde
        if (oldValue != null) {
            oldValue.removeObserver(this);
        }

        Logic.lockReading();

        try {
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.DataObject.removeObserver()

            // Das Objekt, welches in dem Knoten enthalten ist, ist
            // nicht mehr in der Liste der Elemente des ManagedDataObjects,
            // (mob) daher kann es gelöscht werden.
            if (!shouldChildren.contains(childMob)) {
                childMob.removeObserver(this);
                removeQueue.add(child);
                removeNodeFromParent(child);
                //Logic.unlockReading();
                //return;
            }
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.DataObject.removeObserver()

            DataObject obj = (DataObject) treeNode.getUserObject();
            obj.addObserver(this);
            DataObject oldVal = nodeMap.put(treeNode, obj);

            if (oldVal != null) {
                oldVal.removeObserver(this);
            }
        }

        // Obsolete Einträge aus der Map löschen
        while (!removeQueue.isEmpty()) {
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.DataObject.removeObserver()

     */
    @Override
    public void stopObservation() {
        for (Entry<DefaultMutableTreeNode, DataObject> entry : nodeMap.entrySet()) {
            DataObject val = entry.getValue();
            val.removeObserver(this);
        }
    }

    private static class ID {
        List<Long> key;
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.DataObject.removeObserver()

            newRoot = new DefaultMutableTreeNode(mob);
            DataObject oldValue = nodeMap.put(newRoot, mob);
            // Abmelden bei dem alten Objekt, falls eines zurückgeliefert wurde
            if (oldValue != null) {
                oldValue.removeObserver(this);
            }

            mob.addObserver(this);

            buildTree(newRoot);
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.Employee.removeObserver()

        } else if (entries.contains(d)) {
            Employee entry = (Employee) d;
            // Ein Eintrag wurde aktualisiert
            int index = entries.indexOf(entry);
            if (entry.isRemoved()) {
                entry.removeObserver(this);
                entries.remove(entry);

                fireTableRowsDeleted(index, index);
            } else if (entry.getDepartment() != null &&
                    object instanceof Department &&
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.Employee.removeObserver()

                    object instanceof Department &&
                    !entry.getDepartment().equals(object)) {
                int idx = entries.indexOf(entry);
                if (idx != -1) {
                    Employee e = entries.remove(idx);
                    e.removeObserver(this);
                    fireTableRowsDeleted(idx, idx);
                }
            } else
            // Benachrichtigen der View, falls sich ein Eintrag geändert hat
            {
View Full Code Here

Examples of com.webobjects.foundation.NSNotificationCenter.removeObserver()

    notificationCenter.addObserver(this, ERXForwardingAdaptorContext._rollbackTransactionSelector, EOAdaptorContext.AdaptorContextRollbackTransactionNotification, _forwardedContext);
  }

  public void _unregisterForAdaptorContextNotifications() {
    NSNotificationCenter notificationCenter = NSNotificationCenter.defaultCenter();
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextBeginTransactionNotification, _forwardedContext);
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextCommitTransactionNotification, _forwardedContext);
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextRollbackTransactionNotification, _forwardedContext);
  }

  @Override
View Full Code Here

Examples of com.webobjects.foundation.NSNotificationCenter.removeObserver()

  }

  public void _unregisterForAdaptorContextNotifications() {
    NSNotificationCenter notificationCenter = NSNotificationCenter.defaultCenter();
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextBeginTransactionNotification, _forwardedContext);
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextCommitTransactionNotification, _forwardedContext);
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextRollbackTransactionNotification, _forwardedContext);
  }

  @Override
  public void handleDroppedConnection() {
View Full Code Here

Examples of com.webobjects.foundation.NSNotificationCenter.removeObserver()

  public void _unregisterForAdaptorContextNotifications() {
    NSNotificationCenter notificationCenter = NSNotificationCenter.defaultCenter();
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextBeginTransactionNotification, _forwardedContext);
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextCommitTransactionNotification, _forwardedContext);
    notificationCenter.removeObserver(this, EOAdaptorContext.AdaptorContextRollbackTransactionNotification, _forwardedContext);
  }

  @Override
  public void handleDroppedConnection() {
    _forwardedContext.handleDroppedConnection();
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.