Exemplo n.º 1
0
  protected void openSubview(PortalNode portalNode, Keywords arguments) throws ComponentException {
    if (getViewManager().getUserInterfaceType() == UserInterfaceType.WINGS) closeOpenViews();

    Keywords keywords = (Keywords) ((Keywords) portalNode.getView()).clone();

    if (Boolean.TRUE.equals(arguments.getValue("inPortal"))) {
      ViewContainer portalContainer =
          ((PortalViewVisualizer) getViewVisualizer()).getPortalContainer();

      keywords.addValue("container", portalContainer.getID());
    }

    String callClassName =
        (String)
            keywords.getValue(
                "functioncall", "de.sdm.sia.remis.portal.client.businessobject.OpenViewCall");

    try {
      Call call = (Call) Class.forName(callClassName).newInstance();

      UseCaseManager.getUseCaseManager().call(call, keywords);
    } catch (InstantiationException e) {
      e.printStackTrace(); // To change body of catch statement use Options | File Templates.
    } catch (IllegalAccessException e) {
      e.printStackTrace(); // To change body of catch statement use Options | File Templates.
    } catch (ClassNotFoundException e) {
      e.printStackTrace(); // To change body of catch statement use Options | File Templates.
    }

    //      getViewManager().openView((String)keywords.getValue("view"), keywords);
  }