Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public void linesAdded(final int line, final int length, final int size) {
   for (int i = 0; i < length; i++) {
     DynamicRequestHandler.addEvent(
         new Event(
             "lineadded", new Message(style(parent.getDocument().getStyledLine(line)), this)));
   }
 }
Ejemplo n.º 2
0
  public WebWindow(final WebInterfaceUI controller, final FrameContainer parent) {
    super();

    this.parent = parent;
    this.title = parent.getTitle();

    WINDOWS.put(getId(), this);

    parent.getDocument().addIRCDocumentListener(this);
    parent.addFrameInfoListener(this);

    if (parent.getParent() == null) {
      DynamicRequestHandler.addEvent(new Event("newwindow", this));
    } else {
      DynamicRequestHandler.addEvent(
          new Event(
              "newchildwindow",
              new Object[] {controller.getWindowManager().getWindow(parent.getParent()), this}));
    }
  }