CPD Results

The following document contains the results of PMD's CPD 4.1.

Duplications

FileLine
net\sf\tacos\components\ClientLink.java49
net\sf\tacos\components\dojo\DropTarget.java48
                params.put("url", getLink().getURL());        

            getScript().execute(this, cycle, TapestryUtils.getPageRenderSupport(cycle, this), params);
        }
	}
	
	/**
	 * {@inheritDoc}
	 */
	public void trigger(IRequestCycle cycle) {
        IActionListener listener = getListener();
        if (listener == null)
            throw Tapestry.createRequiredParameterException(this, "listener");
        
        getListenerInvoker().invokeListener(listener, this, cycle);
	}
	
	/**Returns a link*/
	private ILink getLink(){
		DirectServiceParameter dsp = new DirectServiceParameter(this);
		return getEngine().getLink(isStateful(), dsp);
	}
	
    /** Reference to js function - called when a drop event is generated.*/
    public abstract String getOnDrop();        

FileLine
net\sf\tacos\components\dojo\old\FloatingPane.java77
net\sf\tacos\components\dojo\old\TitlePane.java50
    public void renderWidget(IMarkupWriter writer, IRequestCycle cycle)
    {
        renderComponent(writer, cycle);
    }    

    /**
     * @see org.apache.tapestry.AbstractComponent#renderComponent(org.apache.tapestry.IMarkupWriter,
     *      org.apache.tapestry.IRequestCycle)
     */
    protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
    {
        writer.begin("div");
        writer.attribute("id", getIdParameter());
        
        renderInformalParameters(writer, cycle);
        renderBody(writer, cycle);
        
        writer.end();
        
        JSONObject obj = DojoUtils.parseJSONParameter(this, "options");

        obj.put("labelNode", getLabelNode());

FileLine
net\sf\tacos\components\dojo\old\FloatingPane.java111
net\sf\tacos\components\dojo\old\TitlePane.java74
        obj.put("containerNodeClass", getContainerNodeClass());      

        //Setup our script includes
        Map scriptParms = new HashMap();
        scriptParms.put("id", getIdParameter());
        scriptParms.put("props", obj.toString());
        
        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this);
        
        getScript().execute(this, cycle, pageRenderSupport, scriptParms);
    }
}