Esempio 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)));
   }
 }
Esempio 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}));
    }
  }
Esempio n. 3
0
 /** {@inheritDoc} */
 @Override
 public void windowClosing(final FrameContainer window) {
   DynamicRequestHandler.addEvent(new Event("closewindow", myID));
 }