예제 #1
0
 public XMLViewerImpl() {
   editor.startEditor();
   editor.setMode(AceEditorMode.XML);
   editor.setTheme(AceEditorTheme.CHROME);
   editor.setReadOnly(true);
   initWidget(editor);
 }
예제 #2
0
 @Override
 public void onResize() {
   int height = getParent().getOffsetHeight();
   int width = getParent().getOffsetWidth();
   setPixelSize(width, height);
   editor.setHeight(height + "px");
   editor.redisplay();
 }
예제 #3
0
 public void clear() {
   editor.setText(null);
 }
예제 #4
0
 @Override
 public void setContent(String content) {
   editor.setText(content);
 }