Package org.apache.cayenne.configuration.event

Examples of org.apache.cayenne.configuration.event.DomainEvent


        Map properties = domain.getProperties();
        Object oldValue = properties.get(property);
        if (!Util.nullSafeEquals(value, oldValue)) {
            properties.put(property, value);

            DomainEvent e = new DomainEvent(this, domain);
            projectController.fireDomainEvent(e);
        }
    }
View Full Code Here


            throw new ValidationException("Enter name for DataDomain");
        }

        Preferences prefs = projectController.getPreferenceForDataDomain();

        DomainEvent e = new DomainEvent(
                this,
                dataChannelDescriptor,
                dataChannelDescriptor.getName());
        dataChannelDescriptor.setName(newName);
View Full Code Here

            logObj.warn("domain properties BEFORE: " + domain.getProperties());
            model.storeProperties(domain.getProperties());

            logObj.warn("domain properties: " + domain.getProperties());

            eventController.fireDomainEvent(new DomainEvent(this, domain));
        }

        shutdown();
    }
View Full Code Here

public class DomainEventTest extends TestCase {

    public void testConstructor1() throws Exception {
      Object src = new Object();
      DataChannelDescriptor d = new DataChannelDescriptor();
      DomainEvent e = new DomainEvent(src, d);
     
      assertSame(src, e.getSource());
      assertSame(d, e.getDomain());
    }
View Full Code Here

    }
   
    public void testConstructor2() throws Exception  {
      Object src = new Object();
      DataChannelDescriptor d = new DataChannelDescriptor();
      DomainEvent e = new DomainEvent(src, d, "oldname");
     
      assertSame(src, e.getSource());
      assertSame(d, e.getDomain());
      assertEquals("oldname", e.getOldName());
    }
View Full Code Here

    }
   
    public void testDomain() throws Exception  {
      Object src = new Object();
         DataChannelDescriptor d = new DataChannelDescriptor();
      DomainEvent e = new DomainEvent(src, null);
     
      e.setDomain(d);
      assertSame(d, e.getDomain());
    }
View Full Code Here

        Map properties = domain.getProperties();
        Object oldValue = properties.get(property);
        if (!Util.nullSafeEquals(value, oldValue)) {
            properties.put(property, value);

            DomainEvent e = new DomainEvent(this, domain);
            projectController.fireDomainEvent(e);
        }
    }
View Full Code Here

            throw new ValidationException("Enter name for DataDomain");
        }

        Preferences prefs = projectController.getPreferenceForDataDomain();

        DomainEvent e = new DomainEvent(
                this,
                dataChannelDescriptor,
                dataChannelDescriptor.getName());
        dataChannelDescriptor.setName(newName);
View Full Code Here

            }
        }
       
        logObj.warn("domain properties: " + domain.getProperties());
       
        eventController.fireDomainEvent(new DomainEvent(this, domain));

        view.dispose();
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.configuration.event.DomainEvent

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.