/** * Constructs a JHelpNavigator from some view and with a preexisting model and in default initial state of navigation * entries. * * @param view The NavigatorView. If <tt>view</tt> is null it creates a JHelpNavigator * with a null NavigatorView. * @param model The model that generates changes. * If <tt>model</tt> is null it creates a JHelpNavigator without a model. */ public JHelpNavigator(NavigatorView view, HelpModel model) { super(); this.view = view; setModel(model); updateUI(); }
/** * Returns a JHelpNavigator with an instance of DefaultHelpModel as its * data model. * * @param view The NavigatorView to use. If <tt>view</tt> is null it creates a JHelpTOCNavigator * with a null NavigatorView. */ public JHelpNavigator(NavigatorView view) { super(); this.view = view; if (view != null) { setModel(new DefaultHelpModel(view.getHelpSet())); } else { setModel(null); } updateUI(); }