Package org.rssowl.core.persist.event

Examples of org.rssowl.core.persist.event.FeedAdapter


      }
    };
    DynamicDAO.addEntityListener(ISearchCondition.class, fSearchConditionListener);

    /* Listen if Title Image is changing */
    fFeedListener = new FeedAdapter() {
      @Override
      public void entitiesUpdated(Set<FeedEvent> events) {

        /* Not supported for Searchmarks */
        if (fInput.getMark() instanceof ISearchMark || events.size() == 0)
View Full Code Here


      public void entitiesDeleted(Set<NewsEvent> events) {
        onNewsDeleted(events);
      }
    });

    DynamicDAO.addEntityListener(IFeed.class, new FeedAdapter() {
      @Override
      public void entitiesDeleted(Set<FeedEvent> events) {
        onFeedDeleted(events);
      }
    });
View Full Code Here

    final Feed[] updatedFeed = new Feed[1];
    final boolean[] feedAddedCalled = new boolean[] { false };
    final boolean[] feedUpdatedCalled = new boolean[] { false };
    FeedListener feedListener = null;
    try {
      feedListener = new FeedAdapter() {
        @Override
        public void entitiesAdded(Set<FeedEvent> events) {
          FeedEvent event = events.iterator().next();
          try {
            feedAddedCalled[0] = true;
View Full Code Here

    initialFeed.getImage().setTitle("Title");
    initialFeed.getImage().setHomepage(createURI("http://www.imageuri.com"));
    final Feed[] updatedFeed = new Feed[1];
    FeedListener feedListener = null;
    try {
      feedListener = new FeedAdapter() {
        @Override
        public void entitiesAdded(Set<FeedEvent> events) {
          try {
            FeedEvent event = events.iterator().next();
            Feed dbFeed = (Feed) event.getEntity();
View Full Code Here

      }
    };
    DynamicDAO.addEntityListener(ISearchMark.class, fSearchMarkListener);

    /* Listen if Title Image is changing */
    fFeedListener = new FeedAdapter() {
      @Override
      public void entitiesUpdated(Set<FeedEvent> events) {

        /* Not supported for Searchmarks */
        if (fInput.getMark() instanceof ISearchMark || events.size() == 0)
View Full Code Here

      public void entitiesDeleted(Set<NewsEvent> events) {
        onNewsDeleted(events);
      }
    });

    DynamicDAO.addEntityListener(IFeed.class, new FeedAdapter() {
      @Override
      public void entitiesDeleted(Set<FeedEvent> events) {
        onFeedDeleted(events);
      }
    });
View Full Code Here

    final Feed[] updatedFeed = new Feed[1];
    final boolean[] feedAddedCalled = new boolean[] { false };
    final boolean[] feedUpdatedCalled = new boolean[] { false };
    FeedListener feedListener = null;
    try {
      feedListener = new FeedAdapter() {
        @Override
        public void entitiesAdded(Set<FeedEvent> events) {
          FeedEvent event = events.iterator().next();
          try {
            feedAddedCalled[0] = true;
View Full Code Here

    initialFeed.getImage().setTitle("Title");
    initialFeed.getImage().setHomepage(createURI("http://www.imageuri.com"));
    final Feed[] updatedFeed = new Feed[1];
    FeedListener feedListener = null;
    try {
      feedListener = new FeedAdapter() {
        @Override
        public void entitiesAdded(Set<FeedEvent> events) {
          try {
            FeedEvent event = events.iterator().next();
            Feed dbFeed = (Feed) event.getEntity();
View Full Code Here

    /* Register Listeners */
    registerListeners();
  }

  private FeedListener createFeedListener() {
    return new FeedAdapter() {
      @Override
      public void entitiesDeleted(Set<FeedEvent> events) {
        for (FeedEvent feedEvent : events) {
          URI feedLink = feedEvent.getEntity().getLink();
          try {
View Full Code Here

      /* Check BookMark Added */
      final IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com"));

      final boolean feedEventsIssued[] = new boolean[1];
      feedListener = new FeedAdapter() {
        @Override
        public void entitiesAdded(Set<FeedEvent> events) {
          for (FeedEvent event : events) {
            assertFalse("Already received feed added event!", feedEventsIssued[0]);
            assertTrue("Expected this Event to be Root Event", event.isRoot());
View Full Code Here

TOP

Related Classes of org.rssowl.core.persist.event.FeedAdapter

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.