Examples of EventBroadcaster


Examples of org.apache.fop.events.EventBroadcaster

        GVTBuilder builder = new GVTBuilder();
        final GraphicsNode root;
        try {
            root = builder.build(ctx, doc);
        } catch (Exception e) {
            EventBroadcaster eventBroadcaster
                = userAgent.getEventBroadcaster();
            SVGEventProducer eventProducer = SVGEventProducer.Provider.get(eventBroadcaster);
            final String uri = getDocumentURI(doc);
            eventProducer.svgNotBuilt(this, e, uri);
            return null;
View Full Code Here

Examples of org.apache.fop.events.EventBroadcaster

        GVTBuilder builder = new GVTBuilder();
        final GraphicsNode root;
        try {
            root = builder.build(ctx, doc);
        } catch (Exception e) {
            EventBroadcaster eventBroadcaster
                = userAgent.getEventBroadcaster();
            SVGEventProducer eventProducer = SVGEventProducer.Provider.get(eventBroadcaster);
            final String uri = getDocumentURI(doc);
            eventProducer.svgNotBuilt(this, e, uri);
            return null;
View Full Code Here

Examples of org.apache.fop.events.EventBroadcaster

        positionAtBreak = positionAtBreak.getPosition();
        LayoutManager restartAtLM = null;
        List<KnuthElement> firstElements = Collections.emptyList();
        if (containsNonRestartableLM(positionAtBreak)) {
            if (alg.getIPDdifference() > 0) {
                EventBroadcaster eventBroadcaster = getCurrentChildLM().getFObj()
                        .getUserAgent().getEventBroadcaster();
                BlockLevelEventProducer eventProducer
                        = BlockLevelEventProducer.Provider.get(eventBroadcaster);
                eventProducer.nonRestartableContentFlowingToNarrowerPage(this);
            }
View Full Code Here

Examples of org.apache.fop.events.EventBroadcaster

                    positionAtBreak = positionAtBreak.getPosition();
                    LayoutManager restartAtLM = null;
                    List firstElements = Collections.EMPTY_LIST;
                    if (containsNonRestartableLM(positionAtBreak)) {
                        if (alg.getIPDdifference() > 0) {
                            EventBroadcaster eventBroadcaster = getCurrentChildLM().getFObj()
                                    .getUserAgent().getEventBroadcaster();
                            BlockLevelEventProducer eventProducer
                                    = BlockLevelEventProducer.Provider.get(eventBroadcaster);
                            eventProducer.nonRestartableContentFlowingToNarrowerPage(this);
                        }
View Full Code Here

Examples of org.jboss.fresh.events.EventBroadcaster

   
    // Uses
    pkgen = new RandomKeyPKGenerator("11,31", null);
    pkgen.reseed(hostLabel + subdomain + System.currentTimeMillis());

    eb = new EventBroadcaster(this, "EventCentral");
  }
View Full Code Here

Examples of org.jboss.fresh.events.EventBroadcaster

    allBcsByID.put(id, bc);
  }

  public synchronized EventBroadcaster unregisterEventBroadcaster(String id) {
    //log.info("Unregistering for id: "+id);
    EventBroadcaster eb = (EventBroadcaster) allBcsByID.remove(id);
    bcsByID.remove(id);
    //log.info("Remainging: "+bcsByID);
    return eb;
  }
View Full Code Here

Examples of org.jboss.fresh.events.EventBroadcaster

//log.info("Registering lis on " + ec + " : " + origin + "  =  " + lis);
      ec.registerEventListener(origin, lis, new String[]{"///ECentral/"}, EventCentral.SILENT | EventCentral.HIDDEN);
    } catch (Exception ex) {
      log.error("Internal Event System error: failed to register EventListener ///ECentral/", ex);
    }
    eb = new EventBroadcaster(ec, "EventNetRouterImpl");
  }
View Full Code Here

Examples of org.jboss.fresh.events.EventBroadcaster

        // it's ugly that creating an instance does registration at the same time
        // we could check here that all broadcasters have host properly set
        // probably all should have host set. We can not just set it ourselves.
        // It must be properly set when whoever creates it registers it originally.
        try {
          EventBroadcaster ebc = new EventBroadcaster(name, ec);
        } catch (InvalidFormatException ex) {
          log.error("There's EventCentral in the system that does not enforce proper names: " + ex);
        }
      }
      Set reglset = ec.getListeners().keySet();
View Full Code Here

Examples of org.jboss.fresh.events.EventBroadcaster

    // let's help a little - let's close all the in buffers of all the processes:
    // and system out also.


    try {
      EventBroadcaster eb = getEventBroadcaster();
      if (eb != null) {
        eb.dispatchEvent(new ShellEvent(EVENT_CLASS, "shellDispose", this));
      }
    } catch (Exception ex) {
      log.error(ex.getMessage(), ex);
    }
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.