org.sonar.api.web.gwt.client
Class AbstractResourceTab

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

public abstract class AbstractResourceTab
extends ResourceWidget


Nested Class Summary
 
Nested classes/interfaces inherited from class org.sonar.api.web.gwt.client.ResourceWidget
ResourceWidget.StandAloneResourceHandler
 
Field Summary
static java.lang.String HTML_ROOT_ID
           
 
Constructor Summary
AbstractResourceTab()
           
 
Method Summary
protected abstract  ResourcePanel getHeaderPanel(Resource resource)
          Get a new instance of the panel header to render
protected  java.lang.String getHtmlRootId()
          Returns the root HTML ID to bind this widget with
protected abstract  ResourcePanel getMainPanel(Resource resource)
          Get a new instance of the main panel to render
protected  com.google.gwt.user.client.ui.Panel render(com.google.gwt.user.client.ui.RootPanel root)
          Renders the widget for the current resource
 
Methods inherited from class org.sonar.api.web.gwt.client.ResourceWidget
exportJavascript, getGwtId, getResource, getResourceJSONObject, isDefault, isForResource, isMetricInList, loadContainer, onModuleLoad, onResourceLoaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_ROOT_ID

public static final java.lang.String HTML_ROOT_ID
See Also:
Constant Field Values
Constructor Detail

AbstractResourceTab

public AbstractResourceTab()
Method Detail

getMainPanel

protected abstract ResourcePanel getMainPanel(Resource resource)
Get a new instance of the main panel to render

Parameters:
resource - the resource to be viewed, does contains snapshot measures
Returns:
a ResourceTabPanel instance

getHeaderPanel

protected abstract ResourcePanel getHeaderPanel(Resource resource)
Get a new instance of the panel header to render

Parameters:
resource - the resource to be viewed, does contains snapshot measures
Returns:
a ResourceTabPanel instance

getHtmlRootId

protected java.lang.String getHtmlRootId()
Description copied from class: ResourceWidget
Returns the root HTML ID to bind this widget with

Specified by:
getHtmlRootId in class ResourceWidget
Returns:
the html rood elment id

render

protected final com.google.gwt.user.client.ui.Panel render(com.google.gwt.user.client.ui.RootPanel root)
Description copied from class: ResourceWidget
Renders the widget for the current resource

Specified by:
render in class ResourceWidget
Parameters:
root - the root html panel


Copyright © 2009 SonarSource SA. All Rights Reserved.