Package javax.help

Examples of javax.help.HelpSet


                    JOptionPane.showMessageDialog(menubar.getParentWindow(),
                            getFromLocale("helpNotFoundError"));
                    return;
                }
                helpSetUrl = helpUrl;
                helpSet = new HelpSet(null, hsURL);
                helpComponent = new JHelp(helpSet);
                if (helpFrame == null) {
                    helpFrame = new LFrame();
                    helpFrame.setTitle(getFromLocale("helpWindowTitle"));
                    helpFrame.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
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

        String helpHS = "zoeosHelp.hs";
        ClassLoader cl = ZoeosFrame.class.getClassLoader();
        try {
            URL hsURL = HelpSet.findHelpSet(cl, helpHS);
            hb = new HelpSet(null, hsURL).createHelpBroker();
        } catch (Exception ee) {
            // Say what the exception really is
            System.out.println("HelpSet " + ee.getMessage());
            System.out.println("HelpSet " + helpHS + " not found");
        }
View Full Code Here

  private Hashtable<String, String> lookup = null;
  private String jarFilePath;

  public MZmineHelpMap(String jarFilePath) {
    lookup = new Hashtable<String, String>();
    this.helpset = new HelpSet();
    this.jarFilePath = jarFilePath;
  }
View Full Code Here

        // 1. create HelpSet and HelpBroker objects
        try {
            SwingHelpUtilities.setContentViewerUI("uk.gov.nationalarchives.droid.gui.help.ExternalLinkContentViewerUI");

            HelpSet hs = getHelpSet("helpset.hs");
            HelpBroker hb = hs.createHelpBroker();

            // 2. assign help to components
            CSH.setHelpIDString(helpMenuItem, "Welcome to DROID");

            // 3. handle events
View Full Code Here

    /**
     * Find the helpset file and create a HelpSet object.
     */
    private HelpSet getHelpSet(String helpsetfile) throws HelpSetException {
        HelpSet hs = null;
        ClassLoader cl = this.getClass().getClassLoader();
        URL hsURL = HelpSet.findHelpSet(cl, helpsetfile);
        hs = new HelpSet(null, hsURL);
        return hs;
    }
View Full Code Here

            return null;
        }
        ClassLoader cl = ApplicationUiHelp.class.getClassLoader();
        URL url = HelpSet.findHelpSet(cl, helpHS);
        try {
            return new HelpSet(null, url);
        } catch (HelpSetException ex) {
            throw new AssertionError(ex);
        }
    }
View Full Code Here

        try {
            // Obtenim el recurs HelpEmpresa.hs
            final String pathFileHs = "/serveis/help/ButiHelp.hs";
            URL hsURL = Gui.class.getResource(pathFileHs);
            // Creem un objecte HelpSet referenciat
            HelpSet helpSet = new HelpSet(null, hsURL);
            // Creem un objecte HelpBroker referenciat  a paretir del HelpSet
            HelpBroker helpBroker = helpSet.createHelpBroker();
            //En el fitxer Map.jhm emprar el mapID target="Ajuda.Intro"
            final String stringID = "Ajuda.NormesBut";
            // Fem que l'objecte jmiAjuda dispari l'ajuda
            helpBroker.enableHelpOnButton(jmiAjuda, stringID, helpSet);
            // Per obrir l'ajuda amb la tecla de funcio F1
View Full Code Here

        try {
            // Obtenim el recurs HelpEmpresa.hs
            final String pathFileHs = "/serveis/help/ButiHelp.hs";
            URL hsURL = Gui.class.getResource(pathFileHs);
            // Creem un objecte HelpSet referenciat
            HelpSet helpSet = new HelpSet(null, hsURL);
            // Creem un objecte HelpBroker referenciat  a paretir del HelpSet
            HelpBroker helpBroker = helpSet.createHelpBroker();
            //En el fitxer Map.jhm emprar el mapID target="Ajuda.Intro"
            final String stringID = "Ajuda.NormesBut";
            // Fem que l'objecte jmiAjuda dispari l'ajuda
            helpBroker.enableHelpOnButton(jmiAjuda, stringID, helpSet);
            // Per obrir l'ajuda amb la tecla de funcio F1
View Full Code Here

TOP

Related Classes of javax.help.HelpSet

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.