This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HasCellImpl<M,V> implements HasCell<M,V> | |
{ | |
public HasCellImpl(ValueProvider<? super M, V> vp, Cell<V> cell) | |
{ | |
this.cell = cell; | |
this.vp = vp; | |
} | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String xml = "<root><elt>sum stuff</elt><elt anAttribute=\"attr_value\">more stuff</elt></root>"; | |
XmlXhtmlRenderer renderer = new XmlXhtmlRenderer(); | |
try | |
{ | |
result = renderer.highlight("some-text-can-be-anything", xml, "UTF-8", true); | |
LOGGER.trace("added syntax highlighting to XML: {}", result); | |
} | |
catch (IOException ex) | |
{ | |
LOGGER.error("unable to syntax hightlight adi xml for asset: {}", assetKey, ex); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Log { | |
/* | |
* type - is "INFO", "DEBUG", "ERROR" etc | |
* object - is an "id" of the person calling it. as a convention, I use 'this' unless it is a static method, then I pass in the class | |
* msg - the log message | |
*/ | |
public static void log(String type, Object object, String msg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<artifactId>incubator</artifactId> | |
<groupId>aleph.engineering</groupId> | |
<name>Aleph Engineering InCubator Parent</name> | |
<version>0.0.1-SNAPSHOT</version> | |
<modelVersion>4.0.0</modelVersion> | |
<packaging>pom</packaging> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gwt.core.client.EntryPoint; | |
import elemental2.dom.DataTransfer; | |
import elemental2.dom.DragEvent; | |
import elemental2.dom.Element; | |
import elemental2.dom.File; | |
import elemental2.dom.FileList; | |
import elemental2.dom.FormData; | |
import elemental2.dom.HTMLDivElement; | |
import elemental2.dom.XMLHttpRequest; |