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

java.lang.Object
  extended by org.sonar.plugins.api.web.gwt.client.AbstractSourceViewer
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint
Direct Known Subclasses:
GwtCodeCoverageSourceViewer, GwtDefaultSourceViewer, GwtViolationsSourceViewer

public abstract class AbstractSourceViewer
extends java.lang.Object
implements com.google.gwt.core.client.EntryPoint


Nested Class Summary
 class AbstractSourceViewer.LinesHandler
           
 
Field Summary
static java.lang.String ERROR_STYLE
           
protected  boolean expandLinkActivation
           
static java.lang.String HTML_ROOT_ID
           
static java.lang.String INFO_STYLE
           
protected  java.lang.String loadedSource
           
static java.lang.String WARNING_STYLE
           
 
Constructor Summary
AbstractSourceViewer()
           
 
Method Summary
protected abstract  void exportJavascript()
           
 java.util.Map<java.lang.Integer,LineDecorator> getDecorators()
           
protected abstract  java.lang.String getGwtId()
           
protected  boolean isDecoratorsRetrieved()
           
protected  boolean isLinesRetrieved()
           
protected  com.google.gwt.user.client.ui.Widget loadContainer()
           
protected  void loadSource()
           
 void onModuleLoad()
           
protected  void refreshLines()
           
protected abstract  void requestLineDecorators(java.lang.String sourceKey)
           
protected  void requestLines(java.lang.String sourceKey)
           
 void setDecorators(java.util.Map<java.lang.Integer,LineDecorator> decorators)
           
protected  void setDecoratorsRetrieved(boolean decoratorsRetrieved)
           
protected  void setExpandLinkActivation(boolean expandLinkActivation)
           
protected  void setLines(java.util.List<java.lang.String> lines)
           
protected  void setLinesRetrieved(boolean linesRetrieved)
           
protected abstract  boolean showValueColumn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_STYLE

public static final java.lang.String ERROR_STYLE
See Also:
Constant Field Values

WARNING_STYLE

public static final java.lang.String WARNING_STYLE
See Also:
Constant Field Values

INFO_STYLE

public static final java.lang.String INFO_STYLE
See Also:
Constant Field Values

HTML_ROOT_ID

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

expandLinkActivation

protected boolean expandLinkActivation

loadedSource

protected java.lang.String loadedSource
Constructor Detail

AbstractSourceViewer

public AbstractSourceViewer()
Method Detail

exportJavascript

protected abstract void exportJavascript()

getGwtId

protected abstract java.lang.String getGwtId()

showValueColumn

protected abstract boolean showValueColumn()

onModuleLoad

public void onModuleLoad()
Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint

loadContainer

protected com.google.gwt.user.client.ui.Widget loadContainer()

refreshLines

protected void refreshLines()

loadSource

protected void loadSource()

requestLines

protected void requestLines(java.lang.String sourceKey)

requestLineDecorators

protected abstract void requestLineDecorators(java.lang.String sourceKey)

isLinesRetrieved

protected boolean isLinesRetrieved()

setLinesRetrieved

protected void setLinesRetrieved(boolean linesRetrieved)

isDecoratorsRetrieved

protected boolean isDecoratorsRetrieved()

setDecoratorsRetrieved

protected void setDecoratorsRetrieved(boolean decoratorsRetrieved)

setLines

protected void setLines(java.util.List<java.lang.String> lines)

setExpandLinkActivation

protected void setExpandLinkActivation(boolean expandLinkActivation)

getDecorators

public java.util.Map<java.lang.Integer,LineDecorator> getDecorators()

setDecorators

public void setDecorators(java.util.Map<java.lang.Integer,LineDecorator> decorators)


Copyright © 2008 SonarSource SA. All Rights Reserved.