Пример #1
0
  protected InitScript renderInitScript(FacesContext context, ScrollButton scrollButton)
      throws IOException {
    ScriptBuilder buf = new ScriptBuilder();
    JSONObject stylingParams = getStylingParamsObj(context, scrollButton);

    buf.initScript(
        context,
        scrollButton,
        "O$.ScrollButton._init",
        scrollButton.getParent().getClientId(context),
        scrollButton.getScrollDirection().toString(),
        stylingParams);
    return new InitScript(
        buf.toString(),
        new String[] {
          TableUtil.getTableUtilJsURL(context),
          Resources.internalURL(context, "timetable/scrollButton.js")
        });
  }