Пример #1
0
  protected String[] getCategoryKeys() {
    if (_categoryNames != null) {
      return _categoryNames;
    }

    String[] categoryKeys = FormNavigatorCategoryUtil.getKeys(_id);

    if (ArrayUtil.isEmpty(categoryKeys)) {
      return new String[] {""};
    }

    return categoryKeys;
  }
Пример #2
0
  protected String[] getCategoryLabels() {
    if (_categoryNames != null) {
      return _categoryNames;
    }

    ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);

    String[] categoryLabels = FormNavigatorCategoryUtil.getLabels(_id, themeDisplay.getLocale());

    if (ArrayUtil.isEmpty(categoryLabels)) {
      categoryLabels = new String[] {""};
    }

    return categoryLabels;
  }