Equivalent of Line Separator in smartGWT?

此生再无相见时 提交于 2020-01-11 10:22:29

问题


Is there an equivalent or alternate for

System.getProperty("line.separator");

It gives the below error

The method getProperty(String, String) in the type System is not applicable for the arguments (String)


回答1:


I think you need to execute System.getProperty("line.separator") in your server side code and access it using RPC or any other server side gwt communication technique.

Check GWT JRE Emulation:

GWT includes a library that emulates a subset of the Java runtime library. The list below shows the set of JRE packages, types and methods that GWT can translate automatically. Note that in some cases, only a subset of methods is supported for a given type.

System

err, out
System(), arraycopy(Object, int, Object, int, int), currentTimeMillis(), gc(), getProperty(String, String), identityHashCode(Object), setErr(PrintStream), setOut(PrintStream)



来源:https://stackoverflow.com/questions/20338569/equivalent-of-line-separator-in-smartgwt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!