// i don't like this, but ...
if( portlet instanceof AbstractVTLPortlet)
{
// only AbstractVTLPortlet gives me this functionality
AbstractVTLPortlet xPortlet = (AbstractVTLPortlet)portlet;
// configure button
if( xPortlet.getAllowEdit( rundata ) )
{
hrefConfigure=new DynamicURI( rundata )
.addPathInfo("portlet", portletName)
.addPathInfo("button","configure")
.toString();
}
// minimize/restore button
if( xPortlet.getAllowMinimize( rundata ) )
{
if( xPortlet.isMinimized( rundata ) )
{
hrefRestore=new DynamicURI( rundata )
.addPathInfo("action", "portlets.RestorePortlet")
.addPathInfo("portletName", portletName)
.toString();
}
else
{
hrefMinimize=new DynamicURI( rundata )
.addPathInfo("action", "portlets.MinimizePortlet")
.addPathInfo("portletName", portletName)
.toString();
}
}
// maximize button
if( xPortlet.getAllowMaximize( rundata ) )
{
hrefMaximize=new DynamicURI( rundata )
.addPathInfo("portlet", portletName)
.addPathInfo("button","maximize")
.toString();
}
// close button
if( xPortlet.getAllowClose( rundata ) )
{
hrefClose=new DynamicURI( rundata )
.addPathInfo("action", "portlets.ClosePortlet")
.addPathInfo("portletName", portletName)
.toString();