src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java
protected String getJavaScript4Target(final Map<String, String[]> _parameters)
    {
        final String ret;
        setExecutionStatus(UIStructurBrowser.ExecutionStatus.GETJAVASCRIPT4TARGET);
        try {
            final List<Return> retList = getObject4Event().executeEvents(EventType.UI_TABLE_EVALUATE,
                                ParameterValues.INSTANCE, getInstance(),
                                ParameterValues.CLASS, this,
                                ParameterValues.PARAMETERS, _parameters);
            ret = (String) retList.get(0).get(ReturnValues.SNIPLETT);
        } catch (final EFapsException e) {
            throw new RestartResponseException(new ErrorPage(e));
        }
        return ret;
    }
protected String getJavaScript4Target(final Map<String, String[]> _parameters)
    {
        final String ret;
        setExecutionStatus(UIStructurBrowser.ExecutionStatus.GETJAVASCRIPT4TARGET);
        try {
            final List<Return> retList = getObject4Event().executeEvents(EventType.UI_TABLE_EVALUATE,
                                ParameterValues.INSTANCE, getInstance(),
                                ParameterValues.CLASS, this,
                                ParameterValues.PARAMETERS, _parameters);
            ret = (String) retList.get(0).get(ReturnValues.SNIPLETT);
        } catch (final EFapsException e) {
            throw new RestartResponseException(new ErrorPage(e));
        }
        return ret;
    }
protected String getJavaScript4Target ( final Map < String , String [ ] > _parameters ) { final String ret ; setExecutionStatus ( UIStructurBrowser . ExecutionStatus . GETJAVASCRIPT4TARGET ) ; try { final List < Return > retList = getObject4Event ( ) . executeEvents ( EventType . UI_TABLE_EVALUATE , ParameterValues . INSTANCE , getInstance ( ) , ParameterValues . CLASS , this , ParameterValues . PARAMETERS , _parameters ) ; ret = ( String ) retList . get ( 0 ) . get ( ReturnValues . SNIPLETT ) ; } catch ( final EFapsException e ) { throw new RestartResponseException ( new ErrorPage ( e ) ) ; } return ret ; }
Method is called from the StructurBrowser in edit mode from
{@link #setValuesFromUI(Map, DefaultMutableTreeNode)} to get
additional JavaScript to be appended to the AjaxTarget.
@param _parameters   Parameter as send from the UserInterface
@return JavaScript for the UserInterface
Method is called from the StructurBrowser in edit mode from {