Package com.santiagolizardo.beobachter.beans

Examples of com.santiagolizardo.beobachter.beans.Session


  }

  private void openSession() {
    setVisible(false);

    Session session = list.getSelectedValue();
    for (String fileName : session.getFileNames()) {
      mainWindow.getRecentFiles().remove(fileName);
      mainWindow.getRecentFiles().add(fileName);
      mainWindow.getActionFactory().getOpenAction().openFile(fileName, new LogType("Default"));
    }
    recentsMenu.refresh();
View Full Code Here


  public Component getListCellRendererComponent(JList list, Object value,
      int index, boolean isSelected, boolean cellHasFocus) {

    JLabel label = (JLabel) super.getListCellRendererComponent(list, value,
        index, isSelected, cellHasFocus);
    Session session = (Session) value;

    StringBuilder text = new StringBuilder();
    text.append("<html>");
    text.append(String.format("<strong>%s</strong> ", session.getName()));
    text.append(String.format(tr("%d file(s)"), session.getFileNames()
        .size()));
    text.append("<br />");
    for (String fileName : session.getFileNames()) {
      text.append(String.format("- %s<br />", fileName));
    }
    text.append("</html>");

    label.setText(text.toString());
View Full Code Here

TOP

Related Classes of com.santiagolizardo.beobachter.beans.Session

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.