Пример #1
0
 @Override
 public String getJavascriptCode(final ComponentParameter compParameter) {
   final StringBuilder sb = new StringBuilder();
   sb.append(super.getJavascriptCode(compParameter));
   final AbstractComponentBean rComponent =
       (AbstractComponentBean) compParameter.componentBean.getAttribute("__componentBean");
   IComponentJavascriptRender jsRender = null;
   if (rComponent instanceof TreeBean) {
     jsRender =
         (IComponentJavascriptRender)
             AbstractComponentRegistry.getRegistry(TreeRegistry.tree).getComponentRender();
   } else if (rComponent instanceof ListboxBean) {
     jsRender =
         (IComponentJavascriptRender)
             AbstractComponentRegistry.getRegistry(ListboxRegistry.listbox).getComponentRender();
   }
   if (jsRender != null) {
     sb.append(jsRender.getJavascriptCode(ComponentParameter.get(compParameter, rComponent)));
   }
   return sb.toString();
 }
Пример #2
0
 public static String getHomePath() {
   return AbstractComponentRegistry.getRegistry(MessageWindowRegistry.messageWindow)
       .getResourceHomePath();
 }