Package javax.help

Examples of javax.help.HelpSet


    public HelpWindow( String topic_id ) {
      try {
        // use resource anchor trick to reference helpset
        ClassLoader cl = HelpSetResourceAnchor.class.getClassLoader();
        URL url = cl.getResource( "POC.hs" );
        _helpset = new HelpSet( cl, url );

        _browser = new JHelp( _helpset );
        _browser.setNavigatorDisplayed(true);

        getContentPane().setLayout(new GridLayout());
View Full Code Here


   * @param component Component father of the JavaHelp Component
   */
  public void openHelp(Component component) throws Exception
  {   component.setCursor(new Cursor(Cursor.WAIT_CURSOR));
    String className = component.getClass().getName();
    HelpSet set = null;
    if (className.equals("unbbayes.datamining.gui.InvokerMain"))
    {   set = new HelpSet(null, getClass().getResource("/help/DataMiningHelp/Data_Mining.hs"));
    }
    else if (className.equals("unbbayes.datamining.gui.id3.DecisionTreeMain"))
    {   set = new HelpSet(null, getClass().getResource("/help/DataMiningHelp/Decision_Tree.hs"));
    }
        else if (className.equals("unbbayes.datamining.gui.c45.DecisionTreeMain"))
        {   set = new HelpSet(null, getClass().getResource("/help/C45Help/C45.hs"));
        }
        else if (className.equals("unbbayes.datamining.gui.evaluation.EvaluationMain"))
    {   set = new HelpSet(null, getClass().getResource("/help/DataMiningHelp/Evaluation.hs"));
    }
    else if (className.equals("unbbayes.datamining.gui.naivebayes.NaiveBayesMain"))
    {   set = new HelpSet(null, getClass().getResource("/help/DataMiningHelp/Naive_Bayes.hs"));
    }
    else if (className.equals("unbbayes.datamining.gui.preprocessor.PreprocessorMain"))
    {   set = new HelpSet(null, getClass().getResource("/help/DataMiningHelp/Preprocessor.hs"));
    }
    else if (className.equals("unbbayes.datamining.gui.neuralmodel.NeuralModelMain"))
    {   set = new HelpSet(null, getClass().getResource("/help/CNMHelp/cnm.hs"));
    }
        else if (className.equals("unbbayes.datamining.gui.neuralnetwork.NeuralNetworkMain"))
        {   set = new HelpSet(null, getClass().getResource("/help/BpnHelp/BpnHelp.hs"));
        }
        else if (className.equals("unbbayes.gui.UnBBayesFrame"))
        {   set = new HelpSet(null, getClass().getResource("/help/JUnBBayes.hs"));
        }
    else
    {
          component.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
          throw new Exception("HelpSet not found "+this.getClass().getName());
View Full Code Here

    {
      log.debug("Attempting to find the helpsetfile [" + helpsetfile + "]"); // NON-NLS
      final ClassLoader cl = LaunchHelpAction.class.getClassLoader();
      final URL hsURL = HelpSet.findHelpSet(cl, helpsetfile);
      log.debug("Found the helpsetfile [" + hsURL.toString() + "]"); // NON-NLS
      return new HelpSet(null, hsURL);
    }
    catch (Exception ee)
    {
      log.warn("Could not find the helpsetfile [" + helpsetfile + "] - " + ee.getMessage()); // NON-NLS
    }
View Full Code Here

        if (!usingDeployTool) {
            // Create the main HelpBroker
            try {
                ClassLoader cl = ControlPanel.class.getClassLoader();
                URL url = HelpSet.findHelpSet(cl, helpsetName);
                mainHS = new HelpSet(cl, url);
            } catch (Exception ee) {
                logger.log(Level.WARNING,
                        "com.sun.enterprise.tools.verifier.gui.ControlPanel" + // NOI18N
                        ".debug.helpSetMissing", // NOI18N
                        new Object[]{helpsetName});
View Full Code Here

        if (!usingDeployTool) {
            // Create the main HelpBroker
            try {
                ClassLoader cl = ControlPanel.class.getClassLoader();
                URL url = HelpSet.findHelpSet(cl, helpsetName);
                mainHS = new HelpSet(cl, url);
            } catch (Exception ee) {
                logger.log(Level.WARNING,
                        "com.sun.enterprise.tools.verifier.gui.ControlPanel" + // NOI18N
                        ".debug.helpSetMissing", // NOI18N
                        new Object[]{helpsetName});
View Full Code Here

  public void actionPerformed(final ActionEvent e) {
    final String helpHS = "org/freeplane/plugin/help/doc/freeplane.hs";
    try {
      final ClassLoader classLoader = this.getClass().getClassLoader();
      final URL hsURL = HelpSet.findHelpSet(classLoader, helpHS);
      final HelpSet hs = new HelpSet(classLoader, hsURL);
      final HelpBroker hb = hs.createHelpBroker();
      hb.initPresentation();
      hb.setDisplayed(true);
      hb.setViewDisplayed(true);
    }
    catch (final Exception ee) {
View Full Code Here

    public static HelpBroker getHelpBroker() {
        if (helpBroker == null) {
            String helpHSString = Branding.getHSString(
                "com/sun/enterprise/tools/upgrade/doc/UpgradeToolHelp.hs");
            HelpSet helpHS = null;
            ClassLoader cl = Utils.class.getClassLoader();
            try {
                URL hsURL = HelpSet.findHelpSet(cl, helpHSString);
                helpHS = new HelpSet(null, hsURL);
            } catch (Exception ee) {
                // log messages....
                log.warning("HelpSet " + ee.getMessage());
                log.warning("HelpSet " + helpHS + " not found");
                return null;
            }
            // Create a HelpBroker object:
            helpBroker = helpHS.createHelpBroker();
        }
        return helpBroker;
    }
View Full Code Here

  if (params == null ||
      (params != null && !params.containsKey("data"))) {
      return null;
  }
  String engineName = (String) params.get("engine");
  HelpSet hs = view.getHelpSet();
  URL base = hs.getHelpSetURL();
  ClassLoader loader = hs.getLoader();

  if (engineName == null) {
      engineName = HelpUtilities.getDefaultQueryEngine();
      params.put("engine", engineName);
  }
View Full Code Here

     *
     * @param hs The HelpSet which subhelpsets will be added
     */
    private void addSubHelpSets(HelpSet hs){
        for( Enumeration e = hs.getHelpSets(); e.hasMoreElements(); ) {
      HelpSet ehs = (HelpSet) e.nextElement();
      if (ehs == null) {
    continue;
      }
            // merge views
            NavigatorView[] views = ehs.getNavigatorViews();
            for(int i = 0; i < views.length; i++){
    if (views[i] instanceof SearchView) {
        helpsearch.merge(views[i]);
    }
            }
View Full Code Here

     *
     * returns an empty String if no content exists.
     */
    private String getMapID(SearchTOCItem item) {
  URL url = item.getURL();
  HelpSet hs = hb.getHelpSet();
  Map map = hs.getCombinedMap();
  ID id = map.getIDFromURL(url);
  if (id == null) {
      return "";
  }
  return id.id;
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.