com.pmease.quickbuild.extensionpoint.support
Class ConfigurationBasedGadget

java.lang.Object
  extended by com.pmease.quickbuild.extensionpoint.support.TypeInstance
      extended by com.pmease.quickbuild.extensionpoint.support.Gadget
          extended by com.pmease.quickbuild.extensionpoint.support.ConfigurationBasedGadget
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AggregatedReportGadget, BuildBasedGadget, CategoryStatisticsGadget, ReportStatisticsGadget

public abstract class ConfigurationBasedGadget
extends Gadget

Custom gadgets extending this class will automatically have configuration choice fields so that user can specify desired configuration. Specified configuration can be accessed via method Context.getConfiguration() in your gadget code. This base class is appropriate for gadgets which want to have user specify a configuration, and then display information or reports corresponding to that configuration.

See Also:
Serialized Form

Constructor Summary
ConfigurationBasedGadget()
           
 
Method Summary
 java.lang.String getConfigurationPath()
           
protected static Configuration guessConfiguration()
           
 org.apache.wicket.markup.html.panel.Panel renderBody(java.lang.String panelId)
           
protected abstract  org.apache.wicket.markup.html.panel.Panel renderBodyForConfiguration(java.lang.String panelId)
           
 org.apache.wicket.Component renderHead(java.lang.String componentId)
           
protected  org.apache.wicket.Component renderHeadForConfiguration(java.lang.String componentId)
           
 void setConfigurationPath(java.lang.String configurationPath)
           
 
Methods inherited from class com.pmease.quickbuild.extensionpoint.support.Gadget
fromDOM, getCssClass, getInterpolatedTitle, getTitle, newInstance, setTitle
 
Methods inherited from class com.pmease.quickbuild.extensionpoint.support.TypeInstance
getPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationBasedGadget

public ConfigurationBasedGadget()
Method Detail

getConfigurationPath

@NotEmpty
public java.lang.String getConfigurationPath()

setConfigurationPath

public void setConfigurationPath(java.lang.String configurationPath)

renderHead

public final org.apache.wicket.Component renderHead(java.lang.String componentId)
Overrides:
renderHead in class Gadget

renderHeadForConfiguration

protected org.apache.wicket.Component renderHeadForConfiguration(java.lang.String componentId)

renderBody

public final org.apache.wicket.markup.html.panel.Panel renderBody(java.lang.String panelId)
Specified by:
renderBody in class Gadget

guessConfiguration

protected static Configuration guessConfiguration()

renderBodyForConfiguration

protected abstract org.apache.wicket.markup.html.panel.Panel renderBodyForConfiguration(java.lang.String panelId)


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.