95 lines
4.8 KiB
Java
95 lines
4.8 KiB
Java
|
package com.allen_sauer.gwt.log.client.impl;
|
||
|
|
||
|
import com.google.gwt.core.client.GWT;
|
||
|
import com.google.gwt.resources.client.ResourcePrototype;
|
||
|
|
||
|
public class LogClientBundle_default_StaticClientBundleGenerator implements com.allen_sauer.gwt.log.client.impl.LogClientBundle {
|
||
|
private static LogClientBundle_default_StaticClientBundleGenerator _instance0 = new LogClientBundle_default_StaticClientBundleGenerator();
|
||
|
private void cssInitializer() {
|
||
|
css = new com.allen_sauer.gwt.log.client.impl.LogClientBundle.LogCssResource() {
|
||
|
private boolean injected;
|
||
|
public boolean ensureInjected() {
|
||
|
if (!injected) {
|
||
|
injected = true;
|
||
|
com.google.gwt.dom.client.StyleInjector.inject(getText());
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
public String getName() {
|
||
|
return "css";
|
||
|
}
|
||
|
public String getText() {
|
||
|
return com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ? ((".log-panel{background-color:" + ("#ecf2fc") + ";border:" + ("1px"+ " " +"solid"+ " " +"red") + ";margin:" + ("0") + ";filter:" + ("alpha(opacity\\=95)") + ";opacity:" + ("0.95") + ";z-index:" + ("1000") + ";}.log-panel .GOXXH1IDI{font-size:" + ("10pt") + ";margin:" + ("0") + ";text-align:" + ("right") + ";}.log-panel BUTTON{font-size:" + ("10pt") + ";margin:") + (("0") + ";}.log-panel .GOXXH1IDJ{cursor:" + ("move") + ";font-weight:" + ("bold") + ";}.log-panel .GOXXH1IDB{margin:" + ("0"+ " " +"1.2em") + ";}.log-panel BUTTON.GOXXH1IDA{color:" + ("#444") + " !important;}.log-panel .GOXXH1IDH{white-space:" + ("nowrap") + ";}.log-panel .GOXXH1IDC{white-space:" + ("pre") + ";font-family:" + ("monospace") + ";cursor:" + ("help") + ";}.log-panel .GOXXH1IDD{background-color:" + ("#f0f0f0") + ";}.log-panel .GOXXH1IDG{background-color:" + ("#fff") ) + (";}.log-panel .GOXXH1IDF{cursor:" + ("sw-resize") + ";}")) : ((".log-panel{background-color:" + ("#ecf2fc") + ";border:" + ("1px"+ " " +"solid"+ " " +"red") + ";margin:" + ("0") + ";filter:" + ("alpha(opacity\\=95)") + ";opacity:" + ("0.95") + ";z-index:" + ("1000") + ";}.log-panel .GOXXH1IDI{font-size:" + ("10pt") + ";margin:" + ("0") + ";text-align:" + ("left") + ";}.log-panel BUTTON{font-size:" + ("10pt") + ";margin:") + (("0") + ";}.log-panel .GOXXH1IDJ{cursor:" + ("move") + ";font-weight:" + ("bold") + ";}.log-panel .GOXXH1IDB{margin:" + ("0"+ " " +"1.2em") + ";}.log-panel BUTTON.GOXXH1IDA{color:" + ("#444") + " !important;}.log-panel .GOXXH1IDH{white-space:" + ("nowrap") + ";}.log-panel .GOXXH1IDC{white-space:" + ("pre") + ";font-family:" + ("monospace") + ";cursor:" + ("help") + ";}.log-panel .GOXXH1IDD{background-color:" + ("#f0f0f0") + ";}.log-panel .GOXXH1IDG{background-color:" + ("#fff") ) + (";}.log-panel .GOXXH1IDF{cursor:" + ("se-resize") + ";}"));
|
||
|
}
|
||
|
public java.lang.String logClearAbout(){
|
||
|
return "GOXXH1IDA";
|
||
|
}
|
||
|
public java.lang.String logClearButton(){
|
||
|
return "GOXXH1IDB";
|
||
|
}
|
||
|
public java.lang.String logMessage(){
|
||
|
return "GOXXH1IDC";
|
||
|
}
|
||
|
public java.lang.String logMessageHover(){
|
||
|
return "GOXXH1IDD";
|
||
|
}
|
||
|
public java.lang.String logPanel(){
|
||
|
return "log-panel";
|
||
|
}
|
||
|
public java.lang.String logResizeSe(){
|
||
|
return "GOXXH1IDF";
|
||
|
}
|
||
|
public java.lang.String logScrollPanel(){
|
||
|
return "GOXXH1IDG";
|
||
|
}
|
||
|
public java.lang.String logStacktrace(){
|
||
|
return "GOXXH1IDH";
|
||
|
}
|
||
|
public java.lang.String logTextArea(){
|
||
|
return "GOXXH1IDI";
|
||
|
}
|
||
|
public java.lang.String logTitle(){
|
||
|
return "GOXXH1IDJ";
|
||
|
}
|
||
|
}
|
||
|
;
|
||
|
}
|
||
|
private static class cssInitializer {
|
||
|
static {
|
||
|
_instance0.cssInitializer();
|
||
|
}
|
||
|
static com.allen_sauer.gwt.log.client.impl.LogClientBundle.LogCssResource get() {
|
||
|
return css;
|
||
|
}
|
||
|
}
|
||
|
public com.allen_sauer.gwt.log.client.impl.LogClientBundle.LogCssResource css() {
|
||
|
return cssInitializer.get();
|
||
|
}
|
||
|
private static java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype> resourceMap;
|
||
|
private static com.allen_sauer.gwt.log.client.impl.LogClientBundle.LogCssResource css;
|
||
|
|
||
|
public ResourcePrototype[] getResources() {
|
||
|
return new ResourcePrototype[] {
|
||
|
css(),
|
||
|
};
|
||
|
}
|
||
|
public ResourcePrototype getResource(String name) {
|
||
|
if (GWT.isScript()) {
|
||
|
return getResourceNative(name);
|
||
|
} else {
|
||
|
if (resourceMap == null) {
|
||
|
resourceMap = new java.util.HashMap<java.lang.String, com.google.gwt.resources.client.ResourcePrototype>();
|
||
|
resourceMap.put("css", css());
|
||
|
}
|
||
|
return resourceMap.get(name);
|
||
|
}
|
||
|
}
|
||
|
private native ResourcePrototype getResourceNative(String name) /*-{
|
||
|
switch (name) {
|
||
|
case 'css': return this.@com.allen_sauer.gwt.log.client.impl.LogClientBundle::css()();
|
||
|
}
|
||
|
return null;
|
||
|
}-*/;
|
||
|
}
|