Package com.santiagolizardo.beobachter.gui.dialogs

Examples of com.santiagolizardo.beobachter.gui.dialogs.LogWindow


      @Override
      public void keyReleased(KeyEvent ev) {
        int keyCode = ev.getKeyCode();
        if (keyCode == KeyEvent.VK_ENTER) {
          LogWindow log = (LogWindow) mainWindow.getDesktop()
              .getSelectedFrame();
          if (log != null) {
            log.searchText(searchTextField.getText());
          }
        }
      }
    });
View Full Code Here


    clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
  }

  @Override
  public void actionPerformed(ActionEvent event) {
    LogWindow log = (LogWindow) mainWindow.getDesktop().getSelectedFrame();
    if (log != null) {
      List<String> selectedLines = log.getLinesList().getSelectedValuesList();
      StringBuilder sb = new StringBuilder();
      for (String selectedLine : selectedLines) {
        sb.append(selectedLine);
        sb.append(Constants.LINE_SEP);
      }
View Full Code Here

      }

      List<String> filePaths = new ArrayList<>();
      JInternalFrame[] frames = mainWindow.getDesktop().getAllFrames();
      for (JInternalFrame frame : frames) {
        LogWindow logWindow = (LogWindow) frame;
        filePaths.add(logWindow.getFile()
            .getAbsolutePath());
      }

      SessionManager sessionManager = new SessionManager();
      try {
View Full Code Here

   *
   * @param fileName
   * @param logType
   */
  public void openFile(String fileName, LogType logType) {
    LogWindow logWindow = new LogWindow(mainWindow, fileName, logType);
    logWindow.setVisible(true);
   
    mainWindow.getDesktop().add(logWindow);
   
    try {
      logWindow.setSelected(true);
    } catch (PropertyVetoException pve) {
      logger.warning(pve.getMessage());
    }
  }
View Full Code Here

        KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.CTRL_MASK));
  }

  @Override
  public void actionPerformed(ActionEvent event) {
    LogWindow log = (LogWindow) mainWindow.getDesktop().getSelectedFrame();
    if (log != null) {
      int numLines = log.getLinesList().getModel().getSize();
      if (numLines > 0) {
        log.getLinesList().setSelectionInterval(0, numLines - 1);
      }
    }
  }
View Full Code Here

    add(hideSelectedLinesMenuItem);
  }

  @Override
  public void actionPerformed(ActionEvent ev) {
    LogWindow logWindow = (LogWindow)mainWindow.getDesktop().getSelectedFrame();
    logWindow.hideSelectedLines();
  }
View Full Code Here

  }

  @Override
  public void actionPerformed(ActionEvent e) {
    for (JInternalFrame frame : mainWindow.getDesktop().getAllFrames()) {
      LogWindow logWindow = (LogWindow) frame;
      logWindow.clear();
    }
  }
View Full Code Here

        KeyStroke.getKeyStroke(KeyEvent.VK_D, KeyEvent.CTRL_MASK));
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    LogWindow logWindow = (LogWindow)mainWindow.getDesktop().getSelectedFrame();
    logWindow.clear();
  }
View Full Code Here

        KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0));
  }

  @Override
  public void actionPerformed(ActionEvent event) {
    LogWindow log = (LogWindow) mainWindow.getDesktop().getSelectedFrame();
    if (log != null) {
      log.searchAgainText();
    }
  }
View Full Code Here

TOP

Related Classes of com.santiagolizardo.beobachter.gui.dialogs.LogWindow

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.