org.sonar.plugins.api.web.gwt.client
Class AbstractSourcesResourceTab

java.lang.Object
  extended by org.sonar.plugins.api.web.gwt.client.ResourceWidget
      extended by org.sonar.plugins.api.web.gwt.client.AbstractResourceTab
          extended by org.sonar.plugins.api.web.gwt.client.AbstractSourcesResourceTab
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint

public abstract class AbstractSourcesResourceTab
extends AbstractResourceTab


Nested Class Summary
 
Nested classes/interfaces inherited from class org.sonar.plugins.api.web.gwt.client.ResourceWidget
ResourceWidget.StandAloneResourceHandler
 
Field Summary
 
Fields inherited from class org.sonar.plugins.api.web.gwt.client.AbstractResourceTab
HTML_ROOT_ID
 
Constructor Summary
AbstractSourcesResourceTab()
           
 
Method Summary
protected abstract  SourceDecorator getDecorator(Resource resource)
          The source code decorator to use with this panel
 ResourcePanel getMainPanel(Resource resource)
          Get a new instance of the main panel to render
 
Methods inherited from class org.sonar.plugins.api.web.gwt.client.AbstractResourceTab
getHeaderPanel, getHtmlRootId, render
 
Methods inherited from class org.sonar.plugins.api.web.gwt.client.ResourceWidget
exportJavascript, getGwtId, getResource, getResourceJSONObject, isDefault, isForResource, loadContainer, onModuleLoad, onResourceLoaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSourcesResourceTab

public AbstractSourcesResourceTab()
Method Detail

getMainPanel

public ResourcePanel getMainPanel(Resource resource)
Description copied from class: AbstractResourceTab
Get a new instance of the main panel to render

Specified by:
getMainPanel in class AbstractResourceTab
Parameters:
resource - the resource to be viewed, does contains snapshot measures
Returns:
a ResourceTabPanel instance

getDecorator

protected abstract SourceDecorator getDecorator(Resource resource)
The source code decorator to use with this panel

Parameters:
resource - the current resource to show
Returns:
the decorator impl, or null to use the default decorator


Copyright © 2009 SonarSource SA. All Rights Reserved.