/** * Gets the name of this navigator view. * * @return The label for this NavigatorView. */ public String getNavigatorLabel() { return view.getLabel(); }
/** * Gets locale-dependent name for this navigator view. * * @return the label for this NavigatorView. If locale is null it is * treated as the default Locale. */ public String getNavigatorLabel(Locale locale) { return view.getLabel(locale); }
/** * Gets the locale-dependent name of this View. * * @return The locale-dependent name of this view. */ public String getLabel(Locale locale) { return getLabel(); }
private void setNavigatorAttributes(NavigatorView view) { pageContext.setAttribute("className", view.getClass().getName()); pageContext.setAttribute("name", view.getName()); pageContext.setAttribute("tip", view.getLabel()); String icon = getIconURL(view); pageContext.setAttribute("iconURL", icon); pageContext.setAttribute("isCurrentNav", new Boolean(curNav.compareTo(view.getName()) == 0)); }