com.github.gwtbootstrap.client.ui.resources.prettify
Class PrettifyHelper

java.lang.Object
  extended by com.github.gwtbootstrap.client.ui.resources.prettify.PrettifyHelper
All Implemented Interfaces:
HasProgrammingLanguage

public class PrettifyHelper
extends Object
implements HasProgrammingLanguage

A helper class to inject and configure Google Code Prettify in our code components.

Since:
2.0.4.0
Author:
Carlos Alexandro Becker

Constructor Summary
PrettifyHelper(Widget w)
           
 
Method Summary
 void configure()
          Configures prettyprint without line numbers.
 void configure(boolean showLineNumber)
          Configures prettyprint with optional line numbers.
 void setLang(String lang)
          will import the language if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettifyHelper

public PrettifyHelper(Widget w)
Method Detail

setLang

public void setLang(String lang)
will import the language if needed.

Specified by:
setLang in interface HasProgrammingLanguage
Parameters:
lang - the programming language

configure

public void configure()
Configures prettyprint without line numbers.


configure

public void configure(boolean showLineNumber)
Configures prettyprint with optional line numbers.

Parameters:
showLineNumber - true if line numbers should be shown


Copyright © 2012 gwtbootstrap. All Rights Reserved.