org.sonar.plugins.api.web.gwt.client
Class AbstractResourceTab
java.lang.Object
org.sonar.plugins.api.web.gwt.client.ResourceWidget
org.sonar.plugins.api.web.gwt.client.AbstractResourceTab
- All Implemented Interfaces:
- com.google.gwt.core.client.EntryPoint
- Direct Known Subclasses:
- AbstractSourcesResourceTab
public abstract class AbstractResourceTab
- extends ResourceWidget
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTML_ROOT_ID
public static final java.lang.String HTML_ROOT_ID
- See Also:
- Constant Field Values
AbstractResourceTab
public AbstractResourceTab()
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.