/** * Shows this ID as content relative to the (top) HelpSet for the Presentation * instance--HelpVisitListeners are notified. * * @param id A string that identifies the topic to show for the loaded (top) HelpSet * @exception BadIDException The ID is not valid for the HelpSet */ public void setCurrentID(String id) throws BadIDException { debug("setCurrentID - String"); try { setCurrentID(ID.create(id, helpset)); } catch (InvalidHelpSetContextException ex) { // this should not happen new Error("internal error?"); } }
/** * Shows this ID. * * @param id A string that identifies the topic to show for the loaded (top) HelpSet * @param presentation The Presentation class to display the Help in. * @param presentationName The name of a Presentation section from a * HelpSet to use. For some Presentations this will also be * the name to apply to the Presentation. * @exception BadIDException The ID is not valid for the HelpSet * @exception IllegalArgumentException if presentation is not valid * @see Presentation */ public void showID(String id, String presentation, String presentationName) throws BadIDException { debug("showID - string"); Presentation pres = getPresentation(presentation, presentationName); if (pres != null) { pres.setCurrentID(id); pres.setDisplayed(true); } }
/** * Show this ID. * * @param id a Map.ID indicating the URL to display * @param presentation The Presentation class to display the Help in. * @param presentationName The name of a Presentation section from a * HelpSet to use. For some Presentations this will also be * the name to apply to the Presentation. * @exception InvalidHelpSetContextException if the current helpset does not contain * id.helpset * @see Presentation */ public void showID(ID id, String presentation, String presentationName) throws InvalidHelpSetContextException { debug("showID - ID"); Presentation pres = getPresentation(presentation, presentationName); if (pres != null) { pres.setCurrentID(id); pres.setDisplayed(true); } }
hb.setDisplayed(true); } else { pres.setCurrentID(id); pres.setDisplayed(true);
pres.setCurrentID(item.getID()); } catch (InvalidHelpSetContextException ex) { System.err.println("BadID: "+item.getID());
pres.setCurrentID(item.getID()); } catch (InvalidHelpSetContextException ex) { System.err.println("BadID: "+item.getID());