本文整理了Java中com.google.gwt.core.client.GWT.log()
方法的一些代码示例,展示了GWT.log()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GWT.log()
方法的具体详情如下:
包路径:com.google.gwt.core.client.GWT
类名称:GWT
方法名:log
[英]Logs a message to the development shell logger in Development Mode, or to the console in Super Dev Mode. Calls are optimized out in Production Mode.
[中]在开发模式下将消息记录到开发shell记录器,或在超级开发模式下将消息记录到控制台。呼叫在生产模式下进行优化。
代码示例来源:origin: kaaproject/kaa
public void onFailure(Throwable caught) {
GWT.log("TreePlaceDataProvider.LoadCallback.onFailure(caught):", caught);
}
代码示例来源:origin: kaaproject/kaa
/**
* Sign out.
*/
public static void signOut() {
RequestBuilder builder = new RequestBuilder(
RequestBuilder.POST, GWT.getModuleBaseURL() + "j_spring_security_logout");
try {
builder.sendRequest(null, new RequestCallback() {
@Override
public void onResponseReceived(Request request,
Response response) {
redirectToModule("..");
}
@Override
public void onError(Request request, Throwable exception) {
redirectToModule("..");
}
});
} catch (RequestException ex) {
GWT.log("Exception: " + ex.getMessage());
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void onUncaughtException(Throwable e) {
log("Uncaught exception escaped", e);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Wraps a JavaScript object into a suitable inspectable type.
*/
public static Object convertToInspectableObject(Object jso) {
try {
JsoBoxer boxer = (JsoBoxer) jso;
return boxer.box();
} catch (Throwable t) {
GWT.log("GWT could not inspect the JavaScriptObject.", t);
return "ERROR: Could not inspect the JavaScriptObject, see GWT log for details.";
}
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
val = URL.decodeQueryString(val);
} catch (JavaScriptException e) {
GWT.log("Cannot decode a URL query string parameter=" + key +
" value=" + val, e);
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void publish(LogRecord record) {
if (!isSupported() || !isLoggable(record)) {
return;
}
String msg = getFormatter().format(record);
GWT.log(msg, record.getThrown());
}
代码示例来源:origin: org.jboss.errai/errai-bus
GWT.log("bus tried to transition to " + state + ", but it already is");
return;
代码示例来源:origin: com.google.gwt/gwt-servlet
GWT.log(message);
代码示例来源:origin: com.google.gwt/gwt-servlet
GWT.log("Warning: " + className + " descendants will be incorrectly "
+ "positioned, i.e. not relative to their parent element, when "
+ "'position:static', which is the CSS default, is in effect. One "
代码示例来源:origin: protegeproject/webprotege
public SetPerspectivesAction(ProjectId projectId, UserId userId, ImmutableList<PerspectiveId> perspectiveIds) {
this.projectId = projectId;
this.userId = userId;
this.perspectiveIds = perspectiveIds;
GWT.log("[SetPerspectivesAction] " + perspectiveIds);
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public PushManager getPushManager() {
if (registration != null) {
return registration.pushManager;
} else {
GWT.log("Service worker is not yet registered", new IllegalStateException());
}
return null;
}
}
代码示例来源:origin: com.googlecode.gwtquery/gwtquery
public SelectorEngine() {
impl = (SelectorEngineImpl) GWT.create(SelectorEngineImpl.class);
GWT.log("GQuery - Created SelectorEngineImpl: " + impl.getClass().getName());
styleImpl = GWT.create(DocumentStyleImpl.class);
GWT.log("GQuery - Created DocumentStyleImpl: " + styleImpl.getClass().getName());
}
代码示例来源:origin: org.jboss.errai/errai-common
@Override
public void run() {
try {
task.run();
} catch (Throwable t) {
GWT.log("Async Task Execution Failed. Future executions (if any) are cancelled.", t);
timer.cancel();
}
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public void unload() {
if (themeColorElement != null) {
themeColorElement.removeFromParent();
themeColorElement = null;
GWT.log("Meta theme color has been unloaded.");
}
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public void unload() {
if (manifestElement != null) {
manifestElement.removeFromParent();
manifestElement = null;
GWT.log("Web manifest has been unloaded.");
}
}
代码示例来源:origin: errai/errai
@Override
public void run() {
try {
task.run();
} catch (Throwable t) {
GWT.log("Async Task Execution Failed. Future executions (if any) are cancelled.", t);
timer.cancel();
}
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public void setFieldWidth(double percentWidth) {
if (field != null) {
field.getElement().getStyle().setWidth(percentWidth, Style.Unit.PCT);
} else {
GWT.log("Field is not defined", new IllegalStateException());
}
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public void setLabelWidth(double percentWidth) {
if (label != null) {
label.getElement().getStyle().setWidth(percentWidth, Style.Unit.PCT);
if (getFieldType().equals(FieldType.ALIGNED_LABEL)) {
errorLabel.getElement().getStyle().setPaddingLeft(percentWidth, Style.Unit.PCT);
}
} else {
GWT.log("Label is not defined", new IllegalStateException());
}
}
代码示例来源:origin: gwtbootstrap/gwt-bootstrap
@Override
public void onClick(ClickEvent event) {
try {
IconAnchor iconAnchor = (IconAnchor) event.getSource();
link = (NavLink) iconAnchor.getParent();
} catch (Exception e) {
GWT.log(e.getMessage(), e);
}
DomEvent.fireNativeEvent(Document.get().createChangeEvent(), AbstractDropdownBase.this);
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
/**
* Apply the pushpin feature into the target widget
*/
public void apply() {
Scheduler.get().scheduleDeferred(() -> {
if (widget != null) {
$(widget.getElement()).pushpin(options);
} else {
GWT.log("Please set your widget before applying the pushpin", new IllegalStateException());
}
});
}
内容来源于网络,如有侵权,请联系作者删除!