@Dependent public class SourceCodeEditor extends Object implements com.google.gwt.user.client.ui.IsWidget
(Check out the SourceCodeType
interface which contains the list of supported languages)
Modifier and Type | Class and Description |
---|---|
static interface |
SourceCodeEditor.View |
Constructor and Description |
---|
SourceCodeEditor(SourceCodeEditor.View view,
HtmlValidator htmlValidator,
JsValidator jsValidator) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
focus() |
String |
getCode() |
boolean |
hasErrors() |
void |
init(SourceCodeType type,
String code,
Map<String,String> varMap,
Command onSourceCodeChanged) |
boolean |
onSourceCodeChanged(String newCode) |
void |
onVariableSelected(String var) |
String |
validateSourceCode(String newCode) |
@Inject public SourceCodeEditor(SourceCodeEditor.View view, HtmlValidator htmlValidator, JsValidator jsValidator)
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
public String getCode()
public boolean hasErrors()
public void init(SourceCodeType type, String code, Map<String,String> varMap, Command onSourceCodeChanged)
public void focus()
public void onVariableSelected(String var)
public boolean onSourceCodeChanged(String newCode)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.