Package net.sf.apptools.ui.swing.utils

Examples of net.sf.apptools.ui.swing.utils.HTMLViewPanel


        public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 2) {
            JFrame vf = new JFrame();
            LibraryLabel label = (LibraryLabel) l.getSelectedValue();
            if (label != null) {
              HTMLViewPanel vp = new HTMLViewPanel(label.getLibrary(),
                                        new TagLibraryViewFactory());
              vf.setTitle(vp.getTitle());
              vf.setContentPane(vp);
              vf.pack();
              GUIUtils.checkSize(vf);
             
              vf.setVisible(true);
View Full Code Here


      }
      else if (src == searchProbes) {
        searchProbes();
      }
      else if (src == probeStatistics) {
        HTMLViewPanel p = new HTMLViewPanel(
            probeMaker.project.getProbes(),
            new ProbeSummaryViewFactory()
        );
        workbench.displayComponent(p,p.getTitle());
      }
      else if (src == messageSummary) {
        HTMLViewPanel p = new HTMLViewPanel(
            ProbeSummarizer.getMessageSummary(probeMaker.project.getProbes()),
            new MessageSummaryViewFactory()
        );
        workbench.displayComponent(p,p.getTitle());
      }
    }
    catch (Throwable ex) {
      platform.handleError(ex.toString(),ex);
    }
View Full Code Here

  void viewLog() {
    File f = GUIUtils.selectFile(GUIUtils.getParentFrame(this),logFileChooser,ProbeMakerConstants.logFilter,null,"Open log file"); //$NON-NLS-1$
    if (f == null)
      return;
   
    HTMLViewPanel p = new HTMLViewPanel(f);
    p.setPreferredSize(new Dimension(400,400));
    String title = p.getTitle();
    workbench.displayComponent(p,title == null ? f.getName() : title);
  }
View Full Code Here

TOP

Related Classes of net.sf.apptools.ui.swing.utils.HTMLViewPanel

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.