Package javax.help

Examples of javax.help.HelpSet$DefaultHelpSetFactory


    /**
     * find the helpset file and create a HelpSet object
     */
    private HelpSet getHelpSet(String helpsetfile) {
        HelpSet hs = null;
        ClassLoader cl = getClass().getClassLoader();
        try {
            URL hsURL = HelpSet.findHelpSet(cl, helpsetfile);
            File file = new File("./help/Sample.hs");
            if (!file.exists()) {
                file = new File("./../help/Sample.hs");
            }
            if (hsURL == null) {
                hsURL = (file.toURI()).toURL();
            }
            hs = new HelpSet(null, hsURL);
        } catch (Exception ee) {
            System.out.println("HelpSet: " + ee.getMessage());
            System.out.println("HelpSet: " + helpsetfile + " not found");
        }
        return hs;
View Full Code Here


    }

    public HelpBroker getHelpBroker() throws HelpSetException {
        if (broker == null) {
            URL url = HelpSet.findHelpSet(helpBrokerClassLoader, helpBrokerUrl);
            HelpSet helpSet = new HelpSet(helpBrokerClassLoader, url);
            broker = helpSet.createHelpBroker();
        }
        return broker;
    }
View Full Code Here

   
    private void initHelp() {
        try {
            URL url = getClass().getResource("/help/jhelpset.hs");
            if (url == null) throw new NullPointerException("The help set could not be found");
            HelpSet helpSet = new HelpSet(null, url);
            HelpBroker helpBroker = helpSet.createHelpBroker();
            contentsMenuItem.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
            helpBroker.enableHelpKey(getRootPane(), "about", helpSet);        // for F1
        } catch (Throwable e) {
            final String[] message;
            if (e instanceof NullPointerException) {
View Full Code Here

   
    private void initHelp() {
        try {
            URL url = getClass().getResource("/help/jhelpset.hs");
            if (url == null) throw new NullPointerException("The help set could not be found");
            HelpSet helpSet = new HelpSet(null, url);
            HelpBroker helpBroker = helpSet.createHelpBroker();
            contentsMenuItem.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
            helpBroker.enableHelpKey(getRootPane(), "about", helpSet);        // for F1
        } catch (Throwable e) {
            final String[] message;
            if (e instanceof NullPointerException) {
View Full Code Here

  public HelpWindow(ResourceBundle bundle){
    PropertyConfigurator.configure(ClassLoader.getSystemResource("be/xtnd/commons/log4j.properties"));
    try
      ClassLoader cl = HelpWindow.class.getClassLoader()
      URL url = HelpSet.findHelpSet(cl, bundle.getString("appli.help_file"))
      helpViewer = new JHelp(new HelpSet(cl, url))

      EscapeInternalFrame frame = new EscapeInternalFrame();
      Object[] args = {bundle.getString("appli.name")};
      frame.setTitle(CommonsI18n.tr("{0} Help", args));
View Full Code Here

TOP

Related Classes of javax.help.HelpSet$DefaultHelpSetFactory

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.