(function(){var P$=Clazz_newPackage("java.applet"),I$=[];
var C$=Clazz_newClass(P$, "Applet", null, 'swingjs.a2s.Applet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:30 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.applet"),I$=[];
var C$=Clazz_newInterface(P$, "AppletContext");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.applet"),I$=[];
var C$=Clazz_newInterface(P$, "AppletStub");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.applet"),I$=[[0,'java.net.URL','javax.swing.RepaintManager','sun.applet.AppletAudioClip','java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSApplet", null, 'java.awt.JSPanel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.temporaryLostComponent=null;
this.stub=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'isFocusableWindow$', function () {
return true;
});
Clazz_newMeth(C$, 'getModalBlocker$', function () {
return null;
});
Clazz_newMeth(C$, 'addWindowListener$java_awt_event_WindowListener', function (w) {
});
Clazz_newMeth(C$, 'addOwnedWindow$java_awt_Window', function (w) {
});
Clazz_newMeth(C$, 'removeOwnedWindow$java_awt_Window', function (weakWindow) {
});
Clazz_newMeth(C$, 'getTemporaryLostComponent$', function () {
return this.temporaryLostComponent;
});
Clazz_newMeth(C$, 'setTemporaryLostComponent$java_awt_Component', function (component) {
var previousComp=this.temporaryLostComponent;
if (component == null || component.canBeFocusOwner$() ) {
this.temporaryLostComponent=component;
} else {
this.temporaryLostComponent=null;
}return previousComp;
});
Clazz_newMeth(C$, 'setStub$java_applet_AppletStub', function (stub) {
this.stub=stub;
});
Clazz_newMeth(C$, 'isActive$', function () {
if (this.stub != null ) {
return this.stub.isActive$();
} else {
return false;
}});
Clazz_newMeth(C$, 'getDocumentBase$', function () {
return this.stub.getDocumentBase$();
});
Clazz_newMeth(C$, 'getCodeBase$', function () {
if (this.stub != null ) return this.stub.getCodeBase$();
var path=this.getClass$().getName$().replace$CharSequence$CharSequence(".", "/");
try {
return Clazz_new_($I$(1).c$$S,["http://./" + path.substring$I$I(0, path.lastIndexOf$S("/") + 1)]);
} catch (e) {
if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){
return null;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'getParameter$S', function (name) {
return this.stub.getParameter$S(name);
});
Clazz_newMeth(C$, 'getAppletContext$', function () {
return this.stub.getAppletContext$();
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
C$.superclazz.prototype.setVisible$Z.apply(this, [b]);
if (b) this.repaint$();
});
Clazz_newMeth(C$, 'resize$I$I', function (width, height) {
if (this.stub == null ) this.秘resizeOriginal$I$I(width, height);
});
Clazz_newMeth(C$, 'resizeHTML$I$I', function (width, height) {
if (this.秘appletViewer != null ) {
this.秘appletViewer.html5Applet._resizeApplet(Clazz_array(Integer.TYPE, -1, [width, height]));
if (this.stub != null ) {
var root=(this).getRootPane$();
root.invalidate$();
$I$(2).currentManager$java_awt_Component(this).addInvalidComponent$javax_swing_JComponent(root);
}}});
Clazz_newMeth(C$, '秘resizeOriginal$I$I', function (width, height) {
var d=this.size$();
if ((d.width != width) || (d.height != height) ) {
C$.superclazz.prototype.resize$I$I.apply(this, [width, height]);
if (this.stub != null ) {
this.stub.appletResize$I$I(width, height);
}}});
Clazz_newMeth(C$, 'resize$java_awt_Dimension', function (d) {
this.resize$I$I(d.width, d.height);
});
Clazz_newMeth(C$, 'showStatus$S', function (msg) {
this.getAppletContext$().showStatus$S(msg);
});
Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) {
return this.getAppletContext$().getImage$java_net_URL(url);
});
Clazz_newMeth(C$, 'getImage$java_net_URL$S', function (url, name) {
try {
return this.getImage$java_net_URL(Clazz_new_($I$(1).c$$java_net_URL$S,[url, name]));
} catch (e) {
if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){
return null;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'newAudioClip$java_net_URL', function (url) {
return Clazz_new_($I$(3).c$$java_net_URL,[url]);
}, 1);
Clazz_newMeth(C$, 'getAudioClip$java_net_URL', function (url) {
return this.getAppletContext$().getAudioClip$java_net_URL(url);
});
Clazz_newMeth(C$, 'getAudioClip$java_net_URL$S', function (url, name) {
try {
return this.getAudioClip$java_net_URL(Clazz_new_($I$(1).c$$java_net_URL$S,[url, name]));
} catch (e) {
if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){
return null;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'getAppletInfo$', function () {
return null;
});
Clazz_newMeth(C$, 'getLocale$', function () {
var locale=C$.superclazz.prototype.getLocale$.apply(this, []);
if (locale == null ) {
return $I$(4).getDefault$();
}return locale;
});
Clazz_newMeth(C$, 'getParameterInfo$', function () {
return null;
});
Clazz_newMeth(C$, 'play$java_net_URL', function (url) {
var clip=this.getAudioClip$java_net_URL(url);
if (clip != null ) {
clip.play$();
}});
Clazz_newMeth(C$, 'play$java_net_URL$S', function (url, name) {
var clip=this.getAudioClip$java_net_URL$S(url, name);
if (clip != null ) {
clip.play$();
}});
Clazz_newMeth(C$, 'init$', function () {
});
Clazz_newMeth(C$, 'start$', function () {
});
Clazz_newMeth(C$, 'stop$', function () {
});
Clazz_newMeth(C$, 'destroy$', function () {
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "ActiveEvent");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "Adjustable");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "AWTEvent", null, 'java.util.EventObject');
C$.idnum=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.bdata=null;
this.id=0;
this.num=0;
this.consumed=false;
this.focusManagerIsDispatching=false;
this.isPosted=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.consumed=false;
this.focusManagerIsDispatching=false;
}, 1);
Clazz_newMeth(C$, 'getBData$', function () {
return this.bdata;
});
Clazz_newMeth(C$, 'setBData$BA', function (bdata) {
this.bdata=bdata;
});
Clazz_newMeth(C$, 'c$$java_awt_Event', function (event) {
C$.c$$O$I.apply(this, [event.target, event.id]);
}, 1);
Clazz_newMeth(C$, 'c$$O$I', function (source, id) {
C$.superclazz.c$$O.apply(this, [source]);
C$.$init$.apply(this);
this.id=id;
this.num=++C$.idnum;
switch (id) {
case 1001:
case 701:
case 601:
case 900:
this.consumed=true;
break;
default:
}
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$O.apply(this, [null]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setSource$O', function (newSource) {
if (this.source === newSource ) {
return;
}var comp=null;
if (Clazz_instanceOf(newSource, "java.awt.Component")) {
comp=newSource;
while (comp != null && comp.peer != null && (Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer")) ){
comp=comp.parent;
}
}this.source=newSource;
});
Clazz_newMeth(C$, 'getID$', function () {
return this.id;
});
Clazz_newMeth(C$, 'toString', function () {
var srcName=null;
if (Clazz_instanceOf(this.source, "java.awt.Component")) {
srcName=(this.source).getName$();
}return this.getClass$().getName$() + "[" + this.paramString$() + "] on " + (srcName != null ? srcName : this.source) ;
});
Clazz_newMeth(C$, 'paramString$', function () {
return "";
});
Clazz_newMeth(C$, 'consume$', function () {
switch (this.id) {
case 401:
case 402:
case 501:
case 502:
case 503:
case 506:
case 504:
case 505:
case 507:
case 1100:
case 1101:
this.consumed=true;
break;
default:
}
});
Clazz_newMeth(C$, 'isConsumed$', function () {
return this.consumed;
});
Clazz_newMeth(C$, 'copyPrivateDataInto$java_awt_AWTEvent', function (that) {
that.bdata=this.bdata;
});
Clazz_newMeth(C$, 'dispatched$', function () {
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "AWTEventMulticaster", null, null, ['java.awt.event.ComponentListener', 'java.awt.event.ContainerListener', 'java.awt.event.FocusListener', 'java.awt.event.KeyListener', 'java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener', 'java.awt.event.WindowListener', 'java.awt.event.WindowFocusListener', 'java.awt.event.WindowStateListener', 'java.awt.event.ActionListener', 'java.awt.event.ItemListener', 'java.awt.event.AdjustmentListener', 'java.awt.event.TextListener', 'java.awt.event.InputMethodListener', 'java.awt.event.HierarchyListener', 'java.awt.event.HierarchyBoundsListener', 'java.awt.event.MouseWheelListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.a=null;
this.b=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_EventListener$java_util_EventListener', function (a, b) {
C$.$init$.apply(this);
this.a=a;
this.b=b;
}, 1);
Clazz_newMeth(C$, 'remove$java_util_EventListener', function (oldl) {
if (oldl === this.a ) return this.b;
if (oldl === this.b ) return this.a;
var a2=C$.removeInternal$java_util_EventListener$java_util_EventListener(this.a, oldl);
var b2=C$.removeInternal$java_util_EventListener$java_util_EventListener(this.b, oldl);
if (a2 === this.a && b2 === this.b ) {
return this;
}return C$.addInternal$java_util_EventListener$java_util_EventListener(a2, b2);
});
Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) {
(this.a).componentResized$java_awt_event_ComponentEvent(e);
(this.b).componentResized$java_awt_event_ComponentEvent(e);
});
Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) {
(this.a).componentMoved$java_awt_event_ComponentEvent(e);
(this.b).componentMoved$java_awt_event_ComponentEvent(e);
});
Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) {
(this.a).componentShown$java_awt_event_ComponentEvent(e);
(this.b).componentShown$java_awt_event_ComponentEvent(e);
});
Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) {
(this.a).componentHidden$java_awt_event_ComponentEvent(e);
(this.b).componentHidden$java_awt_event_ComponentEvent(e);
});
Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) {
(this.a).componentAdded$java_awt_event_ContainerEvent(e);
(this.b).componentAdded$java_awt_event_ContainerEvent(e);
});
Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) {
(this.a).componentRemoved$java_awt_event_ContainerEvent(e);
(this.b).componentRemoved$java_awt_event_ContainerEvent(e);
});
Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) {
(this.a).focusGained$java_awt_event_FocusEvent(e);
(this.b).focusGained$java_awt_event_FocusEvent(e);
});
Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) {
(this.a).focusLost$java_awt_event_FocusEvent(e);
(this.b).focusLost$java_awt_event_FocusEvent(e);
});
Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) {
(this.a).keyTyped$java_awt_event_KeyEvent(e);
(this.b).keyTyped$java_awt_event_KeyEvent(e);
});
Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) {
(this.a).keyPressed$java_awt_event_KeyEvent(e);
(this.b).keyPressed$java_awt_event_KeyEvent(e);
});
Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) {
(this.a).keyReleased$java_awt_event_KeyEvent(e);
(this.b).keyReleased$java_awt_event_KeyEvent(e);
});
Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) {
(this.a).mouseClicked$java_awt_event_MouseEvent(e);
(this.b).mouseClicked$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) {
(this.a).mousePressed$java_awt_event_MouseEvent(e);
(this.b).mousePressed$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) {
(this.a).mouseReleased$java_awt_event_MouseEvent(e);
(this.b).mouseReleased$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) {
(this.a).mouseEntered$java_awt_event_MouseEvent(e);
(this.b).mouseEntered$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) {
(this.a).mouseExited$java_awt_event_MouseEvent(e);
(this.b).mouseExited$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) {
(this.a).mouseDragged$java_awt_event_MouseEvent(e);
(this.b).mouseDragged$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) {
(this.a).mouseMoved$java_awt_event_MouseEvent(e);
(this.b).mouseMoved$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) {
(this.a).windowOpened$java_awt_event_WindowEvent(e);
(this.b).windowOpened$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) {
(this.a).windowClosing$java_awt_event_WindowEvent(e);
(this.b).windowClosing$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) {
(this.a).windowClosed$java_awt_event_WindowEvent(e);
(this.b).windowClosed$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) {
(this.a).windowIconified$java_awt_event_WindowEvent(e);
(this.b).windowIconified$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) {
(this.a).windowDeiconified$java_awt_event_WindowEvent(e);
(this.b).windowDeiconified$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) {
(this.a).windowActivated$java_awt_event_WindowEvent(e);
(this.b).windowActivated$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) {
(this.a).windowDeactivated$java_awt_event_WindowEvent(e);
(this.b).windowDeactivated$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, ['windowStateChanged$java_awt_event_WindowEvent','windowStateChanged$'], function (e) {
(this.a).windowStateChanged$(e);
(this.b).windowStateChanged$(e);
});
Clazz_newMeth(C$, 'windowGainedFocus$java_awt_event_WindowEvent', function (e) {
(this.a).windowGainedFocus$java_awt_event_WindowEvent(e);
(this.b).windowGainedFocus$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, 'windowLostFocus$java_awt_event_WindowEvent', function (e) {
(this.a).windowLostFocus$java_awt_event_WindowEvent(e);
(this.b).windowLostFocus$java_awt_event_WindowEvent(e);
});
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
(this.a).actionPerformed$(e);
(this.b).actionPerformed$(e);
});
Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) {
(this.a).itemStateChanged$(e);
(this.b).itemStateChanged$(e);
});
Clazz_newMeth(C$, ['adjustmentValueChanged$java_awt_event_AdjustmentEvent','adjustmentValueChanged$'], function (e) {
(this.a).adjustmentValueChanged$(e);
(this.b).adjustmentValueChanged$(e);
});
Clazz_newMeth(C$, ['textValueChanged$java_awt_event_TextEvent','textValueChanged$'], function (e) {
(this.a).textValueChanged$(e);
(this.b).textValueChanged$(e);
});
Clazz_newMeth(C$, 'inputMethodTextChanged$java_awt_event_InputMethodEvent', function (e) {
(this.a).inputMethodTextChanged$java_awt_event_InputMethodEvent(e);
(this.b).inputMethodTextChanged$java_awt_event_InputMethodEvent(e);
});
Clazz_newMeth(C$, 'caretPositionChanged$java_awt_event_InputMethodEvent', function (e) {
(this.a).caretPositionChanged$java_awt_event_InputMethodEvent(e);
(this.b).caretPositionChanged$java_awt_event_InputMethodEvent(e);
});
Clazz_newMeth(C$, ['hierarchyChanged$java_awt_event_HierarchyEvent','hierarchyChanged$'], function (e) {
(this.a).hierarchyChanged$(e);
(this.b).hierarchyChanged$(e);
});
Clazz_newMeth(C$, 'ancestorMoved$java_awt_event_HierarchyEvent', function (e) {
(this.a).ancestorMoved$java_awt_event_HierarchyEvent(e);
(this.b).ancestorMoved$java_awt_event_HierarchyEvent(e);
});
Clazz_newMeth(C$, 'ancestorResized$java_awt_event_HierarchyEvent', function (e) {
(this.a).ancestorResized$java_awt_event_HierarchyEvent(e);
(this.b).ancestorResized$java_awt_event_HierarchyEvent(e);
});
Clazz_newMeth(C$, ['mouseWheelMoved$java_awt_event_MouseWheelEvent','mouseWheelMoved$'], function (e) {
(this.a).mouseWheelMoved$(e);
(this.b).mouseWheelMoved$(e);
});
Clazz_newMeth(C$, 'add$java_awt_event_ComponentListener$java_awt_event_ComponentListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_ContainerListener$java_awt_event_ContainerListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_FocusListener$java_awt_event_FocusListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_KeyListener$java_awt_event_KeyListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_MouseListener$java_awt_event_MouseListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_WindowListener$java_awt_event_WindowListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_ActionListener$java_awt_event_ActionListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_ItemListener$java_awt_event_ItemListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_AdjustmentListener$java_awt_event_AdjustmentListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_TextListener$java_awt_event_TextListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_HierarchyListener$java_awt_event_HierarchyListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener', function (a, b) {
return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_ComponentListener$java_awt_event_ComponentListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_ContainerListener$java_awt_event_ContainerListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_FocusListener$java_awt_event_FocusListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_KeyListener$java_awt_event_KeyListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_MouseListener$java_awt_event_MouseListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_WindowListener$java_awt_event_WindowListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_ActionListener$java_awt_event_ActionListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_ItemListener$java_awt_event_ItemListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_AdjustmentListener$java_awt_event_AdjustmentListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_TextListener$java_awt_event_TextListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_HierarchyListener$java_awt_event_HierarchyListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener', function (l, oldl) {
return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'addInternal$java_util_EventListener$java_util_EventListener', function (a, b) {
if (a == null ) return b;
if (b == null ) return a;
return Clazz_new_(C$.c$$java_util_EventListener$java_util_EventListener,[a, b]);
}, 1);
Clazz_newMeth(C$, 'removeInternal$java_util_EventListener$java_util_EventListener', function (l, oldl) {
if (l === oldl || l == null ) {
return null;
} else if (Clazz_instanceOf(l, "java.awt.AWTEventMulticaster")) {
return (l).remove$java_util_EventListener(oldl);
} else {
return l;
}}, 1);
Clazz_newMeth(C$, 'getListenerCount$java_util_EventListener$Class', function (l, listenerType) {
if (Clazz_instanceOf(l, "java.awt.AWTEventMulticaster")) {
var mc=l;
return C$.getListenerCount$java_util_EventListener$Class(mc.a, listenerType) + C$.getListenerCount$java_util_EventListener$Class(mc.b, listenerType);
} else {
return listenerType.isInstance$O(l) ? 1 : 0;
}}, 1);
Clazz_newMeth(C$, 'populateListenerArray$java_util_EventListenerA$java_util_EventListener$I', function (a, l, index) {
if (Clazz_instanceOf(l, "java.awt.AWTEventMulticaster")) {
var mc=l;
var lhs=C$.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(a, mc.a, index);
return C$.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(a, mc.b, lhs);
} else if (a.getClass$().getComponentType$().isInstance$O(l)) {
a[index]=l;
return index + 1;
} else {
return index;
}}, 1);
Clazz_newMeth(C$, 'getListeners$java_util_EventListener$Class', function (l, listenerType) {
if (listenerType == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Listener type should not be null"]);
}var n=C$.getListenerCount$java_util_EventListener$Class(l, listenerType);
var result=Clazz_array(listenerType, n);
C$.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(result, l, 0);
return result;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'sun.awt.AppContext','java.util.HashMap','java.util.StringTokenizer','java.util.Collections','java.awt.VKCollection','StringBuilder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AWTKeyStroke");
C$.modifierKeywords=null;
C$.vks=null;
C$.APP_CONTEXT_CACHE_KEY=null;
C$.APP_CONTEXT_KEYSTROKE_KEY=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.APP_CONTEXT_CACHE_KEY= Clazz_new_();
C$.APP_CONTEXT_KEYSTROKE_KEY=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.keyChar='\0';
this.keyCode=0;
this.modifiers=0;
this.onKeyRelease=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.keyChar="\uffff";
this.keyCode=0;
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStrokeClass$', function () {
var clazz=$I$(1).getAppContext$().get$O(Clazz_getClass(C$));
if (clazz == null ) {
clazz=Clazz_getClass(C$);
$I$(1).getAppContext$().put$O$O(Clazz_getClass(C$), Clazz_getClass(C$));
}return clazz;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$C$I$I$Z', function (keyChar, keyCode, modifiers, onKeyRelease) {
C$.$init$.apply(this);
this.keyChar=keyChar;
this.keyCode=keyCode;
this.modifiers=modifiers;
this.onKeyRelease=onKeyRelease;
}, 1);
Clazz_newMeth(C$, 'registerSubclass$Class', function (subclass) {
if (subclass == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["subclass cannot be null"]);
}{
var keyStrokeClass=$I$(1).getAppContext$().get$O(Clazz_getClass(C$));
if (keyStrokeClass != null && keyStrokeClass.equals$O(subclass) ) {
return;
}}if (!Clazz_getClass(C$).isAssignableFrom$Class(subclass)) {
throw Clazz_new_(Clazz_load('ClassCastException').c$$S,["subclass is not derived from AWTKeyStroke"]);
}var ctor=C$.getCtor$Class(subclass);
var couldNotInstantiate="subclass could not be instantiated";
if (ctor == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}try {
var stroke=ctor.newInstance$OA(null);
if (stroke == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}} catch (e$$) {
if (Clazz_exceptionOf(e$$,"NoSuchMethodError")){
var e = e$$;
{
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}
} else if (Clazz_exceptionOf(e$$,"ExceptionInInitializerError")){
var e = e$$;
{
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}
} else if (Clazz_exceptionOf(e$$,"InstantiationException")){
var e = e$$;
{
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}
} else if (Clazz_exceptionOf(e$$,"IllegalAccessException")){
var e = e$$;
{
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}
} else if (Clazz_exceptionOf(e$$,"java.lang.reflect.InvocationTargetException")){
var e = e$$;
{
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]);
}
} else {
throw e$$;
}
}
{
$I$(1).getAppContext$().put$O$O(Clazz_getClass(C$), subclass);
$I$(1).getAppContext$().remove$O(C$.APP_CONTEXT_CACHE_KEY);
$I$(1).getAppContext$().remove$O(C$.APP_CONTEXT_KEYSTROKE_KEY);
}}, 1);
Clazz_newMeth(C$, 'getCtor$Class', function (clazz) {
try {
return clazz.getDeclaredConstructor$ClassA(null);
} catch (e) {
e.printStackTrace$();
}
return null;
}, 1);
Clazz_newMeth(C$, 'getCachedStroke$C$I$I$Z', function (keyChar, keyCode, modifiers, onKeyRelease) {
var cache=$I$(1).getAppContext$().get$O(C$.APP_CONTEXT_CACHE_KEY);
var cacheKey=$I$(1).getAppContext$().get$O(C$.APP_CONTEXT_KEYSTROKE_KEY);
if (cache == null ) {
cache=Clazz_new_($I$(2));
$I$(1).getAppContext$().put$O$O(C$.APP_CONTEXT_CACHE_KEY, cache);
}if (cacheKey == null ) {
try {
var clazz=C$.getAWTKeyStrokeClass$();
cacheKey=C$.getCtor$Class(clazz).newInstance$OA(null);
$I$(1).getAppContext$().put$O$O(C$.APP_CONTEXT_KEYSTROKE_KEY, cacheKey);
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"InstantiationException")){
var e = e$$;
{
Clazz_assert(C$, this, function(){return (false)});
}
} else if (Clazz_exceptionOf(e$$,"IllegalAccessException")){
var e = e$$;
{
Clazz_assert(C$, this, function(){return (false)});
}
} else if (Clazz_exceptionOf(e$$,"java.lang.reflect.InvocationTargetException")){
var e = e$$;
{
Clazz_assert(C$, this, function(){return (false)});
}
} else {
throw e$$;
}
}
}cacheKey.keyChar=keyChar;
cacheKey.keyCode=keyCode;
cacheKey.modifiers=C$.mapNewModifiers$I(C$.mapOldModifiers$I(modifiers));
cacheKey.onKeyRelease=onKeyRelease;
var stroke=cache.get$O(cacheKey);
if (stroke == null ) {
stroke=cacheKey;
cache.put$TK$TV(stroke, stroke);
$I$(1).getAppContext$().remove$O(C$.APP_CONTEXT_KEYSTROKE_KEY);
}return stroke;
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStroke$C', function (keyChar) {
return C$.getCachedStroke$C$I$I$Z(keyChar, 0, 0, false);
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStroke$Character$I', function (keyChar, modifiers) {
if (keyChar == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["keyChar cannot be null"]);
}return C$.getCachedStroke$C$I$I$Z(keyChar.charValue$(), 0, modifiers, false);
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStroke$I$I$Z', function (keyCode, modifiers, onKeyRelease) {
return C$.getCachedStroke$C$I$I$Z("\uffff", keyCode, modifiers, onKeyRelease);
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStroke$I$I', function (keyCode, modifiers) {
return C$.getCachedStroke$C$I$I$Z("\uffff", keyCode, modifiers, false);
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStrokeForEvent$java_awt_event_KeyEvent', function (anEvent) {
var id=anEvent.getID$();
switch (id) {
case 401:
case 402:
return C$.getCachedStroke$C$I$I$Z("\uffff", anEvent.getKeyCode$(), anEvent.getModifiers$(), (id == 402));
case 400:
return C$.getCachedStroke$C$I$I$Z(anEvent.getKeyChar$(), 0, anEvent.getModifiers$(), false);
default:
return null;
}
}, 1);
Clazz_newMeth(C$, 'getAWTKeyStroke$S', function (s) {
if (s == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String cannot be null"]);
}var errmsg="String formatted incorrectly";
var st=Clazz_new_($I$(3).c$$S$S,[s, " "]);
var mask=0;
var released=false;
var typed=false;
var pressed=false;
{
if (C$.modifierKeywords == null ) {
var uninitializedMap=Clazz_new_($I$(2).c$$I$F,[8, 1.0]);
uninitializedMap.put$TK$TV("shift", Integer.valueOf$I(65));
uninitializedMap.put$TK$TV("control", Integer.valueOf$I(130));
uninitializedMap.put$TK$TV("ctrl", Integer.valueOf$I(130));
uninitializedMap.put$TK$TV("meta", Integer.valueOf$I(260));
uninitializedMap.put$TK$TV("alt", Integer.valueOf$I(520));
uninitializedMap.put$TK$TV("altGraph", Integer.valueOf$I(8224));
uninitializedMap.put$TK$TV("button1", Integer.valueOf$I(1024));
uninitializedMap.put$TK$TV("button2", Integer.valueOf$I(2048));
uninitializedMap.put$TK$TV("button3", Integer.valueOf$I(4096));
C$.modifierKeywords=$I$(4).synchronizedMap$java_util_Map(uninitializedMap);
}}var count=st.countTokens$();
for (var i=1; i <= count; i++) {
var token=st.nextToken$();
if (typed) {
if (token.length$() != 1 || i != count ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]);
}return C$.getCachedStroke$C$I$I$Z(token.charAt$I(0), 0, mask, false);
}if (pressed || released || i == count ) {
if (i != count) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]);
}var keyCodeName="VK_" + token;
var keyCode=C$.getVKValue$S(keyCodeName);
return C$.getCachedStroke$C$I$I$Z("\uffff", keyCode, mask, released);
}if (token.equals$O("released")) {
released=true;
continue;
}if (token.equals$O("pressed")) {
pressed=true;
continue;
}if (token.equals$O("typed")) {
typed=true;
continue;
}var tokenMask=C$.modifierKeywords.get$O(token);
if (tokenMask != null ) {
mask|=tokenMask.intValue$();
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]);
}}
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]);
}, 1);
Clazz_newMeth(C$, 'getVKCollection$', function () {
return (C$.vks == null ? (C$.vks=Clazz_new_($I$(5))) : C$.vks);
}, 1);
Clazz_newMeth(C$, 'addKeyCode$S$I', function (key, keyCode) {
C$.getVKCollection$().put$S$Integer(key, Integer.valueOf$I(keyCode));
}, 1);
Clazz_newMeth(C$, 'getVKValue$S', function (key) {
var vkCollect=C$.getVKCollection$();
var value=vkCollect.findCode$S(key);
if (value == null ) {
vkCollect.put$S$Integer(key, Integer.valueOf$I(-1));
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]);
}return value.intValue$();
}, 1);
Clazz_newMeth(C$, 'getKeyChar$', function () {
return this.keyChar;
});
Clazz_newMeth(C$, 'getKeyCode$', function () {
return this.keyCode;
});
Clazz_newMeth(C$, 'getModifiers$', function () {
return this.modifiers;
});
Clazz_newMeth(C$, 'isOnKeyRelease$', function () {
return this.onKeyRelease;
});
Clazz_newMeth(C$, 'getKeyEventType$', function () {
if (this.keyCode == 0) {
return 400;
} else {
return (this.onKeyRelease) ? 402 : 401;
}});
Clazz_newMeth(C$, 'hashCode$', function () {
return ((this.keyChar.$c()) + 1) * (2 * (this.keyCode + 1)) * (this.modifiers + 1) + (this.onKeyRelease ? 1 : 2);
});
Clazz_newMeth(C$, 'equals$O', function (anObject) {
if (Clazz_instanceOf(anObject, "java.awt.AWTKeyStroke")) {
var ks=anObject;
return (ks.keyChar == this.keyChar && ks.keyCode == this.keyCode && ks.onKeyRelease == this.onKeyRelease && ks.modifiers == this.modifiers );
}return false;
});
Clazz_newMeth(C$, 'toString', function () {
if (this.keyCode == 0) {
return C$.getModifiersText$I(this.modifiers) + "typed " + this.keyChar ;
} else {
return C$.getModifiersText$I(this.modifiers) + (this.onKeyRelease ? "released" : "pressed") + " " + C$.getVKText$I(this.keyCode) ;
}});
Clazz_newMeth(C$, 'getModifiersText$I', function (modifiers) {
var buf=Clazz_new_($I$(6));
if ((modifiers & 64) != 0) {
buf.append$S("shift ");
}if ((modifiers & 128) != 0) {
buf.append$S("ctrl ");
}if ((modifiers & 256) != 0) {
buf.append$S("meta ");
}if ((modifiers & 512) != 0) {
buf.append$S("alt ");
}if ((modifiers & 8192) != 0) {
buf.append$S("altGraph ");
}if ((modifiers & 1024) != 0) {
buf.append$S("button1 ");
}if ((modifiers & 2048) != 0) {
buf.append$S("button2 ");
}if ((modifiers & 4096) != 0) {
buf.append$S("button3 ");
}return buf.toString();
}, 1);
Clazz_newMeth(C$, 'getVKText$I', function (keyCode) {
var vkCollect=C$.getVKCollection$();
var key=Integer.valueOf$I(keyCode);
var name=vkCollect.findName$Integer(key);
if (name != null ) {
return name.substring$I(3);
}return "UNKNOWN";
}, 1);
Clazz_newMeth(C$, 'readResolve$', function () {
{
var newClass=this.getClass$();
var awtKeyStrokeClass=C$.getAWTKeyStrokeClass$();
if (!newClass.equals$O(awtKeyStrokeClass)) {
C$.registerSubclass$Class(newClass);
}return C$.getCachedStroke$C$I$I$Z(this.keyChar, this.keyCode, this.modifiers, this.onKeyRelease);
}});
Clazz_newMeth(C$, 'mapOldModifiers$I', function (modifiers) {
if ((modifiers & 1) != 0) {
modifiers|=64;
}if ((modifiers & 8) != 0) {
modifiers|=512;
}if ((modifiers & 32) != 0) {
modifiers|=8192;
}if ((modifiers & 2) != 0) {
modifiers|=128;
}if ((modifiers & 4) != 0) {
modifiers|=256;
}modifiers&=16320;
return modifiers;
}, 1);
Clazz_newMeth(C$, 'mapNewModifiers$I', function (modifiers) {
if ((modifiers & 64) != 0) {
modifiers|=1;
}if ((modifiers & 512) != 0) {
modifiers|=8;
}if ((modifiers & 8192) != 0) {
modifiers|=32;
}if ((modifiers & 128) != 0) {
modifiers|=2;
}if ((modifiers & 256) != 0) {
modifiers|=4;
}return modifiers;
}, 1);
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.util.Arrays']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BasicStroke", null, null, ['java.awt.Stroke', 'Cloneable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.width=0;
this.join=0;
this.cap=0;
this.miterlimit=0;
this.dash=null;
this.dash_phase=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$F$I$I$F$FA$F', function (width, cap, join, miterlimit, dash, dash_phase) {
C$.$init$.apply(this);
if (width < 0.0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["negative width"]);
}if (cap != 0 && cap != 1 && cap != 2 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal end cap value"]);
}if (join == 0) {
if (miterlimit < 1.0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["miter limit < 1"]);
}} else if (join != 1 && join != 2 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal line join value"]);
}if (dash != null ) {
if (dash_phase < 0.0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["negative dash phase"]);
}var allzero=true;
for (var i=0; i < dash.length; i++) {
var d=dash[i];
if (d > 0.0 ) {
allzero=false;
} else if (d < 0.0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["negative dash length"]);
}}
if (allzero) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["dash lengths all zero"]);
}}this.width=width;
this.cap=cap;
this.join=join;
this.miterlimit=miterlimit;
if (dash != null ) {
this.dash=dash.clone$();
}this.dash_phase=dash_phase;
}, 1);
Clazz_newMeth(C$, 'c$$F$I$I$F', function (width, cap, join, miterlimit) {
C$.c$$F$I$I$F$FA$F.apply(this, [width, cap, join, miterlimit, null, 0.0]);
}, 1);
Clazz_newMeth(C$, 'c$$F$I$I', function (width, cap, join) {
C$.c$$F$I$I$F$FA$F.apply(this, [width, cap, join, 10.0, null, 0.0]);
}, 1);
Clazz_newMeth(C$, 'c$$F', function (width) {
C$.c$$F$I$I$F$FA$F.apply(this, [width, 2, 0, 10.0, null, 0.0]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$F$I$I$F$FA$F.apply(this, [1.0, 2, 0, 10.0, null, 0.0]);
}, 1);
Clazz_newMeth(C$, ['createStrokedShape$java_awt_Shape','createStrokedShape$'], function (s) {
return s;
});
Clazz_newMeth(C$, 'getLineWidth$', function () {
return this.width;
});
Clazz_newMeth(C$, 'getEndCap$', function () {
return this.cap;
});
Clazz_newMeth(C$, 'getLineJoin$', function () {
return this.join;
});
Clazz_newMeth(C$, 'getMiterLimit$', function () {
return this.miterlimit;
});
Clazz_newMeth(C$, 'getDashArray$', function () {
if (this.dash == null ) {
return null;
}return this.dash.clone$();
});
Clazz_newMeth(C$, 'getDashPhase$', function () {
return this.dash_phase;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var hash=Float.floatToIntBits$F(this.width);
hash=hash * 31 + this.join;
hash=hash * 31 + this.cap;
hash=hash * 31 + Float.floatToIntBits$F(this.miterlimit);
if (this.dash != null ) {
hash=hash * 31 + Float.floatToIntBits$F(this.dash_phase);
for (var i=0; i < this.dash.length; i++) {
hash=hash * 31 + Float.floatToIntBits$F(this.dash[i]);
}
}return hash;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (!(Clazz_instanceOf(obj, "java.awt.BasicStroke"))) {
return false;
}var bs=obj;
if (this.width != bs.width ) {
return false;
}if (this.join != bs.join) {
return false;
}if (this.cap != bs.cap) {
return false;
}if (this.miterlimit != bs.miterlimit ) {
return false;
}if (this.dash != null ) {
if (this.dash_phase != bs.dash_phase ) {
return false;
}if (!$I$(1).equals$FA$FA(this.dash, bs.dash)) {
return false;
}} else if (bs.dash != null ) {
return false;
}return true;
});
Clazz_newMeth(C$, 'clone$', function () {
return Clazz_new_(C$.c$$F$I$I$F$FA$F,[this.width, this.cap, this.join, this.miterlimit, this.dash, this.dash_phase]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BorderLayout", null, null, ['java.awt.LayoutManager2', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.hgap=0;
this.vgap=0;
this.north=null;
this.west=null;
this.east=null;
this.south=null;
this.center=null;
this.firstLine=null;
this.lastLine=null;
this.firstItem=null;
this.lastItem=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I.apply(this, [0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (hgap, vgap) {
C$.$init$.apply(this);
this.hgap=hgap;
this.vgap=vgap;
}, 1);
Clazz_newMeth(C$, 'getHgap$', function () {
return this.hgap;
});
Clazz_newMeth(C$, 'setHgap$I', function (hgap) {
this.hgap=hgap;
});
Clazz_newMeth(C$, 'getVgap$', function () {
return this.vgap;
});
Clazz_newMeth(C$, 'setVgap$I', function (vgap) {
this.vgap=vgap;
});
Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(comp.getTreeLock$());
{
if ((constraints == null ) || (Clazz_instanceOf(constraints, "java.lang.String")) ) {
this.addLayoutComponent$S$java_awt_Component(constraints, comp);
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot add to layout: constraint must be a string (or null)"]);
}}});
Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(comp.getTreeLock$());
{
if (name == null ) {
name="Center";
}if ("Center".equals$O(name)) {
this.center=comp;
} else if ("North".equals$O(name)) {
this.north=comp;
} else if ("South".equals$O(name)) {
this.south=comp;
} else if ("East".equals$O(name)) {
this.east=comp;
} else if ("West".equals$O(name)) {
this.west=comp;
} else if ("First".equals$O(name)) {
this.firstLine=comp;
} else if ("Last".equals$O(name)) {
this.lastLine=comp;
} else if ("Before".equals$O(name)) {
this.firstItem=comp;
} else if ("After".equals$O(name)) {
this.lastItem=comp;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot add to layout: unknown constraint: " + name]);
}}});
Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(comp.getTreeLock$());
{
if (comp === this.center ) {
this.center=null;
} else if (comp === this.north ) {
this.north=null;
} else if (comp === this.south ) {
this.south=null;
} else if (comp === this.east ) {
this.east=null;
} else if (comp === this.west ) {
this.west=null;
}if (comp === this.firstLine ) {
this.firstLine=null;
} else if (comp === this.lastLine ) {
this.lastLine=null;
} else if (comp === this.firstItem ) {
this.firstItem=null;
} else if (comp === this.lastItem ) {
this.lastItem=null;
}}});
Clazz_newMeth(C$, 'getLayoutComponent$O', function (constraints) {
if ("Center".equals$O(constraints)) {
return this.center;
} else if ("North".equals$O(constraints)) {
return this.north;
} else if ("South".equals$O(constraints)) {
return this.south;
} else if ("West".equals$O(constraints)) {
return this.west;
} else if ("East".equals$O(constraints)) {
return this.east;
} else if ("First".equals$O(constraints)) {
return this.firstLine;
} else if ("Last".equals$O(constraints)) {
return this.lastLine;
} else if ("Before".equals$O(constraints)) {
return this.firstItem;
} else if ("After".equals$O(constraints)) {
return this.lastItem;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot get component: unknown constraint: " + constraints]);
}});
Clazz_newMeth(C$, 'getLayoutComponent$java_awt_Container$O', function (target, constraints) {
var ltr=target.getComponentOrientation$().isLeftToRight$();
var result=null;
if ("North".equals$O(constraints)) {
result=(this.firstLine != null ) ? this.firstLine : this.north;
} else if ("South".equals$O(constraints)) {
result=(this.lastLine != null ) ? this.lastLine : this.south;
} else if ("West".equals$O(constraints)) {
result=ltr ? this.firstItem : this.lastItem;
if (result == null ) {
result=this.west;
}} else if ("East".equals$O(constraints)) {
result=ltr ? this.lastItem : this.firstItem;
if (result == null ) {
result=this.east;
}} else if ("Center".equals$O(constraints)) {
result=this.center;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot get component: invalid constraint: " + constraints]);
}return result;
});
Clazz_newMeth(C$, 'getConstraints$java_awt_Component', function (comp) {
if (comp == null ) {
return null;
}if (comp === this.center ) {
return "Center";
} else if (comp === this.north ) {
return "North";
} else if (comp === this.south ) {
return "South";
} else if (comp === this.west ) {
return "West";
} else if (comp === this.east ) {
return "East";
} else if (comp === this.firstLine ) {
return "First";
} else if (comp === this.lastLine ) {
return "Last";
} else if (comp === this.firstItem ) {
return "Before";
} else if (comp === this.lastItem ) {
return "After";
}return null;
});
Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (target) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$());
{
var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]);
var ltr=target.getComponentOrientation$().isLeftToRight$();
var c=null;
if ((c=p$1.getChild$S$Z.apply(this, ["East", ltr])) != null ) {
var d=c.getMinimumSize$();
dim.width+=d.width + this.hgap;
dim.height=Math.max(d.height, dim.height);
}if ((c=p$1.getChild$S$Z.apply(this, ["West", ltr])) != null ) {
var d=c.getMinimumSize$();
dim.width+=d.width + this.hgap;
dim.height=Math.max(d.height, dim.height);
}if ((c=p$1.getChild$S$Z.apply(this, ["Center", ltr])) != null ) {
var d=c.getMinimumSize$();
dim.width+=d.width;
dim.height=Math.max(d.height, dim.height);
}if ((c=p$1.getChild$S$Z.apply(this, ["North", ltr])) != null ) {
var d=c.getMinimumSize$();
dim.width=Math.max(d.width, dim.width);
dim.height+=d.height + this.vgap;
}if ((c=p$1.getChild$S$Z.apply(this, ["South", ltr])) != null ) {
var d=c.getMinimumSize$();
dim.width=Math.max(d.width, dim.width);
dim.height+=d.height + this.vgap;
}var insets=target.getInsets$();
dim.width+=insets.left + insets.right;
dim.height+=insets.top + insets.bottom;
return dim;
}});
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$());
{
var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]);
var ltr=target.getComponentOrientation$().isLeftToRight$();
var c=null;
if ((c=p$1.getChild$S$Z.apply(this, ["East", ltr])) != null ) {
var d=c.getPreferredSize$();
dim.width+=d.width + this.hgap;
dim.height=Math.max(d.height, dim.height);
}if ((c=p$1.getChild$S$Z.apply(this, ["West", ltr])) != null ) {
var d=c.getPreferredSize$();
dim.width+=d.width + this.hgap;
dim.height=Math.max(d.height, dim.height);
}if ((c=p$1.getChild$S$Z.apply(this, ["Center", ltr])) != null ) {
var d=c.getPreferredSize$();
dim.width+=d.width;
dim.height=Math.max(d.height, dim.height);
}if ((c=p$1.getChild$S$Z.apply(this, ["North", ltr])) != null ) {
var d=c.getPreferredSize$();
dim.width=Math.max(d.width, dim.width);
dim.height+=d.height + this.vgap;
}if ((c=p$1.getChild$S$Z.apply(this, ["South", ltr])) != null ) {
var d=c.getPreferredSize$();
dim.width=Math.max(d.width, dim.width);
dim.height+=d.height + this.vgap;
}var insets=target.getInsets$();
dim.width+=insets.left + insets.right;
dim.height+=insets.top + insets.bottom;
return dim;
}});
Clazz_newMeth(C$, 'maximumLayoutSize$java_awt_Container', function (target) {
return Clazz_new_($I$(1).c$$I$I,[2147483647, 2147483647]);
});
Clazz_newMeth(C$, 'getLayoutAlignmentX$java_awt_Container', function (parent) {
return 0.5;
});
Clazz_newMeth(C$, 'getLayoutAlignmentY$java_awt_Container', function (parent) {
return 0.5;
});
Clazz_newMeth(C$, 'invalidateLayout$java_awt_Container', function (target) {
});
Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (target) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$());
{
var insets=target.getInsets$();
var top=insets.top;
var bottom=target.height - insets.bottom;
var left=insets.left;
var right=target.width - insets.right;
var ltr=target.getComponentOrientation$().isLeftToRight$();
var c=null;
if ((c=p$1.getChild$S$Z.apply(this, ["North", ltr])) != null ) {
c.setSize$I$I(right - left, c.height);
var d=c.getPreferredSize$();
c.setBounds$I$I$I$I(left, top, right - left, d.height);
top+=d.height + this.vgap;
}if ((c=p$1.getChild$S$Z.apply(this, ["South", ltr])) != null ) {
c.setSize$I$I(right - left, c.height);
var d=c.getPreferredSize$();
c.setBounds$I$I$I$I(left, bottom - d.height, right - left, d.height);
bottom-=d.height + this.vgap;
}if ((c=p$1.getChild$S$Z.apply(this, ["East", ltr])) != null ) {
c.setSize$I$I(c.width, bottom - top);
var d=c.getPreferredSize$();
c.setBounds$I$I$I$I(right - d.width, top, d.width, bottom - top);
right-=d.width + this.hgap;
}if ((c=p$1.getChild$S$Z.apply(this, ["West", ltr])) != null ) {
c.setSize$I$I(c.width, bottom - top);
var d=c.getPreferredSize$();
c.setBounds$I$I$I$I(left, top, d.width, bottom - top);
left+=d.width + this.hgap;
}if ((c=p$1.getChild$S$Z.apply(this, ["Center", ltr])) != null ) {
c.setBounds$I$I$I$I(left, top, right - left, bottom - top);
}}});
Clazz_newMeth(C$, 'getChild$S$Z', function (key, ltr) {
var result=null;
if (key == "North") {
result=(this.firstLine != null ) ? this.firstLine : this.north;
} else if (key == "South") {
result=(this.lastLine != null ) ? this.lastLine : this.south;
} else if (key == "West") {
result=ltr ? this.firstItem : this.lastItem;
if (result == null ) {
result=this.west;
}} else if (key == "East") {
result=ltr ? this.lastItem : this.firstItem;
if (result == null ) {
result=this.east;
}} else if (key == "Center") {
result=this.center;
}if (result != null && !result.visible ) {
result=null;
}return result;
}, p$1);
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[hgap=" + this.hgap + ",vgap=" + this.vgap + "]" ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.GraphicsEnvironment']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Button", null, 'swingjs.a2s.Button');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (label) {
Clazz_super_(C$, this,1);
$I$(1).checkHeadless$();
this.setText$S(label);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.ColorPaintContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Color", null, null, 'java.awt.Paint');
C$.white=null;
C$.WHITE=null;
C$.lightGray=null;
C$.LIGHT_GRAY=null;
C$.gray=null;
C$.GRAY=null;
C$.darkGray=null;
C$.DARK_GRAY=null;
C$.black=null;
C$.none=null;
C$.BLACK=null;
C$.red=null;
C$.RED=null;
C$.pink=null;
C$.PINK=null;
C$.orange=null;
C$.ORANGE=null;
C$.yellow=null;
C$.YELLOW=null;
C$.green=null;
C$.GREEN=null;
C$.magenta=null;
C$.MAGENTA=null;
C$.cyan=null;
C$.CYAN=null;
C$.blue=null;
C$.BLUE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.white=Clazz_new_(C$.c$$I$I$I,[255, 255, 255]);
C$.WHITE=C$.white;
C$.lightGray=Clazz_new_(C$.c$$I$I$I,[192, 192, 192]);
C$.LIGHT_GRAY=C$.lightGray;
C$.gray=Clazz_new_(C$.c$$I$I$I,[128, 128, 128]);
C$.GRAY=C$.gray;
C$.darkGray=Clazz_new_(C$.c$$I$I$I,[64, 64, 64]);
C$.DARK_GRAY=C$.darkGray;
C$.black=Clazz_new_(C$.c$$I$I$I,[0, 0, 0]);
C$.none=Clazz_new_(C$.c$$I$I$I,[0, 0, 1]);
C$.BLACK=C$.black;
C$.red=Clazz_new_(C$.c$$I$I$I,[255, 0, 0]);
C$.RED=C$.red;
C$.pink=Clazz_new_(C$.c$$I$I$I,[255, 175, 175]);
C$.PINK=C$.pink;
C$.orange=Clazz_new_(C$.c$$I$I$I,[255, 200, 0]);
C$.ORANGE=C$.orange;
C$.yellow=Clazz_new_(C$.c$$I$I$I,[255, 255, 0]);
C$.YELLOW=C$.yellow;
C$.green=Clazz_new_(C$.c$$I$I$I,[0, 255, 0]);
C$.GREEN=C$.green;
C$.magenta=Clazz_new_(C$.c$$I$I$I,[255, 0, 255]);
C$.MAGENTA=C$.magenta;
C$.cyan=Clazz_new_(C$.c$$I$I$I,[0, 255, 255]);
C$.CYAN=C$.cyan;
C$.blue=Clazz_new_(C$.c$$I$I$I,[0, 0, 255]);
C$.BLUE=C$.blue;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.value=0;
this.frgbvalue=null;
this.falpha=0;
this.context=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.frgbvalue=null;
this.falpha=0.0;
}, 1);
Clazz_newMeth(C$, 'testColorValueRange$I$I$I$I', function (r, g, b, a) {
var rangeError=false;
var badComponentString="";
if (a < 0 || a > 255 ) {
rangeError=true;
badComponentString=badComponentString + " Alpha";
}if (r < 0 || r > 255 ) {
rangeError=true;
badComponentString=badComponentString + " Red";
}if (g < 0 || g > 255 ) {
rangeError=true;
badComponentString=badComponentString + " Green";
}if (b < 0 || b > 255 ) {
rangeError=true;
badComponentString=badComponentString + " Blue";
}if (rangeError == true ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Color parameter outside of expected range:" + badComponentString]);
}}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I', function (r, g, b) {
C$.c$$I$I$I$I.apply(this, [r, g, b, 255]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (r, g, b, a) {
C$.$init$.apply(this);
this.value=((a & 255) << 24) | ((r & 255) << 16) | ((g & 255) << 8) | ((b & 255) << 0) ;
C$.testColorValueRange$I$I$I$I(r, g, b, a);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (rgb) {
C$.$init$.apply(this);
this.value=-16777216 | rgb;
}, 1);
Clazz_newMeth(C$, 'c$$I$Z', function (rgba, hasalpha) {
C$.$init$.apply(this);
if (hasalpha) {
this.value=rgba;
} else {
this.value=-16777216 | rgba;
}}, 1);
Clazz_newMeth(C$, 'c$$F$F$F', function (r, g, b) {
C$.c$$F$F$F$F.apply(this, [r, g, b, 1.0]);
}, 1);
Clazz_newMeth(C$, 'c$$F$F$F$F', function (r, g, b, a) {
C$.c$$I$I$I$I.apply(this, [((r * 255 + 0.5)|0), ((g * 255 + 0.5)|0), ((b * 255 + 0.5)|0), ((a * 255 + 0.5)|0)]);
this.frgbvalue=Clazz_array(Float.TYPE, [3]);
this.frgbvalue[0]=r;
this.frgbvalue[1]=g;
this.frgbvalue[2]=b;
this.falpha=a;
}, 1);
Clazz_newMeth(C$, 'getRed$', function () {
return (this.getRGB$() >> 16) & 255;
});
Clazz_newMeth(C$, 'getGreen$', function () {
return (this.getRGB$() >> 8) & 255;
});
Clazz_newMeth(C$, 'getBlue$', function () {
return (this.getRGB$() >> 0) & 255;
});
Clazz_newMeth(C$, 'getAlpha$', function () {
return (this.getRGB$() >> 24) & 255;
});
Clazz_newMeth(C$, 'getRGB$', function () {
return this.value;
});
Clazz_newMeth(C$, 'brighter$', function () {
var r=this.getRed$();
var g=this.getGreen$();
var b=this.getBlue$();
var i=3;
if (r == 0 && g == 0 && b == 0 ) {
return Clazz_new_(C$.c$$I$I$I,[i, i, i]);
}if (r > 0 && r < i ) r=i;
if (g > 0 && g < i ) g=i;
if (b > 0 && b < i ) b=i;
return Clazz_new_(C$.c$$I$I$I,[Math.min(((r / 0.7)|0), 255), Math.min(((g / 0.7)|0), 255), Math.min(((b / 0.7)|0), 255)]);
});
Clazz_newMeth(C$, 'darker$', function () {
return Clazz_new_(C$.c$$I$I$I,[Math.max(((this.getRed$() * 0.7)|0), 0), Math.max(((this.getGreen$() * 0.7)|0), 0), Math.max(((this.getBlue$() * 0.7)|0), 0)]);
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.value;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
return Clazz_instanceOf(obj, "java.awt.Color") && (obj).getRGB$() == this.getRGB$() ;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[r=" + this.getRed$() + ",g=" + this.getGreen$() + ",b=" + this.getBlue$() + "]" ;
});
Clazz_newMeth(C$, 'decode$S', function (nm) {
var intval=Integer.decode$S(nm);
var i=intval.intValue$();
return Clazz_new_(C$.c$$I$I$I,[(i >> 16) & 255, (i >> 8) & 255, i & 255]);
}, 1);
Clazz_newMeth(C$, 'getColor$S', function (nm) {
return C$.getColor$S$java_awt_Color(nm, null);
}, 1);
Clazz_newMeth(C$, 'getColor$S$java_awt_Color', function (nm, v) {
try {
var i=(Integer.decode$S(nm)).intValue$();
return Clazz_new_(C$.c$$I$I$I,[(i >> 16) & 255, (i >> 8) & 255, i & 255]);
} catch (e) {
if (Clazz_exceptionOf(e,"NumberFormatException")){
return v;
} else {
throw e;
}
}
}, 1);
Clazz_newMeth(C$, 'getColor$S$I', function (nm, v) {
var intval=Integer.getInteger$S(nm);
var i=(intval != null ) ? intval.intValue$() : v;
return Clazz_new_(C$.c$$I$I$I,[(i >> 16) & 255, (i >> 8) & 255, (i >> 0) & 255]);
}, 1);
Clazz_newMeth(C$, 'HSBtoRGB$F$F$F', function (hue, saturation, brightness) {
var r=0;
var g=0;
var b=0;
if (saturation == 0 ) {
r=g=b=((brightness * 255.0 + 0.5)|0);
} else {
var h=(hue - Math.floor(hue)) * 6.0;
var f=h - Math.floor(h);
var p=brightness * (1.0 - saturation);
var q=brightness * (1.0 - saturation * f);
var t=brightness * (1.0 - (saturation * (1.0 - f)));
switch ((h|0)) {
case 0:
r=((brightness * 255.0 + 0.5)|0);
g=((t * 255.0 + 0.5)|0);
b=((p * 255.0 + 0.5)|0);
break;
case 1:
r=((q * 255.0 + 0.5)|0);
g=((brightness * 255.0 + 0.5)|0);
b=((p * 255.0 + 0.5)|0);
break;
case 2:
r=((p * 255.0 + 0.5)|0);
g=((brightness * 255.0 + 0.5)|0);
b=((t * 255.0 + 0.5)|0);
break;
case 3:
r=((p * 255.0 + 0.5)|0);
g=((q * 255.0 + 0.5)|0);
b=((brightness * 255.0 + 0.5)|0);
break;
case 4:
r=((t * 255.0 + 0.5)|0);
g=((p * 255.0 + 0.5)|0);
b=((brightness * 255.0 + 0.5)|0);
break;
case 5:
r=((brightness * 255.0 + 0.5)|0);
g=((p * 255.0 + 0.5)|0);
b=((q * 255.0 + 0.5)|0);
break;
}
}return -16777216 | (r << 16) | (g << 8) | (b << 0) ;
}, 1);
Clazz_newMeth(C$, 'RGBtoHSB$I$I$I$FA', function (r, g, b, hsbvals) {
var hue;
var saturation;
var brightness;
if (hsbvals == null ) {
hsbvals=Clazz_array(Float.TYPE, [3]);
}var cmax=(r > g) ? r : g;
if (b > cmax) cmax=b;
var cmin=(r < g) ? r : g;
if (b < cmin) cmin=b;
brightness=(cmax) / 255.0;
if (cmax != 0) saturation=((cmax - cmin)) / (cmax);
else saturation=0;
if (saturation == 0 ) hue=0;
else {
var redc=((cmax - r)) / ((cmax - cmin));
var greenc=((cmax - g)) / ((cmax - cmin));
var bluec=((cmax - b)) / ((cmax - cmin));
if (r == cmax) hue=bluec - greenc;
else if (g == cmax) hue=2.0 + redc - bluec;
else hue=4.0 + greenc - redc;
hue=hue / 6.0;
if (hue < 0 ) hue=hue + 1.0;
}hsbvals[0]=hue;
hsbvals[1]=saturation;
hsbvals[2]=brightness;
return hsbvals;
}, 1);
Clazz_newMeth(C$, 'getHSBColor$F$F$F', function (h, s, b) {
return Clazz_new_(C$.c$$I,[C$.HSBtoRGB$F$F$F(h, s, b)]);
}, 1);
Clazz_newMeth(C$, 'getRGBComponents$FA', function (compArray) {
var f;
if (compArray == null ) {
f=Clazz_array(Float.TYPE, [4]);
} else {
f=compArray;
}if (this.frgbvalue == null ) {
f[0]=(this.getRed$()) / 255.0;
f[1]=(this.getGreen$()) / 255.0;
f[2]=(this.getBlue$()) / 255.0;
f[3]=(this.getAlpha$()) / 255.0;
} else {
f[0]=this.frgbvalue[0];
f[1]=this.frgbvalue[1];
f[2]=this.frgbvalue[2];
f[3]=this.falpha;
}return f;
});
Clazz_newMeth(C$, 'getRGBColorComponents$FA', function (compArray) {
var f;
if (compArray == null ) {
f=Clazz_array(Float.TYPE, [3]);
} else {
f=compArray;
}if (this.frgbvalue == null ) {
f[0]=(this.getRed$()) / 255.0;
f[1]=(this.getGreen$()) / 255.0;
f[2]=(this.getBlue$()) / 255.0;
} else {
f[0]=this.frgbvalue[0];
f[1]=this.frgbvalue[1];
f[2]=this.frgbvalue[2];
}return f;
});
Clazz_newMeth(C$, 'getComponents$FA', function (compArray) {
if (this.frgbvalue == null ) return this.getRGBComponents$FA(compArray);
var f;
var n=this.frgbvalue.length;
if (compArray == null ) {
f=Clazz_array(Float.TYPE, [n + 1]);
} else {
f=compArray;
}for (var i=0; i < n; i++) {
f[i]=this.frgbvalue[i];
}
f[n]=this.falpha;
return f;
});
Clazz_newMeth(C$, 'createContext$java_awt_image_ColorModel$java_awt_Rectangle$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform$java_awt_RenderingHints', function (cm, r, r2d, xform, hints) {
if (this.context == null || this.context.getRGB$() != this.getRGB$() ) {
this.context=Clazz_new_($I$(1).c$$I$java_awt_image_ColorModel,[this.getRGB$(), cm]);
}return this.context;
});
Clazz_newMeth(C$, 'getTransparency$', function () {
var alpha=this.getAlpha$();
if (alpha == 255) {
return 1;
} else if (alpha == 0) {
return 2;
} else {
return 3;
}});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.color"),I$=[];
var C$=Clazz_newClass(P$, "ColorSpace");
C$.sRGBspace=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.type=0;
this.numComponents=0;
this.compName=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.compName=null;
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (type, numcomponents) {
C$.$init$.apply(this);
this.type=type;
this.numComponents=numcomponents;
}, 1);
Clazz_newMeth(C$, 'getInstance$I', function (colorspace) {
var theColorSpace;
switch (colorspace) {
default:
case 1000:
if (C$.sRGBspace == null ) {
C$.sRGBspace=Clazz_new_(C$.c$$I$I,[5, 3]);
}theColorSpace=C$.sRGBspace;
break;
}
return theColorSpace;
}, 1);
Clazz_newMeth(C$, 'isCS_sRGB$', function () {
return (this === C$.sRGBspace );
});
Clazz_newMeth(C$, 'toRGB$FA', function (colorvalue) {
return colorvalue;
});
Clazz_newMeth(C$, 'fromRGB$FA', function (rgbvalue) {
return rgbvalue;
});
Clazz_newMeth(C$, 'getType$', function () {
return this.type;
});
Clazz_newMeth(C$, 'getNumComponents$', function () {
return this.numComponents;
});
Clazz_newMeth(C$, 'getName$I', function (idx) {
if ((idx < 0) || (idx > this.numComponents - 1) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Component index out of range: " + idx]);
}if (this.compName == null ) {
switch (this.type) {
case 0:
this.compName=Clazz_array(String, -1, ["X", "Y", "Z"]);
break;
case 1:
this.compName=Clazz_array(String, -1, ["L", "a", "b"]);
break;
case 2:
this.compName=Clazz_array(String, -1, ["L", "u", "v"]);
break;
case 3:
this.compName=Clazz_array(String, -1, ["Y", "Cb", "Cr"]);
break;
case 4:
this.compName=Clazz_array(String, -1, ["Y", "x", "y"]);
break;
case 5:
this.compName=Clazz_array(String, -1, ["Red", "Green", "Blue"]);
break;
case 6:
this.compName=Clazz_array(String, -1, ["Gray"]);
break;
case 7:
this.compName=Clazz_array(String, -1, ["Hue", "Saturation", "Value"]);
break;
case 8:
this.compName=Clazz_array(String, -1, ["Hue", "Lightness", "Saturation"]);
break;
case 9:
this.compName=Clazz_array(String, -1, ["Cyan", "Magenta", "Yellow", "Black"]);
break;
case 11:
this.compName=Clazz_array(String, -1, ["Cyan", "Magenta", "Yellow"]);
break;
default:
var tmp=Clazz_array(String, [this.numComponents]);
for (var i=0; i < tmp.length; i++) {
tmp[i]="Unnamed color component(" + i + ")" ;
}
this.compName=tmp;
}
}return this.compName[idx];
});
Clazz_newMeth(C$, 'getMinValue$I', function (component) {
if ((component < 0) || (component > this.numComponents - 1) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Component index out of range: " + component]);
}return 0.0;
});
Clazz_newMeth(C$, 'getMaxValue$I', function (component) {
if ((component < 0) || (component > this.numComponents - 1) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Component index out of range: " + component]);
}return 1.0;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.HashMap',['java.awt.Component','.DummyRequestFocusController'],'java.awt.ComponentOrientation','java.awt.Rectangle','java.util.Set','sun.awt.AppContext','swingjs.JSToolkit','java.awt.Toolkit','java.awt.Point','java.awt.KeyboardFocusManager','java.awt.event.ComponentEvent','java.util.Locale','java.awt.Dimension',['java.awt.Component','.BaselineResizeBehavior'],'java.awt.Cursor','java.awt.event.PaintEvent','java.awt.EventQueue','java.awt.event.MouseWheelEvent','java.awt.AWTEventMulticaster','java.awt.event.ComponentListener','java.awt.event.FocusListener','java.awt.event.HierarchyListener','java.awt.event.HierarchyEvent','java.awt.event.HierarchyBoundsListener','java.awt.event.KeyListener','java.awt.event.MouseListener','java.awt.event.MouseMotionListener','java.awt.event.MouseWheelListener','java.awt.event.InputMethodListener','java.beans.PropertyChangeListener','Boolean','java.util.Collections','java.util.HashSet',['sun.awt.CausedFocusEvent','.Cause'],'java.beans.PropertyChangeSupport','sun.awt.SunToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Component", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, 'java.awt.image.ImageObserver');
C$.focusTraversalKeyPropertyNames=null;
C$.isInc=false;
C$.incRate=0;
C$.coalesceMap=null;
C$.requestFocusController=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.focusTraversalKeyPropertyNames=Clazz_array(String, -1, ["forwardFocusTraversalKeys", "backwardFocusTraversalKeys", "upCycleFocusTraversalKeys", "downCycleFocusTraversalKeys"]);
C$.coalesceMap=Clazz_new_($I$(1));
C$.requestFocusController=Clazz_new_($I$(2));
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.peer=null;
this.parent=null;
this.appContext=null;
this.x=0;
this.y=0;
this.width=0;
this.height=0;
this.foreground=null;
this.background=null;
this.font=null;
this.peerFont=null;
this.cursor=null;
this.locale=null;
this.visible=false;
this.enabled=false;
this.valid=false;
this.popups=null;
this.name=null;
this.nameExplicitlySet=false;
this.focusable=false;
this.isFocusTraversableOverridden=0;
this.秘isFocusableSet=false;
this.focusTraversalKeys=null;
this.focusTraversalKeysEnabled=false;
this.minSize=null;
this.minSizeSet=false;
this.prefSize=null;
this.prefSizeSet=false;
this.maxSize=null;
this.maxSizeSet=false;
this.componentOrientation=null;
this.newEventsOnly=false;
this.componentListener=null;
this.focusListener=null;
this.hierarchyListener=null;
this.hierarchyBoundsListener=null;
this.keyListener=null;
this.mouseListener=null;
this.mouseMotionListener=null;
this.mouseWheelListener=null;
this.inputMethodListener=null;
this.windowClosingException=null;
this.eventMask=0;
this.changeSupport=null;
this.changeSupportLock=null;
this.isPacked=false;
this.boundsOp=0;
this.isAddNotifyComplete=false;
this.backgroundEraseDisabled=false;
this.dropTarget=null;
this.graphicsConfig=null;
this.isWindow=false;
this.eventCache=null;
this.coalescingEnabled=false;
this.秘j2sInvalidateOnAdd=false;
this.autoFocusTransferOnDisposal=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.visible=true;
this.enabled=true;
this.valid=false;
this.nameExplicitlySet=false;
this.focusable=true;
this.isFocusTraversableOverridden=0;
this.focusTraversalKeysEnabled=false;
this.componentOrientation=$I$(3).UNKNOWN;
this.newEventsOnly=false;
this.windowClosingException=null;
this.eventMask=4096;
this.changeSupportLock= Clazz_new_();
this.isPacked=false;
this.boundsOp=3;
this.isAddNotifyComplete=false;
this.coalescingEnabled=p$1.checkCoalescing.apply(this, []);
this.秘j2sInvalidateOnAdd=true;
this.autoFocusTransferOnDisposal=true;
}, 1);
Clazz_newMeth(C$, 'getAppContext$', function () {
return this.appContext;
});
Clazz_newMeth(C$, 'getChangeSupportLock', function () {
return this.changeSupportLock;
}, p$1);
Clazz_newMeth(C$, 'getBoundsOp$', function () {
return this.boundsOp;
});
Clazz_newMeth(C$, 'setBoundsOp$I', function (op) {
if (op == 5) {
this.boundsOp=3;
} else if (this.boundsOp == 3) {
this.boundsOp=op;
}});
Clazz_newMeth(C$, 'getBounds$java_awt_Component', function (comp) {
return Clazz_new_($I$(4).c$$I$I$I$I,[comp.x, comp.y, comp.width, comp.height]);
});
Clazz_newMeth(C$, 'requestFocusInWindow$java_awt_Component$sun_awt_CausedFocusEvent_Cause', function (comp, cause) {
return comp.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(cause);
});
Clazz_newMeth(C$, 'requestFocus$java_awt_Component$sun_awt_CausedFocusEvent_Cause', function (comp, cause) {
comp.requestFocus$sun_awt_CausedFocusEvent_Cause(cause);
});
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.setAppContext$();
}, 1);
Clazz_newMeth(C$, 'initializeFocusTraversalKeys$', function () {
this.focusTraversalKeys=Clazz_array($I$(5), [3]);
});
Clazz_newMeth(C$, 'setAppContext$', function () {
this.appContext=$I$(6).getAppContext$();
});
Clazz_newMeth(C$, 'constructComponentName$', function () {
return null;
});
Clazz_newMeth(C$, 'getName$', function () {
if (this.name == null && !this.nameExplicitlySet ) {
{
if (this.name == null && !this.nameExplicitlySet ) this.name=this.constructComponentName$();
}}return this.name;
});
Clazz_newMeth(C$, 'setName$S', function (name) {
var oldName;
{
oldName=this.name;
this.name=name;
this.nameExplicitlySet=true;
}this.firePropertyChange$S$O$O("name", oldName, name);
});
Clazz_newMeth(C$, 'getParent$', function () {
return this.getParent_NoClientCode$();
});
Clazz_newMeth(C$, 'getParent_NoClientCode$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'getContainer$', function () {
return this.getParent$();
});
Clazz_newMeth(C$, 'getPeer$', function () {
return (this.isDisplayable$() ? this.peer : null);
});
Clazz_newMeth(C$, 'setDropTarget$java_awt_dnd_DropTarget', function (dt) {
if (dt === this.dropTarget || (this.dropTarget != null && this.dropTarget.equals$O(dt) ) ) return;
var old;
if ((old=this.dropTarget) != null ) {
if (this.peer != null ) this.dropTarget.removeNotify$java_awt_peer_ComponentPeer(this.peer);
var t=this.dropTarget;
this.dropTarget=null;
try {
t.setComponent$java_awt_Component(null);
} catch (iae) {
if (Clazz_exceptionOf(iae,"IllegalArgumentException")){
} else {
throw iae;
}
}
}if ((this.dropTarget=dt) != null ) {
try {
this.dropTarget.setComponent$java_awt_Component(this);
if (this.peer != null ) this.dropTarget.addNotify$java_awt_peer_ComponentPeer(this.peer);
} catch (iae) {
if (Clazz_exceptionOf(iae,"IllegalArgumentException")){
if (old != null ) {
try {
old.setComponent$java_awt_Component(this);
if (this.peer != null ) this.dropTarget.addNotify$java_awt_peer_ComponentPeer(this.peer);
} catch (iae1) {
if (Clazz_exceptionOf(iae1,"IllegalArgumentException")){
} else {
throw iae1;
}
}
}} else {
throw iae;
}
}
}});
Clazz_newMeth(C$, 'getDropTarget$', function () {
return this.dropTarget;
});
Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () {
return $I$(7).getGraphicsConfiguration$();
});
Clazz_newMeth(C$, 'resetGC$', function () {
});
Clazz_newMeth(C$, 'getToolkit$', function () {
return $I$(8).getDefaultToolkit$();
});
Clazz_newMeth(C$, 'isValid$', function () {
return this.valid;
});
Clazz_newMeth(C$, 'isDisplayable$', function () {
return true;
});
Clazz_newMeth(C$, 'isVisible$', function () {
return this.isVisible_NoClientCode$();
});
Clazz_newMeth(C$, 'isVisible_NoClientCode$', function () {
return this.visible;
});
Clazz_newMeth(C$, 'isRecursivelyVisible$', function () {
return this.visible && (this.parent == null || this.parent.isRecursivelyVisible$() ) ;
});
Clazz_newMeth(C$, 'pointRelativeToComponent$java_awt_Point', function (absolute) {
var compCoords=this.getLocationOnScreen$();
return Clazz_new_($I$(9).c$$I$I,[absolute.x - compCoords.x, absolute.y - compCoords.y]);
});
Clazz_newMeth(C$, 'getMousePosition$', function () {
return null;
});
Clazz_newMeth(C$, 'isSameOrAncestorOf$java_awt_Component$Z', function (comp, allowChildren) {
return comp === this ;
});
Clazz_newMeth(C$, 'isShowing$', function () {
if (this.visible) {
var parent=this.parent;
return (parent == null ) || parent.isShowing$() ;
}return false;
});
Clazz_newMeth(C$, 'isEnabled$', function () {
return this.isEnabledImpl$();
});
Clazz_newMeth(C$, 'isEnabledImpl$', function () {
return this.enabled;
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
this.enable$Z(b);
});
Clazz_newMeth(C$, 'enable$', function () {
if (!this.enabled) {
this.enabled=true;
if (this.peer != null ) {
this.peer.setEnabled$Z(true);
if (this.visible) {
this.updateCursorImmediately$();
}}}});
Clazz_newMeth(C$, 'enable$Z', function (b) {
if (b) {
this.enable$();
} else {
this.disable$();
}});
Clazz_newMeth(C$, 'disable$', function () {
if (this.enabled) {
$I$(10).clearMostRecentFocusOwner$java_awt_Component(this);
this.enabled=false;
if (this.peer != null ) {
this.peer.setEnabled$Z(false);
if (this.visible) {
this.updateCursorImmediately$();
}}}});
Clazz_newMeth(C$, 'isDoubleBuffered$', function () {
return false;
});
Clazz_newMeth(C$, 'enableInputMethods$Z', function (enable) {
if (enable) {
if ((this.eventMask & 4096) != 0) return;
if (this.isFocusOwner$()) {
}this.eventMask|=4096;
} else {
if ((this.eventMask & 4096) != 0) {
}this.eventMask&=~4096;
}});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
if (b) {
this.show$();
} else {
this.hide$();
}});
Clazz_newMeth(C$, 'show$Z', function (b) {
this.setVisible$Z(b);
});
Clazz_newMeth(C$, 'show$', function () {
if (!this.visible) {
this.visible=true;
this.updatePeerVisibility$Z(true);
if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(8).enabledOnToolkit$J(1) ) {
var e=Clazz_new_($I$(11).c$$java_awt_Component$I,[this, 102]);
$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e);
}}var parent=this.parent;
if (parent != null ) {
parent.invalidate$();
}});
Clazz_newMeth(C$, 'updatePeerVisibility$Z', function (isVisible) {
this.updatePeerVisibilityOrig$Z(isVisible);
});
Clazz_newMeth(C$, 'updatePeerVisibilityOrig$Z', function (isVisible) {
this.peer.setVisible$Z(isVisible);
this.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, this, this.parent, 4, $I$(8).enabledOnToolkit$J(32768));
if (Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer")) {
this.repaint$();
}this.updateCursorImmediately$();
});
Clazz_newMeth(C$, 'getOrCreatePeer$', function () {
return this.peer;
});
Clazz_newMeth(C$, 'containsFocus$', function () {
return this.isFocusOwner$();
});
Clazz_newMeth(C$, 'clearMostRecentFocusOwnerOnHide$', function () {
$I$(10).clearMostRecentFocusOwner$java_awt_Component(this);
});
Clazz_newMeth(C$, 'clearCurrentFocusCycleRootOnHide$', function () {
});
Clazz_newMeth(C$, 'hide$', function () {
this.isPacked=false;
if (this.visible) {
this.clearCurrentFocusCycleRootOnHide$();
this.clearMostRecentFocusOwnerOnHide$();
this.visible=false;
this.mixOnHiding$Z(this.isLightweight$());
if (this.containsFocus$() && $I$(10).isAutoFocusTransferEnabled$() ) {
this.transferFocus$Z(true);
}this.updatePeerVisibility$Z(false);
if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(8).enabledOnToolkit$J(1) ) {
var e=Clazz_new_($I$(11).c$$java_awt_Component$I,[this, 103]);
$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e);
}}var parent=this.parent;
if (!this.isWindow && parent != null ) {
parent.invalidate$();
}});
Clazz_newMeth(C$, 'getForeground$', function () {
return this.getForeground_NoClient$();
});
Clazz_newMeth(C$, 'getForeground_NoClient$', function () {
var foreground=this.foreground;
if (foreground != null ) {
return foreground;
}var parent=this.parent;
return (parent != null ) ? parent.getForeground$() : null;
});
Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) {
var oldColor=this.foreground;
this.foreground=c;
if (this.peer != null ) {
c=this.getForeground$();
if (c != null ) {
this.peer.setForeground$java_awt_Color(c);
}}this.firePropertyChange$S$O$O("foreground", oldColor, c);
});
Clazz_newMeth(C$, 'isForegroundSet$', function () {
return (this.foreground != null );
});
Clazz_newMeth(C$, 'getBackground$', function () {
return this.getBackground_NoClient$();
});
Clazz_newMeth(C$, 'getBackground_NoClient$', function () {
var background=this.background;
if (background != null ) {
return background;
}var parent=this.parent;
return (parent != null ) ? parent.getBackground$() : null;
});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
var oldColor=this.background;
this.background=c;
if (this.peer != null ) {
c=this.getBackground$();
if (c != null ) {
this.peer.setBackground$java_awt_Color(c);
}}this.firePropertyChange$S$O$O("background", oldColor, c);
});
Clazz_newMeth(C$, 'isBackgroundSet$', function () {
return (this.background != null );
});
Clazz_newMeth(C$, 'getFont$', function () {
return this.getFont_NoClientCode$();
});
Clazz_newMeth(C$, 'getFont_NoClientCode$', function () {
var font=this.font;
if (font != null ) {
return font;
}var parent=this.parent;
if (parent != null ) return parent.getFont_NoClientCode$();
return null;
});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
var oldFont;
var newFont;
oldFont=this.font;
newFont=this.font=f;
if (this.peer != null ) {
f=this.getFont$();
if (f != null ) {
this.peer.setFont$java_awt_Font(f);
this.peerFont=f;
}}this.firePropertyChange$S$O$O("font", oldFont, newFont);
if (f !== oldFont && (oldFont == null || !oldFont.equals$O(f) ) ) {
this.invalidateIfValid$();
}});
Clazz_newMeth(C$, 'isFontSet$', function () {
return this.font != null ;
});
Clazz_newMeth(C$, 'getLocale$', function () {
var locale=this.locale;
if (locale != null ) {
return locale;
}return $I$(12).ENGLISH;
});
Clazz_newMeth(C$, 'setLocale$java_util_Locale', function (l) {
var oldValue=this.locale;
this.locale=l;
this.firePropertyChange$S$O$O("locale", oldValue, l);
this.invalidateIfValid$();
});
Clazz_newMeth(C$, 'getLocation$', function () {
return this.location$();
});
Clazz_newMeth(C$, 'getLocationOnScreen$', function () {
return this.getLocationOnScreen_NoTreeLock$();
});
Clazz_newMeth(C$, 'getLocationOnScreen_NoTreeLock$', function () {
if (this.isShowing$()) {
if (this.isLightweight$()) {
var host=this.getNativeContainer$();
var pt=host.peer.getLocationOnScreen$();
for (var c=this; c !== host ; c=c.getParent$()) {
pt.x+=c.x;
pt.y+=c.y;
}
return pt;
} else {
var pt=this.peer.getLocationOnScreen$();
return pt;
}} else {
throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["component must be showing on the screen to determine its location"]);
}});
Clazz_newMeth(C$, 'location$', function () {
return p$1.location_NoClientCode.apply(this, []);
});
Clazz_newMeth(C$, 'location_NoClientCode', function () {
return Clazz_new_($I$(9).c$$I$I,[this.x, this.y]);
}, p$1);
Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) {
this.setBoundsOp$I(1);
this.setBounds$I$I$I$I(x, y, this.width, this.height);
});
Clazz_newMeth(C$, 'move$I$I', function (x, y) {
this.setLocation$I$I(x, y);
});
Clazz_newMeth(C$, 'setLocation$java_awt_Point', function (p) {
this.setLocation$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'getSize$', function () {
return this.size$();
});
Clazz_newMeth(C$, 'size$', function () {
return Clazz_new_($I$(13).c$$I$I,[this.width, this.height]);
});
Clazz_newMeth(C$, 'setSize$I$I', function (width, height) {
this.resize$I$I(width, height);
});
Clazz_newMeth(C$, 'resize$I$I', function (width, height) {
this.setBoundsOp$I(2);
this.setBounds$I$I$I$I(this.x, this.y, width, height);
});
Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) {
this.setSize$I$I(d.width, d.height);
});
Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) {
this.reshape$I$I$I$I(x, y, width, height);
});
Clazz_newMeth(C$, 'setBounds$java_awt_Rectangle', function (r) {
this.setBounds$I$I$I$I(r.x, r.y, r.width, r.height);
});
Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) {
try {
this.setBoundsOp$I(3);
width=Math.max(0, width);
height=Math.max(0, height);
var resized=(this.width != width) || (this.height != height) ;
var moved=(this.x != x) || (this.y != y) ;
if (!resized && !moved ) {
return;
}var oldX=this.x;
var oldY=this.y;
var oldWidth=this.width;
var oldHeight=this.height;
this.x=x;
this.y=y;
this.width=width;
this.height=height;
if (resized) {
this.isPacked=false;
}var needNotify=true;
this.mixOnReshaping$();
if (this.getOrCreatePeer$() != null ) {
p$1.reshapeNativePeer$I$I$I$I$I.apply(this, [x, y, width, height, this.getBoundsOp$()]);
resized=(oldWidth != this.width) || (oldHeight != this.height) ;
moved=(oldX != this.x) || (oldY != this.y) ;
if (this.isJ2SWindowButNotJInternalFrame$()) {
needNotify=false;
}if (resized) {
this.invalidate$();
}if (this.parent != null ) {
this.parent.invalidateIfValid$();
}}if (needNotify) {
p$1.notifyNewBounds$Z$Z.apply(this, [resized, moved]);
}if (resized) p$1.repaintParentIfNeeded$I$I$I$I.apply(this, [oldX, oldY, oldWidth, oldHeight]);
} finally {
this.setBoundsOp$I(5);
}
});
Clazz_newMeth(C$, 'repaintParentIfNeeded$I$I$I$I', function (oldX, oldY, oldWidth, oldHeight) {
if (this.parent != null && Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer") && this.isShowing$() ) {
this.parent.repaint$I$I$I$I(oldX, oldY, oldWidth, oldHeight);
this.repaint$();
}}, p$1);
Clazz_newMeth(C$, 'reshapeNativePeer$I$I$I$I$I', function (x, y, width, height, op) {
var nativeX=x;
var nativeY=y;
for (var c=this.parent; (c != null ) && (Clazz_instanceOf(c.peer, "java.awt.peer.LightweightPeer")) ; c=c.parent) {
nativeX+=c.x;
nativeY+=c.y;
}
this.peer.setBounds$I$I$I$I$I(nativeX, nativeY, width, height, op);
}, p$1);
Clazz_newMeth(C$, 'notifyNewBounds$Z$Z', function (resized, moved) {
if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(8).enabledOnToolkit$J(1) ) {
if (resized) {
var e=Clazz_new_($I$(11).c$$java_awt_Component$I,[this, 101]);
$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e);
}if (moved) {
var e=Clazz_new_($I$(11).c$$java_awt_Component$I,[this, 100]);
$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e);
}} else {
if (Clazz_instanceOf(this, "java.awt.Container") && (this).countComponents$() > 0 ) {
var enabledOnToolkit=$I$(8).enabledOnToolkit$J(65536);
if (resized) {
(this).createChildHierarchyEvents$I$J$Z(1402, 0, enabledOnToolkit);
}if (moved) {
(this).createChildHierarchyEvents$I$J$Z(1401, 0, enabledOnToolkit);
}}}}, p$1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'getWidth$', function () {
return this.width;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.height;
});
Clazz_newMeth(C$, 'getBounds$', function () {
return Clazz_new_($I$(4).c$$I$I$I$I,[this.x, this.y, this.width, this.height]);
});
Clazz_newMeth(C$, 'getBounds$java_awt_Rectangle', function (rv) {
if (rv == null ) return Clazz_new_($I$(4).c$$I$I$I$I,[this.getX$(), this.getY$(), this.getWidth$(), this.getHeight$()]);
rv.setBounds$I$I$I$I(this.getX$(), this.getY$(), this.getWidth$(), this.getHeight$());
return rv;
});
Clazz_newMeth(C$, 'getSize$java_awt_Dimension', function (rv) {
if (rv == null ) {
return Clazz_new_($I$(13).c$$I$I,[this.getWidth$(), this.getHeight$()]);
} else {
rv.setSize$I$I(this.getWidth$(), this.getHeight$());
return rv;
}});
Clazz_newMeth(C$, 'getLocation$java_awt_Point', function (rv) {
if (rv == null ) {
return Clazz_new_($I$(9).c$$I$I,[this.getX$(), this.getY$()]);
} else {
rv.setLocation$I$I(this.getX$(), this.getY$());
return rv;
}});
Clazz_newMeth(C$, 'isOpaque$', function () {
return true;
});
Clazz_newMeth(C$, 'isLightweight$', function () {
return false;
});
Clazz_newMeth(C$, 'setPreferredSize$java_awt_Dimension', function (preferredSize) {
this.setPrefSizeComp$java_awt_Dimension(preferredSize);
});
Clazz_newMeth(C$, 'setPrefSizeComp$java_awt_Dimension', function (preferredSize) {
var old=(this.prefSizeSet ? this.prefSize : null);
this.prefSize=preferredSize;
this.prefSizeSet=(preferredSize != null );
this.firePropertyChange$S$O$O("preferredSize", old, preferredSize);
});
Clazz_newMeth(C$, 'isPreferredSizeSet$', function () {
return this.prefSizeSet;
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.preferredSize$();
});
Clazz_newMeth(C$, 'preferredSize$', function () {
return this.prefSizeComp$();
});
Clazz_newMeth(C$, 'prefSizeComp$', function () {
var dim=this.prefSize;
if (dim == null || !(this.isPreferredSizeSet$() || this.isValid$() ) ) {
dim=(this.width != 0 || this.height != 0 ? null : this.isDisplayable$() ? this.peer.getPreferredSize$() : this.getMinimumSize$());
this.prefSize=dim;
}return (dim == null ? Clazz_new_($I$(13).c$$I$I,[this.width, this.height]) : Clazz_new_($I$(13).c$$java_awt_Dimension,[dim]));
});
Clazz_newMeth(C$, 'setMinimumSize$java_awt_Dimension', function (minimumSize) {
var old;
if (this.minSizeSet) {
old=this.minSize;
} else {
old=null;
}this.minSize=minimumSize;
this.minSizeSet=(minimumSize != null );
this.firePropertyChange$S$O$O("minimumSize", old, minimumSize);
});
Clazz_newMeth(C$, 'isMinimumSizeSet$', function () {
return this.minSizeSet;
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
return this.minimumSize$();
});
Clazz_newMeth(C$, 'minimumSize$', function () {
var dim=this.minSize;
if (dim == null || !(this.isMinimumSizeSet$() || this.isValid$() ) ) {
this.minSize=this.size$();
dim=this.minSize;
}return Clazz_new_($I$(13).c$$java_awt_Dimension,[dim]);
});
Clazz_newMeth(C$, 'setMaximumSize$java_awt_Dimension', function (maximumSize) {
var old;
if (this.maxSizeSet) {
old=this.maxSize;
} else {
old=null;
}this.maxSize=maximumSize;
this.maxSizeSet=(maximumSize != null );
this.firePropertyChange$S$O$O("maximumSize", old, maximumSize);
});
Clazz_newMeth(C$, 'isMaximumSizeSet$', function () {
return this.maxSizeSet;
});
Clazz_newMeth(C$, 'getMaximumSize$', function () {
return this.getMaxSizeComp$();
});
Clazz_newMeth(C$, 'getMaxSizeComp$', function () {
if (this.isMaximumSizeSet$()) {
return Clazz_new_($I$(13).c$$java_awt_Dimension,[this.maxSize]);
}return Clazz_new_($I$(13).c$$I$I,[32767, 32767]);
});
Clazz_newMeth(C$, 'getAlignmentX$', function () {
return this.getAlignmentXComp$();
});
Clazz_newMeth(C$, 'getAlignmentXComp$', function () {
return 0.5;
});
Clazz_newMeth(C$, 'getAlignmentY$', function () {
return this.getAlignmentYComp$();
});
Clazz_newMeth(C$, 'getAlignmentYComp$', function () {
return 0.5;
});
Clazz_newMeth(C$, 'getBaseline$I$I', function (width, height) {
if (width < 0 || height < 0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Width and height must be >= 0"]);
}return -1;
});
Clazz_newMeth(C$, 'getBaselineResizeBehavior$', function () {
return $I$(14).OTHER;
});
Clazz_newMeth(C$, 'doLayout$', function () {
this.layout$();
});
Clazz_newMeth(C$, 'layout$', function () {
});
Clazz_newMeth(C$, 'validate$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var peer=this.peer;
var wasValid=this.isValid$();
if (!wasValid && peer != null ) {
var newfont=this.getFont$();
var oldfont=this.peerFont;
if (newfont !== oldfont && (oldfont == null || !oldfont.equals$O(newfont) ) ) {
peer.setFont$java_awt_Font(newfont);
this.peerFont=newfont;
}peer.layout$();
}this.valid=true;
if (!wasValid) {
this.mixOnValidating$();
}}});
Clazz_newMeth(C$, 'invalidate$', function () {
this.invalidateComp$();
});
Clazz_newMeth(C$, 'invalidateComp$', function () {
this.valid=false;
if (!this.isPreferredSizeSet$()) {
this.prefSize=null;
}if (!this.isMinimumSizeSet$()) {
this.minSize=null;
}if (!this.isMaximumSizeSet$()) {
this.maxSize=null;
}if (this.parent != null && this.秘j2sInvalidateOnAdd ) {
this.parent.invalidateIfValid$();
}});
Clazz_newMeth(C$, 'invalidateIfValid$', function () {
if (this.isValid$()) {
this.invalidate$();
}});
Clazz_newMeth(C$, 'getGraphics$', function () {
var g;
if ((g=(this.parent == null ? null : this.parent.getGraphics$())) != null ) g.setFont$java_awt_Font(this.getFont$());
return g;
});
Clazz_newMeth(C$, 'getTreeLock$', function () {
return this;
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
return font.getFontMetrics$();
});
Clazz_newMeth(C$, 'setCursor$java_awt_Cursor', function (cursor) {
this.cursor=cursor;
this.updateCursorImmediately$();
});
Clazz_newMeth(C$, 'updateCursorImmediately$', function () {
if (this.peer != null ) this.peer.updateCursorImmediately$();
});
Clazz_newMeth(C$, 'getCursor$', function () {
return this.getCursor_NoClientCode$();
});
Clazz_newMeth(C$, 'getCursor_NoClientCode$', function () {
var cursor=this.cursor;
if (cursor != null ) {
return cursor;
}var parent=this.parent;
if (parent != null ) {
return parent.getCursor_NoClientCode$();
} else {
return $I$(15).getPredefinedCursor$I(0);
}});
Clazz_newMeth(C$, 'isCursorSet$', function () {
return (this.cursor != null );
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) {
this.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'paintAll$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'lightweightPaint$java_awt_Graphics', function (g) {
this.lwPaintComp$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'lwPaintComp$java_awt_Graphics', function (g) {
this.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'paintHeavyweightComponents$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'repaint$', function () {
this.repaint$J$I$I$I$I(0, 0, 0, this.width, this.height);
});
Clazz_newMeth(C$, 'repaint$J', function (tm) {
this.repaint$J$I$I$I$I(tm, 0, 0, this.width, this.height);
});
Clazz_newMeth(C$, 'repaint$I$I$I$I', function (x, y, width, height) {
this.repaint$J$I$I$I$I(0, x, y, width, height);
});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) {
if (this.canPaint$()) {
if (this.peer != null ) {
if (this.isVisible$() && width > 0 && height > 0 ) {
var e=Clazz_new_($I$(16).c$$java_awt_Component$I$java_awt_Rectangle,[this, 801, Clazz_new_($I$(4).c$$I$I$I$I,[x, y, width, height])]);
$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e);
} else {
this.peer.setVisible$Z(false);
}}} else if (this.parent != null ) {
var px=this.x + ((x < 0) ? 0 : x);
var py=this.y + ((y < 0) ? 0 : y);
var pwidth=(width > this.width) ? this.width : width;
var pheight=(height > this.height) ? this.height : height;
this.parent.repaint$J$I$I$I$I(tm, px, py, pwidth, pheight);
}});
Clazz_newMeth(C$, 'canPaint$', function () {
return !(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer"));
});
Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) {
this.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'printAll$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'printHeavyweightComponents$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, ['imageUpdate$java_awt_Image$I$I$I$I$I','imageUpdate$'], function (img, infoflags, x, y, w, h) {
return false;
});
Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) {
return (this.isDisplayable$() ? (this.getToolkit$()).createImage$java_awt_Component$java_awt_image_ImageProducer(this, producer) : null);
});
Clazz_newMeth(C$, 'createImage$I$I', function (width, height) {
return (this.isDisplayable$() ? (this.getToolkit$()).createImage$java_awt_Component$I$I(this, width, height) : null);
});
Clazz_newMeth(C$, 'createVolatileImage$I$I', function (width, height) {
return null;
});
Clazz_newMeth(C$, 'createVolatileImage$I$I$java_awt_ImageCapabilities', function (width, height, caps) {
return this.createVolatileImage$I$I(width, height);
});
Clazz_newMeth(C$, 'prepareImage$java_awt_Image$java_awt_image_ImageObserver', function (image, observer) {
return this.prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver(image, -1, -1, observer);
});
Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) {
return false;
});
Clazz_newMeth(C$, 'checkImage$java_awt_Image$java_awt_image_ImageObserver', function (image, observer) {
return this.checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver(image, -1, -1, observer);
});
Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) {
return 35;
});
Clazz_newMeth(C$, 'setIgnoreRepaint$Z', function (ignoreRepaint) {
});
Clazz_newMeth(C$, 'getIgnoreRepaint$', function () {
return false;
});
Clazz_newMeth(C$, 'contains$java_awt_Point', function (p) {
return this.contains$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'contains$I$I', function (x, y) {
return this.inside$I$I(x, y);
});
Clazz_newMeth(C$, 'inside$I$I', function (x, y) {
return (x >= 0) && (x < this.width) && (y >= 0) && (y < this.height) ;
});
Clazz_newMeth(C$, 'getComponentAt$I$I', function (x, y) {
return this.locate$I$I(x, y);
});
Clazz_newMeth(C$, 'locate$I$I', function (x, y) {
return this.contains$I$I(x, y) ? this : null;
});
Clazz_newMeth(C$, 'getComponentAt$java_awt_Point', function (p) {
return this.getComponentAt$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'deliverEvent$java_awt_Event', function (e) {
this.postEvent$java_awt_Event(e);
});
Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (e) {
this.dispatchEventImpl$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent', function (e) {
this.dispatchEventImplComp$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'dispatchEventImplComp$java_awt_AWTEvent', function (e) {
var id=e.getID$();
if (!(Clazz_instanceOf(e, "java.awt.event.KeyEvent"))) {
$I$(17).setCurrentEventAndMostRecentTime$java_awt_AWTEvent(e);
}if (!e.focusManagerIsDispatching) {
if (e.isPosted) {
e=$I$(10).retargetFocusEvent$java_awt_AWTEvent(e);
e.isPosted=true;
}if ($I$(10).getCurrentKeyboardFocusManager$().dispatchEvent$java_awt_AWTEvent(e)) {
return;
}}var toolkit=$I$(8).getDefaultToolkit$();
toolkit.notifyAWTEventListeners$java_awt_AWTEvent(e);
if (!e.isConsumed$()) {
if (Clazz_instanceOf(e, "java.awt.event.KeyEvent")) {
$I$(10).getCurrentKeyboardFocusManager$().processKeyEvent$java_awt_Component$java_awt_event_KeyEvent(this, e);
if (e.isConsumed$()) {
return;
}}}switch (id) {
case 401:
case 402:
var p=((Clazz_instanceOf(this, "java.awt.Container")) ? this : this.parent);
if (p != null ) {
p.preProcessKeyEvent$java_awt_event_KeyEvent(e);
}break;
case 201:
break;
default:
break;
}
if (this.newEventsOnly) {
if (this.eventEnabled$java_awt_AWTEvent(e)) {
this.processEvent$java_awt_AWTEvent(e);
}} else if (id == 507) {
this.autoProcessMouseWheel$java_awt_event_MouseWheelEvent(e);
}});
Clazz_newMeth(C$, 'autoProcessMouseWheel$java_awt_event_MouseWheelEvent', function (e) {
});
Clazz_newMeth(C$, 'dispatchMouseWheelToAncestor$java_awt_event_MouseWheelEvent', function (e) {
var newX;
var newY;
newX=e.getX$() + this.getX$();
newY=e.getY$() + this.getY$();
var newMWE;
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var anc=this.getParent$();
while (anc != null && !anc.eventEnabled$java_awt_AWTEvent(e) ){
newX+=anc.getX$();
newY+=anc.getY$();
if (!anc.isWindowOrJSApplet$()) {
anc=anc.getParent$();
} else {
break;
}}
if (anc != null && anc.eventEnabled$java_awt_AWTEvent(e) ) {
newMWE=Clazz_new_($I$(18).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I$D,[anc, e.getID$(), e.getWhen$(), e.getModifiers$(), newX, newY, e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), e.getScrollType$(), e.getScrollAmount$(), e.getWheelRotation$(), e.getPreciseWheelRotation$()]);
(e).copyPrivateDataInto$java_awt_AWTEvent(newMWE);
anc.dispatchEventToSelf$java_awt_AWTEvent(newMWE);
}}return true;
});
Clazz_newMeth(C$, 'checkWindowClosingException$', function () {
if (this.windowClosingException != null ) {
if (Clazz_instanceOf(this, "java.awt.JSDialog")) {
(this).interruptBlocking$();
} else {
this.windowClosingException.fillInStackTrace$();
this.windowClosingException.printStackTrace$();
this.windowClosingException=null;
}return true;
}return false;
});
Clazz_newMeth(C$, 'areInputMethodsEnabled$', function () {
return ((this.eventMask & 4096) != 0) && ((this.eventMask & 8) != 0 || this.keyListener != null ) ;
});
Clazz_newMeth(C$, 'eventEnabled$java_awt_AWTEvent', function (e) {
return this.eventTypeEnabled$I(e.id);
});
Clazz_newMeth(C$, 'eventTypeEnabled$I', function (type) {
switch (type) {
case 100:
case 101:
case 102:
case 103:
if ((this.eventMask & 1) != 0 || this.componentListener != null ) {
return true;
}break;
case 1004:
case 1005:
if ((this.eventMask & 4) != 0 || this.focusListener != null ) {
return true;
}break;
case 401:
case 402:
case 400:
if ((this.eventMask & 8) != 0 || this.keyListener != null ) {
return true;
}break;
case 501:
case 502:
case 504:
case 505:
case 500:
if ((this.eventMask & 16) != 0 || this.mouseListener != null ) {
return true;
}break;
case 503:
case 506:
if ((this.eventMask & 32) != 0 || this.mouseMotionListener != null ) {
return true;
}break;
case 507:
if ((this.eventMask & 131072) != 0 || this.mouseWheelListener != null ) {
return true;
}break;
case 1100:
case 1101:
if ((this.eventMask & 2048) != 0 || this.inputMethodListener != null ) {
return true;
}break;
case 1400:
if ((this.eventMask & 32768) != 0 || this.hierarchyListener != null ) {
return true;
}break;
case 1401:
case 1402:
if ((this.eventMask & 65536) != 0 || this.hierarchyBoundsListener != null ) {
return true;
}break;
case 1001:
if ((this.eventMask & 128) != 0) {
return true;
}break;
case 900:
if ((this.eventMask & 1024) != 0) {
return true;
}break;
case 701:
if ((this.eventMask & 512) != 0) {
return true;
}break;
case 601:
if ((this.eventMask & 256) != 0) {
return true;
}break;
default:
break;
}
if (type > 1999) {
return true;
}return false;
});
Clazz_newMeth(C$, 'postEvent$java_awt_Event', function (e) {
if (this.handleEvent$java_awt_Event(e)) {
e.consume$();
return true;
}var parent=this.parent;
var eventx=e.x;
var eventy=e.y;
if (parent != null ) {
e.translate$I$I(this.x, this.y);
if (parent.postEvent$java_awt_Event(e)) {
e.consume$();
return true;
}e.x=eventx;
e.y=eventy;
}return false;
});
Clazz_newMeth(C$, 'addComponentListener$java_awt_event_ComponentListener', function (l) {
if (l == null ) {
return;
}this.componentListener=$I$(19).add$java_awt_event_ComponentListener$java_awt_event_ComponentListener(this.componentListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeComponentListener$java_awt_event_ComponentListener', function (l) {
if (l == null ) {
return;
}this.componentListener=$I$(19).remove$java_awt_event_ComponentListener$java_awt_event_ComponentListener(this.componentListener, l);
});
Clazz_newMeth(C$, 'getComponentListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(20),['componentHidden$java_awt_event_ComponentEvent','componentMoved$java_awt_event_ComponentEvent','componentResized$java_awt_event_ComponentEvent','componentShown$java_awt_event_ComponentEvent'])));
});
Clazz_newMeth(C$, 'addFocusListener$java_awt_event_FocusListener', function (l) {
if (l == null ) {
return;
}this.focusListener=$I$(19).add$java_awt_event_FocusListener$java_awt_event_FocusListener(this.focusListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeFocusListener$java_awt_event_FocusListener', function (l) {
if (l == null ) {
return;
}this.focusListener=$I$(19).remove$java_awt_event_FocusListener$java_awt_event_FocusListener(this.focusListener, l);
});
Clazz_newMeth(C$, 'getFocusListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(21),['focusGained$java_awt_event_FocusEvent','focusLost$java_awt_event_FocusEvent'])));
});
Clazz_newMeth(C$, 'addHierarchyListener$java_awt_event_HierarchyListener', function (l) {
});
Clazz_newMeth(C$, 'removeHierarchyListener$java_awt_event_HierarchyListener', function (l) {
});
Clazz_newMeth(C$, 'getHierarchyListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(22),['hierarchyChanged$java_awt_event_HierarchyEvent'])));
});
Clazz_newMeth(C$, 'addHierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (l) {
if (l == null ) {
return;
}var notifyAncestors;
notifyAncestors=(this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0 );
this.hierarchyBoundsListener=$I$(19).add$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener(this.hierarchyBoundsListener, l);
notifyAncestors=(notifyAncestors && this.hierarchyBoundsListener != null );
this.newEventsOnly=true;
if (notifyAncestors) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.adjustListeningChildrenOnParent$J$I(65536, 1);
}}});
Clazz_newMeth(C$, 'removeHierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (l) {
if (l == null ) {
return;
}var notifyAncestors;
{
notifyAncestors=(this.hierarchyBoundsListener != null && (this.eventMask & 65536) == 0 );
this.hierarchyBoundsListener=$I$(19).remove$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener(this.hierarchyBoundsListener, l);
notifyAncestors=(notifyAncestors && this.hierarchyBoundsListener == null );
}if (notifyAncestors) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.adjustListeningChildrenOnParent$J$I(65536, -1);
}}});
Clazz_newMeth(C$, 'numListening$J', function (mask) {
return this.numListeningMask$J(mask);
});
Clazz_newMeth(C$, 'numListeningMask$J', function (mask) {
if ((mask == 32768 && (this.hierarchyListener != null || (this.eventMask & 32768) != 0 ) ) || (mask == 65536 && (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0 ) ) ) {
return 1;
} else {
return 0;
}});
Clazz_newMeth(C$, 'countHierarchyMembers$', function () {
return 1;
});
Clazz_newMeth(C$, 'createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z', function (id, changed, changedParent, changeFlags, enabledOnToolkit) {
return this.createHierEventsComp$I$java_awt_Component$java_awt_Container$J$Z(id, changed, changedParent, changeFlags, enabledOnToolkit);
});
Clazz_newMeth(C$, 'createHierEventsComp$I$java_awt_Component$java_awt_Container$J$Z', function (id, changed, changedParent, changeFlags, enabledOnToolkit) {
switch (id) {
case 1400:
if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || enabledOnToolkit ) {
var e=Clazz_new_($I$(23).c$$java_awt_Component$I$java_awt_Component$java_awt_Container$J,[this, id, changed, changedParent, changeFlags]);
this.dispatchEvent$java_awt_AWTEvent(e);
return 1;
}break;
case 1401:
case 1402:
if (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0 || enabledOnToolkit ) {
var e=Clazz_new_($I$(23).c$$java_awt_Component$I$java_awt_Component$java_awt_Container,[this, id, changed, changedParent]);
this.dispatchEvent$java_awt_AWTEvent(e);
return 1;
}break;
default:
break;
}
return 0;
});
Clazz_newMeth(C$, 'getHierarchyBoundsListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(24),['ancestorMoved$java_awt_event_HierarchyEvent','ancestorResized$java_awt_event_HierarchyEvent'])));
});
Clazz_newMeth(C$, 'adjustListeningChildrenOnParent$J$I', function (mask, num) {
if (this.parent != null ) {
this.parent.adjustListeningChildren$J$I(mask, num);
}});
Clazz_newMeth(C$, 'addKeyListener$java_awt_event_KeyListener', function (l) {
if (l == null ) {
return;
}this.keyListener=$I$(19).add$java_awt_event_KeyListener$java_awt_event_KeyListener(this.keyListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeKeyListener$java_awt_event_KeyListener', function (l) {
if (l == null ) {
return;
}this.keyListener=$I$(19).remove$java_awt_event_KeyListener$java_awt_event_KeyListener(this.keyListener, l);
});
Clazz_newMeth(C$, 'getKeyListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(25),['keyPressed$java_awt_event_KeyEvent','keyReleased$java_awt_event_KeyEvent','keyTyped$java_awt_event_KeyEvent'])));
});
Clazz_newMeth(C$, 'addMouseListener$java_awt_event_MouseListener', function (l) {
if (l == null ) {
return;
}this.mouseListener=$I$(19).add$java_awt_event_MouseListener$java_awt_event_MouseListener(this.mouseListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeMouseListener$java_awt_event_MouseListener', function (l) {
if (l == null ) {
return;
}this.mouseListener=$I$(19).remove$java_awt_event_MouseListener$java_awt_event_MouseListener(this.mouseListener, l);
});
Clazz_newMeth(C$, 'getMouseListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(26),['mouseClicked$java_awt_event_MouseEvent','mouseEntered$java_awt_event_MouseEvent','mouseExited$java_awt_event_MouseEvent','mousePressed$java_awt_event_MouseEvent','mouseReleased$java_awt_event_MouseEvent'])));
});
Clazz_newMeth(C$, 'addMouseMotionListener$java_awt_event_MouseMotionListener', function (l) {
if (l == null ) {
return;
}this.mouseMotionListener=$I$(19).add$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener(this.mouseMotionListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeMouseMotionListener$java_awt_event_MouseMotionListener', function (l) {
if (l == null ) {
return;
}this.mouseMotionListener=$I$(19).remove$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener(this.mouseMotionListener, l);
});
Clazz_newMeth(C$, 'getMouseMotionListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(27),['mouseDragged$java_awt_event_MouseEvent','mouseMoved$java_awt_event_MouseEvent'])));
});
Clazz_newMeth(C$, 'addMouseWheelListener$java_awt_event_MouseWheelListener', function (l) {
if (l == null ) {
return;
}this.mouseWheelListener=$I$(19).add$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener(this.mouseWheelListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeMouseWheelListener$java_awt_event_MouseWheelListener', function (l) {
if (l == null ) {
return;
}this.mouseWheelListener=$I$(19).remove$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener(this.mouseWheelListener, l);
});
Clazz_newMeth(C$, 'getMouseWheelListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(28),['mouseWheelMoved$java_awt_event_MouseWheelEvent'])));
});
Clazz_newMeth(C$, 'addInputMethodListener$java_awt_event_InputMethodListener', function (l) {
if (l == null ) {
return;
}this.inputMethodListener=$I$(19).add$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener(this.inputMethodListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeInputMethodListener$java_awt_event_InputMethodListener', function (l) {
if (l == null ) {
return;
}this.inputMethodListener=$I$(19).remove$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener(this.inputMethodListener, l);
});
Clazz_newMeth(C$, 'getInputMethodListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(29),['caretPositionChanged$java_awt_event_InputMethodEvent','inputMethodTextChanged$java_awt_event_InputMethodEvent'])));
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.getListenersComp$Class(listenerType);
});
Clazz_newMeth(C$, 'getListenersComp$Class', function (listenerType) {
var l=null;
if (listenerType === Clazz_getClass($I$(20),['componentHidden$java_awt_event_ComponentEvent','componentMoved$java_awt_event_ComponentEvent','componentResized$java_awt_event_ComponentEvent','componentShown$java_awt_event_ComponentEvent']) ) {
l=this.componentListener;
} else if (listenerType === Clazz_getClass($I$(21),['focusGained$java_awt_event_FocusEvent','focusLost$java_awt_event_FocusEvent']) ) {
l=this.focusListener;
} else if (listenerType === Clazz_getClass($I$(22),['hierarchyChanged$java_awt_event_HierarchyEvent']) ) {
l=this.hierarchyListener;
} else if (listenerType === Clazz_getClass($I$(24),['ancestorMoved$java_awt_event_HierarchyEvent','ancestorResized$java_awt_event_HierarchyEvent']) ) {
l=this.hierarchyBoundsListener;
} else if (listenerType === Clazz_getClass($I$(25),['keyPressed$java_awt_event_KeyEvent','keyReleased$java_awt_event_KeyEvent','keyTyped$java_awt_event_KeyEvent']) ) {
l=this.keyListener;
} else if (listenerType === Clazz_getClass($I$(26),['mouseClicked$java_awt_event_MouseEvent','mouseEntered$java_awt_event_MouseEvent','mouseExited$java_awt_event_MouseEvent','mousePressed$java_awt_event_MouseEvent','mouseReleased$java_awt_event_MouseEvent']) ) {
l=this.mouseListener;
} else if (listenerType === Clazz_getClass($I$(27),['mouseDragged$java_awt_event_MouseEvent','mouseMoved$java_awt_event_MouseEvent']) ) {
l=this.mouseMotionListener;
} else if (listenerType === Clazz_getClass($I$(28),['mouseWheelMoved$java_awt_event_MouseWheelEvent']) ) {
l=this.mouseWheelListener;
} else if (listenerType === Clazz_getClass($I$(29),['caretPositionChanged$java_awt_event_InputMethodEvent','inputMethodTextChanged$java_awt_event_InputMethodEvent']) ) {
l=this.inputMethodListener;
} else if (listenerType === Clazz_getClass($I$(30),['propertyChange$java_beans_PropertyChangeEvent']) ) {
return this.getPropertyChangeListeners$();
}return $I$(19).getListeners$java_util_EventListener$Class(l, listenerType);
});
Clazz_newMeth(C$, 'enableEvents$J', function (eventsToEnable) {
var notifyAncestors=0;
{
if ((eventsToEnable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) == 0 ) {
notifyAncestors|=32768;
}if ((eventsToEnable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0 ) {
notifyAncestors|=65536;
}this.eventMask|=eventsToEnable;
this.newEventsOnly=true;
}if (this.parent != null && Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer") ) {
this.parent.proxyEnableEvents$J(this.eventMask);
}if (notifyAncestors != 0) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.adjustListeningChildrenOnParent$J$I(notifyAncestors, 1);
}}});
Clazz_newMeth(C$, 'disableEvents$J', function (eventsToDisable) {
var notifyAncestors=0;
{
if ((eventsToDisable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) != 0 ) {
notifyAncestors|=32768;
}if ((eventsToDisable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) != 0 ) {
notifyAncestors|=65536;
}this.eventMask&=~eventsToDisable;
}if (notifyAncestors != 0) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.adjustListeningChildrenOnParent$J$I(notifyAncestors, -1);
}}});
Clazz_newMeth(C$, 'checkCoalescing', function () {
if (this.getClass$().getClassLoader$() == null ) {
return false;
}var clazz=this.getClass$();
{
var value=C$.coalesceMap.get$O(clazz);
if (value != null ) {
return value.booleanValue$();
}var enabled=$I$(31).valueOf$Z(p$1.checkCoelescence.apply(this, []));
C$.coalesceMap.put$TK$TV(clazz, enabled);
return enabled.booleanValue$();
}}, p$1);
Clazz_newMeth(C$, 'checkCoelescence', function () {
return this.coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent.exClazz != C$ ||false;
}, p$1);
Clazz_newMeth(C$, 'isCoalescingEnabled$', function () {
return this.coalescingEnabled;
});
Clazz_newMeth(C$, 'coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent', function (existingEvent, newEvent) {
return null;
});
Clazz_newMeth(C$, 'processEvent$java_awt_AWTEvent', function (e) {
this.processEventComp$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'processEventComp$java_awt_AWTEvent', function (e) {
var isActiveRetarget=!!e.dispatch$ ||false;
if (isActiveRetarget || Clazz_instanceOf(e, "java.awt.ActiveEvent") ) {
(e).dispatch$();
} else if (Clazz_instanceOf(e, "java.awt.event.FocusEvent")) {
this.processFocusEvent$java_awt_event_FocusEvent(e);
} else if (Clazz_instanceOf(e, "java.awt.event.MouseEvent")) {
switch (e.getID$()) {
case 501:
case 502:
case 500:
case 504:
case 505:
this.processMouseEvent$java_awt_event_MouseEvent(e);
break;
case 503:
case 506:
this.processMouseMotionEvent$java_awt_event_MouseEvent(e);
break;
case 507:
this.processMouseWheelEvent$java_awt_event_MouseWheelEvent(e);
break;
}
} else if (Clazz_instanceOf(e, "java.awt.event.KeyEvent")) {
this.processKeyEvent$java_awt_event_KeyEvent(e);
} else if (Clazz_instanceOf(e, "java.awt.event.ComponentEvent")) {
this.processComponentEvent$java_awt_event_ComponentEvent(e);
} else if (Clazz_instanceOf(e, "java.awt.event.InputMethodEvent")) {
this.processInputMethodEvent$java_awt_event_InputMethodEvent(e);
} else if (Clazz_instanceOf(e, "java.awt.event.HierarchyEvent")) {
switch (e.getID$()) {
case 1400:
this.processHierarchyEvent$java_awt_event_HierarchyEvent(e);
break;
case 1401:
case 1402:
this.processHierarchyBoundsEvent$java_awt_event_HierarchyEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processComponentEvent$java_awt_event_ComponentEvent', function (e) {
var listener=this.componentListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 101:
listener.componentResized$java_awt_event_ComponentEvent(e);
break;
case 100:
listener.componentMoved$java_awt_event_ComponentEvent(e);
break;
case 102:
listener.componentShown$java_awt_event_ComponentEvent(e);
break;
case 103:
listener.componentHidden$java_awt_event_ComponentEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processFocusEvent$java_awt_event_FocusEvent', function (e) {
var listener=this.focusListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 1004:
listener.focusGained$java_awt_event_FocusEvent(e);
break;
case 1005:
listener.focusLost$java_awt_event_FocusEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (e) {
var listener=this.keyListener;
if (listener != null && (this.isAWT$ ||this.秘isFocusableSet) ) {
var id=e.getID$();
switch (id) {
case 400:
listener.keyTyped$java_awt_event_KeyEvent(e);
break;
case 401:
listener.keyPressed$java_awt_event_KeyEvent(e);
break;
case 402:
listener.keyReleased$java_awt_event_KeyEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent', function (e) {
var listener=this.mouseListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 501:
listener.mousePressed$java_awt_event_MouseEvent(e);
break;
case 502:
listener.mouseReleased$java_awt_event_MouseEvent(e);
break;
case 500:
listener.mouseClicked$java_awt_event_MouseEvent(e);
break;
case 505:
listener.mouseExited$java_awt_event_MouseEvent(e);
break;
case 504:
listener.mouseEntered$java_awt_event_MouseEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processMouseMotionEvent$java_awt_event_MouseEvent', function (e) {
var listener=this.mouseMotionListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 503:
listener.mouseMoved$java_awt_event_MouseEvent(e);
break;
case 506:
listener.mouseDragged$java_awt_event_MouseEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processMouseWheelEvent$java_awt_event_MouseWheelEvent', function (e) {
var listener=this.mouseWheelListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 507:
listener.mouseWheelMoved$(e);
break;
}
}});
Clazz_newMeth(C$, 'postsOldMouseEvents$', function () {
return false;
});
Clazz_newMeth(C$, 'processInputMethodEvent$java_awt_event_InputMethodEvent', function (e) {
var listener=this.inputMethodListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 1100:
listener.inputMethodTextChanged$java_awt_event_InputMethodEvent(e);
break;
case 1101:
listener.caretPositionChanged$java_awt_event_InputMethodEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'processHierarchyEvent$java_awt_event_HierarchyEvent', function (e) {
var listener=this.hierarchyListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 1400:
listener.hierarchyChanged$(e);
break;
}
}});
Clazz_newMeth(C$, 'processHierarchyBoundsEvent$java_awt_event_HierarchyEvent', function (e) {
var listener=this.hierarchyBoundsListener;
if (listener != null ) {
var id=e.getID$();
switch (id) {
case 1401:
listener.ancestorMoved$java_awt_event_HierarchyEvent(e);
break;
case 1402:
listener.ancestorResized$java_awt_event_HierarchyEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'handleEvent$java_awt_Event', function (evt) {
switch (evt.id) {
case 504:
return this.mouseEnter$java_awt_Event$I$I(evt, evt.x, evt.y);
case 505:
return this.mouseExit$java_awt_Event$I$I(evt, evt.x, evt.y);
case 503:
return this.mouseMove$java_awt_Event$I$I(evt, evt.x, evt.y);
case 501:
return this.mouseDown$java_awt_Event$I$I(evt, evt.x, evt.y);
case 506:
return this.mouseDrag$java_awt_Event$I$I(evt, evt.x, evt.y);
case 502:
return this.mouseUp$java_awt_Event$I$I(evt, evt.x, evt.y);
case 401:
case 403:
return this.keyDown$java_awt_Event$I(evt, evt.key);
case 402:
case 404:
return this.keyUp$java_awt_Event$I(evt, evt.key);
case 1001:
return this.action$java_awt_Event$O(evt, evt.arg);
case 1004:
return this.gotFocus$java_awt_Event$O(evt, evt.arg);
case 1005:
return this.lostFocus$java_awt_Event$O(evt, evt.arg);
}
return false;
});
Clazz_newMeth(C$, 'mouseDown$java_awt_Event$I$I', function (evt, x, y) {
return false;
});
Clazz_newMeth(C$, 'mouseDrag$java_awt_Event$I$I', function (evt, x, y) {
return false;
});
Clazz_newMeth(C$, 'mouseUp$java_awt_Event$I$I', function (evt, x, y) {
return false;
});
Clazz_newMeth(C$, 'mouseMove$java_awt_Event$I$I', function (evt, x, y) {
return false;
});
Clazz_newMeth(C$, 'mouseEnter$java_awt_Event$I$I', function (evt, x, y) {
return false;
});
Clazz_newMeth(C$, 'mouseExit$java_awt_Event$I$I', function (evt, x, y) {
return false;
});
Clazz_newMeth(C$, 'keyDown$java_awt_Event$I', function (evt, key) {
return false;
});
Clazz_newMeth(C$, 'keyUp$java_awt_Event$I', function (evt, key) {
return false;
});
Clazz_newMeth(C$, 'action$java_awt_Event$O', function (evt, what) {
return false;
});
Clazz_newMeth(C$, 'addNotify$', function () {
this.addNotifyComp$();
});
Clazz_newMeth(C$, 'addNotifyComp$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var peer=this.getOrCreatePeer$();
if (this.parent != null ) {
var mask=0;
if ((this.mouseListener != null ) || ((this.eventMask & 16) != 0) ) {
mask|=16;
}if ((this.mouseMotionListener != null ) || ((this.eventMask & 32) != 0) ) {
mask|=32;
}if ((this.mouseWheelListener != null ) || ((this.eventMask & 131072) != 0) ) {
mask|=131072;
}if (this.focusListener != null || (this.eventMask & 4) != 0 ) {
mask|=4;
}if (this.keyListener != null || (this.eventMask & 8) != 0 ) {
mask|=8;
}if (mask != 0) {
this.parent.proxyEnableEvents$J(mask);
}}if (this.秘j2sInvalidateOnAdd) this.invalidate$();
this.peerFont=this.getFont$();
if (this.parent != null && this.parent.peer != null ) {
var parentContPeer=this.parent.peer;
}this.isAddNotifyComplete=true;
if (this.visible && peer != null ) {
if (peer.isDisposed &&true) peer.setVisible$Z(true);
}if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || $I$(8).enabledOnToolkit$J(32768) ) {
var e=Clazz_new_($I$(23).c$$java_awt_Component$I$java_awt_Component$java_awt_Container$J,[this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible$()) ? 4 : 0)]);
this.dispatchEvent$java_awt_AWTEvent(e);
}}});
Clazz_newMeth(C$, 'getNativeContainer$', function () {
var p=this.parent;
while (p != null && !(Clazz_instanceOf(p, "java.applet.JSApplet")) && Clazz_instanceOf(p.peer, "java.awt.peer.LightweightPeer") ){
p=p.getParent$();
}
return p;
});
Clazz_newMeth(C$, 'removeNotify$', function () {
this.removeNotifyComp$();
});
Clazz_newMeth(C$, 'removeNotifyComp$', function () {
$I$(10).clearMostRecentFocusOwner$java_awt_Component(this);
if ($I$(10).getCurrentKeyboardFocusManager$().getPermanentFocusOwner$() === this ) {
$I$(10).getCurrentKeyboardFocusManager$().setGlobalPermanentFocusOwner$java_awt_Component(null);
}if (this.isFocusOwner$() && $I$(10).isAutoFocusTransferEnabledFor$java_awt_Component(this) ) {
this.transferFocus$Z(true);
}var p=this.getOrCreatePeer$();
if (p != null ) {
if (this.visible) {
p.setVisible$Z(false);
}$I$(8).getEventQueue$().removeSourceEvents$O$Z(this, false);
$I$(10).getCurrentKeyboardFocusManager$().discardKeyEvents$java_awt_Component(this);
p.dispose$();
this.isAddNotifyComplete=false;
}if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || $I$(8).enabledOnToolkit$J(32768) ) {
var e=Clazz_new_($I$(23).c$$java_awt_Component$I$java_awt_Component$java_awt_Container$J,[this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible$()) ? 4 : 0)]);
this.dispatchEvent$java_awt_AWTEvent(e);
}});
Clazz_newMeth(C$, 'gotFocus$java_awt_Event$O', function (evt, what) {
return false;
});
Clazz_newMeth(C$, 'lostFocus$java_awt_Event$O', function (evt, what) {
return false;
});
Clazz_newMeth(C$, 'isFocusTraversable$', function () {
if (this.isFocusTraversableOverridden == 0) {
this.isFocusTraversableOverridden=1;
}return this.focusable;
});
Clazz_newMeth(C$, 'isFocusable$', function () {
return this.isFocusTraversable$();
});
Clazz_newMeth(C$, 'setFocusable$Z', function (focusable) {
var oldFocusable;
{
oldFocusable=this.focusable;
this.focusable=focusable;
}this.isFocusTraversableOverridden=2;
this.秘isFocusableSet=true;
this.firePropertyChange$S$O$O("focusable", $I$(31).valueOf$Z(oldFocusable), $I$(31).valueOf$Z(focusable));
if (oldFocusable && !focusable ) {
if (this.isFocusOwner$() && $I$(10).isAutoFocusTransferEnabled$() ) {
this.transferFocus$Z(true);
}$I$(10).clearMostRecentFocusOwner$java_awt_Component(this);
}});
Clazz_newMeth(C$, 'isFocusTraversableOverridden$', function () {
return (this.isFocusTraversableOverridden != 1);
});
Clazz_newMeth(C$, 'setFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) {
if (id < 0 || id >= 3 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}this.setFocusTraversalKeys_NoIDCheck$I$java_util_Set(id, keystrokes);
});
Clazz_newMeth(C$, 'getFocusTraversalKeys$I', function (id) {
if (id < 0 || id >= 3 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}return this.getFocusTraversalKeys_NoIDCheck$I(id);
});
Clazz_newMeth(C$, 'setFocusTraversalKeys_NoIDCheck$I$java_util_Set', function (id, keystrokes) {
var oldKeys;
{
if (this.focusTraversalKeys == null ) {
this.initializeFocusTraversalKeys$();
}if (keystrokes != null ) {
for (var keystroke, $keystroke = keystrokes.iterator$(); $keystroke.hasNext$()&&((keystroke=($keystroke.next$())),1);) {
if (keystroke == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot set null focus traversal key"]);
}if (keystroke.getKeyChar$() != "\uffff") {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys cannot map to KEY_TYPED events"]);
}for (var i=0; i < this.focusTraversalKeys.length; i++) {
if (i == id) {
continue;
}if (this.getFocusTraversalKeys_NoIDCheck$I(i).contains$O(keystroke)) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys must be unique for a Component"]);
}}
}
}oldKeys=this.focusTraversalKeys[id];
this.focusTraversalKeys[id]=(keystrokes != null ) ? $I$(32).unmodifiableSet$java_util_Set(Clazz_new_($I$(33).c$$java_util_Collection,[keystrokes])) : null;
}this.firePropertyChange$S$O$O(C$.focusTraversalKeyPropertyNames[id], oldKeys, keystrokes);
});
Clazz_newMeth(C$, 'getFocusTraversalKeys_NoIDCheck$I', function (id) {
var keystrokes=(this.focusTraversalKeys != null ) ? this.focusTraversalKeys[id] : null;
if (keystrokes != null ) {
return keystrokes;
} else {
var parent=this.parent;
if (parent != null ) {
return parent.getFocusTraversalKeys$I(id);
} else {
return $I$(10).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalKeys$I(id);
}}});
Clazz_newMeth(C$, 'areFocusTraversalKeysSet$I', function (id) {
if (id < 0 || id >= 3 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}return (this.focusTraversalKeys != null && this.focusTraversalKeys[id] != null );
});
Clazz_newMeth(C$, 'setFocusTraversalKeysEnabled$Z', function (focusTraversalKeysEnabled) {
var oldFocusTraversalKeysEnabled;
{
oldFocusTraversalKeysEnabled=this.focusTraversalKeysEnabled;
this.focusTraversalKeysEnabled=focusTraversalKeysEnabled;
}this.firePropertyChange$S$Z$Z("focusTraversalKeysEnabled", oldFocusTraversalKeysEnabled, focusTraversalKeysEnabled);
});
Clazz_newMeth(C$, 'getFocusTraversalKeysEnabled$', function () {
return this.focusTraversalKeysEnabled;
});
Clazz_newMeth(C$, 'requestFocus$', function () {
this.requestFocusHelper$Z$Z(false, true);
});
Clazz_newMeth(C$, 'requestFocus$sun_awt_CausedFocusEvent_Cause', function (cause) {
this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(false, true, cause);
});
Clazz_newMeth(C$, 'requestFocus$Z', function (temporary) {
return this.requestFocusHelper$Z$Z(temporary, true);
});
Clazz_newMeth(C$, 'requestFocus$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, cause) {
return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(temporary, true, cause);
});
Clazz_newMeth(C$, 'requestFocusInWindow$', function () {
return this.requestFocusHelper$Z$Z(false, false);
});
Clazz_newMeth(C$, 'requestFocusInWindow$sun_awt_CausedFocusEvent_Cause', function (cause) {
return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(false, false, cause);
});
Clazz_newMeth(C$, 'requestFocusInWindow$Z', function (temporary) {
return this.requestFocusHelper$Z$Z(temporary, false);
});
Clazz_newMeth(C$, 'requestFocusInWindow$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, cause) {
return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(temporary, false, cause);
});
Clazz_newMeth(C$, 'requestFocusHelper$Z$Z', function (temporary, focusedWindowChangeAllowed) {
return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(temporary, focusedWindowChangeAllowed, $I$(34).UNKNOWN);
});
Clazz_newMeth(C$, 'requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, focusedWindowChangeAllowed, cause) {
if (!p$1.isRequestFocusAccepted$Z$Z$sun_awt_CausedFocusEvent_Cause.apply(this, [temporary, focusedWindowChangeAllowed, cause])) {
return false;
}$I$(10).setMostRecentFocusOwner$java_awt_Component(this);
var window=this;
while ((window != null ) && !window.isWindowOrJSApplet$() ){
if (!window.isVisible$()) {
return false;
}window=window.parent;
}
var peer=this.peer;
var heavyweight=(Clazz_instanceOf(peer, "java.awt.peer.LightweightPeer")) ? this.getNativeContainer$() : this;
if (heavyweight == null || !heavyweight.isVisible$() ) {
return false;
}peer=heavyweight.peer;
if (peer == null ) {
return false;
}var time=$I$(17).getMostRecentEventTime$();
var success=peer.requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(this, temporary, focusedWindowChangeAllowed, time, cause);
if (!success) {
$I$(10).getCurrentKeyboardFocusManager$sun_awt_AppContext(this.appContext).dequeueKeyEvents$J$java_awt_Component(time, this);
} else {
}return success;
});
Clazz_newMeth(C$, 'isWindowOrJSApplet$', function () {
return Clazz_instanceOf(this, "java.awt.Window") || Clazz_instanceOf(this, "java.applet.JSApplet") ;
});
Clazz_newMeth(C$, 'isJ2SWindowButNotJInternalFrame$', function () {
return Clazz_instanceOf(this, "java.awt.Window") && (this).getUIClassID$() != "InternalFrameUI" ;
});
Clazz_newMeth(C$, 'isRequestFocusAccepted$Z$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, focusedWindowChangeAllowed, cause) {
if (!this.isFocusable$() || !this.isVisible$() ) {
return false;
}var peer=this.peer;
if (peer == null ) {
return false;
}var window=this.getContainingWindow$();
if (window == null || !(window).isFocusableWindow$() ) {
return false;
}var focusOwner=$I$(10).getMostRecentFocusOwner$java_awt_Window(window);
if (focusOwner == null ) {
focusOwner=$I$(10).getCurrentKeyboardFocusManager$().getFocusOwner$();
if (focusOwner != null && focusOwner.getContainingWindow$() !== window ) {
focusOwner=null;
}}if (focusOwner === this || focusOwner == null ) {
return true;
}if ($I$(34).ACTIVATION === cause ) {
return true;
}var ret=C$.requestFocusController.acceptRequestFocus$(focusOwner, this, temporary, focusedWindowChangeAllowed, cause);
return ret;
}, p$1);
Clazz_newMeth(C$, 'setRequestFocusController$sun_awt_RequestFocusController', function (requestController) {
if (requestController == null ) {
C$.requestFocusController=Clazz_new_($I$(2));
} else {
C$.requestFocusController=requestController;
}}, 1);
Clazz_newMeth(C$, 'getFocusCycleRootAncestor$', function () {
var rootAncestor=this.parent;
while (rootAncestor != null && !rootAncestor.isFocusCycleRoot$() ){
rootAncestor=rootAncestor.parent;
}
return rootAncestor;
});
Clazz_newMeth(C$, 'isFocusCycleRoot$java_awt_Container', function (container) {
return this.isFocusCycleRootComp$java_awt_Container(container);
});
Clazz_newMeth(C$, 'isFocusCycleRootComp$java_awt_Container', function (container) {
var rootAncestor=this.getFocusCycleRootAncestor$();
return (rootAncestor === container );
});
Clazz_newMeth(C$, 'getTraversalRoot$', function () {
return this.getFocusCycleRootAncestor$();
});
Clazz_newMeth(C$, 'transferFocus$', function () {
this.nextFocus$();
});
Clazz_newMeth(C$, 'nextFocus$', function () {
this.transferFocus$Z(false);
});
Clazz_newMeth(C$, 'transferFocus$Z', function (clearOnFailure) {
var toFocus=this.getNextFocusCandidate$();
var res=false;
if (toFocus != null && !toFocus.isFocusOwner$() && toFocus !== this ) {
res=toFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(34).TRAVERSAL_FORWARD);
}if (clearOnFailure && !res ) {
$I$(10).getCurrentKeyboardFocusManager$().clearGlobalFocusOwner$();
}return res;
});
Clazz_newMeth(C$, 'getNextFocusCandidate$', function () {
var rootAncestor=this.getTraversalRoot$();
var comp=this;
while (rootAncestor != null && !(rootAncestor.isShowing$() && rootAncestor.canBeFocusOwner$() ) ){
comp=rootAncestor;
rootAncestor=comp.getFocusCycleRootAncestor$();
}
var candidate=null;
if (rootAncestor != null ) {
var policy=rootAncestor.getFocusTraversalPolicy$();
var toFocus=policy.getComponentAfter$java_awt_Container$java_awt_Component(rootAncestor, comp);
if (toFocus == null ) {
toFocus=policy.getDefaultComponent$java_awt_Container(rootAncestor);
}candidate=toFocus;
}return candidate;
});
Clazz_newMeth(C$, 'transferFocusBackward$', function () {
this.transferFocusBackward$Z(false);
});
Clazz_newMeth(C$, 'transferFocusBackward$Z', function (clearOnFailure) {
var rootAncestor=this.getTraversalRoot$();
var comp=this;
while (rootAncestor != null && !(rootAncestor.isShowing$() && rootAncestor.canBeFocusOwner$() ) ){
comp=rootAncestor;
rootAncestor=comp.getFocusCycleRootAncestor$();
}
var res=false;
if (rootAncestor != null ) {
var policy=rootAncestor.getFocusTraversalPolicy$();
var toFocus=policy.getComponentBefore$java_awt_Container$java_awt_Component(rootAncestor, comp);
if (toFocus == null ) {
toFocus=policy.getDefaultComponent$java_awt_Container(rootAncestor);
}if (toFocus != null ) {
res=toFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(34).TRAVERSAL_BACKWARD);
}}if (!res) {
$I$(10).getCurrentKeyboardFocusManager$().clearGlobalFocusOwner$();
}return res;
});
Clazz_newMeth(C$, 'transferFocusUpCycle$', function () {
var rootAncestor;
for (rootAncestor=this.getFocusCycleRootAncestor$(); rootAncestor != null && !(rootAncestor.isShowing$() && rootAncestor.isFocusable$() && rootAncestor.isEnabled$() ) ; rootAncestor=rootAncestor.getFocusCycleRootAncestor$()) {
}
if (rootAncestor != null ) {
var rootAncestorRootAncestor=rootAncestor.getFocusCycleRootAncestor$();
$I$(10).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container((rootAncestorRootAncestor != null ) ? rootAncestorRootAncestor : rootAncestor);
rootAncestor.requestFocus$sun_awt_CausedFocusEvent_Cause($I$(34).TRAVERSAL_UP);
} else {
var window=this.getContainingWindow$();
if (window != null ) {
var toFocus=window.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(window);
if (toFocus != null ) {
$I$(10).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(window);
toFocus.requestFocus$sun_awt_CausedFocusEvent_Cause($I$(34).TRAVERSAL_UP);
}}}});
Clazz_newMeth(C$, 'hasFocus$', function () {
return ($I$(10).getCurrentKeyboardFocusManager$().getFocusOwner$() === this );
});
Clazz_newMeth(C$, 'isFocusOwner$', function () {
return this.hasFocus$();
});
Clazz_newMeth(C$, 'setAutoFocusTransferOnDisposal$Z', function (value) {
this.autoFocusTransferOnDisposal=value;
});
Clazz_newMeth(C$, 'isAutoFocusTransferOnDisposal$', function () {
return this.autoFocusTransferOnDisposal;
});
Clazz_newMeth(C$, 'add$java_awt_PopupMenu', function (popup) {
popup.setInvoker$java_awt_Component(this);
});
Clazz_newMeth(C$, 'paramString$', function () {
return this.paramStringComp$();
});
Clazz_newMeth(C$, 'paramStringComp$', function () {
var thisName=this.getName$();
var str=(thisName != null ? thisName : "");
str += (
this.__JSID__ +
"");
if (!this.isValid$()) {
str += ",invalid";
}if (!this.visible) {
str += ",hidden";
}if (!this.enabled) {
str += ",disabled";
}str += ",parent:" + (this.parent == null ? null : this.parent.getName$()) + "," + this.x + "," + this.y + "," + this.width + "x" + this.height ;
return str;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[" + this.paramString$() + "]" ;
});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
if (listener == null ) {
return;
}if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(35).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener);
}});
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
if (listener == null || this.changeSupport == null ) {
return;
}this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
if (this.changeSupport == null ) {
return Clazz_array($I$(30), [0]);
}return this.changeSupport.getPropertyChangeListeners$();
}});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
if (listener == null ) {
return;
}if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(35).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener);
}});
Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
if (listener == null || this.changeSupport == null ) {
return;
}this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener);
}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
if (this.changeSupport == null ) {
return Clazz_array($I$(30), [0]);
}return this.changeSupport.getPropertyChangeListeners$S(propertyName);
}});
Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) {
var changeSupport;
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, []));
{
changeSupport=this.changeSupport;
}if (changeSupport == null || (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) ) {
return;
}changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue);
});
Clazz_newMeth(C$, 'firePropertyChange$S$Z$Z', function (propertyName, oldValue, newValue) {
var changeSupport=this.changeSupport;
if (changeSupport == null || oldValue == newValue ) {
return;
}changeSupport.firePropertyChange$S$O$O(propertyName, $I$(31).valueOf$Z(oldValue), $I$(31).valueOf$Z(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$S$I$I', function (propertyName, oldValue, newValue) {
var changeSupport=this.changeSupport;
if (changeSupport == null || oldValue == newValue ) {
return;
}changeSupport.firePropertyChange$S$O$O(propertyName, Integer.valueOf$I(oldValue), Integer.valueOf$I(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$S$B$B', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, Byte.valueOf$B(($b$[0] = oldValue, $b$[0])), Byte.valueOf$B(($b$[0] = newValue, $b$[0])));
});
Clazz_newMeth(C$, 'firePropertyChange$S$C$C', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, Clazz_new_(Character.c$$C,[oldValue]), Clazz_new_(Character.c$$C,[newValue]));
});
Clazz_newMeth(C$, 'firePropertyChange$S$H$H', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, Short.valueOf$H(oldValue), Short.valueOf$H(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$S$J$J', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, Long.valueOf$J(oldValue), Long.valueOf$J(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$S$F$F', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, Float.valueOf$F(oldValue), Float.valueOf$F(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$S$D$D', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, Double.valueOf$D(oldValue), Double.valueOf$D(newValue));
});
Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (o) {
var oldValue=this.componentOrientation;
this.componentOrientation=o;
this.firePropertyChange$S$O$O("componentOrientation", oldValue, o);
this.invalidateIfValid$();
});
Clazz_newMeth(C$, 'getComponentOrientation$', function () {
return this.componentOrientation;
});
Clazz_newMeth(C$, 'applyComponentOrientation$java_awt_ComponentOrientation', function (orientation) {
this.applyCompOrientComp$java_awt_ComponentOrientation(orientation);
});
Clazz_newMeth(C$, 'applyCompOrientComp$java_awt_ComponentOrientation', function (orientation) {
if (orientation == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}this.setComponentOrientation$java_awt_ComponentOrientation(orientation);
});
Clazz_newMeth(C$, 'canBeFocusOwner$', function () {
if (this.isEnabled$() && this.isDisplayable$() && this.isVisible$() && this.isFocusable$() ) {
return true;
}return false;
});
Clazz_newMeth(C$, 'canBeFocusOwnerRecursively$', function () {
if (!this.canBeFocusOwner$()) {
return false;
}if (this.parent != null ) {
return this.parent.canContainFocusOwner$java_awt_Component(this);
}return true;
});
Clazz_newMeth(C$, 'relocateComponent$', function () {
});
Clazz_newMeth(C$, 'getContainingWindow$', function () {
return $I$(36).getContainingWindow$java_awt_Component(this);
});
Clazz_newMeth(C$, 'isInstanceOf$O$S', function (obj, className) {
if (obj == null ) return false;
if (className == null ) return false;
var cls=obj.getClass$();
while (cls != null ){
if (cls.getName$().equals$O(className)) {
return true;
}cls=cls.getSuperclass$();
}
return false;
}, 1);
Clazz_newMeth(C$, 'areBoundsValid$', function () {
var cont=this.getContainer$();
return cont == null || cont.isValid$() || cont.getLayout$() == null ;
});
Clazz_newMeth(C$, 'getLocationOnWindow$', function () {
var curLocation=this.getLocation$();
for (var parent=this.getContainer$(); parent != null && !parent.isWindowOrJSApplet$() ; parent=parent.getContainer$()) {
curLocation.x+=parent.getX$();
curLocation.y+=parent.getY$();
}
return curLocation;
});
Clazz_newMeth(C$, 'getSiblingIndexAbove$', function () {
var parent=this.getContainer$();
if (parent == null ) {
return -1;
}var nextAbove=parent.getComponentZOrder$java_awt_Component(this) - 1;
return nextAbove < 0 ? -1 : nextAbove;
});
Clazz_newMeth(C$, 'getSiblingIndexBelow$', function () {
var parent=this.getContainer$();
if (parent == null ) {
return -1;
}var nextBelow=parent.getComponentZOrder$java_awt_Component(this) + 1;
return nextBelow >= parent.getComponentCount$() ? -1 : nextBelow;
});
Clazz_newMeth(C$, 'mixOnShowing$', function () {
});
Clazz_newMeth(C$, 'mixOnHiding$Z', function (isLightweight) {
});
Clazz_newMeth(C$, 'mixOnReshaping$', function () {
$I$(7).taintUI$java_awt_Component(this);
});
Clazz_newMeth(C$, 'mixOnZOrderChanging$I$I', function (oldZorder, newZorder) {
});
Clazz_newMeth(C$, 'mixOnValidating$', function () {
});
Clazz_newMeth(C$, 'doesClassImplement$Class$S', function (cls, interfaceName) {
if (cls == null ) return false;
for (var c, $c = 0, $$c = cls.getInterfaces$(); $c<$$c.length&&((c=($$c[$c])),1);$c++) {
if (c.getName$().equals$O(interfaceName)) {
return true;
}}
return C$.doesClassImplement$Class$S(cls.getSuperclass$(), interfaceName);
}, 1);
Clazz_newMeth(C$, 'doesImplement$O$S', function (obj, interfaceName) {
if (obj == null ) return false;
if (interfaceName == null ) return false;
return C$.doesClassImplement$Class$S(obj.getClass$(), interfaceName);
}, 1);
var $b$ = new Int8Array(1);
;
(function(){var C$=Clazz_newClass(P$.Component, "AWTTreeLock", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Component, "BaselineResizeBehavior", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "CONSTANT_ASCENT", 0, []);
Clazz_newEnumConst($vals, C$.c$, "CONSTANT_DESCENT", 1, []);
Clazz_newEnumConst($vals, C$.c$, "CENTER_OFFSET", 2, []);
Clazz_newEnumConst($vals, C$.c$, "OTHER", 3, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
;
(function(){var C$=Clazz_newClass(P$.Component, "DummyRequestFocusController", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'sun.awt.RequestFocusController');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['acceptRequestFocus$java_awt_Component$java_awt_Component$Z$Z$sun_awt_CausedFocusEvent_Cause','acceptRequestFocus$'], function (from, to, temporary, focusedWindowChangeAllowed, cause) {
return true;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ComponentOrientation");
C$.LEFT_TO_RIGHT=null;
C$.RIGHT_TO_LEFT=null;
C$.UNKNOWN=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.LEFT_TO_RIGHT=Clazz_new_(C$.c$$I,[6]);
C$.RIGHT_TO_LEFT=Clazz_new_(C$.c$$I,[2]);
C$.UNKNOWN=Clazz_new_(C$.c$$I,[7]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.orientation=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isHorizontal$', function () {
return (this.orientation & 2) != 0;
});
Clazz_newMeth(C$, 'isLeftToRight$', function () {
return (this.orientation & 4) != 0;
});
Clazz_newMeth(C$, 'getOrientation$java_util_Locale', function (locale) {
var lang=locale.getLanguage$();
if ("iw".equals$O(lang) || "ar".equals$O(lang) || "fa".equals$O(lang) || "ur".equals$O(lang) ) {
return C$.RIGHT_TO_LEFT;
} else {
return C$.LEFT_TO_RIGHT;
}}, 1);
Clazz_newMeth(C$, 'getOrientation$java_util_ResourceBundle', function (bdl) {
var result=null;
try {
result=bdl.getObject$S("Orientation");
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
} else {
throw e;
}
}
if (result == null ) {
result=C$.getOrientation$java_util_Locale(bdl.getLocale$());
}if (result == null ) {
result=C$.getOrientation$java_util_Locale($I$(1).getDefault$());
}return result;
}, 1);
Clazz_newMeth(C$, 'c$$I', function (value) {
C$.$init$.apply(this);
this.orientation=value;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},p$2={},I$=[[0,'java.awt.Component','java.awt.Insets','javajs.util.Lst','java.awt.Toolkit','java.awt.event.ContainerEvent','java.awt.Dimension',['java.awt.GraphicsCallback','.PaintCallback'],['java.awt.GraphicsCallback','.PaintAllCallback'],['java.awt.GraphicsCallback','.PaintHeavyweightComponentsCallback'],'java.awt.AWTEventMulticaster','java.awt.event.ContainerListener',['java.awt.Container','.MouseEventTargetFilter'],'java.awt.LightweightDispatcher','java.awt.KeyboardFocusManager','java.awt.event.MouseEvent','java.awt.event.MouseWheelEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Container", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.JSComponent');
C$.EMPTY_ARRAY=null;
C$.NULL_INSETS=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_ARRAY=Clazz_array($I$(1), [0]);
C$.NULL_INSETS=Clazz_new_($I$(2).c$$I$I$I$I,[0, 0, 0, 0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.component=null;
this.秘childArray=null;
this.秘childTainted=false;
this.layoutMgr=null;
this.dispatcher=null;
this.focusTraversalPolicy=null;
this.focusCycleRoot=false;
this.focusTraversalPolicyProvider=false;
this.containerListener=null;
this.listeningChildren=0;
this.listeningBoundsChildren=0;
this.descendantsCount=0;
this.preserveBackgroundColor=null;
this.numOfHWComponents=0;
this.numOfLWComponents=0;
this.modalComp=null;
this.modalAppContext=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.focusCycleRoot=false;
this.preserveBackgroundColor=null;
this.numOfHWComponents=0;
this.numOfLWComponents=0;
}, 1);
Clazz_newMeth(C$, 'getChildArray$', function () {
var n=this.component.size$();
if (n == 0) return C$.EMPTY_ARRAY;
if (this.秘childArray != null && !this.秘childTainted ) return this.秘childArray;
this.秘childTainted=false;
return this.component.toArray$TTA(this.秘childArray != null && this.秘childArray.length > n ? this.秘childArray : (this.秘childArray=Clazz_array($I$(1), [n * 2])));
});
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.component=Clazz_new_($I$(3));
}, 1);
Clazz_newMeth(C$, 'initializeFocusTraversalKeys$', function () {
});
Clazz_newMeth(C$, 'getComponentCount$', function () {
return this.countComponents$();
});
Clazz_newMeth(C$, 'countComponents$', function () {
return this.component.size$();
});
Clazz_newMeth(C$, 'getComponent$I', function (n) {
if ((n < 0) || (n >= this.component.size$()) ) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,["No such child: " + n]);
}return this.component.get$I(n);
});
Clazz_newMeth(C$, 'getComponents$', function () {
return this.getComponents_NoClientCode$();
});
Clazz_newMeth(C$, 'getComponents_NoClientCode$', function () {
return this.component.toArray$TTA(C$.EMPTY_ARRAY);
});
Clazz_newMeth(C$, 'getInsets$', function () {
var i=(this.peer == null ? null : (this.peer).getInsets$());
return (i == null ? C$.NULL_INSETS : i);
});
Clazz_newMeth(C$, '秘getInsetsC$', function () {
var i=(this.peer == null ? null : (this.peer).getInsets$());
return (i == null ? C$.NULL_INSETS : i);
});
Clazz_newMeth(C$, 'insets$', function () {
return this.getInsets$();
});
Clazz_newMeth(C$, 'add$java_awt_Component', function (comp) {
this.addImpl$java_awt_Component$O$I(comp, null, -1);
return comp;
});
Clazz_newMeth(C$, 'add$S$java_awt_Component', function (name, comp) {
this.addImpl$java_awt_Component$O$I(comp, name, -1);
return comp;
});
Clazz_newMeth(C$, 'add$java_awt_Component$I', function (comp, index) {
this.addImpl$java_awt_Component$O$I(comp, null, index);
return comp;
});
Clazz_newMeth(C$, 'checkAddToSelf$java_awt_Component', function (comp) {
if (Clazz_instanceOf(comp, "java.awt.Container")) {
for (var cn=this; cn != null ; cn=cn.parent) {
if (cn === comp ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["adding container\'s parent to itself"]);
}}
}}, p$1);
Clazz_newMeth(C$, 'removeDelicately$java_awt_Component$java_awt_Container$I', function (comp, newParent, newIndex) {
var index=this.getComponentZOrder$java_awt_Component(comp);
var needRemoveNotify=C$.isRemoveNotifyNeeded$java_awt_Component$java_awt_Container$java_awt_Container(comp, this, newParent);
if (needRemoveNotify) {
comp.removeNotify$();
}if (newParent !== this ) {
if (this.layoutMgr != null ) {
this.layoutMgr.removeLayoutComponent$java_awt_Component(comp);
}this.adjustListeningChildren$J$I(32768, -comp.numListening$J(32768));
this.adjustListeningChildren$J$I(65536, -comp.numListening$J(65536));
this.adjustDescendants$I(-(comp.countHierarchyMembers$()));
comp.parent=null;
this.component.removeItemAt$I(index);
this.秘childTainted=true;
this.invalidateIfValid$();
} else {
this.component.removeItemAt$I(index);
this.component.add$I$TE(newIndex, comp);
this.秘childTainted=true;
}if (comp.parent == null ) {
if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) {
var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 301, comp]);
this.dispatchEvent$java_awt_AWTEvent(e);
}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768));
if (this.layoutMgr == null && this.isDisplayable$() && this.isVisible$() ) {
this.updateCursorImmediately$();
}}return needRemoveNotify;
}, p$1);
Clazz_newMeth(C$, 'canContainFocusOwner$java_awt_Component', function (focusOwnerCandidate) {
if (!(this.isEnabled$() && this.isDisplayable$() && this.isVisible$() && this.isFocusable$() )) {
return false;
}if (this.isFocusCycleRoot$()) {
var policy=this.getFocusTraversalPolicy$();
if (Clazz_instanceOf(policy, "java.awt.DefaultFocusTraversalPolicy")) {
if (!(policy).accept$java_awt_Component(focusOwnerCandidate)) {
return false;
}}}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (this.parent != null ) {
return this.parent.canContainFocusOwner$java_awt_Component(focusOwnerCandidate);
}}return true;
});
Clazz_newMeth(C$, 'hasHeavyweightDescendants$', function () {
return this.numOfHWComponents > 0;
});
Clazz_newMeth(C$, 'hasLightweightDescendants$', function () {
return this.numOfLWComponents > 0;
});
Clazz_newMeth(C$, 'getHeavyweightContainer$', function () {
if (this.peer != null && !(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer")) ) {
return this;
} else {
return this.getNativeContainer$();
}});
Clazz_newMeth(C$, 'isRemoveNotifyNeeded$java_awt_Component$java_awt_Container$java_awt_Container', function (comp, oldContainer, newContainer) {
return false;
}, 1);
Clazz_newMeth(C$, 'setComponentZOrder$java_awt_Component$I', function (comp, index) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var curParent=comp.parent;
var oldZindex=this.getComponentZOrder$java_awt_Component(comp);
if (curParent === this && index == oldZindex ) {
return;
}var peerRecreated=(curParent != null ) ? p$1.removeDelicately$java_awt_Component$java_awt_Container$I.apply(curParent, [comp, this, index]) : false;
p$1.addDelicately$java_awt_Component$java_awt_Container$I.apply(this, [comp, curParent, index]);
if (!peerRecreated && oldZindex != -1 ) {
comp.mixOnZOrderChanging$I$I(oldZindex, index);
}this.秘updateUIZOrder$();
}});
Clazz_newMeth(C$, 'reparentTraverse$java_awt_peer_ContainerPeer$java_awt_Container', function (parentPeer, child) {
p$1.checkTreeLock.apply(this, []);
for (var i=0; i < child.getComponentCount$(); i++) {
var comp=child.getComponent$I(i);
if (comp.isLightweight$()) {
if (Clazz_instanceOf(comp, "java.awt.Container")) {
p$1.reparentTraverse$java_awt_peer_ContainerPeer$java_awt_Container.apply(this, [parentPeer, comp]);
}} else {
comp.getPeer$().reparent$java_awt_peer_ContainerPeer(parentPeer);
}}
}, p$1);
Clazz_newMeth(C$, 'reparentChild$java_awt_Component', function (comp) {
if (comp == null ) {
return;
}if (comp.isLightweight$()) {
if (Clazz_instanceOf(comp, "java.awt.Container")) {
p$1.reparentTraverse$java_awt_peer_ContainerPeer$java_awt_Container.apply(this, [this.getPeer$(), comp]);
}} else {
comp.getPeer$().reparent$java_awt_peer_ContainerPeer(this.getPeer$());
}}, p$1);
Clazz_newMeth(C$, 'addDelicately$java_awt_Component$java_awt_Container$I', function (comp, curParent, index) {
p$1.checkTreeLock.apply(this, []);
if (curParent === this ) {
if (index < this.component.size$()) {
this.component.set$I$TE(index, comp);
this.秘childTainted=true;
}} else {
if (index == -1) {
this.component.add$TE(comp);
} else {
this.component.add$I$TE(index, comp);
}this.秘childTainted=true;
comp.parent=this;
this.adjustListeningChildren$J$I(32768, comp.numListening$J(32768));
this.adjustListeningChildren$J$I(65536, comp.numListening$J(65536));
this.adjustDescendants$I(comp.countHierarchyMembers$());
}this.invalidateIfValid$();
if (this.peer != null ) {
if (comp.peer == null ) {
comp.addNotify$();
} else {
var newNativeContainer=this.getHeavyweightContainer$();
var oldNativeContainer=curParent.getHeavyweightContainer$();
if (oldNativeContainer !== newNativeContainer ) {
p$1.reparentChild$java_awt_Component.apply(newNativeContainer, [comp]);
}if (!comp.isLightweight$() && this.isLightweight$() ) {
comp.relocateComponent$();
}}}if (curParent !== this ) {
if (this.layoutMgr != null ) {
if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) {
(this.layoutMgr).addLayoutComponent$java_awt_Component$O(comp, null);
} else {
this.layoutMgr.addLayoutComponent$S$java_awt_Component(null, comp);
}}if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) {
var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 300, comp]);
this.dispatchEvent$java_awt_AWTEvent(e);
}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768));
} else {
comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1400, $I$(4).enabledOnToolkit$J(32768));
}if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) {
this.updateCursorImmediately$();
}}, p$1);
Clazz_newMeth(C$, 'checkTreeLock', function () {
}, p$1);
Clazz_newMeth(C$, 'getComponentZOrder$java_awt_Component', function (comp) {
if (comp == null ) {
return -1;
}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (comp.parent !== this ) {
return -1;
}return this.component.indexOf$O(comp);
}});
Clazz_newMeth(C$, 'add$java_awt_Component$O', function (comp, constraints) {
this.addImpl$java_awt_Component$O$I(comp, constraints, -1);
});
Clazz_newMeth(C$, 'add$java_awt_Component$O$I', function (comp, constraints, index) {
this.addImpl$java_awt_Component$O$I(comp, constraints, index);
return comp;
});
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) {
this.addImplCont$java_awt_Component$O$I(comp, constraints, index);
});
Clazz_newMeth(C$, 'addImplCont$java_awt_Component$O$I', function (comp, constraints, index) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (comp.getWrap$ && !this.isWrapper$ ||false) {
comp=(comp).秘getWrap$();
comp.background=comp.foreground=null;
}if (index > this.component.size$() || (index < 0 && index != -1 ) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal component position"]);
}p$1.checkAddToSelf$java_awt_Component.apply(this, [comp]);
if (comp.isJ2SWindowButNotJInternalFrame$()) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["adding a window to a container"]);
}if (comp.parent != null ) {
comp.parent.remove$java_awt_Component(comp);
if (index > this.component.size$()) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal component position"]);
}}if (index == -1) {
this.component.add$TE(comp);
} else {
this.component.add$I$TE(index, comp);
}this.秘childTainted=true;
comp.parent=this;
this.adjustListeningChildren$J$I(32768, comp.numListening$J(32768));
this.adjustListeningChildren$J$I(65536, comp.numListening$J(65536));
this.adjustDescendants$I(comp.countHierarchyMembers$());
this.invalidateIfValid$();
if (this.peer != null ) {
comp.addNotify$();
}if (this.layoutMgr != null ) {
if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) {
(this.layoutMgr).addLayoutComponent$java_awt_Component$O(comp, constraints);
} else if (Clazz_instanceOf(constraints, "java.lang.String")) {
this.layoutMgr.addLayoutComponent$S$java_awt_Component(constraints, comp);
}}if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) {
var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 300, comp]);
this.dispatchEvent$java_awt_AWTEvent(e);
}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768));
if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) {
this.updateCursorImmediately$();
}}});
Clazz_newMeth(C$, 'checkGD$S', function (stringID) {
});
Clazz_newMeth(C$, 'remove$I', function (index) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (index < 0 || index >= this.component.size$() ) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
}var comp=this.component.get$I(index);
if (this.peer != null ) {
comp.removeNotify$();
}if (this.layoutMgr != null ) {
this.layoutMgr.removeLayoutComponent$java_awt_Component(comp);
}this.adjustListeningChildren$J$I(32768, -comp.numListening$J(32768));
this.adjustListeningChildren$J$I(65536, -comp.numListening$J(65536));
this.adjustDescendants$I(-(comp.countHierarchyMembers$()));
comp.parent=null;
this.component.removeItemAt$I(index);
this.秘childTainted=true;
this.invalidateIfValid$();
if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) {
var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 301, comp]);
this.dispatchEvent$java_awt_AWTEvent(e);
}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768));
if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) {
this.updateCursorImmediately$();
}}});
Clazz_newMeth(C$, 'remove$java_awt_Component', function (comp) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (comp.getWrap$ && !this.isWrapper$ ||false) {
comp=(comp).秘getWrap$();
}if (comp.parent === this ) {
var index=this.component.indexOf$O(comp);
if (index >= 0) {
this.remove$I(index);
}}}});
Clazz_newMeth(C$, 'removeAll$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.adjustListeningChildren$J$I(32768, -this.listeningChildren);
this.adjustListeningChildren$J$I(65536, -this.listeningBoundsChildren);
this.adjustDescendants$I(-this.descendantsCount);
while (!this.component.isEmpty$()){
var comp=this.component.removeItemAt$I(this.component.size$() - 1);
if (this.peer != null ) {
comp.removeNotify$();
}if (this.layoutMgr != null ) {
this.layoutMgr.removeLayoutComponent$java_awt_Component(comp);
}comp.parent=null;
if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) {
var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 301, comp]);
this.dispatchEvent$java_awt_AWTEvent(e);
}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768));
}
if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) {
this.updateCursorImmediately$();
}this.invalidateIfValid$();
}});
Clazz_newMeth(C$, 'numListening$J', function (mask) {
var superListening=this.numListeningMask$J(mask);
if (mask == 32768) {
return this.listeningChildren + superListening;
} else if (mask == 65536) {
return this.listeningBoundsChildren + superListening;
} else {
return superListening;
}});
Clazz_newMeth(C$, 'adjustListeningChildren$J$I', function (mask, num) {
if (num == 0) return;
if ((mask & 32768) != 0) {
this.listeningChildren+=num;
}if ((mask & 65536) != 0) {
this.listeningBoundsChildren+=num;
}this.adjustListeningChildrenOnParent$J$I(mask, num);
});
Clazz_newMeth(C$, 'adjustDescendants$I', function (num) {
if (num == 0) return;
this.descendantsCount+=num;
this.adjustDecendantsOnParent$I(num);
});
Clazz_newMeth(C$, 'adjustDecendantsOnParent$I', function (num) {
if (this.parent != null ) {
this.parent.adjustDescendants$I(num);
}});
Clazz_newMeth(C$, 'countHierarchyMembers$', function () {
return this.descendantsCount + 1;
});
Clazz_newMeth(C$, 'getListenersCount$I$Z', function (id, enabledOnToolkit) {
if (enabledOnToolkit) {
return this.descendantsCount;
}switch (id) {
case 1400:
return this.listeningChildren;
case 1401:
case 1402:
return this.listeningBoundsChildren;
default:
return 0;
}
}, p$1);
Clazz_newMeth(C$, 'createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z', function (id, changed, changedParent, changeFlags, enabledOnToolkit) {
var listeners=p$1.getListenersCount$I$Z.apply(this, [id, enabledOnToolkit]);
for (var count=listeners, i=0; count > 0; i++) {
count-=this.component.get$I(i).createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(id, changed, changedParent, changeFlags, enabledOnToolkit);
}
return listeners + this.createHierEventsComp$I$java_awt_Component$java_awt_Container$J$Z(id, changed, changedParent, changeFlags, enabledOnToolkit);
});
Clazz_newMeth(C$, 'createChildHierarchyEvents$I$J$Z', function (id, changeFlags, enabledOnToolkit) {
if (this.component.isEmpty$()) {
return;
}var listeners=p$1.getListenersCount$I$Z.apply(this, [id, enabledOnToolkit]);
for (var count=listeners, i=0; count > 0; i++) {
count-=this.component.get$I(i).createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(id, this, this.parent, changeFlags, enabledOnToolkit);
}
});
Clazz_newMeth(C$, 'getLayout$', function () {
return this.layoutMgr;
});
Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (mgr) {
this.layoutMgr=mgr;
this.invalidateIfValid$();
});
Clazz_newMeth(C$, 'doLayout$', function () {
this.layout$();
});
Clazz_newMeth(C$, 'layout$', function () {
if (this.layoutMgr != null ) this.layoutMgr.layoutContainer$java_awt_Container(this);
});
Clazz_newMeth(C$, 'invalidate$', function () {
var layoutMgr=this.layoutMgr;
if (Clazz_instanceOf(layoutMgr, "java.awt.LayoutManager2")) {
var lm=layoutMgr;
lm.invalidateLayout$java_awt_Container(this);
}this.invalidateComp$();
});
Clazz_newMeth(C$, 'validate$', function () {
if (!this.isValid$()) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (this.peer == null ) this.peer=this.getToolkit$().createComponent$java_awt_Component(this);
var n=this.component.size$();
if (!this.isValid$() && this.peer != null && n > 0 ) {
var p=null;
if (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer")) p=this.peer;
if (p != null ) p.beginValidate$();
this.validateTree$();
if (p != null ) {
p.endValidate$();
if (this.isVisible$()) this.updateCursorImmediately$();
}}}}});
Clazz_newMeth(C$, 'repackContainer$', function () {
var newSize=this.getPreferredSize$();
if (this.peer != null ) {
this.setClientSize$I$I(newSize.width, newSize.height);
}this.validate$();
});
Clazz_newMeth(C$, 'setClientSize$I$I', function (w, h) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.setBoundsOp$I(4);
this.setBounds$I$I$I$I(this.x, this.y, w, h);
}});
Clazz_newMeth(C$, 'validateTree$', function () {
if (!this.isValid$()) {
if (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer")) {
(this.peer).beginLayout$();
}this.doLayout$();
for (var i=0; i < this.component.size$(); i++) {
var comp=this.component.get$I(i);
if ((Clazz_instanceOf(comp, "java.awt.Container")) && !comp.isValid$() ) {
(comp).validateTree$();
} else {
comp.validate$();
}}
if (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer")) {
(this.peer).endLayout$();
}}C$.superclazz.prototype.validate$.apply(this, []);
});
Clazz_newMeth(C$, 'invalidateTree$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
for (var i=0; i < this.component.size$(); i++) {
var comp=this.component.get$I(i);
if (Clazz_instanceOf(comp, "java.awt.Container")) {
(comp).invalidateTree$();
} else {
comp.invalidateIfValid$();
}}
this.invalidateIfValid$();
}});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
var oldfont=this.getFont$();
C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [f]);
var newfont=this.getFont$();
if (newfont !== oldfont && (oldfont == null || !oldfont.equals$O(newfont) ) ) {
this.invalidateTree$();
}});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.preferredSize$();
});
Clazz_newMeth(C$, 'preferredSize$', function () {
return this.preferredSizeContainer$();
});
Clazz_newMeth(C$, 'preferredSizeContainer$', function () {
var dim=this.prefSize;
if (dim == null || !(this.isPreferredSizeSet$() || this.isValid$() ) ) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.prefSize=(this.layoutMgr != null ? this.layoutMgr.preferredLayoutSize$java_awt_Container(this) : this.prefSizeComp$());
dim=this.prefSize;
}}return (dim == null ? null : Clazz_new_($I$(6).c$$java_awt_Dimension,[dim]));
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
var dim=this.minSize;
if (dim == null || !(this.isMinimumSizeSet$() || this.isValid$() ) ) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.minSize=(this.layoutMgr != null ) ? this.layoutMgr.minimumLayoutSize$java_awt_Container(this) : this.minimumSize$();
dim=this.minSize;
}}if (dim != null ) {
return Clazz_new_($I$(6).c$$java_awt_Dimension,[dim]);
} else {
return dim;
}});
Clazz_newMeth(C$, 'getMaximumSize$', function () {
var dim=this.maxSize;
if (dim == null || !(this.isMaximumSizeSet$() || this.isValid$() ) ) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) {
var lm=this.layoutMgr;
this.maxSize=lm.maximumLayoutSize$java_awt_Container(this);
} else {
this.maxSize=this.getMaxSizeComp$();
}dim=this.maxSize;
}}if (dim != null ) {
return Clazz_new_($I$(6).c$$java_awt_Dimension,[dim]);
} else {
return dim;
}});
Clazz_newMeth(C$, 'getAlignmentX$', function () {
var xAlign;
if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var lm=this.layoutMgr;
xAlign=lm.getLayoutAlignmentX$java_awt_Container(this);
}} else {
xAlign=this.getAlignmentXComp$();
}return xAlign;
});
Clazz_newMeth(C$, 'getAlignmentY$', function () {
var yAlign;
if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var lm=this.layoutMgr;
yAlign=lm.getLayoutAlignmentY$java_awt_Container(this);
}} else {
yAlign=this.getAlignmentYComp$();
}return yAlign;
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
this.paintContainer$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'paintContainer$java_awt_Graphics', function (g) {
$I$(7).getInstance$().runComponents$I$java_awt_ComponentA$java_awt_Graphics$I(this.getComponentCount$(), this.getChildArray$(), g, 2);
});
Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) {
this.updateContainer$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'updateContainer$java_awt_Graphics', function (g) {
if (this.isShowing$()) {
g.clearRect$I$I$I$I(0, 0, this.width, this.height);
this.paint$java_awt_Graphics(g);
}});
Clazz_newMeth(C$, 'paintComponents$java_awt_Graphics', function (g) {
if (this.isShowing$()) {
$I$(8).getInstance$().runComponents$I$java_awt_ComponentA$java_awt_Graphics$I(this.getComponentCount$(), this.getChildArray$(), g, 4);
}});
Clazz_newMeth(C$, 'lightweightPaint$java_awt_Graphics', function (g) {
this.lwPaintComp$java_awt_Graphics(g);
this.paintHeavyweightComponents$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'paintHeavyweightComponents$java_awt_Graphics', function (g) {
if (this.isShowing$()) {
$I$(9).getInstance$().runComponents$I$java_awt_ComponentA$java_awt_Graphics$I(this.getComponentCount$(), this.getChildArray$(), g, 3);
}});
Clazz_newMeth(C$, 'addContainerListener$java_awt_event_ContainerListener', function (l) {
if (l == null ) {
return;
}this.containerListener=$I$(10).add$java_awt_event_ContainerListener$java_awt_event_ContainerListener(this.containerListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeContainerListener$java_awt_event_ContainerListener', function (l) {
if (l == null ) {
return;
}this.containerListener=$I$(10).remove$java_awt_event_ContainerListener$java_awt_event_ContainerListener(this.containerListener, l);
});
Clazz_newMeth(C$, 'getContainerListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(11),['componentAdded$java_awt_event_ContainerEvent','componentRemoved$java_awt_event_ContainerEvent'])));
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
var l=null;
if (listenerType === Clazz_getClass($I$(11),['componentAdded$java_awt_event_ContainerEvent','componentRemoved$java_awt_event_ContainerEvent']) ) {
l=this.containerListener;
} else {
return this.getListenersComp$Class(listenerType);
}return $I$(10).getListeners$java_util_EventListener$Class(l, listenerType);
});
Clazz_newMeth(C$, 'eventEnabled$java_awt_AWTEvent', function (e) {
var id=e.getID$();
if (id == 300 || id == 301 ) {
if ((this.eventMask & 2) != 0 || this.containerListener != null ) {
return true;
}return false;
}return this.eventTypeEnabled$I(e.id);
});
Clazz_newMeth(C$, 'processEvent$java_awt_AWTEvent', function (e) {
this.processEventCont$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'processEventCont$java_awt_AWTEvent', function (e) {
if (Clazz_instanceOf(e, "java.awt.event.ContainerEvent")) {
this.processContainerEvent$java_awt_event_ContainerEvent(e);
return;
}this.processEventComp$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'processContainerEvent$java_awt_event_ContainerEvent', function (e) {
var listener=this.containerListener;
if (listener != null ) {
switch (e.getID$()) {
case 300:
listener.componentAdded$java_awt_event_ContainerEvent(e);
break;
case 301:
listener.componentRemoved$java_awt_event_ContainerEvent(e);
break;
}
}});
Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent', function (e) {
if ((this.dispatcher != null ) && this.dispatcher.dispatchEvent$java_awt_AWTEvent(e) ) {
return;
}this.dispatchEventImplComp$java_awt_AWTEvent(e);
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
switch (e.getID$()) {
case 101:
break;
case 100:
break;
default:
break;
}
}});
Clazz_newMeth(C$, 'dispatchEventToSelf$java_awt_AWTEvent', function (e) {
this.dispatchEventImplComp$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'getMouseEventTarget$I$I$Z', function (x, y, includeSelf) {
return this.getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(x, y, includeSelf, $I$(12).FILTER, !true);
});
Clazz_newMeth(C$, 'getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z', function (x, y, includeSelf, filter, searchHeavyweights) {
var comp=null;
if (comp == null || comp === this ) {
comp=p$1.getMouseEventTargetImpl$I$I$Z$java_awt_Container_EventTargetFilter$Z$Z.apply(this, [x, y, includeSelf, filter, !true, searchHeavyweights]);
}return comp;
});
Clazz_newMeth(C$, 'getMouseEventTargetImpl$I$I$Z$java_awt_Container_EventTargetFilter$Z$Z', function (x, y, includeSelf, filter, searchHeavyweightChildren, searchHeavyweightDescendants) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
for (var i=0; i < this.component.size$(); i++) {
var comp=this.component.get$I(i);
if (comp != null && comp.visible && ((!searchHeavyweightChildren && Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer") ) || (searchHeavyweightChildren && !(Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer")) ) ) && comp.contains$I$I(x - comp.x, y - comp.y) ) {
if (Clazz_instanceOf(comp, "java.awt.Container")) {
var child=comp;
var deeper=child.getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(x - child.x, y - child.y, includeSelf, filter, searchHeavyweightDescendants);
if (deeper != null ) {
return deeper;
}} else {
if (filter == null || filter.accept$(comp) ) {
return comp;
}}}}
var isPeerOK;
var isMouseOverMe;
isPeerOK=includeSelf;
isMouseOverMe=this.contains$I$I(x, y);
if (isMouseOverMe && isPeerOK && (filter == null || filter.accept$(this) ) ) {
return this;
}return null;
}}, p$1);
Clazz_newMeth(C$, 'proxyEnableEvents$J', function (events) {
if (this.parent != null ) {
this.parent.proxyEnableEvents$J(events);
}if (this.dispatcher != null ) {
this.dispatcher.enableEvents$J(events);
}});
Clazz_newMeth(C$, 'deliverEvent$java_awt_Event', function (e) {
var comp=this.getComponentAt$I$I(e.x, e.y);
if ((comp != null ) && (comp !== this ) ) {
e.translate$I$I(-comp.x, -comp.y);
comp.deliverEvent$java_awt_Event(e);
} else {
this.postEvent$java_awt_Event(e);
}});
Clazz_newMeth(C$, 'getComponentAt$I$I', function (x, y) {
return this.locate$I$I(x, y);
});
Clazz_newMeth(C$, 'locate$I$I', function (x, y) {
if (!this.contains$I$I(x, y)) {
return null;
}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
for (var i=0; i < this.component.size$(); i++) {
var comp=this.component.get$I(i);
if (comp != null && Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer") ) {
if (comp.contains$I$I(x - comp.x, y - comp.y)) {
return comp;
}}}
}return this;
});
Clazz_newMeth(C$, 'getComponentAt$java_awt_Point', function (p) {
return this.getComponentAt$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'getMousePosition$Z', function (allowChildren) {
return null;
});
Clazz_newMeth(C$, 'isSameOrAncestorOf$java_awt_Component$Z', function (comp, allowChildren) {
return this === comp || (allowChildren && p$1.isParentOf$java_awt_Component.apply(this, [comp]) ) ;
});
Clazz_newMeth(C$, 'findComponentAt$I$I', function (x, y) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
return this.findComponentAt$I$I$Z(x, y, true);
}});
Clazz_newMeth(C$, 'findComponentAt$I$I$Z', function (x, y, ignoreEnabled) {
return null;
});
Clazz_newMeth(C$, 'findComponentAt$java_awt_Point', function (p) {
return this.findComponentAt$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'addNotify$', function () {
this.addNotifyComp$();
if (!(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer"))) {
this.setDispatcher$();
}for (var i=0; i < this.component.size$(); i++) {
this.component.get$I(i).addNotify$();
}
});
Clazz_newMeth(C$, 'setDispatcher$', function () {
if (this.dispatcher != null ) return;
this.dispatcher=Clazz_new_($I$(13).c$$java_awt_Container,[this]);
});
Clazz_newMeth(C$, 'removeNotify$', function () {
for (var i=this.component.size$(); --i >= 0; ) {
var comp=this.component.get$I(i);
if (comp != null ) {
comp.setAutoFocusTransferOnDisposal$Z(false);
comp.removeNotify$();
comp.setAutoFocusTransferOnDisposal$Z(true);
}}
if (this.containsFocus$() && $I$(14).isAutoFocusTransferEnabledFor$java_awt_Component(this) ) {
if (!this.transferFocus$Z(false)) {
this.transferFocusBackward$Z(true);
}}if (this.dispatcher != null ) {
this.dispatcher.dispose$();
this.dispatcher=null;
}this.removeNotifyComp$();
});
Clazz_newMeth(C$, 'isAncestorOf$java_awt_Component', function (c) {
var p;
if (c == null || ((p=c.getParent$()) == null ) ) {
return false;
}while (p != null ){
if (p === this ) {
return true;
}p=p.getParent$();
}
return false;
});
Clazz_newMeth(C$, 'paramString$', function () {
var str=this.paramStringComp$();
var layoutMgr=this.layoutMgr;
if (layoutMgr != null ) {
str += ",layout=" + layoutMgr.getClass$().getName$();
}return str;
});
Clazz_newMeth(C$, 'setFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) {
if (id < 0 || id >= 4 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}this.setFocusTraversalKeys_NoIDCheck$I$java_util_Set(id, keystrokes);
});
Clazz_newMeth(C$, 'getFocusTraversalKeys$I', function (id) {
if (id < 0 || id >= 4 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}return this.getFocusTraversalKeys_NoIDCheck$I(id);
});
Clazz_newMeth(C$, 'areFocusTraversalKeysSet$I', function (id) {
if (id < 0 || id >= 4 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}return (this.focusTraversalKeys != null && this.focusTraversalKeys[id] != null );
});
Clazz_newMeth(C$, 'isFocusCycleRoot$java_awt_Container', function (container) {
if (this.isFocusCycleRoot$() && container === this ) {
return true;
} else {
return this.isFocusCycleRootComp$java_awt_Container(container);
}});
Clazz_newMeth(C$, 'findTraversalRoot', function () {
var currentFocusCycleRoot=$I$(14).getCurrentKeyboardFocusManager$().getCurrentFocusCycleRoot$();
var root;
if (currentFocusCycleRoot === this ) {
root=this;
} else {
root=this.getFocusCycleRootAncestor$();
if (root == null ) {
root=this;
}}if (root !== currentFocusCycleRoot ) {
$I$(14).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(root);
}return root;
}, p$1);
Clazz_newMeth(C$, 'containsFocus$', function () {
var focusOwner=$I$(14).getCurrentKeyboardFocusManager$().getFocusOwner$();
return p$1.isParentOf$java_awt_Component.apply(this, [focusOwner]);
});
Clazz_newMeth(C$, 'isParentOf$java_awt_Component', function (comp) {
while (comp != null && comp !== this && !comp.isWindowOrJSApplet$() ){
comp=comp.getParent$();
}
return (comp === this );
}, p$1);
Clazz_newMeth(C$, 'clearMostRecentFocusOwnerOnHide$', function () {
var reset=false;
var window=null;
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
window=this.getContainingWindow$();
if (window != null ) {
var comp=$I$(14).getMostRecentFocusOwner$java_awt_Window(window);
reset=((comp === this ) || p$1.isParentOf$java_awt_Component.apply(this, [comp]) );
{
var storedComp=window.getTemporaryLostComponent$();
if (p$1.isParentOf$java_awt_Component.apply(this, [storedComp]) || storedComp === this ) {
window.setTemporaryLostComponent$java_awt_Component(null);
}}}}if (reset) {
$I$(14).setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, null);
}});
Clazz_newMeth(C$, 'clearCurrentFocusCycleRootOnHide$', function () {
});
Clazz_newMeth(C$, 'getTraversalRoot$', function () {
return null;
});
Clazz_newMeth(C$, 'setFocusTraversalPolicy$java_awt_FocusTraversalPolicy', function (policy) {
var oldPolicy;
{
oldPolicy=this.focusTraversalPolicy;
this.focusTraversalPolicy=policy;
}this.firePropertyChange$S$O$O("focusTraversalPolicy", oldPolicy, policy);
});
Clazz_newMeth(C$, 'getFocusTraversalPolicy$', function () {
if (!this.isFocusTraversalPolicyProvider$() && !this.isFocusCycleRoot$() ) {
return null;
}var policy=this.focusTraversalPolicy;
if (policy != null ) {
return policy;
}var rootAncestor=this.getFocusCycleRootAncestor$();
if (rootAncestor != null ) {
return rootAncestor.getFocusTraversalPolicy$();
} else {
return $I$(14).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalPolicy$();
}});
Clazz_newMeth(C$, 'isFocusTraversalPolicySet$', function () {
return (this.focusTraversalPolicy != null );
});
Clazz_newMeth(C$, 'setFocusCycleRoot$Z', function (focusCycleRoot) {
var oldFocusCycleRoot;
{
oldFocusCycleRoot=this.focusCycleRoot;
this.focusCycleRoot=focusCycleRoot;
}this.firePropertyChange$S$Z$Z("focusCycleRoot", oldFocusCycleRoot, focusCycleRoot);
});
Clazz_newMeth(C$, 'isFocusCycleRoot$', function () {
return this.focusCycleRoot;
});
Clazz_newMeth(C$, 'setFocusTraversalPolicyProvider$Z', function (provider) {
var oldProvider;
{
oldProvider=this.focusTraversalPolicyProvider;
this.focusTraversalPolicyProvider=provider;
}this.firePropertyChange$S$Z$Z("focusTraversalPolicyProvider", oldProvider, provider);
});
Clazz_newMeth(C$, 'isFocusTraversalPolicyProvider$', function () {
return this.focusTraversalPolicyProvider;
});
Clazz_newMeth(C$, 'transferFocusDownCycle$', function () {
});
Clazz_newMeth(C$, 'preProcessKeyEvent$java_awt_event_KeyEvent', function (e) {
var parent=this.parent;
if (parent != null ) {
parent.preProcessKeyEvent$java_awt_event_KeyEvent(e);
}});
Clazz_newMeth(C$, 'postProcessKeyEvent$java_awt_event_KeyEvent', function (e) {
var parent=this.parent;
if (parent != null ) {
parent.postProcessKeyEvent$java_awt_event_KeyEvent(e);
}});
Clazz_newMeth(C$, 'postsOldMouseEvents$', function () {
return true;
});
Clazz_newMeth(C$, 'applyComponentOrientation$java_awt_ComponentOrientation', function (o) {
this.applyCompOrientComp$java_awt_ComponentOrientation(o);
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
for (var i=0; i < this.component.size$(); i++) {
var comp=this.component.get$I(i);
comp.applyComponentOrientation$java_awt_ComponentOrientation(o);
}
}});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
C$.superclazz.prototype.addPropertyChangeListener$java_beans_PropertyChangeListener.apply(this, [listener]);
});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
C$.superclazz.prototype.addPropertyChangeListener$S$java_beans_PropertyChangeListener.apply(this, [propertyName, listener]);
});
;
(function(){var C$=Clazz_newInterface(P$.Container, "EventTargetFilter", function(){
});
})()
;
(function(){var C$=Clazz_newClass(P$.Container, "MouseEventTargetFilter", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.awt.Container','java.awt.Container.EventTargetFilter']]);
C$.FILTER=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.FILTER=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['accept$java_awt_Component','accept$'], function (comp) {
return (comp.eventMask & 32) != 0 || (comp.eventMask & 16) != 0 || (comp.eventMask & 131072) != 0 || comp.mouseListener != null || comp.mouseMotionListener != null || comp.mouseWheelListener != null ;
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.ArrayList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ContainerOrderFocusTraversalPolicy", null, 'java.awt.FocusTraversalPolicy', 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.FORWARD_TRAVERSAL=0;
this.BACKWARD_TRAVERSAL=0;
this.implicitDownCycleTraversal=false;
this.cachedRoot=null;
this.cachedCycle=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.FORWARD_TRAVERSAL=0;
this.BACKWARD_TRAVERSAL=1;
this.implicitDownCycleTraversal=true;
}, 1);
Clazz_newMeth(C$, 'getFocusTraversalCycle$java_awt_Container', function (aContainer) {
var cycle=Clazz_new_($I$(1));
p$1.enumerateCycle$java_awt_Container$java_util_List.apply(this, [aContainer, cycle]);
return cycle;
}, p$1);
Clazz_newMeth(C$, 'getComponentIndex$java_util_List$java_awt_Component', function (cycle, aComponent) {
return cycle.indexOf$O(aComponent);
}, p$1);
Clazz_newMeth(C$, 'enumerateCycle$java_awt_Container$java_util_List', function (container, cycle) {
if (!(container.isVisible$() && container.isDisplayable$() )) {
return;
}cycle.add$TE(container);
var components=container.getChildArray$();
for (var i=0, n=container.getComponentCount$(); i < n; i++) {
var comp=components[i];
if (Clazz_instanceOf(comp, "java.awt.Container")) {
var cont=comp;
if (!cont.isFocusCycleRoot$() && !cont.isFocusTraversalPolicyProvider$() ) {
p$1.enumerateCycle$java_awt_Container$java_util_List.apply(this, [cont, cycle]);
continue;
}}cycle.add$TE(comp);
}
}, p$1);
Clazz_newMeth(C$, 'getTopmostProvider$java_awt_Container$java_awt_Component', function (focusCycleRoot, aComponent) {
var aCont=aComponent.getParent$();
var ftp=null;
while (aCont !== focusCycleRoot && aCont != null ){
if (aCont.isFocusTraversalPolicyProvider$()) {
ftp=aCont;
}aCont=aCont.getParent$();
}
if (aCont == null ) {
return null;
}return ftp;
}, p$1);
Clazz_newMeth(C$, 'getComponentDownCycle$java_awt_Component$I', function (comp, traversalDirection) {
var retComp=null;
if (Clazz_instanceOf(comp, "java.awt.Container")) {
var cont=comp;
if (cont.isFocusCycleRoot$()) {
if (this.getImplicitDownCycleTraversal$()) {
retComp=cont.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(cont);
} else {
return null;
}} else if (cont.isFocusTraversalPolicyProvider$()) {
retComp=(traversalDirection == 0 ? cont.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(cont) : cont.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(cont));
}}return retComp;
}, p$1);
Clazz_newMeth(C$, 'getComponentAfter$java_awt_Container$java_awt_Component', function (aContainer, aComponent) {
if (aContainer == null || aComponent == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]);
}if (!aContainer.isFocusTraversalPolicyProvider$() && !aContainer.isFocusCycleRoot$() ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer should be focus cycle root or focus traversal policy provider"]);
} else if (aContainer.isFocusCycleRoot$() && !aComponent.isFocusCycleRoot$java_awt_Container(aContainer) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer is not a focus cycle root of aComponent"]);
}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(aContainer.getTreeLock$());
{
if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) {
return null;
}var comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [aComponent, 0]);
if (comp != null ) {
return comp;
}var provider=p$1.getTopmostProvider$java_awt_Container$java_awt_Component.apply(this, [aContainer, aComponent]);
if (provider != null ) {
var policy=provider.getFocusTraversalPolicy$();
var afterComp=policy.getComponentAfter$java_awt_Container$java_awt_Component(provider, aComponent);
if (afterComp != null ) {
return afterComp;
}aComponent=provider;
}var cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]);
var index=p$1.getComponentIndex$java_util_List$java_awt_Component.apply(this, [cycle, aComponent]);
if (index < 0) {
return this.getFirstComponent$java_awt_Container(aContainer);
}for (index++; index < cycle.size$(); index++) {
comp=cycle.get$I(index);
if (this.accept$java_awt_Component(comp)) {
return comp;
} else if ((comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 0])) != null ) {
return comp;
}}
if (aContainer.isFocusCycleRoot$()) {
this.cachedRoot=aContainer;
this.cachedCycle=cycle;
comp=this.getFirstComponent$java_awt_Container(aContainer);
this.cachedRoot=null;
this.cachedCycle=null;
return comp;
}}return null;
});
Clazz_newMeth(C$, 'getComponentBefore$java_awt_Container$java_awt_Component', function (aContainer, aComponent) {
if (aContainer == null || aComponent == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]);
}if (!aContainer.isFocusTraversalPolicyProvider$() && !aContainer.isFocusCycleRoot$() ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer should be focus cycle root or focus traversal policy provider"]);
} else if (aContainer.isFocusCycleRoot$() && !aComponent.isFocusCycleRoot$java_awt_Container(aContainer) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer is not a focus cycle root of aComponent"]);
}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(aContainer.getTreeLock$());
{
if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) {
return null;
}var provider=p$1.getTopmostProvider$java_awt_Container$java_awt_Component.apply(this, [aContainer, aComponent]);
if (provider != null ) {
var policy=provider.getFocusTraversalPolicy$();
var beforeComp=policy.getComponentBefore$java_awt_Container$java_awt_Component(provider, aComponent);
if (beforeComp != null ) {
return beforeComp;
}aComponent=provider;
if (this.accept$java_awt_Component(aComponent)) {
return aComponent;
}}var cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]);
var index=p$1.getComponentIndex$java_util_List$java_awt_Component.apply(this, [cycle, aComponent]);
if (index < 0) {
return this.getLastComponent$java_awt_Container(aContainer);
}var comp=null;
var tryComp=null;
for (index--; index >= 0; index--) {
comp=cycle.get$I(index);
if (comp !== aContainer && (tryComp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 1])) != null ) {
return tryComp;
} else if (this.accept$java_awt_Component(comp)) {
return comp;
}}
if (aContainer.isFocusCycleRoot$()) {
this.cachedRoot=aContainer;
this.cachedCycle=cycle;
comp=this.getLastComponent$java_awt_Container(aContainer);
this.cachedRoot=null;
this.cachedCycle=null;
return comp;
}}return null;
});
Clazz_newMeth(C$, 'getFirstComponent$java_awt_Container', function (aContainer) {
var cycle;
if (aContainer == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]);
}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(aContainer.getTreeLock$());
{
if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) {
return null;
}if (this.cachedRoot === aContainer ) {
cycle=this.cachedCycle;
} else {
cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]);
}if (cycle.size$() == 0) {
return null;
}for (var comp, $comp = cycle.iterator$(); $comp.hasNext$()&&((comp=($comp.next$())),1);) {
if (this.accept$java_awt_Component(comp)) {
return comp;
} else if (comp !== aContainer && (comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 0])) != null ) {
return comp;
}}
}return null;
});
Clazz_newMeth(C$, 'getLastComponent$java_awt_Container', function (aContainer) {
var cycle;
if (aContainer == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]);
}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(aContainer.getTreeLock$());
{
if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) {
return null;
}if (this.cachedRoot === aContainer ) {
cycle=this.cachedCycle;
} else {
cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]);
}if (cycle.size$() == 0) {
return null;
}for (var i=cycle.size$() - 1; i >= 0; i--) {
var comp=cycle.get$I(i);
if (this.accept$java_awt_Component(comp)) {
return comp;
} else if (Clazz_instanceOf(comp, "java.awt.Container") && comp !== aContainer ) {
var cont=comp;
if (cont.isFocusTraversalPolicyProvider$()) {
return cont.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(cont);
}}}
}return null;
});
Clazz_newMeth(C$, 'getDefaultComponent$java_awt_Container', function (aContainer) {
return this.getFirstComponent$java_awt_Container(aContainer);
});
Clazz_newMeth(C$, 'setImplicitDownCycleTraversal$Z', function (implicitDownCycleTraversal) {
this.implicitDownCycleTraversal=implicitDownCycleTraversal;
});
Clazz_newMeth(C$, 'getImplicitDownCycleTraversal$', function () {
return this.implicitDownCycleTraversal;
});
Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) {
if (!aComponent.canBeFocusOwner$()) {
return false;
}if (!aComponent.isWindowOrJSApplet$()) {
for (var enableTest=aComponent.getParent$(); enableTest != null ; enableTest=enableTest.getParent$()) {
if (!(enableTest.isEnabled$() || enableTest.isLightweight$() )) {
return false;
}if (enableTest.isWindowOrJSApplet$()) {
break;
}}
}return true;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Cursor");
C$.predefined=null;
C$.predefinedPrivate=null;
C$.cursorProperties=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.predefined=Clazz_array(C$, [14]);
C$.predefinedPrivate=Clazz_array(C$, [14]);
C$.cursorProperties=Clazz_array(String, -2, [Clazz_array(String, -1, ["AWT.DefaultCursor", "Default Cursor"]), Clazz_array(String, -1, ["AWT.CrosshairCursor", "Crosshair Cursor"]), Clazz_array(String, -1, ["AWT.TextCursor", "Text Cursor"]), Clazz_array(String, -1, ["AWT.WaitCursor", "Wait Cursor"]), Clazz_array(String, -1, ["AWT.SWResizeCursor", "Southwest Resize Cursor"]), Clazz_array(String, -1, ["AWT.SEResizeCursor", "Southeast Resize Cursor"]), Clazz_array(String, -1, ["AWT.NWResizeCursor", "Northwest Resize Cursor"]), Clazz_array(String, -1, ["AWT.NEResizeCursor", "Northeast Resize Cursor"]), Clazz_array(String, -1, ["AWT.NResizeCursor", "North Resize Cursor"]), Clazz_array(String, -1, ["AWT.SResizeCursor", "South Resize Cursor"]), Clazz_array(String, -1, ["AWT.WResizeCursor", "West Resize Cursor"]), Clazz_array(String, -1, ["AWT.EResizeCursor", "East Resize Cursor"]), Clazz_array(String, -1, ["AWT.HandCursor", "Hand Cursor"]), Clazz_array(String, -1, ["AWT.MoveCursor", "Move Cursor"])]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.type=0;
this.name=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.type=0;
}, 1);
Clazz_newMeth(C$, 'getPredefinedCursor$I', function (type) {
if (type < 0 || type > 13 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal cursor type"]);
}var c=C$.predefinedPrivate[type];
if (c == null ) {
C$.predefinedPrivate[type]=c=Clazz_new_(C$.c$$I,[type]);
}if (C$.predefined[type] == null ) {
C$.predefined[type]=c;
}return c;
}, 1);
Clazz_newMeth(C$, 'getSystemCustomCursor$S', function (name) {
return null;
}, 1);
Clazz_newMeth(C$, 'getDefaultCursor$', function () {
return C$.getPredefinedCursor$I(0);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (type) {
C$.$init$.apply(this);
if (type < 0 || type > 13 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal cursor type"]);
}this.type=type;
this.name="TODO_CURSOR";
this.name=$I$(1).getCursorName$java_awt_Cursor(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.$init$.apply(this);
this.type=-1;
this.name=name;
}, 1);
Clazz_newMeth(C$, 'getType$', function () {
return this.type;
});
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[" + this.getName$() + "]" ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "DefaultFocusTraversalPolicy", null, 'java.awt.ContainerOrderFocusTraversalPolicy');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) {
if (!(aComponent.isVisible$() && aComponent.isDisplayable$() && aComponent.isEnabled$() )) {
return false;
}if (!aComponent.isWindowOrJSApplet$()) {
for (var enableTest=aComponent.getParent$(); enableTest != null ; enableTest=enableTest.getParent$()) {
if (!(enableTest.isEnabled$() || enableTest.isLightweight$() )) {
return false;
}if (enableTest.isWindowOrJSApplet$()) {
break;
}}
}var focusable=aComponent.isFocusable$();
if (aComponent.isFocusTraversableOverridden$()) {
return focusable;
}var peer=aComponent.getPeer$();
return (peer != null && peer.isFocusable$() );
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.KeyboardFocusManager','sun.awt.AWTAccessor','java.util.LinkedList',['sun.awt.CausedFocusEvent','.Cause'],'sun.awt.AppContext',['java.awt.DefaultKeyboardFocusManager','.DefaultKeyboardFocusManagerSentEvent'],'sun.awt.SunToolkit','java.awt.SequencedEvent','java.awt.event.WindowEvent','sun.awt.CausedFocusEvent','java.awt.EventQueue','java.awt.AWTKeyStroke',['java.awt.DefaultKeyboardFocusManager','.TypeAheadMarker']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultKeyboardFocusManager", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.KeyboardFocusManager');
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
$I$(2).setDefaultKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_DefaultKeyboardFocusManagerAccessor(((P$.DefaultKeyboardFocusManager$1||
(function(){var C$=Clazz_newClass(P$, "DefaultKeyboardFocusManager$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, [['sun.awt.AWTAccessor','sun.awt.AWTAccessor.DefaultKeyboardFocusManagerAccessor']], 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['consumeNextKeyTyped$java_awt_DefaultKeyboardFocusManager$java_awt_event_KeyEvent','consumeNextKeyTyped$'], function (dkfm, e) {
p$1.consumeNextKeyTyped$java_awt_event_KeyEvent.apply(dkfm, [e]);
});
})()
), Clazz_new_(P$.DefaultKeyboardFocusManager$1.$init$, [this, null])));
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.realOppositeWindowWR=null;
this.realOppositeComponentWR=null;
this.inSendMessage=0;
this.enqueuedKeyEvents=null;
this.typeAheadMarkers=null;
this.consumeNextKeyTyped=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.realOppositeWindowWR=null;
this.realOppositeComponentWR=null;
this.enqueuedKeyEvents=Clazz_new_($I$(3));
this.typeAheadMarkers=Clazz_new_($I$(3));
}, 1);
Clazz_newMeth(C$, 'getOwningFrameDialog$java_awt_Window', function (window) {
var owindow;
while (window != null && !(Clazz_instanceOf((owindow=window), "javax.swing.JApplet") || Clazz_instanceOf(window, "java.awt.JSFrame") || Clazz_instanceOf(window, "java.awt.JSDialog") ) ){
window=window.getParent$();
}
return window;
}, p$1);
Clazz_newMeth(C$, 'restoreFocus$java_awt_event_FocusEvent$java_awt_Window', function (fe, newFocusedWindow) {
var realOppositeComponent=this.realOppositeComponentWR;
var vetoedComponent=fe.getComponent$();
if (newFocusedWindow != null && p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [newFocusedWindow, vetoedComponent, false]) ) {
} else if (realOppositeComponent != null && p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [realOppositeComponent, vetoedComponent, false]) ) {
} else if (fe.getOppositeComponent$() != null && p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [fe.getOppositeComponent$(), vetoedComponent, false]) ) {
} else {
this.clearGlobalFocusOwnerPriv$();
}}, p$1);
Clazz_newMeth(C$, 'restoreFocus$java_awt_event_WindowEvent', function (we) {
var realOppositeWindow=this.realOppositeWindowWR;
if (realOppositeWindow != null && p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [realOppositeWindow, null, false]) ) {
} else if (we.getOppositeWindow$() != null && p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [we.getOppositeWindow$(), null, false]) ) {
} else {
this.clearGlobalFocusOwnerPriv$();
}}, p$1);
Clazz_newMeth(C$, 'restoreFocus$java_awt_Window$java_awt_Component$Z', function (aWindow, vetoedComponent, clearOnFailure) {
var toFocus=$I$(1).getMostRecentFocusOwner$java_awt_Window(aWindow);
if (toFocus != null && toFocus !== vetoedComponent && p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [toFocus, vetoedComponent, false]) ) {
return true;
} else if (clearOnFailure) {
this.clearGlobalFocusOwnerPriv$();
return true;
} else {
return false;
}}, p$1);
Clazz_newMeth(C$, 'restoreFocus$java_awt_Component$Z', function (toFocus, clearOnFailure) {
return p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [toFocus, null, clearOnFailure]);
}, p$1);
Clazz_newMeth(C$, 'doRestoreFocus$java_awt_Component$java_awt_Component$Z', function (toFocus, vetoedComponent, clearOnFailure) {
if (toFocus !== vetoedComponent && toFocus.isShowing$() && toFocus.canBeFocusOwner$() && toFocus.requestFocus$Z$sun_awt_CausedFocusEvent_Cause(false, $I$(4).ROLLBACK) ) {
return true;
} else {
var nextFocus=toFocus.getNextFocusCandidate$();
if (nextFocus != null && nextFocus !== vetoedComponent && nextFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(4).ROLLBACK) ) {
return true;
} else if (clearOnFailure) {
this.clearGlobalFocusOwnerPriv$();
return true;
} else {
return false;
}}}, p$1);
Clazz_newMeth(C$, 'sendMessage$java_awt_Component$java_awt_AWTEvent', function (target, e) {
e.isPosted=true;
var myAppContext=$I$(5).getAppContext$();
var targetAppContext=target.appContext;
var se=Clazz_new_($I$(6).c$$java_awt_AWTEvent$sun_awt_AppContext,[e, myAppContext]);
if (myAppContext === targetAppContext ) {
se.dispatch$();
} else {
if (targetAppContext.isDisposed$()) {
return false;
}se.dispatch$();
}return se.dispatched;
}, 1);
Clazz_newMeth(C$, 'repostIfFollowsKeyEvents$java_awt_event_WindowEvent', function (e) {
if (!(Clazz_instanceOf(e, "sun.awt.TimedWindowEvent"))) {
return false;
}var we=e;
var time=we.getWhen$();
{
var ke=this.enqueuedKeyEvents.isEmpty$() ? null : this.enqueuedKeyEvents.getFirst$();
if (ke != null && time >= ke.getWhen$() ) {
var marker=this.typeAheadMarkers.isEmpty$() ? null : this.typeAheadMarkers.getFirst$();
if (marker != null ) {
var toplevel=marker.untilFocused.getContainingWindow$();
if (toplevel != null && toplevel.isFocused$() ) {
$I$(7).postEvent$sun_awt_AppContext$java_awt_AWTEvent($I$(5).getAppContext$(), Clazz_new_($I$(8).c$$java_awt_AWTEvent,[e]));
return true;
}}}}return false;
}, p$1);
Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (e) {
switch (e.getID$()) {
case 501:
case 500:
(this.peer).checkFrameFocusOnMouseDown$java_awt_AWTEvent(e);
return false;
case 502:
return false;
case 207:
{
if (p$1.repostIfFollowsKeyEvents$java_awt_event_WindowEvent.apply(this, [e])) {
break;
}var we=e;
var oldFocusedWindow=this.getGlobalFocusedWindow$();
var newFocusedWindow=we.getWindow$();
if (newFocusedWindow === oldFocusedWindow ) {
break;
}if (!(newFocusedWindow.isFocusableWindow$() && newFocusedWindow.isVisible$() && newFocusedWindow.isDisplayable$() )) {
p$1.restoreFocus$java_awt_event_WindowEvent.apply(this, [we]);
break;
}if (oldFocusedWindow != null ) {
var isEventDispatched=C$.sendMessage$java_awt_Component$java_awt_AWTEvent(oldFocusedWindow, Clazz_new_($I$(9).c$$java_awt_Window$I$java_awt_Window,[oldFocusedWindow, 208, newFocusedWindow]));
if (!isEventDispatched) {
this.setGlobalFocusOwner$java_awt_Component(null);
this.setGlobalFocusedWindow$java_awt_Window(null);
}}var newActiveWindow=p$1.getOwningFrameDialog$java_awt_Window.apply(this, [newFocusedWindow]);
var currentActiveWindow=this.getGlobalActiveWindow$();
if (newActiveWindow !== currentActiveWindow ) {
C$.sendMessage$java_awt_Component$java_awt_AWTEvent(newActiveWindow, Clazz_new_($I$(9).c$$java_awt_Window$I$java_awt_Window,[newActiveWindow, 205, currentActiveWindow]));
if (newActiveWindow !== this.getGlobalActiveWindow$() ) {
p$1.restoreFocus$java_awt_event_WindowEvent.apply(this, [we]);
break;
}}this.setGlobalFocusedWindow$java_awt_Window(newFocusedWindow);
if (newFocusedWindow !== this.getGlobalFocusedWindow$() ) {
p$1.restoreFocus$java_awt_event_WindowEvent.apply(this, [we]);
break;
}if (this.inSendMessage == 0) {
var toFocus=$I$(1).getMostRecentFocusOwner$java_awt_Window(newFocusedWindow);
if ((toFocus == null ) && newFocusedWindow.isFocusableWindow$() ) {
toFocus=newFocusedWindow.getFocusTraversalPolicy$().getInitialComponent$java_awt_Window(newFocusedWindow);
}var tempLost=null;
{
tempLost=newFocusedWindow.setTemporaryLostComponent$java_awt_Component(null);
}if (tempLost != null ) {
tempLost.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(4).ACTIVATION);
}if (toFocus != null && toFocus !== tempLost ) {
toFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(4).ACTIVATION);
}}var realOppositeWindow=this.realOppositeWindowWR;
if (realOppositeWindow !== we.getOppositeWindow$() ) {
we=Clazz_new_($I$(9).c$$java_awt_Window$I$java_awt_Window,[newFocusedWindow, 207, realOppositeWindow]);
}return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [newFocusedWindow, we]);
}case 205:
{
var we=e;
var oldActiveWindow=this.getGlobalActiveWindow$();
var newActiveWindow=we.getWindow$();
if (oldActiveWindow === newActiveWindow ) {
break;
}if (oldActiveWindow != null ) {
var isEventDispatched=C$.sendMessage$java_awt_Component$java_awt_AWTEvent(oldActiveWindow, Clazz_new_($I$(9).c$$java_awt_Window$I$java_awt_Window,[oldActiveWindow, 206, newActiveWindow]));
if (!isEventDispatched) {
this.setGlobalActiveWindow$java_awt_Window(null);
}if (this.getGlobalActiveWindow$() != null ) {
break;
}}this.setGlobalActiveWindow$java_awt_Window(newActiveWindow);
if (newActiveWindow !== this.getGlobalActiveWindow$() ) {
break;
}return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [newActiveWindow, we]);
}case 1004:
{
var fe=e;
var cause=(Clazz_instanceOf(fe, "sun.awt.CausedFocusEvent")) ? (fe).getCause$() : $I$(4).UNKNOWN;
var oldFocusOwner=this.getGlobalFocusOwner$();
var newFocusOwner=fe.getComponent$();
if (oldFocusOwner === newFocusOwner ) {
this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner);
break;
}if (oldFocusOwner != null ) {
var isEventDispatched=C$.sendMessage$java_awt_Component$java_awt_AWTEvent(oldFocusOwner, Clazz_new_($I$(10).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[oldFocusOwner, 1005, fe.isTemporary$(), newFocusOwner, cause]));
if (!isEventDispatched) {
this.setGlobalFocusOwner$java_awt_Component(null);
if (!fe.isTemporary$()) {
this.setGlobalPermanentFocusOwner$java_awt_Component(null);
}}}var newFocusedWindow=$I$(7).getContainingWindow$java_awt_Component(newFocusOwner);
var currentFocusedWindow=this.getGlobalFocusedWindow$();
if (newFocusedWindow != null && newFocusedWindow !== currentFocusedWindow ) {
C$.sendMessage$java_awt_Component$java_awt_AWTEvent(newFocusedWindow, Clazz_new_($I$(9).c$$java_awt_Window$I$java_awt_Window,[newFocusedWindow, 207, currentFocusedWindow]));
if (newFocusedWindow !== this.getGlobalFocusedWindow$() ) {
this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner);
break;
}}if (!(newFocusOwner.isFocusable$() && newFocusOwner.isShowing$() && (newFocusOwner.isEnabled$() || cause.equals$O($I$(4).UNKNOWN) ) )) {
this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner);
if ($I$(1).isAutoFocusTransferEnabled$()) {
if (newFocusedWindow == null ) {
p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, currentFocusedWindow]);
} else {
p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, newFocusedWindow]);
}P$.KeyboardFocusManager.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(newFocusedWindow, null);
}break;
}this.setGlobalFocusOwner$java_awt_Component(newFocusOwner);
if (newFocusOwner !== this.getGlobalFocusOwner$() ) {
this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner);
if ($I$(1).isAutoFocusTransferEnabled$()) {
p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, newFocusedWindow]);
}break;
}if (!fe.isTemporary$()) {
this.setGlobalPermanentFocusOwner$java_awt_Component(newFocusOwner);
if (newFocusOwner !== this.getGlobalPermanentFocusOwner$() ) {
this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner);
if ($I$(1).isAutoFocusTransferEnabled$()) {
p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, newFocusedWindow]);
}break;
}}var realOppositeComponent=this.realOppositeComponentWR;
if (realOppositeComponent != null && realOppositeComponent !== fe.getOppositeComponent$() ) {
fe=Clazz_new_($I$(10).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[newFocusOwner, 1004, fe.isTemporary$(), realOppositeComponent, cause]);
(fe).isPosted=true;
}return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [newFocusOwner, fe]);
}case 1005:
{
var fe=e;
var currentFocusOwner=this.getGlobalFocusOwner$();
if (currentFocusOwner == null ) {
break;
}if (currentFocusOwner === fe.getOppositeComponent$() ) {
break;
}this.setGlobalFocusOwner$java_awt_Component(null);
if (this.getGlobalFocusOwner$() != null ) {
p$1.restoreFocus$java_awt_Component$Z.apply(this, [currentFocusOwner, true]);
break;
}if (!fe.isTemporary$()) {
this.setGlobalPermanentFocusOwner$java_awt_Component(null);
if (this.getGlobalPermanentFocusOwner$() != null ) {
p$1.restoreFocus$java_awt_Component$Z.apply(this, [currentFocusOwner, true]);
break;
}} else {
var owningWindow=currentFocusOwner.getContainingWindow$();
if (owningWindow != null ) {
owningWindow.setTemporaryLostComponent$java_awt_Component(currentFocusOwner);
}}this.setNativeFocusOwner$java_awt_Component(null);
fe.setSource$O(currentFocusOwner);
this.realOppositeComponentWR=(fe.getOppositeComponent$() != null ) ? currentFocusOwner : null;
return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [currentFocusOwner, fe]);
}case 206:
{
var we=e;
var currentActiveWindow=this.getGlobalActiveWindow$();
if (currentActiveWindow == null ) {
break;
}if (currentActiveWindow !== e.getSource$() ) {
break;
}this.setGlobalActiveWindow$java_awt_Window(null);
if (this.getGlobalActiveWindow$() != null ) {
break;
}we.setSource$O(currentActiveWindow);
return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [currentActiveWindow, we]);
}case 208:
{
if (p$1.repostIfFollowsKeyEvents$java_awt_event_WindowEvent.apply(this, [e])) {
break;
}var we=e;
var currentFocusedWindow=this.getGlobalFocusedWindow$();
var losingFocusWindow=we.getWindow$();
var activeWindow=this.getGlobalActiveWindow$();
var oppositeWindow=we.getOppositeWindow$();
if (currentFocusedWindow == null ) {
break;
}if (this.inSendMessage == 0 && losingFocusWindow === activeWindow && oppositeWindow === currentFocusedWindow ) {
break;
}var currentFocusOwner=this.getGlobalFocusOwner$();
if (currentFocusOwner != null ) {
var oppositeComp=null;
if (oppositeWindow != null ) {
oppositeComp=oppositeWindow.getTemporaryLostComponent$();
if (oppositeComp == null ) {
oppositeComp=oppositeWindow.getMostRecentFocusOwner$();
}}if (oppositeComp == null ) {
oppositeComp=oppositeWindow;
}C$.sendMessage$java_awt_Component$java_awt_AWTEvent(currentFocusOwner, Clazz_new_($I$(10).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, true, oppositeComp, $I$(4).ACTIVATION]));
}this.setGlobalFocusedWindow$java_awt_Window(null);
if (this.getGlobalFocusedWindow$() != null ) {
p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [currentFocusedWindow, null, true]);
break;
}we.setSource$O(currentFocusedWindow);
this.realOppositeWindowWR=(oppositeWindow != null ) ? currentFocusedWindow : null;
p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [currentFocusedWindow, we]);
if (oppositeWindow == null ) {
C$.sendMessage$java_awt_Component$java_awt_AWTEvent(activeWindow, Clazz_new_($I$(9).c$$java_awt_Window$I$java_awt_Window,[activeWindow, 206, null]));
if (this.getGlobalActiveWindow$() != null ) {
p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [currentFocusedWindow, null, true]);
}}break;
}case 400:
case 401:
case 402:
return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [null, e]);
default:
return false;
}
return true;
});
Clazz_newMeth(C$, ['dispatchKeyEvent$java_awt_event_KeyEvent','dispatchKeyEvent$'], function (e) {
var focusOwner=((e).isPosted) ? this.getFocusOwner$() : e.getComponent$();
if (focusOwner != null && focusOwner.isShowing$() && focusOwner.canBeFocusOwner$() ) {
if (!e.isConsumed$()) {
var comp=e.getComponent$();
if (comp != null && comp.isEnabled$() ) {
this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(comp, e);
}}}var stopPostProcessing=false;
var processors=this.getKeyEventPostProcessors$();
if (processors != null ) {
for (var iter=processors.iterator$(); !stopPostProcessing && iter.hasNext$() ; ) {
stopPostProcessing=iter.next$().postProcessKeyEvent$(e);
}
}if (!stopPostProcessing) {
this.postProcessKeyEvent$java_awt_event_KeyEvent(e);
}var source=e.getComponent$();
var peer=source.getPeer$();
if (peer == null || Clazz_instanceOf(peer, "java.awt.peer.LightweightPeer") ) {
var target=source.getNativeContainer$();
if (target != null ) {
peer=target.getPeer$();
}}if (peer != null ) {
peer.handleEvent$java_awt_AWTEvent(e);
}return true;
});
Clazz_newMeth(C$, ['postProcessKeyEvent$java_awt_event_KeyEvent','postProcessKeyEvent$'], function (e) {
if (!e.isConsumed$()) {
var target=e.getComponent$();
var p=(Clazz_instanceOf(target, "java.awt.Container") ? target : target.getParent$());
if (p != null ) {
p.postProcessKeyEvent$java_awt_event_KeyEvent(e);
}}return true;
});
Clazz_newMeth(C$, 'pumpApprovedKeyEvents', function () {
var ke;
do {
ke=null;
{
if (this.enqueuedKeyEvents.size$() != 0) {
ke=this.enqueuedKeyEvents.getFirst$();
if (this.typeAheadMarkers.size$() != 0) {
var marker=this.typeAheadMarkers.getFirst$();
if (ke.getWhen$() > marker.after) {
ke=null;
}}if (ke != null ) {
this.enqueuedKeyEvents.removeFirst$();
}}}if (ke != null ) {
p$1.preDispatchKeyEvent$java_awt_event_KeyEvent.apply(this, [ke]);
}} while (ke != null );
}, p$1);
Clazz_newMeth(C$, 'typeAheadAssertions$java_awt_Component$java_awt_AWTEvent', function (target, e) {
p$1.pumpApprovedKeyEvents.apply(this, []);
switch (e.getID$()) {
case 400:
case 401:
case 402:
{
var ke=e;
{
if (e.isPosted && this.typeAheadMarkers.size$() != 0 ) {
var marker=this.typeAheadMarkers.getFirst$();
if (ke.getWhen$() > marker.after) {
this.enqueuedKeyEvents.addLast$TE(ke);
return true;
}}}return p$1.preDispatchKeyEvent$java_awt_event_KeyEvent.apply(this, [ke]);
}case 1004:
{
var found=false;
if (p$1.hasMarker$java_awt_Component.apply(this, [target])) {
for (var iter=this.typeAheadMarkers.iterator$(); iter.hasNext$(); ) {
if (iter.next$().untilFocused === target ) {
found=true;
} else if (found) {
break;
}iter.remove$();
}
} else {
}}this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(target, e);
p$1.pumpApprovedKeyEvents.apply(this, []);
return true;
default:
this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(target, e);
return true;
}
}, p$1);
Clazz_newMeth(C$, 'hasMarker$java_awt_Component', function (comp) {
for (var iter=this.typeAheadMarkers.iterator$(); iter.hasNext$(); ) {
if (iter.next$().untilFocused === comp ) {
return true;
}}
return false;
}, p$1);
Clazz_newMeth(C$, 'clearMarkers$', function () {
{
this.typeAheadMarkers.clear$();
}});
Clazz_newMeth(C$, 'preDispatchKeyEvent$java_awt_event_KeyEvent', function (ke) {
if ((ke).isPosted) {
var focusOwner=this.getFocusOwner$();
ke.setSource$O(((focusOwner != null ) ? focusOwner : this.getFocusedWindow$()));
}if (ke.getSource$() == null ) {
return true;
}$I$(11).setCurrentEventAndMostRecentTime$java_awt_AWTEvent(ke);
var dispatchers=this.getKeyEventDispatchers$();
if (dispatchers != null ) {
for (var iter=dispatchers.iterator$(); iter.hasNext$(); ) {
if (iter.next$().dispatchKeyEvent$(ke)) {
return true;
}}
}return this.dispatchKeyEvent$java_awt_event_KeyEvent(ke);
}, p$1);
Clazz_newMeth(C$, 'consumeNextKeyTyped$java_awt_event_KeyEvent', function (e) {
this.consumeNextKeyTyped=true;
}, p$1);
Clazz_newMeth(C$, 'consumeTraversalKey$java_awt_event_KeyEvent', function (e) {
e.consume$();
this.consumeNextKeyTyped=(e.getID$() == 401) && !e.isActionKey$() ;
}, p$1);
Clazz_newMeth(C$, 'consumeProcessedKeyEvent$java_awt_event_KeyEvent', function (e) {
if ((e.getID$() == 400) && this.consumeNextKeyTyped ) {
e.consume$();
this.consumeNextKeyTyped=false;
return true;
}return false;
}, p$1);
Clazz_newMeth(C$, 'processKeyEvent$java_awt_Component$java_awt_event_KeyEvent', function (focusedComponent, e) {
if (p$1.consumeProcessedKeyEvent$java_awt_event_KeyEvent.apply(this, [e])) {
return;
}if (e.getID$() == 400) {
return;
}if (focusedComponent.getFocusTraversalKeysEnabled$() && !e.isConsumed$() ) {
var stroke=$I$(12).getAWTKeyStrokeForEvent$java_awt_event_KeyEvent(e);
var oppStroke=$I$(12).getAWTKeyStroke$I$I$Z(stroke.getKeyCode$(), stroke.getModifiers$(), !stroke.isOnKeyRelease$());
var toTest;
var contains;
var containsOpp;
toTest=focusedComponent.getFocusTraversalKeys$I(0);
contains=toTest.contains$O(stroke);
containsOpp=toTest.contains$O(oppStroke);
if (contains || containsOpp ) {
p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]);
if (contains) {
this.focusNextComponent$java_awt_Component(focusedComponent);
}return;
} else if (e.getID$() == 401) {
this.consumeNextKeyTyped=false;
}toTest=focusedComponent.getFocusTraversalKeys$I(1);
contains=toTest.contains$O(stroke);
containsOpp=toTest.contains$O(oppStroke);
if (contains || containsOpp ) {
p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]);
if (contains) {
this.focusPreviousComponent$java_awt_Component(focusedComponent);
}return;
}toTest=focusedComponent.getFocusTraversalKeys$I(2);
contains=toTest.contains$O(stroke);
containsOpp=toTest.contains$O(oppStroke);
if (contains || containsOpp ) {
p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]);
if (contains) {
this.upFocusCycle$java_awt_Component(focusedComponent);
}return;
}if (!((Clazz_instanceOf(focusedComponent, "java.awt.Container")) && (focusedComponent).isFocusCycleRoot$() )) {
return;
}toTest=focusedComponent.getFocusTraversalKeys$I(3);
contains=toTest.contains$O(stroke);
containsOpp=toTest.contains$O(oppStroke);
if (contains || containsOpp ) {
p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]);
if (contains) {
this.downFocusCycle$java_awt_Container(focusedComponent);
}}}});
Clazz_newMeth(C$, 'enqueueKeyEvents$J$java_awt_Component', function (after, untilFocused) {
if (untilFocused == null ) {
return;
}var insertionIndex=0;
var i=this.typeAheadMarkers.size$();
var iter=this.typeAheadMarkers.listIterator$I(i);
for (; i > 0; i--) {
var marker=iter.previous$();
if (marker.after <= after) {
insertionIndex=i;
break;
}}
this.typeAheadMarkers.add$I$TE(insertionIndex, Clazz_new_($I$(13).c$$J$java_awt_Component,[after, untilFocused]));
});
Clazz_newMeth(C$, 'dequeueKeyEvents$J$java_awt_Component', function (after, untilFocused) {
if (untilFocused == null ) {
return;
}var marker;
var iter=this.typeAheadMarkers.listIterator$I((after >= 0) ? this.typeAheadMarkers.size$() : 0);
if (after < 0) {
while (iter.hasNext$()){
marker=iter.next$();
if (marker.untilFocused === untilFocused ) {
iter.remove$();
return;
}}
} else {
while (iter.hasPrevious$()){
marker=iter.previous$();
if (marker.untilFocused === untilFocused && marker.after == after ) {
iter.remove$();
return;
}}
}});
Clazz_newMeth(C$, 'discardKeyEvents$java_awt_Component', function (comp) {
if (comp == null ) {
return;
}var start=-1;
for (var iter=this.typeAheadMarkers.iterator$(); iter.hasNext$(); ) {
var marker=iter.next$();
var toTest=marker.untilFocused;
var match=(toTest === comp );
while (!match && toTest != null && !(Clazz_instanceOf(toTest, "java.awt.Window")) ){
toTest=toTest.getParent$();
match=(toTest === comp );
}
if (match) {
if (start < 0) {
start=marker.after;
}iter.remove$();
} else if (start >= 0) {
p$1.purgeStampedEvents$J$J.apply(this, [start, marker.after]);
start=-1;
}}
p$1.purgeStampedEvents$J$J.apply(this, [start, -1]);
});
Clazz_newMeth(C$, 'purgeStampedEvents$J$J', function (start, end) {
if (start < 0) {
return;
}for (var iter=this.enqueuedKeyEvents.iterator$(); iter.hasNext$(); ) {
var ke=iter.next$();
var time=ke.getWhen$();
if (start < time && (end < 0 || time <= end ) ) {
iter.remove$();
}if (end >= 0 && time > end ) {
break;
}}
}, p$1);
Clazz_newMeth(C$, 'focusPreviousComponent$java_awt_Component', function (aComponent) {
if (aComponent != null ) {
aComponent.transferFocusBackward$();
}});
Clazz_newMeth(C$, 'focusNextComponent$java_awt_Component', function (aComponent) {
if (aComponent != null ) {
aComponent.transferFocus$();
}});
Clazz_newMeth(C$, 'upFocusCycle$java_awt_Component', function (aComponent) {
if (aComponent != null ) {
aComponent.transferFocusUpCycle$();
}});
Clazz_newMeth(C$, 'downFocusCycle$java_awt_Container', function (aContainer) {
if (aContainer != null && aContainer.isFocusCycleRoot$() ) {
aContainer.transferFocusDownCycle$();
}});
;
(function(){var C$=Clazz_newClass(P$.DefaultKeyboardFocusManager, "TypeAheadMarker", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.after=0;
this.untilFocused=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$J$java_awt_Component', function (after, untilFocused) {
C$.$init$.apply(this);
this.after=after;
this.untilFocused=untilFocused;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return ">>> Marker after " + this.after + " on " + this.untilFocused ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultKeyboardFocusManager, "DefaultKeyboardFocusManagerSentEvent", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.SentEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_AWTEvent$sun_awt_AppContext', function (nested, toNotify) {
C$.superclazz.c$$java_awt_AWTEvent$sun_awt_AppContext.apply(this, [nested, toNotify]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'dispatch$', function () {
var manager=$I$(1).getCurrentKeyboardFocusManager$();
var defaultManager=(Clazz_instanceOf(manager, "java.awt.DefaultKeyboardFocusManager")) ? manager : null;
if (defaultManager != null ) {
{
defaultManager.inSendMessage++;
}}C$.superclazz.prototype.dispatch$.apply(this, []);
if (defaultManager != null ) {
{
defaultManager.inSendMessage--;
}}});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,['java.awt.Dialog','.ModalityType']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Dialog", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'swingjs.a2s.Dialog');
C$.DEFAULT_MODALITY_TYPE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.DEFAULT_MODALITY_TYPE=$I$(1).APPLICATION_MODAL;
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame', function (owner) {
C$.superclazz.c$$java_awt_Frame.apply(this, [owner]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$Z', function (owner, modal) {
C$.superclazz.c$$java_awt_Frame$Z.apply(this, [owner, modal]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$S', function (owner, title) {
C$.superclazz.c$$java_awt_Frame$S.apply(this, [owner, title]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z', function (owner, title, modal) {
C$.superclazz.c$$java_awt_Frame$S$Z.apply(this, [owner, title, modal]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) {
C$.superclazz.c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal, gc]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog', function (owner) {
C$.superclazz.c$$java_awt_Dialog.apply(this, [owner]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog$S', function (owner, title) {
C$.superclazz.c$$java_awt_Dialog$S$Z.apply(this, [owner, title, false]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z', function (owner, title, modal) {
C$.superclazz.c$$java_awt_Dialog$S$Z.apply(this, [owner, title, modal]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) {
C$.superclazz.c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal, gc]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window', function (owner) {
C$.superclazz.c$$java_awt_Window.apply(this, [owner]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$S', function (owner, title) {
C$.superclazz.c$$java_awt_Window$S.apply(this, [owner, title]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$java_awt_Dialog_ModalityType', function (owner, modalityType) {
C$.superclazz.c$$java_awt_Window$java_awt_Dialog_ModalityType.apply(this, [owner, modalityType]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType', function (owner, title, modalityType) {
C$.superclazz.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modalityType]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration', function (owner, title, modalityType, gc) {
C$.superclazz.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modalityType, gc]);
C$.$init$.apply(this);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.Dialog, "ModalityType", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "MODELESS", 0, []);
Clazz_newEnumConst($vals, C$.c$, "DOCUMENT_MODAL", 1, []);
Clazz_newEnumConst($vals, C$.c$, "APPLICATION_MODAL", 2, []);
Clazz_newEnumConst($vals, C$.c$, "TOOLKIT_MODAL", 3, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
;
(function(){var C$=Clazz_newClass(P$.Dialog, "ModalExclusionType", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "NO_EXCLUDE", 0, []);
Clazz_newEnumConst($vals, C$.c$, "APPLICATION_EXCLUDE", 1, []);
Clazz_newEnumConst($vals, C$.c$, "TOOLKIT_EXCLUDE", 2, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Dimension", null, 'java.awt.geom.Dimension2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.width=0;
this.height=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I.apply(this, [0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dimension', function (d) {
C$.c$$I$I.apply(this, [d.width, d.height]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (width, height) {
Clazz_super_(C$, this,1);
this.width=width;
this.height=height;
}, 1);
Clazz_newMeth(C$, 'getWidth$', function () {
return this.width;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.height;
});
Clazz_newMeth(C$, 'getSize$', function () {
return Clazz_new_(C$.c$$I$I,[this.width, this.height]);
});
Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) {
this.width=d.width;
this.height=d.height;
});
Clazz_newMeth(C$, 'setSize$I$I', function (width, height) {
this.width=width;
this.height=height;
});
Clazz_newMeth(C$, 'setSize$D$D', function (width, height) {
this.width=(Math.ceil(width)|0);
this.height=(Math.ceil(height)|0);
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (Clazz_instanceOf(obj, "java.awt.Dimension")) {
var d=obj;
return (this.width == d.width) && (this.height == d.height) ;
}return false;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var sum=this.width + this.height;
return (sum * (sum + 1)/2|0) + this.width;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[width=" + this.width + ",height=" + this.height + "]" ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.dnd.peer"),I$=[];
var C$=Clazz_newInterface(P$, "DropTargetPeer");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "ActionListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newClass(P$, "AdjustmentEvent", null, 'java.awt.AWTEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.adjustable=null;
this.value=0;
this.adjustmentType=0;
this.isAdjusting=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Adjustable$I$I$I', function (source, id, type, value) {
C$.c$$java_awt_Adjustable$I$I$I$Z.apply(this, [source, id, type, value, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Adjustable$I$I$I$Z', function (source, id, type, value, isAdjusting) {
C$.superclazz.c$$O$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.adjustable=source;
this.adjustmentType=type;
this.value=value;
this.isAdjusting=isAdjusting;
}, 1);
Clazz_newMeth(C$, 'getAdjustable$', function () {
return this.adjustable;
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, 'getAdjustmentType$', function () {
return this.adjustmentType;
});
Clazz_newMeth(C$, 'getValueIsAdjusting$', function () {
return this.isAdjusting;
});
Clazz_newMeth(C$, 'paramString$', function () {
var typeStr;
switch (this.id) {
case 601:
typeStr="ADJUSTMENT_VALUE_CHANGED";
break;
default:
typeStr="unknown type";
}
var adjTypeStr;
switch (this.adjustmentType) {
case 1:
adjTypeStr="UNIT_INCREMENT";
break;
case 2:
adjTypeStr="UNIT_DECREMENT";
break;
case 4:
adjTypeStr="BLOCK_INCREMENT";
break;
case 3:
adjTypeStr="BLOCK_DECREMENT";
break;
case 5:
adjTypeStr="TRACK";
break;
default:
adjTypeStr="unknown type";
}
return typeStr + ",adjType=" + adjTypeStr + ",value=" + this.value + ",isAdjusting=" + this.isAdjusting ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "AdjustmentListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "AWTEventListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newClass(P$, "ComponentAdapter", null, null, 'java.awt.event.ComponentListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) {
});
Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) {
});
Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) {
});
Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) {
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newClass(P$, "ComponentEvent", null, 'java.awt.AWTEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I', function (source, id) {
C$.superclazz.c$$O$I.apply(this, [source, id]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getComponent$', function () {
return (Clazz_instanceOf(this.source, "java.awt.Component")) ? this.source : null;
});
Clazz_newMeth(C$, 'paramString$', function () {
var typeStr;
var b=(this.source != null ? (this.source).getBounds$() : null);
switch (this.id) {
case 102:
typeStr="COMPONENT_SHOWN";
break;
case 103:
typeStr="COMPONENT_HIDDEN";
break;
case 100:
typeStr="COMPONENT_MOVED (" + b.x + "," + b.y + " " + b.width + "x" + b.height + ")" ;
break;
case 101:
typeStr="COMPONENT_RESIZED (" + b.x + "," + b.y + " " + b.width + "x" + b.height + ")" ;
break;
default:
typeStr="unknown type";
}
return typeStr;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "ComponentListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "ContainerListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[[0,'sun.awt.SunToolkit','sun.awt.AppContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "FocusEvent", null, 'java.awt.event.ComponentEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.temporary=false;
this.opposite=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I$Z$java_awt_Component', function (source, id, temporary, opposite) {
C$.superclazz.c$$java_awt_Component$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.temporary=temporary;
this.opposite=opposite;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I$Z', function (source, id, temporary) {
C$.c$$java_awt_Component$I$Z$java_awt_Component.apply(this, [source, id, temporary, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I', function (source, id) {
C$.c$$java_awt_Component$I$Z.apply(this, [source, id, false]);
}, 1);
Clazz_newMeth(C$, 'isTemporary$', function () {
return this.temporary;
});
Clazz_newMeth(C$, 'getOppositeComponent$', function () {
if (this.opposite == null ) {
return null;
}return ($I$(1).targetToAppContext$O(this.opposite) === $I$(2).getAppContext$() ) ? this.opposite : null;
});
Clazz_newMeth(C$, 'paramString$', function () {
var typeStr;
switch (this.id) {
case 1004:
typeStr="FOCUS_GAINED";
break;
case 1005:
typeStr="FOCUS_LOST";
break;
default:
typeStr="unknown type";
}
return typeStr + (this.temporary ? ",temporary" : ",permanent") + ",opposite=" + this.getOppositeComponent$() ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "FocusListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "HierarchyBoundsListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "HierarchyListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[[0,'swingjs.JSToolkit','StringBuilder','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "InputEvent", null, 'java.awt.event.ComponentEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.when=0;
this.modifiers=0;
this.canAccessSystemClipboard=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I', function (source, id, when, modifiers) {
C$.superclazz.c$$java_awt_Component$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.when=when;
this.modifiers=modifiers;
this.canAccessSystemClipboard=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'isShiftDown$', function () {
return (this.modifiers & 1) != 0;
});
Clazz_newMeth(C$, 'isControlDown$', function () {
return (this.modifiers & 2) != 0;
});
Clazz_newMeth(C$, 'isMetaDown$', function () {
return (this.modifiers & 4) != 0;
});
Clazz_newMeth(C$, 'isAltDown$', function () {
return (this.modifiers & 8) != 0;
});
Clazz_newMeth(C$, 'isAltGraphDown$', function () {
return (this.modifiers & 32) != 0;
});
Clazz_newMeth(C$, 'getWhen$', function () {
return this.when;
});
Clazz_newMeth(C$, 'getModifiers$', function () {
return this.modifiers & (-16321);
});
Clazz_newMeth(C$, 'getModifiersEx$', function () {
return this.modifiers & ~63;
});
Clazz_newMeth(C$, 'consume$', function () {
var ui=(this.source).getUI$();
if (this.bdata != null && ui != null && ui.buttonListener == null && ((!this.bdata.doPropagate ||false)) ) {
$I$(1).consumeEvent$O(this);
}this.consumed=true;
});
Clazz_newMeth(C$, 'isConsumed$', function () {
return this.consumed;
});
Clazz_newMeth(C$, 'getModifiersExText$I', function (modifiers) {
var buf=Clazz_new_($I$(2));
if ((modifiers & 256) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.meta", "Meta"));
buf.append$S("+");
}if ((modifiers & 128) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.control", "Ctrl"));
buf.append$S("+");
}if ((modifiers & 512) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.alt", "Alt"));
buf.append$S("+");
}if ((modifiers & 64) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.shift", "Shift"));
buf.append$S("+");
}if ((modifiers & 8192) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.altGraph", "Alt Graph"));
buf.append$S("+");
}if ((modifiers & 1024) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.button1", "Button1"));
buf.append$S("+");
}if ((modifiers & 2048) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.button2", "Button2"));
buf.append$S("+");
}if ((modifiers & 4096) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.button3", "Button3"));
buf.append$S("+");
}if (buf.length$() > 0) {
buf.setLength$I(buf.length$() - 1);
}return buf.toString();
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "InputMethodListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newClass(P$, "InvocationEvent", null, 'java.awt.AWTEvent', 'java.awt.ActiveEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.runnable=null;
this.notifier=null;
this.catchExceptions=false;
this.exception=null;
this.throwable=null;
this.when=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.exception=null;
this.throwable=null;
}, 1);
Clazz_newMeth(C$, 'c$$O$Runnable', function (source, runnable) {
C$.c$$O$I$Runnable$O$Z.apply(this, [source, 1200, runnable, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$O$Runnable$O$Z', function (source, runnable, notifier, catchThrowables) {
C$.c$$O$I$Runnable$O$Z.apply(this, [source, 1200, runnable, notifier, catchThrowables]);
}, 1);
Clazz_newMeth(C$, 'c$$O$I$Runnable$O$Z', function (source, id, runnable, notifier, catchThrowables) {
C$.superclazz.c$$O$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.runnable=runnable;
this.notifier=notifier;
this.catchExceptions=catchThrowables;
this.when=System.currentTimeMillis$();
}, 1);
Clazz_newMeth(C$, 'dispatch$', function () {
if (this.catchExceptions) {
try {
this.runnable.run$();
} catch (t) {
if (Clazz_instanceOf(t, "java.lang.Exception")) {
this.exception=t;
}this.throwable=t;
}
} else {
this.runnable.run$();
}if (this.notifier != null ) {
{
this.notifier.notifyAll$();
}}});
Clazz_newMeth(C$, 'getException$', function () {
return (this.catchExceptions) ? this.exception : null;
});
Clazz_newMeth(C$, 'getThrowable$', function () {
return (this.catchExceptions) ? this.throwable : null;
});
Clazz_newMeth(C$, 'getWhen$', function () {
return this.when;
});
Clazz_newMeth(C$, 'paramString$', function () {
var typeStr;
switch (this.id) {
case 1200:
typeStr="INVOCATION_DEFAULT";
break;
default:
typeStr="unknown type";
}
return typeStr + ",runnable=" + this.runnable + ",notifier=" + this.notifier + ",catchExceptions=" + this.catchExceptions + ",when=" + this.when ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newClass(P$, "ItemEvent", null, 'java.awt.AWTEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.item=null;
this.stateChange=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_ItemSelectable$I$O$I', function (source, id, item, stateChange) {
C$.superclazz.c$$O$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.item=item;
this.stateChange=stateChange;
}, 1);
Clazz_newMeth(C$, 'getItemSelectable$', function () {
return this.source;
});
Clazz_newMeth(C$, 'getItem$', function () {
return this.item;
});
Clazz_newMeth(C$, 'getStateChange$', function () {
return this.stateChange;
});
Clazz_newMeth(C$, 'paramString$', function () {
var typeStr;
switch (this.id) {
case 701:
typeStr="ITEM_STATE_CHANGED";
break;
default:
typeStr="unknown type";
}
var stateStr;
switch (this.stateChange) {
case 1:
stateStr="SELECTED";
break;
case 2:
stateStr="DESELECTED";
break;
default:
stateStr="unknown type";
}
return typeStr + ",item=" + this.item + ",stateChange=" + stateStr ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "ItemListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "KeyListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),p$1={},I$=[[0,'java.awt.Point','StringBuilder','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "MouseEvent", null, 'java.awt.event.InputEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
this.xAbs=0;
this.yAbs=0;
this.clickCount=0;
this.button=0;
this.popupTrigger=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.popupTrigger=false;
}, 1);
Clazz_newMeth(C$, 'getLocationOnScreen$', function () {
return Clazz_new_($I$(1).c$$I$I,[this.xAbs, this.yAbs]);
});
Clazz_newMeth(C$, 'getXOnScreen$', function () {
return this.xAbs;
});
Clazz_newMeth(C$, 'getYOnScreen$', function () {
return this.yAbs;
});
Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I$I$I$I$Z$I', function (source, id, when, modifiers, x, y, clickCount, popupTrigger, button) {
C$.c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I.apply(this, [source, id, when, modifiers, x, y, 0, 0, clickCount, popupTrigger, button]);
var eventLocationOnScreen=Clazz_new_($I$(1).c$$I$I,[0, 0]);
try {
eventLocationOnScreen=source.getLocationOnScreen$();
this.xAbs=eventLocationOnScreen.x + x;
this.yAbs=eventLocationOnScreen.y + y;
} catch (e) {
if (Clazz_exceptionOf(e,"java.awt.IllegalComponentStateException")){
this.xAbs=0;
this.yAbs=0;
} else {
throw e;
}
}
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I$I$I$I$Z', function (source, id, when, modifiers, x, y, clickCount, popupTrigger) {
C$.c$$java_awt_Component$I$J$I$I$I$I$Z$I.apply(this, [source, id, when, modifiers, x, y, clickCount, popupTrigger, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I', function (source, id, when, modifiers, x, y, xAbs, yAbs, clickCount, popupTrigger, button) {
C$.superclazz.c$$java_awt_Component$I$J$I.apply(this, [source, id, when, modifiers]);
C$.$init$.apply(this);
this.x=x;
this.y=y;
this.xAbs=xAbs;
this.yAbs=yAbs;
this.clickCount=clickCount;
this.popupTrigger=popupTrigger;
if (button < 0 || button > 3 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid button value"]);
}this.button=button;
if ((this.getModifiers$() != 0) && (this.getModifiersEx$() == 0) ) {
p$1.setNewModifiers.apply(this, []);
} else if ((this.getModifiers$() == 0) && (this.getModifiersEx$() != 0 || button != 0 ) ) {
p$1.setOldModifiers.apply(this, []);
}}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'getPoint$', function () {
var x;
var y;
{
x=this.x;
y=this.y;
}return Clazz_new_($I$(1).c$$I$I,[x, y]);
});
Clazz_newMeth(C$, 'translatePoint$I$I', function (x, y) {
this.x+=x;
this.y+=y;
});
Clazz_newMeth(C$, 'getClickCount$', function () {
return this.clickCount;
});
Clazz_newMeth(C$, 'getButton$', function () {
return this.button;
});
Clazz_newMeth(C$, 'isPopupTrigger$', function () {
return this.popupTrigger;
});
Clazz_newMeth(C$, 'getMouseModifiersText$I', function (modifiers) {
var buf=Clazz_new_($I$(2));
if ((modifiers & 8) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.alt", "Alt"));
buf.append$S("+");
}if ((modifiers & 4) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.meta", "Meta"));
buf.append$S("+");
}if ((modifiers & 2) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.control", "Ctrl"));
buf.append$S("+");
}if ((modifiers & 1) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.shift", "Shift"));
buf.append$S("+");
}if ((modifiers & 32) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.altGraph", "Alt Graph"));
buf.append$S("+");
}if ((modifiers & 16) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.button1", "Button1"));
buf.append$S("+");
}if ((modifiers & 8) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.button2", "Button2"));
buf.append$S("+");
}if ((modifiers & 4) != 0) {
buf.append$S($I$(3).getProperty$S$S("AWT.button3", "Button3"));
buf.append$S("+");
}if (buf.length$() > 0) {
buf.setLength$I(buf.length$() - 1);
}return buf.toString();
}, 1);
Clazz_newMeth(C$, 'paramString$', function () {
var str=Clazz_new_($I$(2).c$$I,[80]);
str.append$S(C$.getIdString$I(this.id));
str.append$S(",(" + this.x).append$S("," + this.y).append$S("," + this.when).append$S(")");
str.append$S(",absolute(").append$S("" + this.xAbs).append$S(",").append$S("" + this.yAbs).append$S(")");
str.append$S(",button=").append$S("" + this.getButton$());
if (this.getModifiers$() != 0) {
str.append$S(",modifiers=").append$S(C$.getMouseModifiersText$I(this.modifiers));
}if (this.getModifiersEx$() != 0) {
str.append$S(",extModifiers=").append$S(P$.InputEvent.getModifiersExText$I(this.modifiers));
}str.append$S(",clickCount=").append$S("" + this.clickCount);
return str.toString();
});
Clazz_newMeth(C$, 'getIdString$I', function (id) {
switch (id) {
case 501:
return "MOUSE_PRESSED";
case 502:
return "MOUSE_RELEASED";
case 500:
return "MOUSE_CLICKED";
case 504:
return "MOUSE_ENTERED";
case 505:
return "MOUSE_EXITED";
case 503:
return "MOUSE_MOVED";
case 506:
return "MOUSE_DRAGGED";
case 507:
return "MOUSE_WHEEL";
default:
return "unknown type";
}
}, 1);
Clazz_newMeth(C$, 'setNewModifiers', function () {
if (this.id == 501 || this.id == 502 || this.id == 500 ) {
if ((this.modifiers & 16) != 0) {
this.button=1;
this.modifiers&=~4;
if (this.id != 501) {
this.modifiers&=~1024;
}} else if ((this.modifiers & 4) != 0) {
this.button=3;
this.modifiers&=~16;
if (this.id != 501) {
this.modifiers&=~(4352);
}} else if ((this.modifiers & 8) != 0) {
this.button=2;
this.modifiers&=~16;
if (this.id != 501) {
this.modifiers&=~2048;
}}if ((this.modifiers & 8) != 0) {
this.modifiers|=512;
}if ((this.modifiers & 1) != 0) {
this.modifiers|=64;
}if ((this.modifiers & 2) != 0) {
this.modifiers|=128;
}if ((this.modifiers & 32) != 0) {
this.modifiers|=8192;
}if (this.id == 501) {
if ((this.modifiers & 16) != 0) {
this.modifiers|=1024;
}if ((this.modifiers & 8) != 0) {
this.modifiers|=2048;
}if ((this.modifiers & 4) != 0) {
this.modifiers|=4096;
}if ((this.modifiers & 4) != 0) {
this.modifiers|=256;
}}}}, p$1);
Clazz_newMeth(C$, 'setOldModifiers', function () {
if (this.id == 501 || this.id == 502 || this.id == 500 ) {
switch (this.button) {
case 1:
this.modifiers|=16;
break;
case 2:
this.modifiers|=8;
break;
case 3:
this.modifiers|=4;
break;
}
} else {
if ((this.modifiers & 1024) != 0) {
this.modifiers|=16;
}if ((this.modifiers & 2048) != 0) {
this.modifiers|=8;
}if ((this.modifiers & 4096) != 0) {
this.modifiers|=4;
}}if ((this.modifiers & 512) != 0) {
this.modifiers|=8;
}if ((this.modifiers & 256) != 0) {
this.modifiers|=4;
}if ((this.modifiers & 64) != 0) {
this.modifiers|=1;
}if ((this.modifiers & 128) != 0) {
this.modifiers|=2;
}if ((this.modifiers & 8192) != 0) {
this.modifiers|=32;
}}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "MouseListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "MouseMotionListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "MouseWheelListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "TextListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newClass(P$, "WindowAdapter", null, null, ['java.awt.event.WindowListener', 'java.awt.event.WindowStateListener', 'java.awt.event.WindowFocusListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, ['windowStateChanged$java_awt_event_WindowEvent','windowStateChanged$'], function (e) {
});
Clazz_newMeth(C$, 'windowGainedFocus$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowLostFocus$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[[0,'sun.awt.SunToolkit','sun.awt.AppContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "WindowEvent", null, 'java.awt.event.ComponentEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.opposite=null;
this.oldState=0;
this.newState=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$I$java_awt_Window$I$I', function (source, id, opposite, oldState, newState) {
C$.superclazz.c$$java_awt_Component$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.opposite=opposite;
this.oldState=oldState;
this.newState=newState;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$I$java_awt_Window', function (source, id, opposite) {
C$.c$$java_awt_Window$I$java_awt_Window$I$I.apply(this, [source, id, opposite, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$I$I$I', function (source, id, oldState, newState) {
C$.c$$java_awt_Window$I$java_awt_Window$I$I.apply(this, [source, id, null, oldState, newState]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$I', function (source, id) {
C$.c$$java_awt_Window$I$java_awt_Window$I$I.apply(this, [source, id, null, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'getWindow$', function () {
return ((this.source).isWindowOrJSApplet$()) ? this.source : null;
});
Clazz_newMeth(C$, 'getOppositeWindow$', function () {
if (this.opposite == null ) {
return null;
}return ($I$(1).targetToAppContext$O(this.opposite) === $I$(2).getAppContext$() ) ? this.opposite : null;
});
Clazz_newMeth(C$, 'getOldState$', function () {
return this.oldState;
});
Clazz_newMeth(C$, 'getNewState$', function () {
return this.newState;
});
Clazz_newMeth(C$, 'paramString$', function () {
var typeStr;
switch (this.id) {
case 200:
typeStr="WINDOW_OPENED";
break;
case 201:
typeStr="WINDOW_CLOSING";
break;
case 202:
typeStr="WINDOW_CLOSED";
break;
case 203:
typeStr="WINDOW_ICONIFIED";
break;
case 204:
typeStr="WINDOW_DEICONIFIED";
break;
case 205:
typeStr="WINDOW_ACTIVATED";
break;
case 206:
typeStr="WINDOW_DEACTIVATED";
break;
case 207:
typeStr="WINDOW_GAINED_FOCUS";
break;
case 208:
typeStr="WINDOW_LOST_FOCUS";
break;
case 209:
typeStr="WINDOW_STATE_CHANGED";
break;
default:
typeStr="unknown type";
}
typeStr += ",opposite=" + this.getOppositeWindow$() + ",oldState=" + this.oldState + ",newState=" + this.newState ;
return typeStr;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "WindowFocusListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "WindowListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[];
var C$=Clazz_newInterface(P$, "WindowStateListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Component',['java.awt.EventFilter','.FilterAction'],'sun.awt.SunToolkit','javajs.util.Lst','swingjs.JSToolkit',['java.awt.EventDispatchThread','.StopDispatchEvent'],'Thread',['java.awt.EventDispatchThread','.HierarchyEventFilter'],'sun.awt.AWTAutoShutdown']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "EventDispatchThread", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javajs.util.JSThread');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.theQueue=null;
this.eventFilters=null;
this.modalFiltersCount=0;
this.filter=null;
this.cond=null;
this.id=0;
this.doDispatch=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.eventFilters=Clazz_new_($I$(4));
this.modalFiltersCount=0;
this.doDispatch=true;
}, 1);
Clazz_newMeth(C$, 'myInit$', function () {
this.addEventFilter$java_awt_EventFilter(this.filter);
return true;
});
Clazz_newMeth(C$, 'isLooping$', function () {
return (this.doDispatch && (this.cond == null || this.cond.evaluate$() ) && !this.isInterrupted$() || (this.doDispatch=false) );
});
Clazz_newMeth(C$, 'myLoop$', function () {
var myid=this.id;
var r=((P$.EventDispatchThread$1||
(function(){var C$=Clazz_newClass(P$, "EventDispatchThread$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
this.b$['java.awt.EventDispatchThread'].pumpOneEventForFilters$I.apply(this.b$['java.awt.EventDispatchThread'], [this.$finals$.myid]);
});
})()
), Clazz_new_(P$.EventDispatchThread$1.$init$, [this, {myid: myid}]));
var me=this;
var mode=1;
var f=function() {r.run$();me.run1$I(mode)} ||null;
$I$(5).dispatch$O$I$I(f, 0, 0);
return (this.doDispatch=false);
});
Clazz_newMeth(C$, 'getDelayMillis$', function () {
return 0;
});
Clazz_newMeth(C$, 'whenDone$', function () {
});
Clazz_newMeth(C$, 'doFinally$', function () {
if (!this.doDispatch) p$1.finish.apply(this, []);
});
Clazz_newMeth(C$, 'onException$Exception', function (e) {
});
Clazz_newMeth(C$, 'c$$ThreadGroup$S$java_awt_EventQueue', function (group, name, queue) {
C$.superclazz.c$$ThreadGroup$S.apply(this, [group, name]);
C$.$init$.apply(this);
this.theQueue=queue;
}, 1);
Clazz_newMeth(C$, 'stopDispatchingImpl$Z', function (wait) {
var stopEvent=Clazz_new_($I$(6), [this, null]);
if ($I$(7).currentThread$() !== this ) {
this.theQueue.postEventPrivate$java_awt_AWTEvent(stopEvent);
if (wait) {
try {
this.join$();
} catch (e) {
if (Clazz_exceptionOf(e,"InterruptedException")){
} else {
throw e;
}
}
}} else {
stopEvent.dispatch$();
}{
if (this.theQueue.getDispatchThread$() === this ) {
this.theQueue.detachDispatchThread$();
}}});
Clazz_newMeth(C$, 'stopDispatching$', function () {
this.stopDispatchingImpl$Z(true);
});
Clazz_newMeth(C$, 'stopDispatchingLater$', function () {
this.stopDispatchingImpl$Z(false);
});
Clazz_newMeth(C$, 'start$', function () {
C$.superclazz.prototype.start$.apply(this, []);
});
Clazz_newMeth(C$, 'run$', function () {
this.pumpEvents$I$java_awt_Conditional(-1, null);
});
Clazz_newMeth(C$, 'pumpEvents$I$java_awt_Conditional', function (id, cond) {
this.pumpEventsForHierarchy$I$java_awt_Conditional$java_awt_Component(id, cond, null);
});
Clazz_newMeth(C$, 'pumpEventsForHierarchy$I$java_awt_Conditional$java_awt_Component', function (id, cond, modalComponent) {
this.pumpEventsForFilter$I$java_awt_Conditional$java_awt_EventFilter(id, cond, Clazz_new_($I$(8).c$$java_awt_Component,[modalComponent]));
});
Clazz_newMeth(C$, 'pumpEventsForFilter$I$java_awt_Conditional$java_awt_EventFilter', function (id, cond, filter) {
this.filter=filter;
this.cond=cond;
this.id=id;
this.run1$I(0);
});
Clazz_newMeth(C$, 'dispatchAndReturn$Runnable$I', function (r, mode) {
var me=this;
var f=function() {r.run$();me.run1$I(mode)}||null;
$I$(5).dispatch$O$I$I(f, 0, 0);
});
Clazz_newMeth(C$, 'finish', function () {
this.doDispatch=false;
this.removeEventFilter$java_awt_EventFilter(this.filter);
{
if (this.theQueue.getDispatchThread$() === this ) {
this.theQueue.detachDispatchThread$();
}if (this.theQueue.peekEvent$() != null || !$I$(3).isPostEventQueueEmpty$() ) {
this.theQueue.initDispatchThread$();
}$I$(9).getInstance$().notifyThreadFree$Thread(this);
}}, p$1);
Clazz_newMeth(C$, 'addEventFilter$java_awt_EventFilter', function (filter) {
{
if (!this.eventFilters.contains$O(filter)) {
if (Clazz_instanceOf(filter, "java.awt.ModalEventFilter")) {
var newFilter=filter;
var k=0;
for (k=0; k < this.eventFilters.size$(); k++) {
var f=this.eventFilters.get$I(k);
if (Clazz_instanceOf(f, "java.awt.ModalEventFilter")) {
var cf=f;
if (cf.compareTo$java_awt_ModalEventFilter(newFilter) > 0) {
break;
}}}
this.eventFilters.add$I$TE(k, filter);
this.modalFiltersCount++;
} else {
this.eventFilters.addLast$TV(filter);
}}}});
Clazz_newMeth(C$, 'removeEventFilter$java_awt_EventFilter', function (filter) {
{
if (this.eventFilters.contains$O(filter)) {
if (Clazz_instanceOf(filter, "java.awt.ModalEventFilter")) {
this.modalFiltersCount--;
}this.eventFilters.removeObj$O(filter);
}}});
Clazz_newMeth(C$, 'pumpOneEventForFilters$I', function (id) {
try {
var event;
var eventOK;
do {
event=(id == -1) ? this.theQueue.getNextEvent$() : this.theQueue.getNextEventForID$I(id);
if (event == null ) return (this.doDispatch=false);
eventOK=true;
{
for (var i=this.eventFilters.size$() - 1; i >= 0; i--) {
var f=this.eventFilters.get$I(i);
var accept=f.acceptEvent$(event);
if (accept === $I$(2).REJECT ) {
eventOK=false;
break;
} else if (accept === $I$(2).ACCEPT_IMMEDIATELY ) {
break;
}}
}if (!eventOK) {
event.consume$();
}} while (eventOK == false );
this.theQueue.dispatchEvent$java_awt_AWTEvent(event);
return this.doDispatch=true;
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"ThreadDeath")){
var death = e$$;
{
return this.doDispatch=false;
}
} else if (Clazz_exceptionOf(e$$,"InterruptedException")){
var interruptedException = e$$;
{
return this.doDispatch=false;
}
} else {
var e = e$$;
{
p$1.processException$Throwable$Z.apply(this, [e, this.modalFiltersCount > 0]);
}
}
}
return this.doDispatch=true;
});
Clazz_newMeth(C$, 'processException$Throwable$Z', function (e, isModal) {
if (!p$1.handleException$Throwable.apply(this, [e])) {
if (isModal) {
System.err.println$S("Exception occurred during event dispatching:");
e.printStackTrace$();
} else if (Clazz_instanceOf(e, "java.lang.RuntimeException")) {
throw e;
} else if (Clazz_instanceOf(e, "java.lang.Error")) {
throw e;
} else {
var isTypeError=(!!e.stack ||false);
if (isTypeError) {
e.printStackTrace$();
}}}}, p$1);
Clazz_newMeth(C$, 'handleException$Throwable', function (thrown) {
return false;
}, p$1);
Clazz_newMeth(C$, 'isDispatching$java_awt_EventQueue', function (eq) {
return this.theQueue.equals$O(eq);
});
Clazz_newMeth(C$, 'getEventQueue$', function () {
return this.theQueue;
});
;
(function(){var C$=Clazz_newClass(P$.EventDispatchThread, "StopDispatchEvent", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.awt.AWTEvent', 'java.awt.ActiveEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$O$I.apply(this, [this.this$0, 0]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'dispatch$', function () {
this.this$0.doDispatch=false;
});
})()
;
(function(){var C$=Clazz_newClass(P$.EventDispatchThread, "HierarchyEventFilter", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.awt.EventFilter');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.modalComponent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component', function (modalComponent) {
C$.$init$.apply(this);
this.modalComponent=modalComponent;
}, 1);
Clazz_newMeth(C$, ['acceptEvent$java_awt_AWTEvent','acceptEvent$'], function (event) {
if (this.modalComponent != null ) {
var eventID=event.getID$();
var mouseEvent=(eventID >= 500) && (eventID <= 507) ;
var actionEvent=(eventID >= 1001) && (eventID <= 1001) ;
var windowClosingEvent=(eventID == 201);
if ($I$(1).isInstanceOf$O$S(this.modalComponent, "javax.swing.JInternalFrame")) {
return windowClosingEvent ? $I$(2).REJECT : $I$(2).ACCEPT;
}if (mouseEvent || actionEvent || windowClosingEvent ) {
var o=event.getSource$();
if (Clazz_instanceOf(o, "sun.awt.ModalExclude")) {
return $I$(2).ACCEPT;
} else if (Clazz_instanceOf(o, "java.awt.Component")) {
var c=o;
var modalExcluded=false;
if (Clazz_instanceOf(this.modalComponent, "java.awt.Container")) {
while (c !== this.modalComponent && c != null ){
if ((Clazz_instanceOf(c, "java.awt.Window")) && ($I$(3).isModalExcluded$java_awt_Window(c)) ) {
modalExcluded=true;
break;
}c=c.getParent$();
}
}if (!modalExcluded && (c !== this.modalComponent ) ) {
return $I$(2).REJECT;
}}}}return $I$(2).ACCEPT;
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "EventFilter", function(){
});
;
(function(){var C$=Clazz_newClass(P$.EventFilter, "FilterAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "ACCEPT", 0, []);
Clazz_newEnumConst($vals, C$.c$, "REJECT", 1, []);
Clazz_newEnumConst($vals, C$.c$, "ACCEPT_IMMEDIATELY", 2, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Queue','Thread','sun.awt.SunToolkit','sun.awt.AWTAutoShutdown','java.awt.EventQueueItem','swingjs.JSToolkit','java.awt.Toolkit','sun.awt.AppContext','java.awt.EventDispatchThread','java.awt.event.InvocationEvent','Error']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "EventQueue");
C$.threadInitNumber=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.queues=null;
this.nextQueue=null;
this.previousQueue=null;
this.dispatchThread=null;
this.threadGroup=null;
this.mostRecentEventTime=0;
this.currentEvent=null;
this.waitForID=0;
this.name=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.queues=Clazz_array($I$(1), [4]);
this.threadGroup=$I$(2).currentThread$().getThreadGroup$();
this.mostRecentEventTime=System.currentTimeMillis$();
this.name="AWT-EventQueue-" + C$.nextThreadNum$();
}, 1);
Clazz_newMeth(C$, 'nextThreadNum$', function () {
return C$.threadInitNumber++;
}, 1);
Clazz_newMeth(C$, 'noEvents$java_awt_EventQueue', function (eventQueue) {
return p$1.noEvents.apply(eventQueue, []);
}, 1);
Clazz_newMeth(C$, 'getNextQueue$java_awt_EventQueue', function (eventQueue) {
return eventQueue.nextQueue;
}, 1);
Clazz_newMeth(C$, 'removeSourceEvents$java_awt_EventQueue$O$Z', function (eventQueue, source, removeAllEvents) {
eventQueue.removeSourceEvents$O$Z(source, removeAllEvents);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
for (var i=0; i < 4; i++) {
this.queues[i]=Clazz_new_($I$(1));
}
}, 1);
Clazz_newMeth(C$, 'postEvent$java_awt_AWTEvent', function (event) {
$I$(3).flushPendingEvents$();
this.postEventPrivate$java_awt_AWTEvent(event);
});
Clazz_newMeth(C$, 'postEventPrivate$java_awt_AWTEvent', function (theEvent) {
theEvent.isPosted=true;
{
if (this.dispatchThread == null && this.nextQueue == null ) {
if (theEvent.getSource$() === $I$(4).getInstance$() ) {
return;
} else {
this.initDispatchThread$();
}}if (this.nextQueue != null ) {
this.nextQueue.postEventPrivate$java_awt_AWTEvent(theEvent);
return;
}p$1.postEventNow$java_awt_AWTEvent$I.apply(this, [theEvent, C$.getPriority$java_awt_AWTEvent(theEvent)]);
}});
Clazz_newMeth(C$, 'getPriority$java_awt_AWTEvent', function (theEvent) {
if (Clazz_instanceOf(theEvent, "sun.awt.PeerEvent")) {
var flags=(theEvent).getFlags$();
if ((flags & 2) != 0) return 3;
if ((flags & 1) != 0) return 2;
if ((flags & 4) != 0) return 0;
}switch (theEvent.getID$()) {
case 1201:
case 800:
case 801:
return 0;
default:
return 1;
}
}, 1);
Clazz_newMeth(C$, 'postEventNow$java_awt_AWTEvent$I', function (theEvent, priority) {
if (p$1.coalesceEvent$java_awt_AWTEvent$I.apply(this, [theEvent, priority])) {
return;
}var newItem=Clazz_new_($I$(5).c$$java_awt_AWTEvent,[theEvent]);
p$1.cacheEQItem$java_awt_EventQueueItem.apply(this, [newItem]);
if (this.queues[priority].head == null ) {
var shouldNotify=p$1.noEvents.apply(this, []);
this.queues[priority].head=this.queues[priority].tail=newItem;
if (shouldNotify) {
if (theEvent.getSource$() !== $I$(4).getInstance$() ) {
$I$(4).getInstance$().notifyThreadBusy$Thread(this.dispatchThread);
}}} else {
this.queues[priority].tail.next=newItem;
this.queues[priority].tail=newItem;
}}, p$1);
Clazz_newMeth(C$, 'coalescePaintEvent$java_awt_event_PaintEvent', function (e) {
var sourcePeer=(e.getSource$()).peer;
if (sourcePeer != null ) {
sourcePeer.coalescePaintEvent$java_awt_event_PaintEvent(e);
}var cache=(e.getSource$()).eventCache;
if (cache == null ) {
return false;
}var index=C$.eventToCacheIndex$java_awt_AWTEvent(e);
if (index != -1 && cache[index] != null ) {
var merged=p$1.mergePaintEvents$java_awt_event_PaintEvent$java_awt_event_PaintEvent.apply(this, [e, cache[index].event]);
if (merged != null ) {
cache[index].event=merged;
return true;
}}return false;
}, p$1);
Clazz_newMeth(C$, 'mergePaintEvents$java_awt_event_PaintEvent$java_awt_event_PaintEvent', function (a, b) {
var aRect=a.getUpdateRect$();
var bRect=b.getUpdateRect$();
if (bRect.contains$java_awt_Rectangle(aRect)) {
return b;
}if (aRect.contains$java_awt_Rectangle(bRect)) {
return a;
}return null;
}, p$1);
Clazz_newMeth(C$, 'coalesceMouseEvent$java_awt_event_MouseEvent', function (e) {
var cache=(e.getSource$()).eventCache;
if (cache == null ) {
return false;
}var index=C$.eventToCacheIndex$java_awt_AWTEvent(e);
if (index != -1 && cache[index] != null ) {
cache[index].event=e;
return true;
}return false;
}, p$1);
Clazz_newMeth(C$, 'coalescePeerEvent$sun_awt_PeerEvent', function (e) {
var cache=(e.getSource$()).eventCache;
if (cache == null ) {
return false;
}var index=C$.eventToCacheIndex$java_awt_AWTEvent(e);
if (index != -1 && cache[index] != null ) {
e=e.coalesceEvents$sun_awt_PeerEvent(cache[index].event);
if (e != null ) {
cache[index].event=e;
return true;
} else {
cache[index]=null;
}}return false;
}, p$1);
Clazz_newMeth(C$, 'coalesceOtherEvent$java_awt_AWTEvent$I', function (e, priority) {
var id=e.getID$();
var source=e.getSource$();
for (var entry=this.queues[priority].head; entry != null ; entry=entry.next) {
if (entry.event.getSource$() === source && entry.id == id ) {
var coalescedEvent=source.coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent(entry.event, e);
if (coalescedEvent != null ) {
entry.event=coalescedEvent;
return true;
}}}
return false;
}, p$1);
Clazz_newMeth(C$, 'coalesceEvent$java_awt_AWTEvent$I', function (e, priority) {
if (!(Clazz_instanceOf(e.getSource$(), "java.awt.Component"))) {
return false;
}if (Clazz_instanceOf(e, "sun.awt.PeerEvent")) {
return p$1.coalescePeerEvent$sun_awt_PeerEvent.apply(this, [e]);
}if ((e.getSource$()).isCoalescingEnabled$() && p$1.coalesceOtherEvent$java_awt_AWTEvent$I.apply(this, [e, priority]) ) {
return true;
}if (Clazz_instanceOf(e, "java.awt.event.PaintEvent")) {
return p$1.coalescePaintEvent$java_awt_event_PaintEvent.apply(this, [e]);
}if (Clazz_instanceOf(e, "java.awt.event.MouseEvent")) {
return p$1.coalesceMouseEvent$java_awt_event_MouseEvent.apply(this, [e]);
}return false;
}, p$1);
Clazz_newMeth(C$, 'cacheEQItem$java_awt_EventQueueItem', function (entry) {
var index=C$.eventToCacheIndex$java_awt_AWTEvent(entry.event);
if (index != -1 && Clazz_instanceOf(entry.event.getSource$(), "java.awt.Component") ) {
var source=entry.event.getSource$();
if (source.eventCache == null ) {
source.eventCache=Clazz_array($I$(5), [5]);
}source.eventCache[index]=entry;
}}, p$1);
Clazz_newMeth(C$, 'uncacheEQItem$java_awt_EventQueueItem', function (entry) {
var index=C$.eventToCacheIndex$java_awt_AWTEvent(entry.event);
if (index != -1 && Clazz_instanceOf(entry.event.getSource$(), "java.awt.Component") ) {
var source=entry.event.getSource$();
if (source.eventCache == null ) {
return;
}source.eventCache[index]=null;
}}, p$1);
Clazz_newMeth(C$, 'eventToCacheIndex$java_awt_AWTEvent', function (e) {
switch (e.getID$()) {
case 800:
return 0;
case 801:
return 1;
case 503:
return 2;
case 506:
return 3;
default:
return -1;
}
}, 1);
Clazz_newMeth(C$, 'noEvents', function () {
for (var i=0; i < 4; i++) {
if (this.queues[i].head != null ) {
return false;
}}
return true;
}, p$1);
Clazz_newMeth(C$, 'getNextEvent$', function () {
$I$(3).flushPendingEvents$();
{
for (var i=3; i >= 0; i--) {
if (this.queues[i].head != null ) {
var entry=this.queues[i].head;
this.queues[i].head=entry.next;
if (entry.next == null ) {
this.queues[i].tail=null;
}p$1.uncacheEQItem$java_awt_EventQueueItem.apply(this, [entry]);
return entry.event;
}}
$I$(4).getInstance$().notifyThreadFree$Thread(this.dispatchThread);
}return null;
});
Clazz_newMeth(C$, 'getNextEventForID$I', function (id) {
$I$(3).flushPendingEvents$();
{
for (var i=0; i < 4; i++) {
for (var entry=this.queues[i].head, prev=null; entry != null ; prev=entry, entry=entry.next) {
if (entry.id == id) {
if (prev == null ) {
this.queues[i].head=entry.next;
} else {
prev.next=entry.next;
}if (this.queues[i].tail === entry ) {
this.queues[i].tail=prev;
}p$1.uncacheEQItem$java_awt_EventQueueItem.apply(this, [entry]);
return entry.event;
}}
}
this.waitForID=id;
this.waitForID=0;
}return null;
});
Clazz_newMeth(C$, 'peekEvent$', function () {
for (var i=3; i >= 0; i--) {
if (this.queues[i].head != null ) {
return this.queues[i].head.event;
}}
return null;
});
Clazz_newMeth(C$, 'peekEvent$I', function (id) {
for (var i=3; i >= 0; i--) {
var q=this.queues[i].head;
for (; q != null ; q=q.next) {
if (q.id == id) {
return q.event;
}}
}
return null;
});
Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (event) {
var src=event.getSource$();
p$1.dispatchEventImpl$java_awt_AWTEvent$O$Z.apply(this, [event, src, true]);
});
Clazz_newMeth(C$, 'dispatchEventAndWait$java_awt_AWTEvent$O', function (event, src) {
p$1.dispatchEventImpl$java_awt_AWTEvent$O$Z.apply(this, [event, src, true]);
});
Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent$O$Z', function (event, src, andWait) {
event.isPosted=true;
if (Clazz_instanceOf(event, "java.awt.ActiveEvent")) {
p$1.setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent.apply(this, [event]);
$I$(6).dispatchEvent$java_awt_AWTEvent$O$Z(event, null, andWait);
} else if (Clazz_instanceOf(src, "java.awt.Component")) {
$I$(6).dispatchEvent$java_awt_AWTEvent$O$Z(event, src, andWait);
event.dispatched$();
} else if (Clazz_instanceOf(src, "sun.awt.AWTAutoShutdown")) {
if (p$1.noEvents.apply(this, [])) {
this.dispatchThread.stopDispatching$();
}} else {
System.err.println$S("unable to dispatch event: " + event);
}}, p$1);
Clazz_newMeth(C$, 'getMostRecentEventTime$', function () {
return 0;
}, 1);
Clazz_newMeth(C$, 'getMostRecentEventTimeEx$', function () {
return this.mostRecentEventTime;
});
Clazz_newMeth(C$, 'getCurrentEvent$', function () {
return p$1.getCurrentEventImpl.apply($I$(7).getEventQueue$(), []);
}, 1);
Clazz_newMeth(C$, 'getCurrentEventImpl', function () {
return ($I$(6).isDispatchThread$() ? (this.currentEvent) : null);
}, p$1);
Clazz_newMeth(C$, 'push$java_awt_EventQueue', function (newEventQueue) {
if (this.nextQueue != null ) {
this.nextQueue.push$java_awt_EventQueue(newEventQueue);
return;
}{
while (this.peekEvent$() != null ){
try {
newEventQueue.postEventPrivate$java_awt_AWTEvent(this.getNextEvent$());
} catch (ie) {
if (Clazz_exceptionOf(ie,"InterruptedException")){
} else {
throw ie;
}
}
}
newEventQueue.previousQueue=this;
}if (this.dispatchThread != null ) {
this.dispatchThread.stopDispatchingLater$();
}this.nextQueue=newEventQueue;
var appContext=$I$(8).getAppContext$();
if (appContext.get$O($I$(8).EVENT_QUEUE_KEY) === this ) {
appContext.put$O$O($I$(8).EVENT_QUEUE_KEY, newEventQueue);
}});
Clazz_newMeth(C$, 'pop$', function () {
var prev=this.previousQueue;
/*sync org.eclipse.jdt.core.dom.ConditionalExpression*/((prev != null ) ? prev : this);
{
{
if (this.nextQueue != null ) {
this.nextQueue.pop$();
return;
}if (this.previousQueue == null ) {
throw Clazz_new_(Clazz_load('java.util.EmptyStackException'));
}this.previousQueue.nextQueue=null;
while (this.peekEvent$() != null ){
try {
this.previousQueue.postEventPrivate$java_awt_AWTEvent(this.getNextEvent$());
} catch (ie) {
if (Clazz_exceptionOf(ie,"InterruptedException")){
} else {
throw ie;
}
}
}
var appContext=$I$(8).getAppContext$();
if (appContext.get$O($I$(8).EVENT_QUEUE_KEY) === this ) {
appContext.put$O$O($I$(8).EVENT_QUEUE_KEY, this.previousQueue);
}this.previousQueue=null;
}}var dt=this.dispatchThread;
if (dt != null ) {
dt.stopDispatching$();
}});
Clazz_newMeth(C$, 'isDispatchThread$', function () {
return $I$(6).isDispatchThread$();
}, 1);
Clazz_newMeth(C$, 'initDispatchThread$', function () {
{
if (this.dispatchThread == null ) {
var t=Clazz_new_($I$(9).c$$ThreadGroup$S$java_awt_EventQueue,[this.threadGroup, this.name, this]);
$I$(4).getInstance$().notifyThreadBusy$Thread(t);
this.dispatchThread=t;
this.dispatchThread.start$();
}}});
Clazz_newMeth(C$, 'detachDispatchThread$', function () {
this.dispatchThread=null;
});
Clazz_newMeth(C$, 'getDispatchThread$', function () {
return this.dispatchThread;
});
Clazz_newMeth(C$, 'removeSourceEvents$O$Z', function (source, removeAllEvents) {
$I$(3).flushPendingEvents$();
{
for (var i=0; i < 4; i++) {
var entry=this.queues[i].head;
var prev=null;
while (entry != null ){
if ((entry.event.getSource$() === source ) && (removeAllEvents || !(Clazz_instanceOf(entry.event, "java.awt.SequencedEvent") || Clazz_instanceOf(entry.event, "java.awt.SentEvent") || Clazz_instanceOf(entry.event, "java.awt.event.FocusEvent") || Clazz_instanceOf(entry.event, "java.awt.event.WindowEvent") || Clazz_instanceOf(entry.event, "java.awt.event.KeyEvent") || Clazz_instanceOf(entry.event, "java.awt.event.InputMethodEvent") ) ) ) {
if (Clazz_instanceOf(entry.event, "java.awt.SequencedEvent")) {
(entry.event).dispose$();
}if (Clazz_instanceOf(entry.event, "java.awt.SentEvent")) {
(entry.event).dispose$();
}if (prev == null ) {
this.queues[i].head=entry.next;
} else {
prev.next=entry.next;
}p$1.uncacheEQItem$java_awt_EventQueueItem.apply(this, [entry]);
} else {
prev=entry;
}entry=entry.next;
}
this.queues[i].tail=prev;
}
}});
Clazz_newMeth(C$, 'setCurrentEventAndMostRecentTime$java_awt_AWTEvent', function (e) {
p$1.setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent.apply($I$(7).getEventQueue$(), [e]);
}, 1);
Clazz_newMeth(C$, 'setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent', function (e) {
if ($I$(6).isDispatchThread$()) {
return;
}this.currentEvent=e;
var mostRecentEventTime2=-9223372036854775808;
if (Clazz_instanceOf(e, "java.awt.event.InputEvent")) {
var ie=e;
mostRecentEventTime2=ie.getWhen$();
} else if (Clazz_instanceOf(e, "java.awt.event.InputMethodEvent")) {
var ime=e;
mostRecentEventTime2=ime.getWhen$();
} else if (Clazz_instanceOf(e, "java.awt.event.ActionEvent")) {
var ae=e;
mostRecentEventTime2=ae.getWhen$();
} else if (Clazz_instanceOf(e, "java.awt.event.InvocationEvent")) {
var ie=e;
mostRecentEventTime2=ie.getWhen$();
}this.mostRecentEventTime=Math.max(this.mostRecentEventTime, mostRecentEventTime2);
}, p$1);
Clazz_newMeth(C$, 'invokeLater$Runnable', function (runnable) {
$I$(7).getEventQueue$().postEvent$java_awt_AWTEvent(Clazz_new_($I$(10).c$$O$I$Runnable$O$Z,[$I$(7).getDefaultToolkit$(), 1200, runnable, null, false]));
}, 1);
Clazz_newMeth(C$, 'invokeAndWait$Runnable', function (runnable) {
C$.invokeAndWaitStatic$O$Runnable($I$(7).getDefaultToolkit$(), runnable);
}, 1);
Clazz_newMeth(C$, 'invokeAndWaitStatic$O$Runnable', function (source, runnable) {
if (C$.isDispatchThread$()) {
throw Clazz_new_($I$(11).c$$S,["Cannot call invokeAndWait from the event dispatcher thread"]);
}var event=Clazz_new_($I$(10).c$$O$I$Runnable$O$Z,[source, 1200, runnable, null, true]);
$I$(6).dispatchEvent$java_awt_AWTEvent$O$Z(event, null, true);
var eventThrowable=event.getThrowable$();
if (eventThrowable != null ) {
throw Clazz_new_(Clazz_load('java.lang.reflect.InvocationTargetException').c$$Throwable,[eventThrowable]);
}}, 1);
Clazz_newMeth(C$, 'wakeup$Z', function (isShutdown) {
{
if (this.nextQueue != null ) {
this.nextQueue.wakeup$Z(isShutdown);
} else if (this.dispatchThread != null ) {
try {
this.dispatchThread.start$();
} catch (e) {
if (Clazz_exceptionOf(e,"IllegalThreadStateException")){
this.dispatchThread.run$();
} else {
throw e;
}
}
} else if (!isShutdown) {
this.initDispatchThread$();
}}});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "EventQueueItem");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.event=null;
this.id=0;
this.next=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_AWTEvent', function (evt) {
C$.$init$.apply(this);
this.event=evt;
this.id=evt.getID$();
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "FlowLayout", null, null, ['java.awt.LayoutManager', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.align=0;
this.newAlign=0;
this.hgap=0;
this.vgap=0;
this.alignOnBaseline=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I$I.apply(this, [1, 5, 5]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (align) {
C$.c$$I$I$I.apply(this, [align, 5, 5]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I', function (align, hgap, vgap) {
C$.$init$.apply(this);
this.hgap=hgap;
this.vgap=vgap;
this.setAlignment$I(align);
}, 1);
Clazz_newMeth(C$, 'getAlignment$', function () {
return this.newAlign;
});
Clazz_newMeth(C$, 'setAlignment$I', function (align) {
this.newAlign=align;
switch (align) {
case 3:
this.align=0;
break;
case 4:
this.align=2;
break;
default:
this.align=align;
break;
}
});
Clazz_newMeth(C$, 'getHgap$', function () {
return this.hgap;
});
Clazz_newMeth(C$, 'setHgap$I', function (hgap) {
this.hgap=hgap;
});
Clazz_newMeth(C$, 'getVgap$', function () {
return this.vgap;
});
Clazz_newMeth(C$, 'setVgap$I', function (vgap) {
this.vgap=vgap;
});
Clazz_newMeth(C$, 'setAlignOnBaseline$Z', function (alignOnBaseline) {
this.alignOnBaseline=alignOnBaseline;
});
Clazz_newMeth(C$, 'getAlignOnBaseline$', function () {
return this.alignOnBaseline;
});
Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) {
});
Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) {
});
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$());
{
var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]);
var nmembers=target.getComponentCount$();
var firstVisibleComponent=true;
var useBaseline=this.getAlignOnBaseline$();
var maxAscent=0;
var maxDescent=0;
for (var i=0; i < nmembers; i++) {
var m=target.getComponent$I(i);
if (m.isVisible$()) {
var d=m.getPreferredSize$();
dim.height=Math.max(dim.height, d.height);
if (firstVisibleComponent) {
firstVisibleComponent=false;
} else {
dim.width+=this.hgap;
}dim.width+=d.width;
if (useBaseline) {
var baseline=m.getBaseline$I$I(d.width, d.height);
if (baseline >= 0) {
maxAscent=Math.max(maxAscent, baseline);
maxDescent=Math.max(maxDescent, d.height - baseline);
}}}}
if (useBaseline) {
dim.height=Math.max(maxAscent + maxDescent, dim.height);
}var insets=target.getInsets$();
dim.width+=insets.left + insets.right + this.hgap * 2 ;
dim.height+=insets.top + insets.bottom + this.vgap * 2 ;
return dim;
}});
Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (target) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$());
{
var useBaseline=this.getAlignOnBaseline$();
var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]);
var nmembers=target.getComponentCount$();
var maxAscent=0;
var maxDescent=0;
var firstVisibleComponent=true;
for (var i=0; i < nmembers; i++) {
var m=target.getComponent$I(i);
if (m.visible) {
var d=m.getMinimumSize$();
dim.height=Math.max(dim.height, d.height);
if (firstVisibleComponent) {
firstVisibleComponent=false;
} else {
dim.width+=this.hgap;
}dim.width+=d.width;
if (useBaseline) {
var baseline=m.getBaseline$I$I(d.width, d.height);
if (baseline >= 0) {
maxAscent=Math.max(maxAscent, baseline);
maxDescent=Math.max(maxDescent, dim.height - baseline);
}}}}
if (useBaseline) {
dim.height=Math.max(maxAscent + maxDescent, dim.height);
}var insets=target.getInsets$();
dim.width+=insets.left + insets.right + this.hgap * 2 ;
dim.height+=insets.top + insets.bottom + this.vgap * 2 ;
return dim;
}});
Clazz_newMeth(C$, 'moveComponents$java_awt_Container$I$I$I$I$I$I$Z$Z$IA$IA', function (target, x, y, width, height, rowStart, rowEnd, ltr, useBaseline, ascent, descent) {
switch (this.newAlign) {
case 0:
x+=ltr ? 0 : width;
break;
case 1:
x+=(width/2|0);
break;
case 2:
x+=ltr ? width : 0;
break;
case 3:
break;
case 4:
x+=width;
break;
}
var maxAscent=0;
var nonbaselineHeight=0;
var baselineOffset=0;
if (useBaseline) {
var maxDescent=0;
for (var i=rowStart; i < rowEnd; i++) {
var m=target.getComponent$I(i);
if (m.visible) {
if (ascent[i] >= 0) {
maxAscent=Math.max(maxAscent, ascent[i]);
maxDescent=Math.max(maxDescent, descent[i]);
} else {
nonbaselineHeight=Math.max(m.getHeight$(), nonbaselineHeight);
}}}
height=Math.max(maxAscent + maxDescent, nonbaselineHeight);
baselineOffset=((height - maxAscent - maxDescent )/2|0);
}for (var i=rowStart; i < rowEnd; i++) {
var m=target.getComponent$I(i);
if (m.isVisible$()) {
var cy;
if (useBaseline && ascent[i] >= 0 ) {
cy=y + baselineOffset + maxAscent - ascent[i];
} else {
cy=y + ((height - m.height)/2|0);
}if (ltr) {
m.setLocation$I$I(x, cy);
} else {
m.setLocation$I$I(target.width - x - m.width , cy);
}x+=m.width + this.hgap;
}}
return height;
}, p$1);
Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (target) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$());
{
var insets=target.getInsets$();
var maxwidth=target.width - (insets.left + insets.right + this.hgap * 2 );
var nmembers=target.getComponentCount$();
var x=0;
var y=insets.top + this.vgap;
var rowh=0;
var start=0;
var ltr=target.getComponentOrientation$().isLeftToRight$();
var useBaseline=this.getAlignOnBaseline$();
var ascent=null;
var descent=null;
if (useBaseline) {
ascent=Clazz_array(Integer.TYPE, [nmembers]);
descent=Clazz_array(Integer.TYPE, [nmembers]);
}for (var i=0; i < nmembers; i++) {
var m=target.getComponent$I(i);
if (m.isVisible$()) {
var d=m.getPreferredSize$();
m.setSize$I$I(d.width, d.height);
if (useBaseline) {
var baseline=m.getBaseline$I$I(d.width, d.height);
if (baseline >= 0) {
ascent[i]=baseline;
descent[i]=d.height - baseline;
} else {
ascent[i]=-1;
}}if ((x == 0) || ((x + d.width) <= maxwidth) ) {
if (x > 0) {
x+=this.hgap;
}x+=d.width;
rowh=Math.max(rowh, d.height);
} else {
rowh=p$1.moveComponents$java_awt_Container$I$I$I$I$I$I$Z$Z$IA$IA.apply(this, [target, insets.left + this.hgap, y, maxwidth - x, rowh, start, i, ltr, useBaseline, ascent, descent]);
x=d.width;
y+=this.vgap + rowh;
rowh=d.height;
start=i;
}}}
p$1.moveComponents$java_awt_Container$I$I$I$I$I$I$Z$Z$IA$IA.apply(this, [target, insets.left + this.hgap, y, maxwidth - x, rowh, start, nmembers, ltr, useBaseline, ascent, descent]);
}});
Clazz_newMeth(C$, 'toString', function () {
var str="";
switch (this.align) {
case 0:
str=",align=left";
break;
case 1:
str=",align=center";
break;
case 2:
str=",align=right";
break;
case 3:
str=",align=leading";
break;
case 4:
str=",align=trailing";
break;
}
return this.getClass$().getName$() + "[hgap=" + this.hgap + ",vgap=" + this.vgap + str + "]" ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "FocusTraversalPolicy");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getInitialComponent$java_awt_Window', function (window) {
if (window == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["window cannot be equal to null."]);
}var def=this.getDefaultComponent$java_awt_Container(window);
if (def == null && window.isFocusableWindow$() ) {
def=window;
}return def;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'swingjs.JSFontMetrics','sun.font.AttributeValues','sun.font.EAttribute','java.awt.font.TextAttribute','java.awt.geom.AffineTransform','swingjs.JSToolkit','sun.font.AttributeMap',['java.text.AttributedCharacterIterator','.Attribute'],'javajs.util.SB',['java.awt.geom.Rectangle2D','.Float'],'java.util.Hashtable','swingjs.JSLineMetrics']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Font");
C$.haveMasks=false;
C$.RECOGNIZED_MASK=0;
C$.PRIMARY_MASK=0;
C$.SECONDARY_MASK=0;
C$.LAYOUT_MASK=0;
C$.EXTRA_MASK=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.fm=null;
this.family=null;
this.name=null;
this.style=0;
this.size=0;
this.pointSize=0;
this.font2DHandle=null;
this.values=null;
this.hasLayoutAttributes=false;
this.createdFont=false;
this.nonIdentityTx=false;
this.hash=0;
this.mapLineMetrics=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.createdFont=false;
}, 1);
Clazz_newMeth(C$, 'getFontMetrics$', function () {
if (this.fm == null ) ((this.fm=Clazz_new_($I$(1)))).setFont$java_awt_Font(this);
return this.fm;
});
Clazz_newMeth(C$, 'setFontMetrics$java_awt_FontMetrics', function (fm) {
this.fm=fm;
});
Clazz_newMeth(C$, 'getAttributeValues', function () {
if (this.values == null ) {
C$.initMasks$();
this.values=Clazz_new_($I$(2));
this.values.setFamily$S(this.name);
this.values.setSize$F(this.pointSize);
if ((this.style & 1) != 0) {
this.values.setWeight$F(2);
}if ((this.style & 2) != 0) {
this.values.setPosture$F(0.2);
}this.values.defineAll$I(C$.PRIMARY_MASK);
}return this.values;
}, p$1);
Clazz_newMeth(C$, 'c$$S$I$I', function (name, style, size) {
C$.$init$.apply(this);
this.name=(name != null ) ? name : "Default";
this.style=(style & ~0x03) == 0 ? style : 0;
this.size=size;
this.pointSize=size;
}, 1);
Clazz_newMeth(C$, 'c$$sun_font_AttributeValues$S$I$Z$sun_font_Font2DHandle', function (values, oldName, oldStyle, created, handle) {
C$.$init$.apply(this);
this.createdFont=created;
if (created) {
this.font2DHandle=handle;
var newName=null;
if (oldName != null ) {
newName=values.getFamily$();
if (oldName.equals$O(newName)) newName=null;
}var newStyle=0;
if (oldStyle == -1) {
newStyle=-1;
} else {
if (values.getWeight$() >= 2.0 ) newStyle=1;
if (values.getPosture$() >= 0.2 ) newStyle|=2;
if (oldStyle == newStyle) newStyle=-1;
}if (newName != null ) {
this.createdFont=false;
this.font2DHandle=null;
}}p$1.initFromValues$sun_font_AttributeValues.apply(this, [values]);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (attributes) {
C$.$init$.apply(this);
C$.initMasks$();
p$1.initFromValues$sun_font_AttributeValues.apply(this, [$I$(2).fromMap$java_util_Map$I(attributes, C$.RECOGNIZED_MASK)]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) {
C$.$init$.apply(this);
if (font.values != null ) {
p$1.initFromValues$sun_font_AttributeValues.apply(this, [p$1.getAttributeValues.apply(font, []).clone$()]);
} else {
this.name=font.name;
this.style=font.style;
this.size=font.size;
this.pointSize=font.pointSize;
}}, 1);
Clazz_newMeth(C$, 'initMasks$', function () {
if (C$.haveMasks) return;
C$.RECOGNIZED_MASK=$I$(2).MASK_ALL & ~$I$(2).getMask$sun_font_EAttribute($I$(3).EFONT);
C$.PRIMARY_MASK=$I$(2).getMask$sun_font_EAttributeA([$I$(3).EFAMILY, $I$(3).EWEIGHT, $I$(3).EWIDTH, $I$(3).EPOSTURE, $I$(3).ESIZE, $I$(3).ETRANSFORM, $I$(3).ESUPERSCRIPT, $I$(3).ETRACKING]);
C$.SECONDARY_MASK=C$.RECOGNIZED_MASK & ~C$.PRIMARY_MASK;
C$.LAYOUT_MASK=$I$(2).getMask$sun_font_EAttributeA([$I$(3).ECHAR_REPLACEMENT, $I$(3).EFOREGROUND, $I$(3).EBACKGROUND, $I$(3).EUNDERLINE, $I$(3).ESTRIKETHROUGH, $I$(3).ERUN_DIRECTION, $I$(3).EBIDI_EMBEDDING, $I$(3).EJUSTIFICATION, $I$(3).EINPUT_METHOD_HIGHLIGHT, $I$(3).EINPUT_METHOD_UNDERLINE, $I$(3).ESWAP_COLORS, $I$(3).ENUMERIC_SHAPING, $I$(3).EKERNING, $I$(3).ELIGATURES, $I$(3).ETRACKING]);
C$.EXTRA_MASK=$I$(2).getMask$sun_font_EAttributeA([$I$(3).ETRANSFORM, $I$(3).ESUPERSCRIPT, $I$(3).EWIDTH]);
C$.haveMasks=true;
}, 1);
Clazz_newMeth(C$, 'initFromValues$sun_font_AttributeValues', function (values) {
this.values=values;
C$.initMasks$();
values.defineAll$I(C$.PRIMARY_MASK);
this.name=values.getFamily$();
this.pointSize=values.getSize$();
this.size=((values.getSize$() + 0.5)|0);
if (values.getWeight$() >= 2.0 ) this.style|=1;
if (values.getPosture$() >= 0.2 ) this.style|=2;
this.nonIdentityTx=values.anyNonDefault$I(C$.EXTRA_MASK);
this.hasLayoutAttributes=values.anyNonDefault$I(C$.LAYOUT_MASK);
}, p$1);
Clazz_newMeth(C$, 'getFont$java_util_Map', function (attributes) {
C$.initMasks$();
if (Clazz_instanceOf(attributes, "sun.font.AttributeMap") && (attributes).getValues$() != null ) {
var values=(attributes).getValues$();
if (values.isNonDefault$sun_font_EAttribute($I$(3).EFONT)) {
var font=values.getFont$();
if (!values.anyDefined$I(C$.SECONDARY_MASK)) {
return font;
}values=p$1.getAttributeValues.apply(font, []).clone$();
values.merge$java_util_Map$I(attributes, C$.SECONDARY_MASK);
return Clazz_new_(C$.c$$sun_font_AttributeValues$S$I$Z$sun_font_Font2DHandle,[values, font.name, font.style, font.createdFont, font.font2DHandle]);
}return Clazz_new_(C$.c$$java_util_Map,[attributes]);
}var font=attributes.get$O($I$(4).FONT);
if (font != null ) {
if (attributes.size$() > 1) {
var values=p$1.getAttributeValues.apply(font, []).clone$();
values.merge$java_util_Map$I(attributes, C$.SECONDARY_MASK);
return Clazz_new_(C$.c$$sun_font_AttributeValues$S$I$Z$sun_font_Font2DHandle,[values, font.name, font.style, font.createdFont, font.font2DHandle]);
}return font;
}return Clazz_new_(C$.c$$java_util_Map,[attributes]);
}, 1);
Clazz_newMeth(C$, 'getTransform$', function () {
return Clazz_new_($I$(5));
});
Clazz_newMeth(C$, 'getFamily$', function () {
return (this.family == null ? this.family=$I$(6).getFontFamily$java_awt_Font(this) : this.family);
});
Clazz_newMeth(C$, 'getPSName$', function () {
switch (this.name) {
case "TimesRoman":
this.name="Serif";
break;
case "Helvetica":
this.name="SansSerif";
break;
case "Courier":
this.name="Monospaced";
break;
default:
case "Monospaced":
case "Serif":
case "SansSerif":
case "Dialog":
case "DialogInput":
break;
}
return this.name + (this.isPlain$() ? ".plain" : "." + (this.isBold$() ? "bold" : "") + (this.isItalic$() ? "italic" : "") );
});
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getFontName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getStyle$', function () {
return this.style;
});
Clazz_newMeth(C$, 'getSize$', function () {
return this.size;
});
Clazz_newMeth(C$, 'getSize2D$', function () {
return this.pointSize;
});
Clazz_newMeth(C$, 'isPlain$', function () {
return this.style == 0;
});
Clazz_newMeth(C$, 'isBold$', function () {
return (this.style & 1) != 0;
});
Clazz_newMeth(C$, 'isItalic$', function () {
return (this.style & 2) != 0;
});
Clazz_newMeth(C$, 'isTransformed$', function () {
return this.nonIdentityTx;
});
Clazz_newMeth(C$, 'hasLayoutAttributes$', function () {
return this.hasLayoutAttributes;
});
Clazz_newMeth(C$, 'getFont$S', function (nm) {
return C$.getFont$S$java_awt_Font(nm, null);
}, 1);
Clazz_newMeth(C$, 'decode$S', function (str) {
var fontName=str;
var styleName="";
var fontSize=12;
var fontStyle=0;
if (str == null ) {
return Clazz_new_(C$.c$$S$I$I,["Dialog", fontStyle, fontSize]);
}var lastHyphen=str.lastIndexOf$I("-");
var lastSpace=str.lastIndexOf$I(" ");
var sepChar=(lastHyphen > lastSpace) ? "-" : " ";
var sizeIndex=str.lastIndexOf$I(sepChar);
var styleIndex=str.lastIndexOf$I$I(sepChar, sizeIndex - 1);
var strlen=str.length$();
if (sizeIndex > 0 && sizeIndex + 1 < strlen ) {
try {
fontSize=Integer.valueOf$S(str.substring$I(sizeIndex + 1)).intValue$();
if (fontSize <= 0) {
fontSize=12;
}} catch (e) {
if (Clazz_exceptionOf(e,"NumberFormatException")){
styleIndex=sizeIndex;
sizeIndex=strlen;
if (str.charAt$I(sizeIndex - 1) == sepChar) {
sizeIndex--;
}} else {
throw e;
}
}
}if (styleIndex >= 0 && styleIndex + 1 < strlen ) {
styleName=str.substring$I$I(styleIndex + 1, sizeIndex);
styleName=styleName.toLowerCase$();
if (styleName.equals$O("bolditalic")) {
fontStyle=3;
} else if (styleName.equals$O("italic")) {
fontStyle=2;
} else if (styleName.equals$O("bold")) {
fontStyle=1;
} else if (styleName.equals$O("plain")) {
fontStyle=0;
} else {
styleIndex=sizeIndex;
if (str.charAt$I(styleIndex - 1) == sepChar) {
styleIndex--;
}}fontName=str.substring$I$I(0, styleIndex);
} else {
var fontEnd=strlen;
if (styleIndex > 0) {
fontEnd=styleIndex;
} else if (sizeIndex > 0) {
fontEnd=sizeIndex;
}if (fontEnd > 0 && str.charAt$I(fontEnd - 1) == sepChar ) {
fontEnd--;
}fontName=str.substring$I$I(0, fontEnd);
}return Clazz_new_(C$.c$$S$I$I,[fontName, fontStyle, fontSize]);
}, 1);
Clazz_newMeth(C$, 'getFont$S$java_awt_Font', function (nm, font) {
var str=null;
try {
str=System.getProperty$S(nm);
} catch (e) {
if (Clazz_exceptionOf(e,"SecurityException")){
} else {
throw e;
}
}
if (str == null ) {
return font;
}return C$.decode$S(str);
}, 1);
Clazz_newMeth(C$, 'hashCode$', function () {
if (this.hash == 0) {
this.hash=this.name.hashCode$() ^ this.style ^ this.size ;
}return this.hash;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (obj === this ) {
return true;
}if (obj != null ) {
try {
var font=obj;
if (this.size == font.size && this.style == font.style && this.nonIdentityTx == font.nonIdentityTx && this.hasLayoutAttributes == font.hasLayoutAttributes && this.pointSize == font.pointSize && this.name.equals$O(font.name) ) {
return true;
}} catch (e) {
if (Clazz_exceptionOf(e,"ClassCastException")){
} else {
throw e;
}
}
}return false;
});
Clazz_newMeth(C$, 'toString', function () {
var strStyle;
if (this.isBold$()) {
strStyle=this.isItalic$() ? "bolditalic" : "bold";
} else {
strStyle=this.isItalic$() ? "italic" : "plain";
}return this.getClass$().getName$() + "[family=" + this.getFamily$() + ",name=" + this.name + ",style=" + strStyle + ",size=" + this.size + "]" ;
});
Clazz_newMeth(C$, 'getAttributes$', function () {
return Clazz_new_($I$(7).c$$sun_font_AttributeValues,[p$1.getAttributeValues.apply(this, [])]);
});
Clazz_newMeth(C$, 'getAvailableAttributes$', function () {
var attributes=Clazz_array($I$(8), -1, [$I$(4).FAMILY, $I$(4).WEIGHT, $I$(4).WIDTH, $I$(4).SIZE, $I$(4).UNDERLINE, $I$(4).STRIKETHROUGH]);
return attributes;
});
Clazz_newMeth(C$, 'deriveFont$I$F', function (style, sizePts) {
var f=Clazz_new_(C$.c$$S$I$I,[this.name, style, ((sizePts + 0.5)|0)]);
f.pointSize=sizePts;
return f;
});
Clazz_newMeth(C$, 'deriveFont$F', function (sizePts) {
var f=Clazz_new_(C$.c$$S$I$I,[this.name, this.style, ((sizePts + 0.5)|0)]);
f.pointSize=sizePts;
return f;
});
Clazz_newMeth(C$, 'deriveFont$I', function (style) {
return Clazz_new_(C$.c$$S$I$I,[this.name, style, this.size]);
});
Clazz_newMeth(C$, 'hasUniformLineMetrics$', function () {
return false;
});
Clazz_newMeth(C$, 'getStringBounds$S$java_awt_font_FontRenderContext', function (str, frc) {
return this.getStringBoundsStr$S$I$I(str, 0, -1);
});
Clazz_newMeth(C$, 'getStringBounds$S$I$I$java_awt_font_FontRenderContext', function (str, beginIndex, limit, frc) {
return this.getStringBoundsStr$S$I$I(str, beginIndex, limit);
});
Clazz_newMeth(C$, 'getStringBounds$CA$I$I$java_awt_font_FontRenderContext', function (chars, beginIndex, limit, frc) {
var sb=Clazz_new_($I$(9));
sb.appendCB$CA$I$I(chars, beginIndex, limit);
return this.getStringBoundsStr$S$I$I(sb.toString(), 0, -1);
});
Clazz_newMeth(C$, 'getStringBoundsStr$S$I$I', function (s, i, j) {
if (j >= i) s=s.substring$I$I(i, j);
var fm=this.getFontMetrics$();
var dec=fm.getDescent$();
var asc=fm.getAscent$();
var width=fm.stringWidth$S(s);
return Clazz_new_($I$(10).c$$F$F$F$F,[0, -dec, width, asc + dec]);
});
Clazz_newMeth(C$, 'finalize$', function () {
});
Clazz_newMeth(C$, 'getLineMetrics$S', function (s) {
if (this.mapLineMetrics == null ) this.mapLineMetrics=Clazz_new_($I$(11));
var lm=this.mapLineMetrics.get$O(s);
return (lm == null ? Clazz_new_($I$(12).c$$java_awt_Font$S,[this, s]) : lm);
}, p$1);
Clazz_newMeth(C$, 'getLineMetrics$java_text_CharacterIterator$I$I$O', function (ci, beginIndex, limit, object) {
return null;
});
Clazz_newMeth(C$, 'getLineMetrics$CA$I$I$O', function (chars, beginIndex, limit, object) {
return null;
});
Clazz_newMeth(C$, 'getLineMetrics$S$I$I$O', function (str, beginIndex, limit, object) {
return null;
});
Clazz_newMeth(C$, 'getLineMetrics$S$O', function (str, object) {
return null;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.font"),I$=[[0,'java.awt.geom.AffineTransform','java.awt.RenderingHints']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "FontRenderContext");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.tx=null;
this.aaHintValue=null;
this.fmHintValue=null;
this.defaulting=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.defaulting=true;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_AffineTransform$Z$Z', function (tx, isAntiAliased, usesFractionalMetrics) {
C$.$init$.apply(this);
if (tx != null && !tx.isIdentity$() ) {
this.tx=Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform,[tx]);
}}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_AffineTransform$O$O', function (tx, aaHint, fmHint) {
C$.$init$.apply(this);
if (tx != null && !tx.isIdentity$() ) {
this.tx=Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform,[tx]);
}this.aaHintValue=aaHint;
this.fmHintValue=fmHint;
}, 1);
Clazz_newMeth(C$, 'isTransformed$', function () {
if (!this.defaulting) {
return this.tx != null ;
} else {
return !this.getTransform$().isIdentity$();
}});
Clazz_newMeth(C$, 'getTransformType$', function () {
if (!this.defaulting) {
if (this.tx == null ) {
return 0;
} else {
return this.tx.getType$();
}} else {
return this.getTransform$().getType$();
}});
Clazz_newMeth(C$, 'getTransform$', function () {
return (this.tx == null ) ? Clazz_new_($I$(1)) : Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform,[this.tx]);
});
Clazz_newMeth(C$, 'isAntiAliased$', function () {
return !(this.aaHintValue === $I$(2).VALUE_TEXT_ANTIALIAS_OFF || this.aaHintValue === $I$(2).VALUE_TEXT_ANTIALIAS_DEFAULT );
});
Clazz_newMeth(C$, 'usesFractionalMetrics$', function () {
return !(this.fmHintValue === $I$(2).VALUE_FRACTIONALMETRICS_OFF || this.fmHintValue === $I$(2).VALUE_FRACTIONALMETRICS_DEFAULT );
});
Clazz_newMeth(C$, 'getAntiAliasingHint$', function () {
if (this.defaulting) {
if (this.isAntiAliased$()) {
return $I$(2).VALUE_TEXT_ANTIALIAS_ON;
} else {
return $I$(2).VALUE_TEXT_ANTIALIAS_OFF;
}}return this.aaHintValue;
});
Clazz_newMeth(C$, 'getFractionalMetricsHint$', function () {
if (this.defaulting) {
if (this.usesFractionalMetrics$()) {
return $I$(2).VALUE_FRACTIONALMETRICS_ON;
} else {
return $I$(2).VALUE_FRACTIONALMETRICS_OFF;
}}return this.fmHintValue;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
try {
return this.equals$java_awt_font_FontRenderContext(obj);
} catch (e) {
if (Clazz_exceptionOf(e,"ClassCastException")){
return false;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'equals$java_awt_font_FontRenderContext', function (rhs) {
if (this === rhs ) {
return true;
}if (rhs == null ) {
return false;
}if (!rhs.defaulting && !this.defaulting ) {
if (rhs.aaHintValue === this.aaHintValue && rhs.fmHintValue === this.fmHintValue ) {
return this.tx == null ? rhs.tx == null : this.tx.equals$O(rhs.tx);
}return false;
} else {
return rhs.getAntiAliasingHint$() === this.getAntiAliasingHint$() && rhs.getFractionalMetricsHint$() === this.getFractionalMetricsHint$() && rhs.getTransform$().equals$O(this.getTransform$()) ;
}});
Clazz_newMeth(C$, 'hashCode$', function () {
var hash=this.tx == null ? 0 : this.tx.hashCode$();
if (this.defaulting) {
hash+=this.getAntiAliasingHint$().hashCode$();
hash+=this.getFractionalMetricsHint$().hashCode$();
} else {
hash+=this.aaHintValue.hashCode$();
hash+=this.fmHintValue.hashCode$();
}return hash;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.font.FontRenderContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "FontMetrics");
C$.DEFAULT_FRC=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.DEFAULT_FRC=Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform$Z$Z,[null, false, false]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.font=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) {
C$.$init$.apply(this);
this.font=font;
}, 1);
Clazz_newMeth(C$, 'getFont$', function () {
return this.font;
});
Clazz_newMeth(C$, 'getFontRenderContext$', function () {
return C$.DEFAULT_FRC;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.getLeading$() + this.getAscent$() + this.getDescent$() ;
});
Clazz_newMeth(C$, 'getMaxAscent$', function () {
return this.getAscent$();
});
Clazz_newMeth(C$, 'getMaxDescent$', function () {
return this.getDescent$();
});
Clazz_newMeth(C$, 'getMaxDecent$', function () {
return this.getMaxDescent$();
});
Clazz_newMeth(C$, 'getMaxAdvance$', function () {
return this.charWidth$C("M");
});
Clazz_newMeth(C$, 'charsWidth$CA$I$I', function (data, off, len) {
return this.stringWidth$S( String.instantialize(data, off, len));
});
Clazz_newMeth(C$, 'bytesWidth$BA$I$I', function (data, off, len) {
return this.stringWidth$S( String.instantialize(data, 0, off, len));
});
Clazz_newMeth(C$, 'getStringBounds$S$java_awt_Graphics', function (str, context) {
return this.font.getStringBounds$S$java_awt_font_FontRenderContext(str, p$1.myFRC$java_awt_Graphics.apply(this, [context]));
});
Clazz_newMeth(C$, 'getStringBounds$S$I$I$java_awt_Graphics', function (str, beginIndex, limit, context) {
return this.font.getStringBounds$S$I$I$java_awt_font_FontRenderContext(str, beginIndex, limit, p$1.myFRC$java_awt_Graphics.apply(this, [context]));
});
Clazz_newMeth(C$, 'getStringBounds$CA$I$I$java_awt_Graphics', function (chars, beginIndex, limit, context) {
return this.font.getStringBounds$CA$I$I$java_awt_font_FontRenderContext(chars, beginIndex, limit, p$1.myFRC$java_awt_Graphics.apply(this, [context]));
});
Clazz_newMeth(C$, 'myFRC$java_awt_Graphics', function (context) {
return null;
}, p$1);
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[font=" + this.getFont$() + "ascent=" + this.getAscent$() + ", descent=" + this.getDescent$() + ", height=" + this.getHeight$() + "]" ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Frame", null, 'swingjs.a2s.Frame');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) {
C$.superclazz.c$$java_awt_GraphicsConfiguration.apply(this, [gc]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (title) {
C$.superclazz.c$$S.apply(this, [title]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S$java_awt_GraphicsConfiguration', function (title, gc) {
C$.superclazz.c$$S$java_awt_GraphicsConfiguration.apply(this, [title, gc]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),p$1={},I$=[[0,'InternalError',['java.awt.geom.Point2D','.Double'],['java.awt.geom.Point2D','.Float'],'javajs.util.AU',['java.awt.geom.Path2D','.Double']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AffineTransform", null, null, ['Cloneable', 'java.io.Serializable']);
C$.rot90conversion=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.rot90conversion=Clazz_array(Integer.TYPE, -1, [4, 5, 4, 5, 2, 3, 6, 7]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.m00=0;
this.m10=0;
this.m01=0;
this.m11=0;
this.m02=0;
this.m12=0;
this.state=0;
this.type=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$D$D$D$D$D$D$I', function (m00, m10, m01, m11, m02, m12, state) {
C$.$init$.apply(this);
this.m00=m00;
this.m10=m10;
this.m01=m01;
this.m11=m11;
this.m02=m02;
this.m12=m12;
this.state=state;
this.type=-1;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.m00=this.m11=1.0;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_AffineTransform', function (Tx) {
C$.$init$.apply(this);
this.m00=Tx.m00;
this.m10=Tx.m10;
this.m01=Tx.m01;
this.m11=Tx.m11;
this.m02=Tx.m02;
this.m12=Tx.m12;
this.state=Tx.state;
this.type=Tx.type;
}, 1);
Clazz_newMeth(C$, 'c$$F$F$F$F$F$F', function (m00, m10, m01, m11, m02, m12) {
C$.$init$.apply(this);
this.m00=m00;
this.m10=m10;
this.m01=m01;
this.m11=m11;
this.m02=m02;
this.m12=m12;
this.updateState$();
}, 1);
Clazz_newMeth(C$, 'c$$FA', function (flatmatrix) {
C$.$init$.apply(this);
this.m00=flatmatrix[0];
this.m10=flatmatrix[1];
this.m01=flatmatrix[2];
this.m11=flatmatrix[3];
if (flatmatrix.length > 5) {
this.m02=flatmatrix[4];
this.m12=flatmatrix[5];
}this.updateState$();
}, 1);
Clazz_newMeth(C$, 'c$$D$D$D$D$D$D', function (m00, m10, m01, m11, m02, m12) {
C$.$init$.apply(this);
this.m00=m00;
this.m10=m10;
this.m01=m01;
this.m11=m11;
this.m02=m02;
this.m12=m12;
this.updateState$();
}, 1);
Clazz_newMeth(C$, 'c$$DA', function (flatmatrix) {
C$.$init$.apply(this);
this.m00=flatmatrix[0];
this.m10=flatmatrix[1];
this.m01=flatmatrix[2];
this.m11=flatmatrix[3];
if (flatmatrix.length > 5) {
this.m02=flatmatrix[4];
this.m12=flatmatrix[5];
}this.updateState$();
}, 1);
Clazz_newMeth(C$, 'getTranslateInstance$D$D', function (tx, ty) {
var Tx=Clazz_new_(C$);
Tx.setToTranslation$D$D(tx, ty);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getRotateInstance$D', function (theta) {
var Tx=Clazz_new_(C$);
p$1.setToRotationTheta$D.apply(Tx, [theta]);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getRotateInstance$D$D$D', function (theta, anchorx, anchory) {
var Tx=Clazz_new_(C$);
p$1.setToRotationThetaXY$D$D$D.apply(Tx, [theta, anchorx, anchory]);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getRotateInstance$D$D', function (vecx, vecy) {
var Tx=Clazz_new_(C$);
p$1.setToRotationXY$D$D.apply(Tx, [vecx, vecy]);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getRotateInstance$D$D$D$D', function (vecx, vecy, anchorx, anchory) {
var Tx=Clazz_new_(C$);
p$1.setToRotationV2XY$D$D$D$D.apply(Tx, [vecx, vecy, anchorx, anchory]);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getQuadrantRotateInstance$I', function (numquadrants) {
var Tx=Clazz_new_(C$);
Tx.setToQuadrantRotation$I(numquadrants);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getQuadrantRotateInstance$I$D$D', function (numquadrants, anchorx, anchory) {
var Tx=Clazz_new_(C$);
Tx.setToQuadrantRotation$I$D$D(numquadrants, anchorx, anchory);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getScaleInstance$D$D', function (sx, sy) {
var Tx=Clazz_new_(C$);
Tx.setToScale$D$D(sx, sy);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getShearInstance$D$D', function (shx, shy) {
var Tx=Clazz_new_(C$);
Tx.setToShear$D$D(shx, shy);
return Tx;
}, 1);
Clazz_newMeth(C$, 'getType$', function () {
if (this.type == -1) {
p$1.calculateType.apply(this, []);
}return this.type;
});
Clazz_newMeth(C$, 'calculateType', function () {
var ret=0;
var sgn0;
var sgn1;
var M0;
var M1;
var M2;
var M3;
this.updateState$();
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
ret=1;
case (6):
if ((M0=this.m00) * (M2=this.m01) + (M3=this.m10) * (M1=this.m11) != 0 ) {
this.type=32;
return;
}sgn0=(M0 >= 0.0 );
sgn1=(M1 >= 0.0 );
if (sgn0 == sgn1 ) {
if (M0 != M1 || M2 != -M3 ) {
ret|=(20);
} else if (M0 * M1 - M2 * M3 != 1.0 ) {
ret|=(18);
} else {
ret|=16;
}} else {
if (M0 != -M1 || M2 != M3 ) {
ret|=(84);
} else if (M0 * M1 - M2 * M3 != 1.0 ) {
ret|=(82);
} else {
ret|=(80);
}}break;
case (5):
ret=1;
case (4):
sgn0=((M0=this.m01) >= 0.0 );
sgn1=((M1=this.m10) >= 0.0 );
if (sgn0 != sgn1 ) {
if (M0 != -M1 ) {
ret|=(12);
} else if (M0 != 1.0 && M0 != -1.0 ) {
ret|=(10);
} else {
ret|=8;
}} else {
if (M0 == M1 ) {
ret|=(74);
} else {
ret|=(76);
}}break;
case (3):
ret=1;
case (2):
sgn0=((M0=this.m00) >= 0.0 );
sgn1=((M1=this.m11) >= 0.0 );
if (sgn0 == sgn1 ) {
if (sgn0) {
if (M0 == M1 ) {
ret|=2;
} else {
ret|=4;
}} else {
if (M0 != M1 ) {
ret|=(12);
} else if (M0 != -1.0 ) {
ret|=(10);
} else {
ret|=8;
}}} else {
if (M0 == -M1 ) {
if (M0 == 1.0 || M0 == -1.0 ) {
ret|=64;
} else {
ret|=(66);
}} else {
ret|=(68);
}}break;
case (1):
ret=1;
break;
case (0):
break;
}
this.type=ret;
}, p$1);
Clazz_newMeth(C$, 'getDeterminant$', function () {
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
case (6):
return this.m00 * this.m11 - this.m01 * this.m10;
case (5):
case (4):
return -(this.m01 * this.m10);
case (3):
case (2):
return this.m00 * this.m11;
case (1):
case (0):
return 1.0;
}
});
Clazz_newMeth(C$, 'updateState$', function () {
if (this.m01 == 0.0 && this.m10 == 0.0 ) {
if (this.m00 == 1.0 && this.m11 == 1.0 ) {
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=0;
this.type=0;
} else {
this.state=1;
this.type=1;
}} else {
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=2;
this.type=-1;
} else {
this.state=(3);
this.type=-1;
}}} else {
if (this.m00 == 0.0 && this.m11 == 0.0 ) {
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=4;
this.type=-1;
} else {
this.state=(5);
this.type=-1;
}} else {
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=(6);
this.type=-1;
} else {
this.state=(7);
this.type=-1;
}}}});
Clazz_newMeth(C$, 'stateError', function () {
throw Clazz_new_($I$(1).c$$S,["missing case in transform state switch"]);
}, p$1);
Clazz_newMeth(C$, 'getMatrix$DA', function (flatmatrix) {
flatmatrix[0]=this.m00;
flatmatrix[1]=this.m10;
flatmatrix[2]=this.m01;
flatmatrix[3]=this.m11;
if (flatmatrix.length > 5) {
flatmatrix[4]=this.m02;
flatmatrix[5]=this.m12;
}});
Clazz_newMeth(C$, 'getScaleX$', function () {
return this.m00;
});
Clazz_newMeth(C$, 'getScaleY$', function () {
return this.m11;
});
Clazz_newMeth(C$, 'getShearX$', function () {
return this.m01;
});
Clazz_newMeth(C$, 'getShearY$', function () {
return this.m10;
});
Clazz_newMeth(C$, 'getTranslateX$', function () {
return this.m02;
});
Clazz_newMeth(C$, 'getTranslateY$', function () {
return this.m12;
});
Clazz_newMeth(C$, 'translate$D$D', function (tx, ty) {
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
this.m02=tx * this.m00 + ty * this.m01 + this.m02;
this.m12=tx * this.m10 + ty * this.m11 + this.m12;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=6;
if (this.type != -1) {
this.type-=1;
}}return;
case (6):
this.m02=tx * this.m00 + ty * this.m01;
this.m12=tx * this.m10 + ty * this.m11;
if (this.m02 != 0.0 || this.m12 != 0.0 ) {
this.state=7;
this.type|=1;
}return;
case (5):
this.m02=ty * this.m01 + this.m02;
this.m12=tx * this.m10 + this.m12;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=4;
if (this.type != -1) {
this.type-=1;
}}return;
case (4):
this.m02=ty * this.m01;
this.m12=tx * this.m10;
if (this.m02 != 0.0 || this.m12 != 0.0 ) {
this.state=5;
this.type|=1;
}return;
case (3):
this.m02=tx * this.m00 + this.m02;
this.m12=ty * this.m11 + this.m12;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=2;
if (this.type != -1) {
this.type-=1;
}}return;
case (2):
this.m02=tx * this.m00;
this.m12=ty * this.m11;
if (this.m02 != 0.0 || this.m12 != 0.0 ) {
this.state=3;
this.type|=1;
}return;
case (1):
this.m02=tx + this.m02;
this.m12=ty + this.m12;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=0;
this.type=0;
}return;
case (0):
this.m02=tx;
this.m12=ty;
if (tx != 0.0 || ty != 0.0 ) {
this.state=1;
this.type=1;
}return;
}
});
Clazz_newMeth(C$, 'rotate90', function () {
var M0=this.m00;
this.m00=this.m01;
this.m01=-M0;
M0=this.m10;
this.m10=this.m11;
this.m11=-M0;
var state=C$.rot90conversion[this.state];
if ((state & (6)) == 2 && this.m00 == 1.0 && this.m11 == 1.0 ) {
state-=2;
}this.state=state;
this.type=-1;
}, p$1);
Clazz_newMeth(C$, 'rotate180', function () {
this.m00=-this.m00;
this.m11=-this.m11;
var state=this.state;
if ((state & (4)) != 0) {
this.m01=-this.m01;
this.m10=-this.m10;
} else {
if (this.m00 == 1.0 && this.m11 == 1.0 ) {
this.state=state & ~2;
} else {
this.state=state | 2;
}}this.type=-1;
}, p$1);
Clazz_newMeth(C$, 'rotate270', function () {
var M0=this.m00;
this.m00=-this.m01;
this.m01=M0;
M0=this.m10;
this.m10=-this.m11;
this.m11=M0;
var state=C$.rot90conversion[this.state];
if ((state & (6)) == 2 && this.m00 == 1.0 && this.m11 == 1.0 ) {
state-=2;
}this.state=state;
this.type=-1;
}, p$1);
Clazz_newMeth(C$, 'rotate$D', function (theta) {
var sin=Math.sin(theta);
if (sin == 1.0 ) {
p$1.rotate90.apply(this, []);
} else if (sin == -1.0 ) {
p$1.rotate270.apply(this, []);
} else {
var cos=Math.cos(theta);
if (cos == -1.0 ) {
p$1.rotate180.apply(this, []);
} else if (cos != 1.0 ) {
var M0;
var M1;
M0=this.m00;
M1=this.m01;
this.m00=cos * M0 + sin * M1;
this.m01=-sin * M0 + cos * M1;
M0=this.m10;
M1=this.m11;
this.m10=cos * M0 + sin * M1;
this.m11=-sin * M0 + cos * M1;
this.updateState$();
}}});
Clazz_newMeth(C$, 'rotate$D$D$D', function (theta, anchorx, anchory) {
this.translate$D$D(anchorx, anchory);
this.rotate$D(theta);
this.translate$D$D(-anchorx, -anchory);
});
Clazz_newMeth(C$, 'rotate$D$D', function (vecx, vecy) {
if (vecy == 0.0 ) {
if (vecx < 0.0 ) {
p$1.rotate180.apply(this, []);
}} else if (vecx == 0.0 ) {
if (vecy > 0.0 ) {
p$1.rotate90.apply(this, []);
} else {
p$1.rotate270.apply(this, []);
}} else {
var len=Math.sqrt(vecx * vecx + vecy * vecy);
var sin=vecy / len;
var cos=vecx / len;
var M0;
var M1;
M0=this.m00;
M1=this.m01;
this.m00=cos * M0 + sin * M1;
this.m01=-sin * M0 + cos * M1;
M0=this.m10;
M1=this.m11;
this.m10=cos * M0 + sin * M1;
this.m11=-sin * M0 + cos * M1;
this.updateState$();
}});
Clazz_newMeth(C$, 'rotate$D$D$D$D', function (vecx, vecy, anchorx, anchory) {
this.translate$D$D(anchorx, anchory);
this.rotate$D$D(vecx, vecy);
this.translate$D$D(-anchorx, -anchory);
});
Clazz_newMeth(C$, 'quadrantRotate$I', function (numquadrants) {
switch (numquadrants & 3) {
case 0:
break;
case 1:
p$1.rotate90.apply(this, []);
break;
case 2:
p$1.rotate180.apply(this, []);
break;
case 3:
p$1.rotate270.apply(this, []);
break;
}
});
Clazz_newMeth(C$, 'quadrantRotate$I$D$D', function (numquadrants, anchorx, anchory) {
switch (numquadrants & 3) {
case 0:
return;
case 1:
this.m02 += anchorx * (this.m00 - this.m01) + anchory * (this.m01 + this.m00);
this.m12 += anchorx * (this.m10 - this.m11) + anchory * (this.m11 + this.m10);
p$1.rotate90.apply(this, []);
break;
case 2:
this.m02 += anchorx * (this.m00 + this.m00) + anchory * (this.m01 + this.m01);
this.m12 += anchorx * (this.m10 + this.m10) + anchory * (this.m11 + this.m11);
p$1.rotate180.apply(this, []);
break;
case 3:
this.m02 += anchorx * (this.m00 + this.m01) + anchory * (this.m01 - this.m00);
this.m12 += anchorx * (this.m10 + this.m11) + anchory * (this.m11 - this.m10);
p$1.rotate270.apply(this, []);
break;
}
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state&=~1;
} else {
this.state|=1;
}});
Clazz_newMeth(C$, 'scale$D$D', function (sx, sy) {
var state=this.state;
switch (state) {
default:
p$1.stateError.apply(this, []);
case (7):
case (6):
this.m00 *= sx;
this.m11 *= sy;
case (5):
case (4):
this.m01 *= sy;
this.m10 *= sx;
if (this.m01 == 0 && this.m10 == 0 ) {
state&=1;
if (this.m00 == 1.0 && this.m11 == 1.0 ) {
this.type=(state == 0 ? 0 : 1);
} else {
state|=2;
this.type=-1;
}this.state=state;
}return;
case (3):
case (2):
this.m00 *= sx;
this.m11 *= sy;
if (this.m00 == 1.0 && this.m11 == 1.0 ) {
this.state=(state&=1);
this.type=(state == 0 ? 0 : 1);
} else {
this.type=-1;
}return;
case (1):
case (0):
this.m00=sx;
this.m11=sy;
if (sx != 1.0 || sy != 1.0 ) {
this.state=state | 2;
this.type=-1;
}return;
}
});
Clazz_newMeth(C$, 'shear$D$D', function (shx, shy) {
var state=this.state;
switch (state) {
default:
p$1.stateError.apply(this, []);
case (7):
case (6):
var M0;
var M1;
M0=this.m00;
M1=this.m01;
this.m00=M0 + M1 * shy;
this.m01=M0 * shx + M1;
M0=this.m10;
M1=this.m11;
this.m10=M0 + M1 * shy;
this.m11=M0 * shx + M1;
this.updateState$();
return;
case (5):
case (4):
this.m00=this.m01 * shy;
this.m11=this.m10 * shx;
if (this.m00 != 0.0 || this.m11 != 0.0 ) {
this.state=state | 2;
}this.type=-1;
return;
case (3):
case (2):
this.m01=this.m00 * shx;
this.m10=this.m11 * shy;
if (this.m01 != 0.0 || this.m10 != 0.0 ) {
this.state=state | 4;
}this.type=-1;
return;
case (1):
case (0):
this.m01=shx;
this.m10=shy;
if (this.m01 != 0.0 || this.m10 != 0.0 ) {
this.state=state | 2 | 4 ;
this.type=-1;
}return;
}
});
Clazz_newMeth(C$, 'setToIdentity$', function () {
this.m00=this.m11=1.0;
this.m10=this.m01=this.m02=this.m12=0.0;
this.state=0;
this.type=0;
});
Clazz_newMeth(C$, 'setToTranslation$D$D', function (tx, ty) {
this.m00=1.0;
this.m10=0.0;
this.m01=0.0;
this.m11=1.0;
this.m02=tx;
this.m12=ty;
if (tx != 0.0 || ty != 0.0 ) {
this.state=1;
this.type=1;
} else {
this.state=0;
this.type=0;
}});
Clazz_newMeth(C$, 'setToRotation$D', function (theta) {
p$1.setToRotationTheta$D.apply(this, [theta]);
});
Clazz_newMeth(C$, 'setToRotationTheta$D', function (theta) {
var sin=Math.sin(theta);
var cos;
if (sin == 1.0 || sin == -1.0 ) {
cos=0.0;
this.state=4;
this.type=8;
} else {
cos=Math.cos(theta);
if (cos == -1.0 ) {
sin=0.0;
this.state=2;
this.type=8;
} else if (cos == 1.0 ) {
sin=0.0;
this.state=0;
this.type=0;
} else {
this.state=6;
this.type=16;
}}this.m00=cos;
this.m10=sin;
this.m01=-sin;
this.m11=cos;
this.m02=0.0;
this.m12=0.0;
}, p$1);
Clazz_newMeth(C$, 'setToRotation$D$D$D', function (theta, anchorx, anchory) {
p$1.setToRotationThetaXY$D$D$D.apply(this, [theta, anchorx, anchory]);
});
Clazz_newMeth(C$, 'setToRotationThetaXY$D$D$D', function (theta, anchorx, anchory) {
p$1.setToRotationTheta$D.apply(this, [theta]);
var sin=this.m10;
var oneMinusCos=1.0 - this.m00;
this.m02=anchorx * oneMinusCos + anchory * sin;
this.m12=anchory * oneMinusCos - anchorx * sin;
if (this.m02 != 0.0 || this.m12 != 0.0 ) {
this.state|=1;
this.type|=1;
}}, p$1);
Clazz_newMeth(C$, 'setToRotation$D$D', function (vecx, vecy) {
p$1.setToRotationXY$D$D.apply(this, [vecx, vecy]);
});
Clazz_newMeth(C$, 'setToRotationXY$D$D', function (vecx, vecy) {
var sin;
var cos;
if (vecy == 0 ) {
sin=0.0;
if (vecx < 0.0 ) {
cos=-1.0;
this.state=2;
this.type=8;
} else {
cos=1.0;
this.state=0;
this.type=0;
}} else if (vecx == 0 ) {
cos=0.0;
sin=(vecy > 0.0 ) ? 1.0 : -1.0;
this.state=4;
this.type=8;
} else {
var len=Math.sqrt(vecx * vecx + vecy * vecy);
cos=vecx / len;
sin=vecy / len;
this.state=6;
this.type=16;
}this.m00=cos;
this.m10=sin;
this.m01=-sin;
this.m11=cos;
this.m02=0.0;
this.m12=0.0;
}, p$1);
Clazz_newMeth(C$, 'setToRotation$D$D$D$D', function (vecx, vecy, anchorx, anchory) {
p$1.setToRotationV2XY$D$D$D$D.apply(this, [vecx, vecy, anchorx, anchory]);
});
Clazz_newMeth(C$, 'setToRotationV2XY$D$D$D$D', function (vecx, vecy, anchorx, anchory) {
p$1.setToRotationXY$D$D.apply(this, [vecx, vecy]);
var sin=this.m10;
var oneMinusCos=1.0 - this.m00;
this.m02=anchorx * oneMinusCos + anchory * sin;
this.m12=anchory * oneMinusCos - anchorx * sin;
if (this.m02 != 0.0 || this.m12 != 0.0 ) {
this.state|=1;
this.type|=1;
}}, p$1);
Clazz_newMeth(C$, 'setToQuadrantRotation$I', function (numquadrants) {
switch (numquadrants & 3) {
case 0:
this.m00=1.0;
this.m10=0.0;
this.m01=0.0;
this.m11=1.0;
this.m02=0.0;
this.m12=0.0;
this.state=0;
this.type=0;
break;
case 1:
this.m00=0.0;
this.m10=1.0;
this.m01=-1.0;
this.m11=0.0;
this.m02=0.0;
this.m12=0.0;
this.state=4;
this.type=8;
break;
case 2:
this.m00=-1.0;
this.m10=0.0;
this.m01=0.0;
this.m11=-1.0;
this.m02=0.0;
this.m12=0.0;
this.state=2;
this.type=8;
break;
case 3:
this.m00=0.0;
this.m10=-1.0;
this.m01=1.0;
this.m11=0.0;
this.m02=0.0;
this.m12=0.0;
this.state=4;
this.type=8;
break;
}
});
Clazz_newMeth(C$, 'setToQuadrantRotation$I$D$D', function (numquadrants, anchorx, anchory) {
switch (numquadrants & 3) {
case 0:
this.m00=1.0;
this.m10=0.0;
this.m01=0.0;
this.m11=1.0;
this.m02=0.0;
this.m12=0.0;
this.state=0;
this.type=0;
break;
case 1:
this.m00=0.0;
this.m10=1.0;
this.m01=-1.0;
this.m11=0.0;
this.m02=anchorx + anchory;
this.m12=anchory - anchorx;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=4;
this.type=8;
} else {
this.state=5;
this.type=9;
}break;
case 2:
this.m00=-1.0;
this.m10=0.0;
this.m01=0.0;
this.m11=-1.0;
this.m02=anchorx + anchorx;
this.m12=anchory + anchory;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=2;
this.type=8;
} else {
this.state=3;
this.type=9;
}break;
case 3:
this.m00=0.0;
this.m10=-1.0;
this.m01=1.0;
this.m11=0.0;
this.m02=anchorx - anchory;
this.m12=anchory + anchorx;
if (this.m02 == 0.0 && this.m12 == 0.0 ) {
this.state=4;
this.type=8;
} else {
this.state=5;
this.type=9;
}break;
}
});
Clazz_newMeth(C$, 'setToScale$D$D', function (sx, sy) {
this.m00=sx;
this.m10=0.0;
this.m01=0.0;
this.m11=sy;
this.m02=0.0;
this.m12=0.0;
if (sx != 1.0 || sy != 1.0 ) {
this.state=2;
this.type=-1;
} else {
this.state=0;
this.type=0;
}});
Clazz_newMeth(C$, 'setToShear$D$D', function (shx, shy) {
this.m00=1.0;
this.m01=shx;
this.m10=shy;
this.m11=1.0;
this.m02=0.0;
this.m12=0.0;
if (shx != 0.0 || shy != 0.0 ) {
this.state=(6);
this.type=-1;
} else {
this.state=0;
this.type=0;
}});
Clazz_newMeth(C$, 'setTransform$java_awt_geom_AffineTransform', function (t) {
this.m00=t.m00;
this.m10=t.m10;
this.m01=t.m01;
this.m11=t.m11;
this.m02=t.m02;
this.m12=t.m12;
this.state=t.state;
this.type=t.type;
});
Clazz_newMeth(C$, 'setTransform$D$D$D$D$D$D', function (m00, m10, m01, m11, m02, m12) {
this.m00=m00;
this.m10=m10;
this.m01=m01;
this.m11=m11;
this.m02=m02;
this.m12=m12;
this.updateState$();
});
Clazz_newMeth(C$, 'concatenate$java_awt_geom_AffineTransform', function (Tx) {
var M0;
var M1;
var T00;
var T01;
var T10;
var T11;
var T02;
var T12;
var mystate=this.state;
var txstate=Tx.state;
switch ((txstate << 3) | mystate) {
case (0):
case (1):
case (2):
case (3):
case (4):
case (5):
case (6):
case (7):
return;
case (56):
this.m01=Tx.m01;
this.m10=Tx.m10;
case (24):
this.m00=Tx.m00;
this.m11=Tx.m11;
case (8):
this.m02=Tx.m02;
this.m12=Tx.m12;
this.state=txstate;
this.type=Tx.type;
return;
case (48):
this.m01=Tx.m01;
this.m10=Tx.m10;
case (16):
this.m00=Tx.m00;
this.m11=Tx.m11;
this.state=txstate;
this.type=Tx.type;
return;
case (40):
this.m02=Tx.m02;
this.m12=Tx.m12;
case (32):
this.m01=Tx.m01;
this.m10=Tx.m10;
this.m00=this.m11=0.0;
this.state=txstate;
this.type=Tx.type;
return;
case (15):
case (14):
case (13):
case (12):
case (11):
case (10):
case (9):
this.translate$D$D(Tx.m02, Tx.m12);
return;
case (23):
case (22):
case (21):
case (20):
case (19):
case (18):
case (17):
this.scale$D$D(Tx.m00, Tx.m11);
return;
case (39):
case (38):
T01=Tx.m01;
T10=Tx.m10;
M0=this.m00;
this.m00=this.m01 * T10;
this.m01=M0 * T01;
M0=this.m10;
this.m10=this.m11 * T10;
this.m11=M0 * T01;
this.type=-1;
return;
case (37):
case (36):
this.m00=this.m01 * Tx.m10;
this.m01=0.0;
this.m11=this.m10 * Tx.m01;
this.m10=0.0;
this.state=mystate ^ (6);
this.type=-1;
return;
case (35):
case (34):
this.m01=this.m00 * Tx.m01;
this.m00=0.0;
this.m10=this.m11 * Tx.m10;
this.m11=0.0;
this.state=mystate ^ (6);
this.type=-1;
return;
case (33):
this.m00=0.0;
this.m01=Tx.m01;
this.m10=Tx.m10;
this.m11=0.0;
this.state=5;
this.type=-1;
return;
}
T00=Tx.m00;
T01=Tx.m01;
T02=Tx.m02;
T10=Tx.m10;
T11=Tx.m11;
T12=Tx.m12;
switch (mystate) {
default:
p$1.stateError.apply(this, []);
case (6):
this.state=mystate | txstate;
case (7):
M0=this.m00;
M1=this.m01;
this.m00=T00 * M0 + T10 * M1;
this.m01=T01 * M0 + T11 * M1;
this.m02 += T02 * M0 + T12 * M1;
M0=this.m10;
M1=this.m11;
this.m10=T00 * M0 + T10 * M1;
this.m11=T01 * M0 + T11 * M1;
this.m12 += T02 * M0 + T12 * M1;
this.type=-1;
return;
case (5):
case (4):
M0=this.m01;
this.m00=T10 * M0;
this.m01=T11 * M0;
this.m02 += T12 * M0;
M0=this.m10;
this.m10=T00 * M0;
this.m11=T01 * M0;
this.m12 += T02 * M0;
break;
case (3):
case (2):
M0=this.m00;
this.m00=T00 * M0;
this.m01=T01 * M0;
this.m02 += T02 * M0;
M0=this.m11;
this.m10=T10 * M0;
this.m11=T11 * M0;
this.m12 += T12 * M0;
break;
case (1):
this.m00=T00;
this.m01=T01;
this.m02 += T02;
this.m10=T10;
this.m11=T11;
this.m12 += T12;
this.state=txstate | 1;
this.type=-1;
return;
}
this.updateState$();
});
Clazz_newMeth(C$, 'preConcatenate$java_awt_geom_AffineTransform', function (Tx) {
var M0;
var M1;
var T00;
var T01;
var T10;
var T11;
var T02;
var T12;
var mystate=this.state;
var txstate=Tx.state;
switch ((txstate << 3) | mystate) {
case (0):
case (1):
case (2):
case (3):
case (4):
case (5):
case (6):
case (7):
return;
case (8):
case (10):
case (12):
case (14):
this.m02=Tx.m02;
this.m12=Tx.m12;
this.state=mystate | 1;
this.type|=1;
return;
case (9):
case (11):
case (13):
case (15):
this.m02=this.m02 + Tx.m02;
this.m12=this.m12 + Tx.m12;
return;
case (17):
case (16):
this.state=mystate | 2;
case (23):
case (22):
case (21):
case (20):
case (19):
case (18):
T00=Tx.m00;
T11=Tx.m11;
if ((mystate & 4) != 0) {
this.m01=this.m01 * T00;
this.m10=this.m10 * T11;
if ((mystate & 2) != 0) {
this.m00=this.m00 * T00;
this.m11=this.m11 * T11;
}} else {
this.m00=this.m00 * T00;
this.m11=this.m11 * T11;
}if ((mystate & 1) != 0) {
this.m02=this.m02 * T00;
this.m12=this.m12 * T11;
}this.type=-1;
return;
case (37):
case (36):
mystate=mystate | 2;
case (33):
case (32):
case (35):
case (34):
this.state=mystate ^ 4;
case (39):
case (38):
T01=Tx.m01;
T10=Tx.m10;
M0=this.m00;
this.m00=this.m10 * T01;
this.m10=M0 * T10;
M0=this.m01;
this.m01=this.m11 * T01;
this.m11=M0 * T10;
M0=this.m02;
this.m02=this.m12 * T01;
this.m12=M0 * T10;
this.type=-1;
return;
}
T00=Tx.m00;
T01=Tx.m01;
T02=Tx.m02;
T10=Tx.m10;
T11=Tx.m11;
T12=Tx.m12;
switch (mystate) {
default:
p$1.stateError.apply(this, []);
case (7):
M0=this.m02;
M1=this.m12;
T02 += M0 * T00 + M1 * T01;
T12 += M0 * T10 + M1 * T11;
case (6):
this.m02=T02;
this.m12=T12;
M0=this.m00;
M1=this.m10;
this.m00=M0 * T00 + M1 * T01;
this.m10=M0 * T10 + M1 * T11;
M0=this.m01;
M1=this.m11;
this.m01=M0 * T00 + M1 * T01;
this.m11=M0 * T10 + M1 * T11;
break;
case (5):
M0=this.m02;
M1=this.m12;
T02 += M0 * T00 + M1 * T01;
T12 += M0 * T10 + M1 * T11;
case (4):
this.m02=T02;
this.m12=T12;
M0=this.m10;
this.m00=M0 * T01;
this.m10=M0 * T11;
M0=this.m01;
this.m01=M0 * T00;
this.m11=M0 * T10;
break;
case (3):
M0=this.m02;
M1=this.m12;
T02 += M0 * T00 + M1 * T01;
T12 += M0 * T10 + M1 * T11;
case (2):
this.m02=T02;
this.m12=T12;
M0=this.m00;
this.m00=M0 * T00;
this.m10=M0 * T10;
M0=this.m11;
this.m01=M0 * T01;
this.m11=M0 * T11;
break;
case (1):
M0=this.m02;
M1=this.m12;
T02 += M0 * T00 + M1 * T01;
T12 += M0 * T10 + M1 * T11;
case (0):
this.m02=T02;
this.m12=T12;
this.m00=T00;
this.m10=T10;
this.m01=T01;
this.m11=T11;
this.state=mystate | txstate;
this.type=-1;
return;
}
this.updateState$();
});
Clazz_newMeth(C$, 'createInverse$', function () {
var det;
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
det=this.m00 * this.m11 - this.m01 * this.m10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[this.m11 / det, -this.m10 / det, -this.m01 / det, this.m00 / det, (this.m01 * this.m12 - this.m11 * this.m02) / det, (this.m10 * this.m02 - this.m00 * this.m12) / det, (7)]);
case (6):
det=this.m00 * this.m11 - this.m01 * this.m10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[this.m11 / det, -this.m10 / det, -this.m01 / det, this.m00 / det, 0.0, 0.0, (6)]);
case (5):
if (this.m01 == 0.0 || this.m10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[0.0, 1.0 / this.m01, 1.0 / this.m10, 0.0, -this.m12 / this.m10, -this.m02 / this.m01, (5)]);
case (4):
if (this.m01 == 0.0 || this.m10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[0.0, 1.0 / this.m01, 1.0 / this.m10, 0.0, 0.0, 0.0, (4)]);
case (3):
if (this.m00 == 0.0 || this.m11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[1.0 / this.m00, 0.0, 0.0, 1.0 / this.m11, -this.m02 / this.m00, -this.m12 / this.m11, (3)]);
case (2):
if (this.m00 == 0.0 || this.m11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[1.0 / this.m00, 0.0, 0.0, 1.0 / this.m11, 0.0, 0.0, (2)]);
case (1):
return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[1.0, 0.0, 0.0, 1.0, -this.m02, -this.m12, (1)]);
case (0):
return Clazz_new_(C$);
}
});
Clazz_newMeth(C$, 'invert$', function () {
var M00;
var M01;
var M02;
var M10;
var M11;
var M12;
var det;
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
M00=this.m00;
M01=this.m01;
M02=this.m02;
M10=this.m10;
M11=this.m11;
M12=this.m12;
det=M00 * M11 - M01 * M10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}this.m00=M11 / det;
this.m10=-M10 / det;
this.m01=-M01 / det;
this.m11=M00 / det;
this.m02=(M01 * M12 - M11 * M02) / det;
this.m12=(M10 * M02 - M00 * M12) / det;
break;
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
det=M00 * M11 - M01 * M10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}this.m00=M11 / det;
this.m10=-M10 / det;
this.m01=-M01 / det;
this.m11=M00 / det;
break;
case (5):
M01=this.m01;
M02=this.m02;
M10=this.m10;
M12=this.m12;
if (M01 == 0.0 || M10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}this.m10=1.0 / M01;
this.m01=1.0 / M10;
this.m02=-M12 / M10;
this.m12=-M02 / M01;
break;
case (4):
M01=this.m01;
M10=this.m10;
if (M01 == 0.0 || M10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}this.m10=1.0 / M01;
this.m01=1.0 / M10;
break;
case (3):
M00=this.m00;
M02=this.m02;
M11=this.m11;
M12=this.m12;
if (M00 == 0.0 || M11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}this.m00=1.0 / M00;
this.m11=1.0 / M11;
this.m02=-M02 / M00;
this.m12=-M12 / M11;
break;
case (2):
M00=this.m00;
M11=this.m11;
if (M00 == 0.0 || M11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}this.m00=1.0 / M00;
this.m11=1.0 / M11;
break;
case (1):
this.m02=-this.m02;
this.m12=-this.m12;
break;
case (0):
break;
}
});
Clazz_newMeth(C$, 'transform$java_awt_geom_Point2D$java_awt_geom_Point2D', function (ptSrc, ptDst) {
if (ptDst == null ) {
if (Clazz_instanceOf(ptSrc, "java.awt.geom.Point2D.Double")) {
ptDst=Clazz_new_($I$(2));
} else {
ptDst=Clazz_new_($I$(3));
}}var x=ptSrc.getX$();
var y=ptSrc.getY$();
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
ptDst.setLocation$D$D(x * this.m00 + y * this.m01 + this.m02, x * this.m10 + y * this.m11 + this.m12);
return ptDst;
case (6):
ptDst.setLocation$D$D(x * this.m00 + y * this.m01, x * this.m10 + y * this.m11);
return ptDst;
case (5):
ptDst.setLocation$D$D(y * this.m01 + this.m02, x * this.m10 + this.m12);
return ptDst;
case (4):
ptDst.setLocation$D$D(y * this.m01, x * this.m10);
return ptDst;
case (3):
ptDst.setLocation$D$D(x * this.m00 + this.m02, y * this.m11 + this.m12);
return ptDst;
case (2):
ptDst.setLocation$D$D(x * this.m00, y * this.m11);
return ptDst;
case (1):
ptDst.setLocation$D$D(x + this.m02, y + this.m12);
return ptDst;
case (0):
ptDst.setLocation$D$D(x, y);
return ptDst;
}
});
Clazz_newMeth(C$, 'transform$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I', function (ptSrc, srcOff, ptDst, dstOff, numPts) {
p$1.transformPts$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I.apply(this, [ptSrc, srcOff, ptDst, dstOff, numPts]);
});
Clazz_newMeth(C$, 'transformPts$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I', function (ptSrc, srcOff, ptDst, dstOff, numPts) {
var state=this.state;
while (--numPts >= 0){
var src=ptSrc[srcOff++];
var x=src.getX$();
var y=src.getY$();
var dst=ptDst[dstOff++];
if (dst == null ) {
if (Clazz_instanceOf(src, "java.awt.geom.Point2D.Double")) {
dst=Clazz_new_($I$(2));
} else {
dst=Clazz_new_($I$(3));
}ptDst[dstOff - 1]=dst;
}switch (state) {
default:
p$1.stateError.apply(this, []);
case (7):
dst.setLocation$D$D(x * this.m00 + y * this.m01 + this.m02, x * this.m10 + y * this.m11 + this.m12);
break;
case (6):
dst.setLocation$D$D(x * this.m00 + y * this.m01, x * this.m10 + y * this.m11);
break;
case (5):
dst.setLocation$D$D(y * this.m01 + this.m02, x * this.m10 + this.m12);
break;
case (4):
dst.setLocation$D$D(y * this.m01, x * this.m10);
break;
case (3):
dst.setLocation$D$D(x * this.m00 + this.m02, y * this.m11 + this.m12);
break;
case (2):
dst.setLocation$D$D(x * this.m00, y * this.m11);
break;
case (1):
dst.setLocation$D$D(x + this.m02, y + this.m12);
break;
case (0):
dst.setLocation$D$D(x, y);
break;
}
}
}, p$1);
Clazz_newMeth(C$, 'transform$FA$I$FA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) {
var M00;
var M01;
var M02;
var M10;
var M11;
var M12;
if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
srcOff=dstOff;
}switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
M00=this.m00;
M01=this.m01;
M02=this.m02;
M10=this.m10;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=(M00 * x + M01 * y + M02);
dstPts[dstOff++]=(M10 * x + M11 * y + M12);
}
return;
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=(M00 * x + M01 * y);
dstPts[dstOff++]=(M10 * x + M11 * y);
}
return;
case (5):
M01=this.m01;
M02=this.m02;
M10=this.m10;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=(M01 * srcPts[srcOff++] + M02);
dstPts[dstOff++]=(M10 * x + M12);
}
return;
case (4):
M01=this.m01;
M10=this.m10;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=(M01 * srcPts[srcOff++]);
dstPts[dstOff++]=(M10 * x);
}
return;
case (3):
M00=this.m00;
M02=this.m02;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=(M00 * srcPts[srcOff++] + M02);
dstPts[dstOff++]=(M11 * srcPts[srcOff++] + M12);
}
return;
case (2):
M00=this.m00;
M11=this.m11;
while (--numPts >= 0){
dstPts[dstOff++]=(M00 * srcPts[srcOff++]);
dstPts[dstOff++]=(M11 * srcPts[srcOff++]);
}
return;
case (1):
M02=this.m02;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=(srcPts[srcOff++] + M02);
dstPts[dstOff++]=(srcPts[srcOff++] + M12);
}
return;
case (0):
if (srcPts !== dstPts || srcOff != dstOff ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
}return;
}
});
Clazz_newMeth(C$, 'transform$DA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) {
if (numPts == 0) return;
if (!$I$(4).isAD$O(srcPts)) {
var src=srcPts;
var dst=dstPts;
this.transform$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I(src, srcOff, dst, dstOff, numPts);
return;
}var M00;
var M01;
var M02;
var M10;
var M11;
var M12;
if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
srcOff=dstOff;
}switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
M00=this.m00;
M01=this.m01;
M02=this.m02;
M10=this.m10;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=M00 * x + M01 * y + M02;
dstPts[dstOff++]=M10 * x + M11 * y + M12;
}
return;
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=M00 * x + M01 * y;
dstPts[dstOff++]=M10 * x + M11 * y;
}
return;
case (5):
M01=this.m01;
M02=this.m02;
M10=this.m10;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=M01 * srcPts[srcOff++] + M02;
dstPts[dstOff++]=M10 * x + M12;
}
return;
case (4):
M01=this.m01;
M10=this.m10;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=M01 * srcPts[srcOff++];
dstPts[dstOff++]=M10 * x;
}
return;
case (3):
M00=this.m00;
M02=this.m02;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=M00 * srcPts[srcOff++] + M02;
dstPts[dstOff++]=M11 * srcPts[srcOff++] + M12;
}
return;
case (2):
M00=this.m00;
M11=this.m11;
while (--numPts >= 0){
dstPts[dstOff++]=M00 * srcPts[srcOff++];
dstPts[dstOff++]=M11 * srcPts[srcOff++];
}
return;
case (1):
M02=this.m02;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=srcPts[srcOff++] + M02;
dstPts[dstOff++]=srcPts[srcOff++] + M12;
}
return;
case (0):
if (srcPts !== dstPts || srcOff != dstOff ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
}return;
}
});
Clazz_newMeth(C$, 'transform$FA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) {
var M00;
var M01;
var M02;
var M10;
var M11;
var M12;
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
M00=this.m00;
M01=this.m01;
M02=this.m02;
M10=this.m10;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=M00 * x + M01 * y + M02;
dstPts[dstOff++]=M10 * x + M11 * y + M12;
}
return;
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=M00 * x + M01 * y;
dstPts[dstOff++]=M10 * x + M11 * y;
}
return;
case (5):
M01=this.m01;
M02=this.m02;
M10=this.m10;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=M01 * srcPts[srcOff++] + M02;
dstPts[dstOff++]=M10 * x + M12;
}
return;
case (4):
M01=this.m01;
M10=this.m10;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=M01 * srcPts[srcOff++];
dstPts[dstOff++]=M10 * x;
}
return;
case (3):
M00=this.m00;
M02=this.m02;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=M00 * srcPts[srcOff++] + M02;
dstPts[dstOff++]=M11 * srcPts[srcOff++] + M12;
}
return;
case (2):
M00=this.m00;
M11=this.m11;
while (--numPts >= 0){
dstPts[dstOff++]=M00 * srcPts[srcOff++];
dstPts[dstOff++]=M11 * srcPts[srcOff++];
}
return;
case (1):
M02=this.m02;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=srcPts[srcOff++] + M02;
dstPts[dstOff++]=srcPts[srcOff++] + M12;
}
return;
case (0):
while (--numPts >= 0){
dstPts[dstOff++]=srcPts[srcOff++];
dstPts[dstOff++]=srcPts[srcOff++];
}
return;
}
});
Clazz_newMeth(C$, 'transform$DA$I$FA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) {
var M00;
var M01;
var M02;
var M10;
var M11;
var M12;
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
M00=this.m00;
M01=this.m01;
M02=this.m02;
M10=this.m10;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=(M00 * x + M01 * y + M02);
dstPts[dstOff++]=(M10 * x + M11 * y + M12);
}
return;
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=(M00 * x + M01 * y);
dstPts[dstOff++]=(M10 * x + M11 * y);
}
return;
case (5):
M01=this.m01;
M02=this.m02;
M10=this.m10;
M12=this.m12;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=(M01 * srcPts[srcOff++] + M02);
dstPts[dstOff++]=(M10 * x + M12);
}
return;
case (4):
M01=this.m01;
M10=this.m10;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=(M01 * srcPts[srcOff++]);
dstPts[dstOff++]=(M10 * x);
}
return;
case (3):
M00=this.m00;
M02=this.m02;
M11=this.m11;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=(M00 * srcPts[srcOff++] + M02);
dstPts[dstOff++]=(M11 * srcPts[srcOff++] + M12);
}
return;
case (2):
M00=this.m00;
M11=this.m11;
while (--numPts >= 0){
dstPts[dstOff++]=(M00 * srcPts[srcOff++]);
dstPts[dstOff++]=(M11 * srcPts[srcOff++]);
}
return;
case (1):
M02=this.m02;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=(srcPts[srcOff++] + M02);
dstPts[dstOff++]=(srcPts[srcOff++] + M12);
}
return;
case (0):
while (--numPts >= 0){
dstPts[dstOff++]=(srcPts[srcOff++]);
dstPts[dstOff++]=(srcPts[srcOff++]);
}
return;
}
});
Clazz_newMeth(C$, 'inverseTransform$java_awt_geom_Point2D$java_awt_geom_Point2D', function (ptSrc, ptDst) {
if (ptDst == null ) {
if (Clazz_instanceOf(ptSrc, "java.awt.geom.Point2D.Double")) {
ptDst=Clazz_new_($I$(2));
} else {
ptDst=Clazz_new_($I$(3));
}}var x=ptSrc.getX$();
var y=ptSrc.getY$();
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
x -= this.m02;
y -= this.m12;
case (6):
var det=this.m00 * this.m11 - this.m01 * this.m10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}ptDst.setLocation$D$D((x * this.m11 - y * this.m01) / det, (y * this.m00 - x * this.m10) / det);
return ptDst;
case (5):
x -= this.m02;
y -= this.m12;
case (4):
if (this.m01 == 0.0 || this.m10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}ptDst.setLocation$D$D(y / this.m10, x / this.m01);
return ptDst;
case (3):
x -= this.m02;
y -= this.m12;
case (2):
if (this.m00 == 0.0 || this.m11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}ptDst.setLocation$D$D(x / this.m00, y / this.m11);
return ptDst;
case (1):
ptDst.setLocation$D$D(x - this.m02, y - this.m12);
return ptDst;
case (0):
ptDst.setLocation$D$D(x, y);
return ptDst;
}
});
Clazz_newMeth(C$, 'inverseTransform$DA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) {
var M00;
var M01;
var M02;
var M10;
var M11;
var M12;
var det;
if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
srcOff=dstOff;
}switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
M00=this.m00;
M01=this.m01;
M02=this.m02;
M10=this.m10;
M11=this.m11;
M12=this.m12;
det=M00 * M11 - M01 * M10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}while (--numPts >= 0){
var x=srcPts[srcOff++] - M02;
var y=srcPts[srcOff++] - M12;
dstPts[dstOff++]=(x * M11 - y * M01) / det;
dstPts[dstOff++]=(y * M00 - x * M10) / det;
}
return;
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
det=M00 * M11 - M01 * M10;
if (Math.abs(det) <= 4.9E-324 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]);
}while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=(x * M11 - y * M01) / det;
dstPts[dstOff++]=(y * M00 - x * M10) / det;
}
return;
case (5):
M01=this.m01;
M02=this.m02;
M10=this.m10;
M12=this.m12;
if (M01 == 0.0 || M10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}while (--numPts >= 0){
var x=srcPts[srcOff++] - M02;
dstPts[dstOff++]=(srcPts[srcOff++] - M12) / M10;
dstPts[dstOff++]=x / M01;
}
return;
case (4):
M01=this.m01;
M10=this.m10;
if (M01 == 0.0 || M10 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=srcPts[srcOff++] / M10;
dstPts[dstOff++]=x / M01;
}
return;
case (3):
M00=this.m00;
M02=this.m02;
M11=this.m11;
M12=this.m12;
if (M00 == 0.0 || M11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}while (--numPts >= 0){
dstPts[dstOff++]=(srcPts[srcOff++] - M02) / M00;
dstPts[dstOff++]=(srcPts[srcOff++] - M12) / M11;
}
return;
case (2):
M00=this.m00;
M11=this.m11;
if (M00 == 0.0 || M11 == 0.0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]);
}while (--numPts >= 0){
dstPts[dstOff++]=srcPts[srcOff++] / M00;
dstPts[dstOff++]=srcPts[srcOff++] / M11;
}
return;
case (1):
M02=this.m02;
M12=this.m12;
while (--numPts >= 0){
dstPts[dstOff++]=srcPts[srcOff++] - M02;
dstPts[dstOff++]=srcPts[srcOff++] - M12;
}
return;
case (0):
if (srcPts !== dstPts || srcOff != dstOff ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
}return;
}
});
Clazz_newMeth(C$, 'deltaTransform$java_awt_geom_Point2D$java_awt_geom_Point2D', function (ptSrc, ptDst) {
if (ptDst == null ) {
if (Clazz_instanceOf(ptSrc, "java.awt.geom.Point2D.Double")) {
ptDst=Clazz_new_($I$(2));
} else {
ptDst=Clazz_new_($I$(3));
}}var x=ptSrc.getX$();
var y=ptSrc.getY$();
switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
case (6):
ptDst.setLocation$D$D(x * this.m00 + y * this.m01, x * this.m10 + y * this.m11);
return ptDst;
case (5):
case (4):
ptDst.setLocation$D$D(y * this.m01, x * this.m10);
return ptDst;
case (3):
case (2):
ptDst.setLocation$D$D(x * this.m00, y * this.m11);
return ptDst;
case (1):
case (0):
ptDst.setLocation$D$D(x, y);
return ptDst;
}
});
Clazz_newMeth(C$, 'deltaTransform$DA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) {
var M00;
var M01;
var M10;
var M11;
if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
srcOff=dstOff;
}switch (this.state) {
default:
p$1.stateError.apply(this, []);
case (7):
case (6):
M00=this.m00;
M01=this.m01;
M10=this.m10;
M11=this.m11;
while (--numPts >= 0){
var x=srcPts[srcOff++];
var y=srcPts[srcOff++];
dstPts[dstOff++]=x * M00 + y * M01;
dstPts[dstOff++]=x * M10 + y * M11;
}
return;
case (5):
case (4):
M01=this.m01;
M10=this.m10;
while (--numPts >= 0){
var x=srcPts[srcOff++];
dstPts[dstOff++]=srcPts[srcOff++] * M01;
dstPts[dstOff++]=x * M10;
}
return;
case (3):
case (2):
M00=this.m00;
M11=this.m11;
while (--numPts >= 0){
dstPts[dstOff++]=srcPts[srcOff++] * M00;
dstPts[dstOff++]=srcPts[srcOff++] * M11;
}
return;
case (1):
case (0):
if (srcPts !== dstPts || srcOff != dstOff ) {
System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2);
}return;
}
});
Clazz_newMeth(C$, 'createTransformedShape$java_awt_Shape', function (pSrc) {
if (pSrc == null ) {
return null;
}return Clazz_new_($I$(5).c$$java_awt_Shape$java_awt_geom_AffineTransform,[pSrc, this]);
});
Clazz_newMeth(C$, '_matround$D', function (matval) {
return Math.rint(matval * 1.0E15) / 1.0E15;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return ("AffineTransform[[" + new Double(C$._matround$D(this.m00)).toString() + ", " + new Double(C$._matround$D(this.m01)).toString() + ", " + new Double(C$._matround$D(this.m02)).toString() + "], [" + new Double(C$._matround$D(this.m10)).toString() + ", " + new Double(C$._matround$D(this.m11)).toString() + ", " + new Double(C$._matround$D(this.m12)).toString() + "]]" );
});
Clazz_newMeth(C$, 'isIdentity$', function () {
return (this.state == 0 || (this.getType$() == 0) );
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(1));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'hashCode$', function () {
var bits=Double.doubleToLongBits$D(this.m00);
bits=bits * 31 + Double.doubleToLongBits$D(this.m01);
bits=bits * 31 + Double.doubleToLongBits$D(this.m02);
bits=bits * 31 + Double.doubleToLongBits$D(this.m10);
bits=bits * 31 + Double.doubleToLongBits$D(this.m11);
bits=bits * 31 + Double.doubleToLongBits$D(this.m12);
return (((bits|0)) ^ (((bits >> 32)|0)));
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (!(Clazz_instanceOf(obj, "java.awt.geom.AffineTransform"))) {
return false;
}var a=obj;
return ((this.m00 == a.m00 ) && (this.m01 == a.m01 ) && (this.m02 == a.m02 ) && (this.m10 == a.m10 ) && (this.m11 == a.m11 ) && (this.m12 == a.m12 ) );
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,'InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Dimension2D", null, null, 'Cloneable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setSize$java_awt_geom_Dimension2D', function (d) {
this.setSize$D$D(d.getWidth$(), d.getHeight$());
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(1));
} else {
throw e;
}
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),p$1={},I$=[[0,['java.awt.geom.Path2D','.Iterator'],'java.util.Arrays',['java.awt.geom.Point2D','.Float'],'sun.awt.geom.Curve',['java.awt.geom.Rectangle2D','.Float'],['java.awt.geom.Path2D','.Float','.CopyIterator'],['java.awt.geom.Path2D','.Float','.TxIterator'],['java.awt.geom.Point2D','.Double'],['java.awt.geom.Rectangle2D','.Double'],['java.awt.geom.Path2D','.Double','.CopyIterator'],['java.awt.geom.Path2D','.Double','.TxIterator'],'java.awt.geom.FlatteningPathIterator']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Path2D", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.awt.Shape', 'Cloneable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.pointTypes=null;
this.numTypes=0;
this.numCoords=0;
this.windingRule=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (rule, initialTypes) {
C$.$init$.apply(this);
this.setWindingRule$I(rule);
this.pointTypes=Clazz_array(Byte.TYPE, [initialTypes]);
}, 1);
Clazz_newMeth(C$, 'closePath$', function () {
if (this.numTypes == 0 || this.pointTypes[this.numTypes - 1] != 4 ) {
this.needRoom$Z$I(true, 0);
this.pointTypes[this.numTypes++]=(4|0);
}});
Clazz_newMeth(C$, 'append$java_awt_Shape$Z', function (s, connect) {
this.append$java_awt_geom_PathIterator$Z(s.getPathIterator$java_awt_geom_AffineTransform(null), connect);
});
Clazz_newMeth(C$, 'getWindingRule$', function () {
return this.windingRule;
});
Clazz_newMeth(C$, 'setWindingRule$I', function (rule) {
if (rule != 0 && rule != 1 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["winding rule must be WIND_EVEN_ODD or WIND_NON_ZERO"]);
}this.windingRule=rule;
});
Clazz_newMeth(C$, 'getCurrentPoint$', function () {
var index=this.numCoords;
if (this.numTypes < 1 || index < 1 ) {
return null;
}if (this.pointTypes[this.numTypes - 1] == 4) {
loop : for (var i=this.numTypes - 2; i > 0; i--) {
switch (this.pointTypes[i]) {
case 0:
break loop;
case 1:
index-=2;
break;
case 2:
index-=4;
break;
case 3:
index-=6;
break;
case 4:
break;
}
}
}return this.getPoint$I(index - 2);
});
Clazz_newMeth(C$, 'reset$', function () {
this.numTypes=this.numCoords=0;
});
Clazz_newMeth(C$, 'createTransformedShape$java_awt_geom_AffineTransform', function (at) {
var p2d=this.clone$();
if (at != null ) {
p2d.transform$java_awt_geom_AffineTransform(at);
}return p2d;
});
Clazz_newMeth(C$, 'getBounds$', function () {
return this.getBounds2D$().getBounds$();
});
Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$D$D', function (pi, x, y) {
if (x * 0.0 + y * 0.0 == 0.0 ) {
var mask=(pi.getWindingRule$() == 1 ? -1 : 1);
var cross=$I$(4).pointCrossingsForPath$java_awt_geom_PathIterator$D$D(pi, x, y);
return ((cross & mask) != 0);
} else {
return false;
}}, 1);
Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$java_awt_geom_Point2D', function (pi, p) {
return C$.contains$java_awt_geom_PathIterator$D$D(pi, p.getX$(), p.getY$());
}, 1);
Clazz_newMeth(C$, 'contains$D$D', function (x, y) {
if (x * 0.0 + y * 0.0 == 0.0 ) {
if (this.numTypes < 2) {
return false;
}var mask=(this.windingRule == 1 ? -1 : 1);
return ((this.pointCrossings$D$D(x, y) & mask) != 0);
} else {
return false;
}});
Clazz_newMeth(C$, 'contains$java_awt_geom_Point2D', function (p) {
return this.contains$D$D(p.getX$(), p.getY$());
});
Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$D$D$D$D', function (pi, x, y, w, h) {
if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) {
return false;
}if (w <= 0 || h <= 0 ) {
return false;
}var mask=(pi.getWindingRule$() == 1 ? -1 : 2);
var crossings=$I$(4).rectCrossingsForPath$java_awt_geom_PathIterator$D$D$D$D(pi, x, y, x + w, y + h);
return (crossings != -2147483648 && (crossings & mask) != 0 );
}, 1);
Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$java_awt_geom_Rectangle2D', function (pi, r) {
return C$.contains$java_awt_geom_PathIterator$D$D$D$D(pi, r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
}, 1);
Clazz_newMeth(C$, 'contains$D$D$D$D', function (x, y, w, h) {
if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) {
return false;
}if (w <= 0 || h <= 0 ) {
return false;
}var mask=(this.windingRule == 1 ? -1 : 2);
var crossings=this.rectCrossings$D$D$D$D(x, y, x + w, y + h);
return (crossings != -2147483648 && (crossings & mask) != 0 );
});
Clazz_newMeth(C$, 'contains$java_awt_geom_Rectangle2D', function (r) {
return this.contains$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
});
Clazz_newMeth(C$, 'intersects$java_awt_geom_PathIterator$D$D$D$D', function (pi, x, y, w, h) {
if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) {
return false;
}if (w <= 0 || h <= 0 ) {
return false;
}var mask=(pi.getWindingRule$() == 1 ? -1 : 2);
var crossings=$I$(4).rectCrossingsForPath$java_awt_geom_PathIterator$D$D$D$D(pi, x, y, x + w, y + h);
return (crossings == -2147483648 || (crossings & mask) != 0 );
}, 1);
Clazz_newMeth(C$, 'intersects$java_awt_geom_PathIterator$java_awt_geom_Rectangle2D', function (pi, r) {
return C$.intersects$java_awt_geom_PathIterator$D$D$D$D(pi, r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
}, 1);
Clazz_newMeth(C$, 'intersects$D$D$D$D', function (x, y, w, h) {
if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) {
return false;
}if (w <= 0 || h <= 0 ) {
return false;
}var mask=(this.windingRule == 1 ? -1 : 2);
var crossings=this.rectCrossings$D$D$D$D(x, y, x + w, y + h);
return (crossings == -2147483648 || (crossings & mask) != 0 );
});
Clazz_newMeth(C$, 'intersects$java_awt_geom_Rectangle2D', function (r) {
return this.intersects$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
});
Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform$D', function (at, flatness) {
return Clazz_new_($I$(12).c$$java_awt_geom_PathIterator$D,[this.getPathIterator$java_awt_geom_AffineTransform(at), flatness]);
});
;
(function(){var C$=Clazz_newClass(P$.Path2D, "Iterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.awt.geom.PathIterator');
C$.curvecoords=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.curvecoords=Clazz_array(Integer.TYPE, -1, [2, 2, 4, 6, 0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.typeIdx=0;
this.pointIdx=0;
this.path=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D', function (path) {
C$.$init$.apply(this);
this.path=path;
}, 1);
Clazz_newMeth(C$, 'getWindingRule$', function () {
return this.path.getWindingRule$();
});
Clazz_newMeth(C$, 'isDone$', function () {
return (this.typeIdx >= this.path.numTypes);
});
Clazz_newMeth(C$, 'next$', function () {
var type=this.path.pointTypes[this.typeIdx++];
this.pointIdx+=C$.curvecoords[type];
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Path2D, "Float", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.geom.Path2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.floatCoords=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I.apply(this, [1, 20]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (rule) {
C$.c$$I$I.apply(this, [rule, 20]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (rule, initialCapacity) {
Clazz_super_(C$, this,1);
this.setWindingRule$I(rule);
this.pointTypes=Clazz_array(Byte.TYPE, [initialCapacity]);
this.floatCoords=Clazz_array(Float.TYPE, [initialCapacity * 2]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Shape', function (s) {
C$.c$$java_awt_Shape$java_awt_geom_AffineTransform.apply(this, [s, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Shape$java_awt_geom_AffineTransform', function (s, at) {
Clazz_super_(C$, this,1);
p$1.setPath$java_awt_Shape$java_awt_geom_AffineTransform.apply(this, [s, at]);
}, 1);
Clazz_newMeth(C$, 'setPath$java_awt_Shape$java_awt_geom_AffineTransform', function (s, at) {
if (Clazz_instanceOf(s, "java.awt.geom.Path2D")) {
var p2d=s;
this.setWindingRule$I(p2d.windingRule);
this.numTypes=p2d.numTypes;
this.pointTypes=$I$(2).copyOf$BA$I(p2d.pointTypes, p2d.pointTypes.length);
this.numCoords=p2d.numCoords;
this.floatCoords=p2d.cloneCoordsFloat$java_awt_geom_AffineTransform(at);
} else {
var pi=s.getPathIterator$java_awt_geom_AffineTransform(at);
this.setWindingRule$I(pi.getWindingRule$());
this.pointTypes=Clazz_array(Byte.TYPE, [20]);
this.floatCoords=Clazz_array(Float.TYPE, [40]);
this.append$java_awt_geom_PathIterator$Z(pi, false);
}}, p$1);
Clazz_newMeth(C$, 'cloneCoordsFloat$java_awt_geom_AffineTransform', function (at) {
var ret;
if (at == null ) {
ret=$I$(2).copyOf$FA$I(this.floatCoords, this.floatCoords.length);
} else {
ret=Clazz_array(Float.TYPE, [this.floatCoords.length]);
at.transform$FA$I$FA$I$I(this.floatCoords, 0, ret, 0, (this.numCoords/2|0));
}return ret;
});
Clazz_newMeth(C$, 'cloneCoordsDouble$java_awt_geom_AffineTransform', function (at) {
var ret=Clazz_array(Double.TYPE, [this.floatCoords.length]);
if (at == null ) {
for (var i=0; i < this.numCoords; i++) {
ret[i]=this.floatCoords[i];
}
} else {
at.transform$FA$I$DA$I$I(this.floatCoords, 0, ret, 0, (this.numCoords/2|0));
}return ret;
});
Clazz_newMeth(C$, 'append$F$F', function (x, y) {
this.floatCoords[this.numCoords++]=x;
this.floatCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'append$D$D', function (x, y) {
this.floatCoords[this.numCoords++]=x;
this.floatCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'append$java_awt_geom_PathIterator$Z', function (pi, connect) {
var coords=Clazz_array(Float.TYPE, [6]);
while (!pi.isDone$()){
switch (pi.currentSegment$FA(coords)) {
case 0:
if (!connect || this.numTypes < 1 || this.numCoords < 1 ) {
this.moveTo$F$F(coords[0], coords[1]);
break;
}if (this.pointTypes[this.numTypes - 1] != 4 && this.floatCoords[this.numCoords - 2] == coords[0] && this.floatCoords[this.numCoords - 1] == coords[1] ) {
break;
}case 1:
this.lineTo$F$F(coords[0], coords[1]);
break;
case 2:
this.quadTo$F$F$F$F(coords[0], coords[1], coords[2], coords[3]);
break;
case 3:
this.curveTo$F$F$F$F$F$F(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]);
break;
case 4:
this.closePath$();
break;
}
pi.next$();
connect=false;
}
});
Clazz_newMeth(C$, 'getPoint$I', function (coordindex) {
return Clazz_new_($I$(3).c$$F$F,[this.floatCoords[coordindex], this.floatCoords[coordindex + 1]]);
});
Clazz_newMeth(C$, 'needRoom$Z$I', function (needMove, newCoords) {
if (needMove && this.numTypes == 0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.IllegalPathStateException').c$$S,["missing initial moveto in path definition"]);
}var size=this.pointTypes.length;
if (this.numTypes >= size) {
var grow=size;
if (grow > 500) {
grow=500;
}this.pointTypes=$I$(2).copyOf$BA$I(this.pointTypes, size + grow);
}size=this.floatCoords.length;
if (this.numCoords + newCoords > size) {
var grow=size;
if (grow > 1000) {
grow=1000;
}if (grow < newCoords) {
grow=newCoords;
}this.floatCoords=$I$(2).copyOf$FA$I(this.floatCoords, size + grow);
}});
Clazz_newMeth(C$, 'moveTo$D$D', function (x, y) {
if (this.numTypes > 0 && this.pointTypes[this.numTypes - 1] == 0 ) {
this.floatCoords[this.numCoords - 2]=x;
this.floatCoords[this.numCoords - 1]=y;
} else {
this.needRoom$Z$I(false, 2);
this.pointTypes[this.numTypes++]=(0|0);
this.floatCoords[this.numCoords++]=x;
this.floatCoords[this.numCoords++]=y;
}});
Clazz_newMeth(C$, 'moveTo$F$F', function (x, y) {
if (this.numTypes > 0 && this.pointTypes[this.numTypes - 1] == 0 ) {
this.floatCoords[this.numCoords - 2]=x;
this.floatCoords[this.numCoords - 1]=y;
} else {
this.needRoom$Z$I(false, 2);
this.pointTypes[this.numTypes++]=(0|0);
this.floatCoords[this.numCoords++]=x;
this.floatCoords[this.numCoords++]=y;
}});
Clazz_newMeth(C$, 'lineTo$D$D', function (x, y) {
this.needRoom$Z$I(true, 2);
this.pointTypes[this.numTypes++]=(1|0);
this.floatCoords[this.numCoords++]=x;
this.floatCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'lineTo$F$F', function (x, y) {
this.needRoom$Z$I(true, 2);
this.pointTypes[this.numTypes++]=(1|0);
this.floatCoords[this.numCoords++]=x;
this.floatCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'quadTo$D$D$D$D', function (x1, y1, x2, y2) {
this.needRoom$Z$I(true, 4);
this.pointTypes[this.numTypes++]=(2|0);
this.floatCoords[this.numCoords++]=x1;
this.floatCoords[this.numCoords++]=y1;
this.floatCoords[this.numCoords++]=x2;
this.floatCoords[this.numCoords++]=y2;
});
Clazz_newMeth(C$, 'quadTo$F$F$F$F', function (x1, y1, x2, y2) {
this.needRoom$Z$I(true, 4);
this.pointTypes[this.numTypes++]=(2|0);
this.floatCoords[this.numCoords++]=x1;
this.floatCoords[this.numCoords++]=y1;
this.floatCoords[this.numCoords++]=x2;
this.floatCoords[this.numCoords++]=y2;
});
Clazz_newMeth(C$, 'curveTo$D$D$D$D$D$D', function (x1, y1, x2, y2, x3, y3) {
this.needRoom$Z$I(true, 6);
this.pointTypes[this.numTypes++]=(3|0);
this.floatCoords[this.numCoords++]=x1;
this.floatCoords[this.numCoords++]=y1;
this.floatCoords[this.numCoords++]=x2;
this.floatCoords[this.numCoords++]=y2;
this.floatCoords[this.numCoords++]=x3;
this.floatCoords[this.numCoords++]=y3;
});
Clazz_newMeth(C$, 'curveTo$F$F$F$F$F$F', function (x1, y1, x2, y2, x3, y3) {
this.needRoom$Z$I(true, 6);
this.pointTypes[this.numTypes++]=(3|0);
this.floatCoords[this.numCoords++]=x1;
this.floatCoords[this.numCoords++]=y1;
this.floatCoords[this.numCoords++]=x2;
this.floatCoords[this.numCoords++]=y2;
this.floatCoords[this.numCoords++]=x3;
this.floatCoords[this.numCoords++]=y3;
});
Clazz_newMeth(C$, 'pointCrossings$D$D', function (px, py) {
var movx;
var movy;
var curx;
var cury;
var endx;
var endy;
var coords=this.floatCoords;
curx=movx=coords[0];
cury=movy=coords[1];
var crossings=0;
var ci=2;
for (var i=1; i < this.numTypes; i++) {
switch (this.pointTypes[i]) {
case 0:
if (cury != movy ) {
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy);
}movx=curx=coords[ci++];
movy=cury=coords[ci++];
break;
case 1:
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, endx=coords[ci++], endy=coords[ci++]);
curx=endx;
cury=endy;
break;
case 2:
crossings+=$I$(4).pointCrossingsForQuad$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 3:
crossings+=$I$(4).pointCrossingsForCubic$D$D$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 4:
if (cury != movy ) {
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy);
}curx=movx;
cury=movy;
break;
}
}
if (cury != movy ) {
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy);
}return crossings;
});
Clazz_newMeth(C$, 'rectCrossings$D$D$D$D', function (rxmin, rymin, rxmax, rymax) {
var coords=this.floatCoords;
var curx;
var cury;
var movx;
var movy;
var endx;
var endy;
curx=movx=coords[0];
cury=movy=coords[1];
var crossings=0;
var ci=2;
for (var i=1; crossings != -2147483648 && i < this.numTypes ; i++) {
switch (this.pointTypes[i]) {
case 0:
if (curx != movx || cury != movy ) {
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy);
}movx=curx=coords[ci++];
movy=cury=coords[ci++];
break;
case 1:
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, endx=coords[ci++], endy=coords[ci++]);
curx=endx;
cury=endy;
break;
case 2:
crossings=$I$(4).rectCrossingsForQuad$I$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 3:
crossings=$I$(4).rectCrossingsForCubic$I$D$D$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 4:
if (curx != movx || cury != movy ) {
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy);
}curx=movx;
cury=movy;
break;
}
}
if (crossings != -2147483648 && (curx != movx || cury != movy ) ) {
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy);
}return crossings;
});
Clazz_newMeth(C$, 'transform$java_awt_geom_AffineTransform', function (at) {
at.transform$FA$I$FA$I$I(this.floatCoords, 0, this.floatCoords, 0, (this.numCoords/2|0));
});
Clazz_newMeth(C$, 'getBounds2D$', function () {
var x1;
var y1;
var x2;
var y2;
var i=this.numCoords;
if (i > 0) {
y1=y2=this.floatCoords[--i];
x1=x2=this.floatCoords[--i];
while (i > 0){
var y=this.floatCoords[--i];
var x=this.floatCoords[--i];
if (x < x1 ) x1=x;
if (y < y1 ) y1=y;
if (x > x2 ) x2=x;
if (y > y2 ) y2=y;
}
} else {
x1=y1=x2=y2=0.0;
}return Clazz_new_($I$(5).c$$F$F$F$F,[x1, y1, x2 - x1, y2 - y1]);
});
Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform', function (at) {
if (at == null ) {
return Clazz_new_($I$(6).c$$java_awt_geom_Path2D_Float,[this]);
} else {
return Clazz_new_($I$(7).c$$java_awt_geom_Path2D_Float$java_awt_geom_AffineTransform,[this, at]);
}});
Clazz_newMeth(C$, 'clone$', function () {
return Clazz_new_(C$.c$$java_awt_Shape,[this]);
});
;
(function(){var C$=Clazz_newClass(P$.Path2D.Float, "CopyIterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.awt.geom.Path2D','.Iterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.floatCoords=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Float', function (p2df) {
C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2df]);
C$.$init$.apply(this);
this.floatCoords=p2df.floatCoords;
}, 1);
Clazz_newMeth(C$, 'currentSegment$FA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
System.arraycopy$O$I$O$I$I(this.floatCoords, this.pointIdx, coords, 0, numCoords);
}return type;
});
Clazz_newMeth(C$, 'currentSegment$DA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
for (var i=0; i < numCoords; i++) {
coords[i]=this.floatCoords[this.pointIdx + i];
}
}return type;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Path2D.Float, "TxIterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.awt.geom.Path2D','.Iterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.floatCoords=null;
this.affine=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Float$java_awt_geom_AffineTransform', function (p2df, at) {
C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2df]);
C$.$init$.apply(this);
this.floatCoords=p2df.floatCoords;
this.affine=at;
}, 1);
Clazz_newMeth(C$, 'currentSegment$FA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
this.affine.transform$FA$I$FA$I$I(this.floatCoords, this.pointIdx, coords, 0, (numCoords/2|0));
}return type;
});
Clazz_newMeth(C$, 'currentSegment$DA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
this.affine.transform$FA$I$DA$I$I(this.floatCoords, this.pointIdx, coords, 0, (numCoords/2|0));
}return type;
});
Clazz_newMeth(C$);
})()
})()
;
(function(){var C$=Clazz_newClass(P$.Path2D, "Double", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.geom.Path2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.doubleCoords=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I.apply(this, [1, 20]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (rule) {
C$.c$$I$I.apply(this, [rule, 20]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (rule, initialCapacity) {
C$.superclazz.c$$I$I.apply(this, [rule, initialCapacity]);
C$.$init$.apply(this);
this.doubleCoords=Clazz_array(Double.TYPE, [initialCapacity * 2]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Shape', function (s) {
C$.c$$java_awt_Shape$java_awt_geom_AffineTransform.apply(this, [s, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Shape$java_awt_geom_AffineTransform', function (s, at) {
Clazz_super_(C$, this,1);
if (Clazz_instanceOf(s, "java.awt.geom.Path2D")) {
var p2d=s;
this.setWindingRule$I(p2d.windingRule);
this.numTypes=p2d.numTypes;
this.pointTypes=$I$(2).copyOf$BA$I(p2d.pointTypes, p2d.pointTypes.length);
this.numCoords=p2d.numCoords;
this.doubleCoords=p2d.cloneCoordsDouble$java_awt_geom_AffineTransform(at);
} else {
var pi=s.getPathIterator$java_awt_geom_AffineTransform(at);
this.setWindingRule$I(pi.getWindingRule$());
this.pointTypes=Clazz_array(Byte.TYPE, [20]);
this.doubleCoords=Clazz_array(Double.TYPE, [40]);
this.append$java_awt_geom_PathIterator$Z(pi, false);
}}, 1);
Clazz_newMeth(C$, 'cloneCoordsFloat$java_awt_geom_AffineTransform', function (at) {
var ret=Clazz_array(Float.TYPE, [this.doubleCoords.length]);
if (at == null ) {
for (var i=0; i < this.numCoords; i++) {
ret[i]=this.doubleCoords[i];
}
} else {
at.transform$DA$I$FA$I$I(this.doubleCoords, 0, ret, 0, (this.numCoords/2|0));
}return ret;
});
Clazz_newMeth(C$, 'cloneCoordsDouble$java_awt_geom_AffineTransform', function (at) {
var ret;
if (at == null ) {
ret=$I$(2).copyOf$DA$I(this.doubleCoords, this.doubleCoords.length);
} else {
ret=Clazz_array(Double.TYPE, [this.doubleCoords.length]);
at.transform$DA$I$DA$I$I(this.doubleCoords, 0, ret, 0, (this.numCoords/2|0));
}return ret;
});
Clazz_newMeth(C$, 'append$F$F', function (x, y) {
this.doubleCoords[this.numCoords++]=x;
this.doubleCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'append$D$D', function (x, y) {
this.doubleCoords[this.numCoords++]=x;
this.doubleCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'append$java_awt_geom_PathIterator$Z', function (pi, connect) {
var coords=Clazz_array(Double.TYPE, [6]);
while (!pi.isDone$()){
switch (pi.currentSegment$DA(coords)) {
case 0:
if (!connect || this.numTypes < 1 || this.numCoords < 1 ) {
this.moveTo$D$D(coords[0], coords[1]);
break;
}if (this.pointTypes[this.numTypes - 1] != 4 && this.doubleCoords[this.numCoords - 2] == coords[0] && this.doubleCoords[this.numCoords - 1] == coords[1] ) {
break;
}case 1:
this.lineTo$D$D(coords[0], coords[1]);
break;
case 2:
this.quadTo$D$D$D$D(coords[0], coords[1], coords[2], coords[3]);
break;
case 3:
this.curveTo$D$D$D$D$D$D(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]);
break;
case 4:
this.closePath$();
break;
}
pi.next$();
connect=false;
}
});
Clazz_newMeth(C$, 'getPoint$I', function (coordindex) {
return Clazz_new_($I$(8).c$$D$D,[this.doubleCoords[coordindex], this.doubleCoords[coordindex + 1]]);
});
Clazz_newMeth(C$, 'needRoom$Z$I', function (needMove, newCoords) {
if (needMove && this.numTypes == 0 ) {
throw Clazz_new_(Clazz_load('java.awt.geom.IllegalPathStateException').c$$S,["missing initial moveto in path definition"]);
}var size=this.pointTypes.length;
if (this.numTypes >= size) {
var grow=size;
if (grow > 500) {
grow=500;
}this.pointTypes=$I$(2).copyOf$BA$I(this.pointTypes, size + grow);
}size=this.doubleCoords.length;
if (this.numCoords + newCoords > size) {
var grow=size;
if (grow > 1000) {
grow=1000;
}if (grow < newCoords) {
grow=newCoords;
}this.doubleCoords=$I$(2).copyOf$DA$I(this.doubleCoords, size + grow);
}});
Clazz_newMeth(C$, 'moveTo$D$D', function (x, y) {
if (this.numTypes > 0 && this.pointTypes[this.numTypes - 1] == 0 ) {
this.doubleCoords[this.numCoords - 2]=x;
this.doubleCoords[this.numCoords - 1]=y;
} else {
this.needRoom$Z$I(false, 2);
this.pointTypes[this.numTypes++]=(0|0);
this.doubleCoords[this.numCoords++]=x;
this.doubleCoords[this.numCoords++]=y;
}});
Clazz_newMeth(C$, 'lineTo$D$D', function (x, y) {
this.needRoom$Z$I(true, 2);
this.pointTypes[this.numTypes++]=(1|0);
this.doubleCoords[this.numCoords++]=x;
this.doubleCoords[this.numCoords++]=y;
});
Clazz_newMeth(C$, 'quadTo$D$D$D$D', function (x1, y1, x2, y2) {
this.needRoom$Z$I(true, 4);
this.pointTypes[this.numTypes++]=(2|0);
this.doubleCoords[this.numCoords++]=x1;
this.doubleCoords[this.numCoords++]=y1;
this.doubleCoords[this.numCoords++]=x2;
this.doubleCoords[this.numCoords++]=y2;
});
Clazz_newMeth(C$, 'curveTo$D$D$D$D$D$D', function (x1, y1, x2, y2, x3, y3) {
this.needRoom$Z$I(true, 6);
this.pointTypes[this.numTypes++]=(3|0);
this.doubleCoords[this.numCoords++]=x1;
this.doubleCoords[this.numCoords++]=y1;
this.doubleCoords[this.numCoords++]=x2;
this.doubleCoords[this.numCoords++]=y2;
this.doubleCoords[this.numCoords++]=x3;
this.doubleCoords[this.numCoords++]=y3;
});
Clazz_newMeth(C$, 'pointCrossings$D$D', function (px, py) {
var movx;
var movy;
var curx;
var cury;
var endx;
var endy;
var coords=this.doubleCoords;
curx=movx=coords[0];
cury=movy=coords[1];
var crossings=0;
var ci=2;
for (var i=1; i < this.numTypes; i++) {
switch (this.pointTypes[i]) {
case 0:
if (cury != movy ) {
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy);
}movx=curx=coords[ci++];
movy=cury=coords[ci++];
break;
case 1:
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, endx=coords[ci++], endy=coords[ci++]);
curx=endx;
cury=endy;
break;
case 2:
crossings+=$I$(4).pointCrossingsForQuad$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 3:
crossings+=$I$(4).pointCrossingsForCubic$D$D$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 4:
if (cury != movy ) {
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy);
}curx=movx;
cury=movy;
break;
}
}
if (cury != movy ) {
crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy);
}return crossings;
});
Clazz_newMeth(C$, 'rectCrossings$D$D$D$D', function (rxmin, rymin, rxmax, rymax) {
var coords=this.doubleCoords;
var curx;
var cury;
var movx;
var movy;
var endx;
var endy;
curx=movx=coords[0];
cury=movy=coords[1];
var crossings=0;
var ci=2;
for (var i=1; crossings != -2147483648 && i < this.numTypes ; i++) {
switch (this.pointTypes[i]) {
case 0:
if (curx != movx || cury != movy ) {
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy);
}movx=curx=coords[ci++];
movy=cury=coords[ci++];
break;
case 1:
endx=coords[ci++];
endy=coords[ci++];
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, endx, endy);
curx=endx;
cury=endy;
break;
case 2:
crossings=$I$(4).rectCrossingsForQuad$I$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 3:
crossings=$I$(4).rectCrossingsForCubic$I$D$D$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0);
curx=endx;
cury=endy;
break;
case 4:
if (curx != movx || cury != movy ) {
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy);
}curx=movx;
cury=movy;
break;
}
}
if (crossings != -2147483648 && (curx != movx || cury != movy ) ) {
crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy);
}return crossings;
});
Clazz_newMeth(C$, 'transform$java_awt_geom_AffineTransform', function (at) {
at.transform$DA$I$DA$I$I(this.doubleCoords, 0, this.doubleCoords, 0, (this.numCoords/2|0));
});
Clazz_newMeth(C$, 'getBounds2D$', function () {
var x1;
var y1;
var x2;
var y2;
var i=this.numCoords;
if (i > 0) {
y1=y2=this.doubleCoords[--i];
x1=x2=this.doubleCoords[--i];
while (i > 0){
var y=this.doubleCoords[--i];
var x=this.doubleCoords[--i];
if (x < x1 ) x1=x;
if (y < y1 ) y1=y;
if (x > x2 ) x2=x;
if (y > y2 ) y2=y;
}
} else {
x1=y1=x2=y2=0.0;
}return Clazz_new_($I$(9).c$$D$D$D$D,[x1, y1, x2 - x1, y2 - y1]);
});
Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform', function (at) {
if (at == null ) {
return Clazz_new_($I$(10).c$$java_awt_geom_Path2D_Double,[this]);
} else {
return Clazz_new_($I$(11).c$$java_awt_geom_Path2D_Double$java_awt_geom_AffineTransform,[this, at]);
}});
Clazz_newMeth(C$, 'clone$', function () {
return Clazz_new_(C$.c$$java_awt_Shape,[this]);
});
;
(function(){var C$=Clazz_newClass(P$.Path2D.Double, "CopyIterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.awt.geom.Path2D','.Iterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.doubleCoords=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Double', function (p2dd) {
C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2dd]);
C$.$init$.apply(this);
this.doubleCoords=p2dd.doubleCoords;
}, 1);
Clazz_newMeth(C$, 'currentSegment$FA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
for (var i=0; i < numCoords; i++) {
coords[i]=this.doubleCoords[this.pointIdx + i];
}
}return type;
});
Clazz_newMeth(C$, 'currentSegment$DA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
System.arraycopy$O$I$O$I$I(this.doubleCoords, this.pointIdx, coords, 0, numCoords);
}return type;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Path2D.Double, "TxIterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.awt.geom.Path2D','.Iterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.doubleCoords=null;
this.affine=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Double$java_awt_geom_AffineTransform', function (p2dd, at) {
C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2dd]);
C$.$init$.apply(this);
this.doubleCoords=p2dd.doubleCoords;
this.affine=at;
}, 1);
Clazz_newMeth(C$, 'currentSegment$FA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
this.affine.transform$DA$I$FA$I$I(this.doubleCoords, this.pointIdx, coords, 0, (numCoords/2|0));
}return type;
});
Clazz_newMeth(C$, 'currentSegment$DA', function (coords) {
var type=this.path.pointTypes[this.typeIdx];
var numCoords=$I$(1).curvecoords[type];
if (numCoords > 0) {
this.affine.transform$DA$I$DA$I$I(this.doubleCoords, this.pointIdx, coords, 0, (numCoords/2|0));
}return type;
});
Clazz_newMeth(C$);
})()
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[];
var C$=Clazz_newInterface(P$, "PathIterator");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,'InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Point2D", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, 'Cloneable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setLocation$java_awt_geom_Point2D', function (p) {
this.setLocation$D$D(p.getX$(), p.getY$());
});
Clazz_newMeth(C$, 'distanceSq$D$D$D$D', function (x1, y1, x2, y2) {
x1 -= x2;
y1 -= y2;
return (x1 * x1 + y1 * y1);
}, 1);
Clazz_newMeth(C$, 'distance$D$D$D$D', function (x1, y1, x2, y2) {
x1 -= x2;
y1 -= y2;
return Math.sqrt(x1 * x1 + y1 * y1);
}, 1);
Clazz_newMeth(C$, 'distanceSq$D$D', function (px, py) {
px -= this.getX$();
py -= this.getY$();
return (px * px + py * py);
});
Clazz_newMeth(C$, 'distanceSq$java_awt_geom_Point2D', function (pt) {
var px=pt.getX$() - this.getX$();
var py=pt.getY$() - this.getY$();
return (px * px + py * py);
});
Clazz_newMeth(C$, 'distance$D$D', function (px, py) {
px -= this.getX$();
py -= this.getY$();
return Math.sqrt(px * px + py * py);
});
Clazz_newMeth(C$, 'distance$java_awt_geom_Point2D', function (pt) {
var px=pt.getX$() - this.getX$();
var py=pt.getY$() - this.getY$();
return Math.sqrt(px * px + py * py);
});
Clazz_newMeth(C$, 'hashCode$', function () {
var bits=java.lang.Double.doubleToLongBits$D(this.getX$());
bits^=java.lang.Double.doubleToLongBits$D(this.getY$()) * 31;
return (((bits|0)) ^ (((bits >> 32)|0)));
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(1));
} else {
throw e;
}
}
});
;
(function(){var C$=Clazz_newClass(P$.Point2D, "Float", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.geom.Point2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'c$$F$F', function (x, y) {
Clazz_super_(C$, this,1);
this.x=x;
this.y=y;
}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'setLocation$D$D', function (x, y) {
this.x=x;
this.y=y;
});
Clazz_newMeth(C$, 'setLocation$F$F', function (x, y) {
this.x=x;
this.y=y;
});
Clazz_newMeth(C$, 'toString', function () {
return "Point2D.Float[" + new Float(this.x).toString() + ", " + new Float(this.y).toString() + "]" ;
});
})()
;
(function(){var C$=Clazz_newClass(P$.Point2D, "Double", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.geom.Point2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'c$$D$D', function (x, y) {
Clazz_super_(C$, this,1);
this.x=x;
this.y=y;
}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'setLocation$D$D', function (x, y) {
this.x=x;
this.y=y;
});
Clazz_newMeth(C$, 'toString', function () {
return "Point2D.Double[" + new Double(this.x).toString() + ", " + new Double(this.y).toString() + "]" ;
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,['java.awt.geom.Rectangle2D','.Double'],'java.awt.geom.Rectangle2D','java.awt.geom.RectIterator']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Rectangle2D", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.geom.RectangularShape');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.iterator=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'setRect$java_awt_geom_Rectangle2D', function (r) {
this.setRect$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
});
Clazz_newMeth(C$, 'intersectsLine$D$D$D$D', function (x1, y1, x2, y2) {
var out1;
var out2;
if ((out2=this.outcode$D$D(x2, y2)) == 0) {
return true;
}while ((out1=this.outcode$D$D(x1, y1)) != 0){
if ((out1 & out2) != 0) {
return false;
}if ((out1 & (5)) != 0) {
var x=this.getX$();
if ((out1 & 4) != 0) {
x += this.getWidth$();
}y1=y1 + (x - x1) * (y2 - y1) / (x2 - x1);
x1=x;
} else {
var y=this.getY$();
if ((out1 & 8) != 0) {
y += this.getHeight$();
}x1=x1 + (y - y1) * (x2 - x1) / (y2 - y1);
y1=y;
}}
return true;
});
Clazz_newMeth(C$, 'intersectsLine$java_awt_geom_Line2D', function (l) {
return this.intersectsLine$D$D$D$D(l.getX1$(), l.getY1$(), l.getX2$(), l.getY2$());
});
Clazz_newMeth(C$, 'outcode$java_awt_geom_Point2D', function (p) {
return this.outcode$D$D(p.getX$(), p.getY$());
});
Clazz_newMeth(C$, 'setFrame$D$D$D$D', function (x, y, w, h) {
this.setRect$D$D$D$D(x, y, w, h);
});
Clazz_newMeth(C$, 'contains$D$D', function (x, y) {
var x0=this.getX$();
var y0=this.getY$();
return (x >= x0 && y >= y0 && x < x0 + this.getWidth$() && y < y0 + this.getHeight$() );
});
Clazz_newMeth(C$, 'intersects$D$D$D$D', function (x, y, w, h) {
if (this.isEmpty$() || w <= 0 || h <= 0 ) {
return false;
}var x0=this.getX$();
var y0=this.getY$();
return (x + w > x0 && y + h > y0 && x < x0 + this.getWidth$() && y < y0 + this.getHeight$() );
});
Clazz_newMeth(C$, 'contains$D$D$D$D', function (x, y, w, h) {
if (this.isEmpty$() || w <= 0 || h <= 0 ) {
return false;
}var x0=this.getX$();
var y0=this.getY$();
return (x >= x0 && y >= y0 && (x + w) <= x0 + this.getWidth$() && (y + h) <= y0 + this.getHeight$() );
});
Clazz_newMeth(C$, 'intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D', function (src1, src2, dest) {
var x1=Math.max(src1.getMinX$(), src2.getMinX$());
var y1=Math.max(src1.getMinY$(), src2.getMinY$());
var x2=Math.min(src1.getMaxX$(), src2.getMaxX$());
var y2=Math.min(src1.getMaxY$(), src2.getMaxY$());
dest.setFrame$D$D$D$D(x1, y1, x2 - x1, y2 - y1);
}, 1);
Clazz_newMeth(C$, 'union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D', function (src1, src2, dest) {
var x1=Math.min(src1.getMinX$(), src2.getMinX$());
var y1=Math.min(src1.getMinY$(), src2.getMinY$());
var x2=Math.max(src1.getMaxX$(), src2.getMaxX$());
var y2=Math.max(src1.getMaxY$(), src2.getMaxY$());
dest.setFrameFromDiagonal$D$D$D$D(x1, y1, x2, y2);
}, 1);
Clazz_newMeth(C$, 'add$D$D', function (newx, newy) {
var x1=Math.min(this.getMinX$(), newx);
var x2=Math.max(this.getMaxX$(), newx);
var y1=Math.min(this.getMinY$(), newy);
var y2=Math.max(this.getMaxY$(), newy);
this.setRect$D$D$D$D(x1, y1, x2 - x1, y2 - y1);
});
Clazz_newMeth(C$, 'add$java_awt_geom_Point2D', function (pt) {
this.add$D$D(pt.getX$(), pt.getY$());
});
Clazz_newMeth(C$, 'add$java_awt_geom_Rectangle2D', function (r) {
var x1=Math.min(this.getMinX$(), r.getMinX$());
var x2=Math.max(this.getMaxX$(), r.getMaxX$());
var y1=Math.min(this.getMinY$(), r.getMinY$());
var y2=Math.max(this.getMaxY$(), r.getMaxY$());
this.setRect$D$D$D$D(x1, y1, x2 - x1, y2 - y1);
});
Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform', function (at) {
return (this.iterator == null ? this.iterator=Clazz_new_($I$(3)) : this.iterator).set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform(this, at);
});
Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform$D', function (at, flatness) {
return (this.iterator == null ? this.iterator=Clazz_new_($I$(3)) : this.iterator).set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform(this, at);
});
Clazz_newMeth(C$, 'hashCode$', function () {
var bits=java.lang.Double.doubleToLongBits$D(this.getX$());
bits+=java.lang.Double.doubleToLongBits$D(this.getY$()) * 37;
bits+=java.lang.Double.doubleToLongBits$D(this.getWidth$()) * 43;
bits+=java.lang.Double.doubleToLongBits$D(this.getHeight$()) * 47;
return (((bits|0)) ^ (((bits >> 32)|0)));
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (obj === this ) {
return true;
}if (Clazz_instanceOf(obj, "java.awt.geom.Rectangle2D")) {
var r2d=obj;
return ((this.getX$() == r2d.getX$() ) && (this.getY$() == r2d.getY$() ) && (this.getWidth$() == r2d.getWidth$() ) && (this.getHeight$() == r2d.getHeight$() ) );
}return false;
});
;
(function(){var C$=Clazz_newClass(P$.Rectangle2D, "Float", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.geom.Rectangle2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
this.width=0;
this.height=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'c$$F$F$F$F', function (x, y, w, h) {
Clazz_super_(C$, this,1);
this.setRect$F$F$F$F(x, y, w, h);
}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'getWidth$', function () {
return this.width;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.height;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return (this.width <= 0.0 ) || (this.height <= 0.0 ) ;
});
Clazz_newMeth(C$, 'setRect$F$F$F$F', function (x, y, w, h) {
this.x=x;
this.y=y;
this.width=w;
this.height=h;
});
Clazz_newMeth(C$, 'setRect$D$D$D$D', function (x, y, w, h) {
this.x=x;
this.y=y;
this.width=w;
this.height=h;
});
Clazz_newMeth(C$, 'setRect$java_awt_geom_Rectangle2D', function (r) {
this.x=r.getX$();
this.y=r.getY$();
this.width=r.getWidth$();
this.height=r.getHeight$();
});
Clazz_newMeth(C$, 'outcode$D$D', function (x, y) {
var out=0;
if (this.width <= 0 ) {
out|=5;
} else if (x < this.x ) {
out|=1;
} else if (x > this.x + this.width ) {
out|=4;
}if (this.height <= 0 ) {
out|=10;
} else if (y < this.y ) {
out|=2;
} else if (y > this.y + this.height ) {
out|=8;
}return out;
});
Clazz_newMeth(C$, 'getBounds2D$', function () {
return Clazz_new_(C$.c$$F$F$F$F,[this.x, this.y, this.width, this.height]);
});
Clazz_newMeth(C$, 'createIntersection$java_awt_geom_Rectangle2D', function (r) {
var dest;
if (Clazz_instanceOf(r, "java.awt.geom.Rectangle2D.Float")) {
dest=Clazz_new_(C$);
} else {
dest=Clazz_new_($I$(1));
}$I$(2).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest);
return dest;
});
Clazz_newMeth(C$, 'createUnion$java_awt_geom_Rectangle2D', function (r) {
var dest;
if (Clazz_instanceOf(r, "java.awt.geom.Rectangle2D.Float")) {
dest=Clazz_new_(C$);
} else {
dest=Clazz_new_($I$(1));
}$I$(2).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest);
return dest;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[x=" + new Float(this.x).toString() + ",y=" + new Float(this.y).toString() + ",w=" + new Float(this.width).toString() + ",h=" + new Float(this.height).toString() + "]" ;
});
})()
;
(function(){var C$=Clazz_newClass(P$.Rectangle2D, "Double", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.geom.Rectangle2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
this.width=0;
this.height=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'c$$D$D$D$D', function (x, y, w, h) {
Clazz_super_(C$, this,1);
this.setRect$D$D$D$D(x, y, w, h);
}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'getWidth$', function () {
return this.width;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.height;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return (this.width <= 0.0 ) || (this.height <= 0.0 ) ;
});
Clazz_newMeth(C$, 'setRect$D$D$D$D', function (x, y, w, h) {
this.x=x;
this.y=y;
this.width=w;
this.height=h;
});
Clazz_newMeth(C$, 'setRect$java_awt_geom_Rectangle2D', function (r) {
this.x=r.getX$();
this.y=r.getY$();
this.width=r.getWidth$();
this.height=r.getHeight$();
});
Clazz_newMeth(C$, 'outcode$D$D', function (x, y) {
var out=0;
if (this.width <= 0 ) {
out|=5;
} else if (x < this.x ) {
out|=1;
} else if (x > this.x + this.width ) {
out|=4;
}if (this.height <= 0 ) {
out|=10;
} else if (y < this.y ) {
out|=2;
} else if (y > this.y + this.height ) {
out|=8;
}return out;
});
Clazz_newMeth(C$, 'getBounds2D$', function () {
return Clazz_new_(C$.c$$D$D$D$D,[this.x, this.y, this.width, this.height]);
});
Clazz_newMeth(C$, 'createIntersection$java_awt_geom_Rectangle2D', function (r) {
var dest=Clazz_new_(C$);
$I$(2).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest);
return dest;
});
Clazz_newMeth(C$, 'createUnion$java_awt_geom_Rectangle2D', function (r) {
var dest=Clazz_new_(C$);
$I$(2).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest);
return dest;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[x=" + new Double(this.x).toString() + ",y=" + new Double(this.y).toString() + ",w=" + new Double(this.width).toString() + ",h=" + new Double(this.height).toString() + "]" ;
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,['java.awt.geom.Rectangle2D','.Double'],'java.awt.Rectangle','java.awt.geom.FlatteningPathIterator','InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "RectangularShape", null, null, ['java.awt.Shape', 'Cloneable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getMinX$', function () {
return this.getX$();
});
Clazz_newMeth(C$, 'getMinY$', function () {
return this.getY$();
});
Clazz_newMeth(C$, 'getMaxX$', function () {
return this.getX$() + this.getWidth$();
});
Clazz_newMeth(C$, 'getMaxY$', function () {
return this.getY$() + this.getHeight$();
});
Clazz_newMeth(C$, 'getCenterX$', function () {
return this.getX$() + this.getWidth$() / 2.0;
});
Clazz_newMeth(C$, 'getCenterY$', function () {
return this.getY$() + this.getHeight$() / 2.0;
});
Clazz_newMeth(C$, 'getFrame$', function () {
return Clazz_new_($I$(1).c$$D$D$D$D,[this.getX$(), this.getY$(), this.getWidth$(), this.getHeight$()]);
});
Clazz_newMeth(C$, 'setFrame$java_awt_geom_Point2D$java_awt_geom_Dimension2D', function (loc, size) {
this.setFrame$D$D$D$D(loc.getX$(), loc.getY$(), size.getWidth$(), size.getHeight$());
});
Clazz_newMeth(C$, 'setFrame$java_awt_geom_Rectangle2D', function (r) {
this.setFrame$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
});
Clazz_newMeth(C$, 'setFrameFromDiagonal$D$D$D$D', function (x1, y1, x2, y2) {
if (x2 < x1 ) {
var t=x1;
x1=x2;
x2=t;
}if (y2 < y1 ) {
var t=y1;
y1=y2;
y2=t;
}this.setFrame$D$D$D$D(x1, y1, x2 - x1, y2 - y1);
});
Clazz_newMeth(C$, 'setFrameFromDiagonal$java_awt_geom_Point2D$java_awt_geom_Point2D', function (p1, p2) {
this.setFrameFromDiagonal$D$D$D$D(p1.getX$(), p1.getY$(), p2.getX$(), p2.getY$());
});
Clazz_newMeth(C$, 'setFrameFromCenter$D$D$D$D', function (centerX, centerY, cornerX, cornerY) {
var halfW=Math.abs(cornerX - centerX);
var halfH=Math.abs(cornerY - centerY);
this.setFrame$D$D$D$D(centerX - halfW, centerY - halfH, halfW * 2.0, halfH * 2.0);
});
Clazz_newMeth(C$, 'setFrameFromCenter$java_awt_geom_Point2D$java_awt_geom_Point2D', function (center, corner) {
this.setFrameFromCenter$D$D$D$D(center.getX$(), center.getY$(), corner.getX$(), corner.getY$());
});
Clazz_newMeth(C$, 'contains$java_awt_geom_Point2D', function (p) {
return this.contains$D$D(p.getX$(), p.getY$());
});
Clazz_newMeth(C$, 'intersects$java_awt_geom_Rectangle2D', function (r) {
return this.intersects$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
});
Clazz_newMeth(C$, 'contains$java_awt_geom_Rectangle2D', function (r) {
return this.contains$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$());
});
Clazz_newMeth(C$, 'getBounds$', function () {
var width=this.getWidth$();
var height=this.getHeight$();
if (width < 0 || height < 0 ) {
return Clazz_new_($I$(2));
}var x=this.getX$();
var y=this.getY$();
var x1=Math.floor(x);
var y1=Math.floor(y);
var x2=Math.ceil(x + width);
var y2=Math.ceil(y + height);
return Clazz_new_($I$(2).c$$I$I$I$I,[(x1|0), (y1|0), ((x2 - x1)|0), ((y2 - y1)|0)]);
});
Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform$D', function (at, flatness) {
return Clazz_new_($I$(3).c$$java_awt_geom_PathIterator$D,[this.getPathIterator$java_awt_geom_AffineTransform(at), flatness]);
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(4));
} else {
throw e;
}
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[];
var C$=Clazz_newClass(P$, "RectIterator", null, null, 'java.awt.geom.PathIterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
this.w=0;
this.h=0;
this.affine=null;
this.index=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform', function (r, at) {
this.x=r.getX$();
this.y=r.getY$();
this.w=r.getWidth$();
this.h=r.getHeight$();
this.affine=at;
this.index=(this.w < 0 || this.h < 0 ? 6 : 0);
return this;
});
Clazz_newMeth(C$, 'getWindingRule$', function () {
return 1;
});
Clazz_newMeth(C$, 'isDone$', function () {
return this.index > 5;
});
Clazz_newMeth(C$, 'next$', function () {
this.index++;
});
Clazz_newMeth(C$, 'currentSegment$FA', function (coords) {
if (this.isDone$()) {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["rect iterator out of bounds"]);
}if (this.index == 5) {
return 4;
}coords[0]=this.x;
coords[1]=this.y;
if (this.index == 1 || this.index == 2 ) {
coords[0] += this.w;
}if (this.index == 2 || this.index == 3 ) {
coords[1] += this.h;
}if (this.affine != null ) {
this.affine.transform$FA$I$FA$I$I(coords, 0, coords, 0, 1);
}return (this.index == 0 ? 0 : 1);
});
Clazz_newMeth(C$, 'currentSegment$DA', function (coords) {
if (this.isDone$()) {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["rect iterator out of bounds"]);
}if (this.index == 5) {
return 4;
}coords[0]=this.x;
coords[1]=this.y;
if (this.index == 1 || this.index == 2 ) {
coords[0] += this.w;
}if (this.index == 2 || this.index == 3 ) {
coords[1] += this.h;
}if (this.affine != null ) {
this.affine.transform$DA$I$DA$I$I(coords, 0, coords, 0, 1);
}return (this.index == 0 ? 0 : 1);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "GraphicsCallback", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'sun.awt.SunGraphicsCallback');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
;
(function(){var C$=Clazz_newClass(P$.GraphicsCallback, "PaintCallback", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.GraphicsCallback');
C$.instance=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.instance=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'run$java_awt_Component$java_awt_Graphics', function (comp, cg) {
comp.paint$java_awt_Graphics(cg);
});
Clazz_newMeth(C$, 'getInstance$', function () {
return C$.instance;
}, 1);
})()
;
(function(){var C$=Clazz_newClass(P$.GraphicsCallback, "PaintAllCallback", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.GraphicsCallback');
C$.instance=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.instance=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'run$java_awt_Component$java_awt_Graphics', function (comp, cg) {
comp.paintAll$java_awt_Graphics(cg);
});
Clazz_newMeth(C$, 'getInstance$', function () {
return C$.instance;
}, 1);
})()
;
(function(){var C$=Clazz_newClass(P$.GraphicsCallback, "PaintHeavyweightComponentsCallback", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.GraphicsCallback');
C$.instance=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.instance=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'run$java_awt_Component$java_awt_Graphics', function (comp, cg) {
if (comp.isLightweight$()) {
comp.paintHeavyweightComponents$java_awt_Graphics(cg);
} else {
comp.paintAll$java_awt_Graphics(cg);
}});
Clazz_newMeth(C$, 'getInstance$', function () {
return C$.instance;
}, 1);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'swingjs.api.Interface','java.awt.image.ColorModel','java.awt.image.WritableRaster','Boolean','java.util.Hashtable']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "GraphicsConfiguration");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'createCompatibleImage$I$I$I', function (width, height, transparency) {
if (this.getColorModel$().getTransparency$() == transparency) {
return this.createCompatibleImage$I$I(width, height);
}var cm=this.getColorModel$I(transparency);
if (cm == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Unknown transparency: " + transparency]);
}var wr=cm.createCompatibleWritableRaster$I$I(width, height);
return this.newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable(cm, wr, cm.isAlphaPremultiplied$(), null);
});
Clazz_newMeth(C$, 'newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable', function (cm, wr, alphaPremultiplied, properties) {
return $I$(1).getInstanceWithParams$S$ClassA$OA("java.awt.image.BufferedImage", Clazz_array(Class, -1, [Clazz_getClass($I$(2)), Clazz_getClass($I$(3)), Clazz_getClass($I$(4)), Clazz_getClass($I$(5))]), Clazz_array(java.lang.Object, -1, [cm, wr, alphaPremultiplied ? $I$(4).TRUE : $I$(4).FALSE, properties]));
});
Clazz_newMeth(C$, 'createCompatibleVolatileImage$I$I', function (width, height) {
var vi=null;
try {
vi=this.createCompatibleVolatileImage$I$I$java_awt_ImageCapabilities$I(width, height, null, 1);
} catch (e) {
if (Clazz_exceptionOf(e,"java.awt.AWTException")){
Clazz_assert(C$, this, function(){return false});
} else {
throw e;
}
}
return vi;
});
Clazz_newMeth(C$, 'createCompatibleVolatileImage$I$I$I', function (width, height, transparency) {
var vi=null;
try {
vi=this.createCompatibleVolatileImage$I$I$java_awt_ImageCapabilities$I(width, height, null, transparency);
} catch (e) {
if (Clazz_exceptionOf(e,"java.awt.AWTException")){
Clazz_assert(C$, this, function(){return false});
} else {
throw e;
}
}
return vi;
});
Clazz_newMeth(C$, 'createCompatibleVolatileImage$I$I$java_awt_ImageCapabilities$I', function (width, height, caps, transparency) {
var vi=$I$(1).getInstanceWithParams$S$ClassA$OA("sun.awt.image.SunVolatileImage", Clazz_array(Class, -1, [Clazz_getClass(C$), Clazz_getClass(Integer), Clazz_getClass(Integer), Clazz_getClass($I$(4)), Clazz_getClass(java.lang.Object), Clazz_getClass(Integer)]), Clazz_array(java.lang.Object, -1, [this, Integer.valueOf$I(width), Integer.valueOf$I(height), caps, Integer.valueOf$I(transparency)]));
if (caps != null && caps.isAccelerated$() && !vi.getCapabilities$().isAccelerated$() ) {
throw Clazz_new_(Clazz_load('java.awt.AWTException').c$$S,["Supplied image capabilities could not be met by this graphics configuration."]);
}return vi;
});
Clazz_newMeth(C$, 'isTranslucencyCapable$', function () {
return false;
});
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.DisplayMode',['java.awt.GraphicsDevice','.WindowTranslucency']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "GraphicsDevice", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.fullScreenWindow=null;
this.windowedModeBounds=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getBestConfiguration$O', function (gct) {
return this.getDefaultConfiguration$();
});
Clazz_newMeth(C$, 'isFullScreenSupported$', function () {
return false;
});
Clazz_newMeth(C$, 'setFullScreenWindow$java_awt_Window', function (w) {
});
Clazz_newMeth(C$, 'getFullScreenWindow$', function () {
return null;
});
Clazz_newMeth(C$, 'isDisplayChangeSupported$', function () {
return false;
});
Clazz_newMeth(C$, 'setDisplayMode$O', function (dm) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException').c$$S,["Cannot change display mode"]);
});
Clazz_newMeth(C$, 'getDisplayMode$', function () {
var gc=this.getDefaultConfiguration$();
var r=gc.getBounds$();
var cm=gc.getColorModel$();
return Clazz_new_($I$(1).c$$I$I$I$I,[r.width, r.height, cm.getPixelSize$(), 0]);
});
Clazz_newMeth(C$, 'getDisplayModes$', function () {
return Clazz_array($I$(1), -1, [this.getDisplayMode$()]);
});
Clazz_newMeth(C$, 'getAvailableAcceleratedMemory$', function () {
return -1;
});
Clazz_newMeth(C$, 'isWindowTranslucencySupported$java_awt_GraphicsDevice_WindowTranslucency', function (translucencyKind) {
switch (translucencyKind) {
case $I$(2).PERPIXEL_TRANSPARENT:
return C$.isWindowShapingSupported$();
case $I$(2).TRANSLUCENT:
return C$.isWindowOpacitySupported$();
case $I$(2).PERPIXEL_TRANSLUCENT:
return this.isWindowPerpixelTranslucencySupported$();
}
return false;
});
Clazz_newMeth(C$, 'isWindowShapingSupported$', function () {
return false;
}, 1);
Clazz_newMeth(C$, 'isWindowOpacitySupported$', function () {
return false;
}, 1);
Clazz_newMeth(C$, 'isWindowPerpixelTranslucencySupported$', function () {
return true;
});
Clazz_newMeth(C$, 'getTranslucencyCapableGC$', function () {
var defaultGC=this.getDefaultConfiguration$();
if (defaultGC.isTranslucencyCapable$()) {
return defaultGC;
}var configs=this.getConfigurations$();
for (var j=0; j < configs.length; j++) {
if (configs[j].isTranslucencyCapable$()) {
return configs[j];
}}
return null;
});
;
(function(){var C$=Clazz_newClass(P$.GraphicsDevice, "WindowTranslucency", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "PERPIXEL_TRANSPARENT", 0, []);
Clazz_newEnumConst($vals, C$.c$, "TRANSLUCENT", 1, []);
Clazz_newEnumConst($vals, C$.c$, "PERPIXEL_TRANSLUCENT", 2, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "GraphicsEnvironment");
C$.localEnv=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getLocalGraphicsEnvironment$', function () {
if (C$.localEnv == null ) {
C$.localEnv=$I$(1).getInstance$S("swingjs.JSGraphicsEnvironment");
}return C$.localEnv;
}, 1);
Clazz_newMeth(C$, 'isHeadless$', function () {
return false;
}, 1);
Clazz_newMeth(C$, 'getHeadlessProperty$', function () {
return false;
}, 1);
Clazz_newMeth(C$, 'checkHeadless$', function () {
}, 1);
Clazz_newMeth(C$, 'isHeadlessInstance$', function () {
return C$.getHeadlessProperty$();
});
Clazz_newMeth(C$, 'registerFont$java_awt_Font', function (font) {
return true;
});
Clazz_newMeth(C$, 'preferLocaleFonts$', function () {
});
Clazz_newMeth(C$, 'preferProportionalFonts$', function () {
});
Clazz_newMeth(C$, 'getCenterPoint$', function () {
return null;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.image"),I$=[];
var C$=Clazz_newInterface(P$, "ImageObserver");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Insets", null, null, ['Cloneable', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.top=0;
this.left=0;
this.bottom=0;
this.right=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) {
C$.$init$.apply(this);
this.top=top;
this.left=left;
this.bottom=bottom;
this.right=right;
}, 1);
Clazz_newMeth(C$, 'set$I$I$I$I', function (top, left, bottom, right) {
this.top=top;
this.left=left;
this.bottom=bottom;
this.right=right;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (Clazz_instanceOf(obj, "java.awt.Insets")) {
var insets=obj;
return ((this.top == insets.top) && (this.left == insets.left) && (this.bottom == insets.bottom) && (this.right == insets.right) );
}return false;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var sum1=this.left + this.bottom;
var sum2=this.right + this.top;
var val1=(sum1 * (sum1 + 1)/2|0) + this.left;
var val2=(sum2 * (sum2 + 1)/2|0) + this.top;
var sum3=val1 + val2;
return (sum3 * (sum3 + 1)/2|0) + val2;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[top=" + this.top + ",left=" + this.left + ",bottom=" + this.bottom + ",right=" + this.right + "]" ;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(1));
} else {
throw e;
}
}
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "ItemSelectable");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'Thread','java.awt.Container','java.awt.Insets','javax.swing.JComponent','swingjs.JSFrameViewer','Boolean','javax.swing.UIManager','java.util.Arrays','swingjs.JSUtil','javax.swing.border.AbstractBorder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSComponent", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.Component');
C$.秘incr=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.秘isAppletFrame=false;
this.秘isFramedApplet=false;
this.秘htmlName=null;
this.秘num=0;
this.秘tempInsets=null;
this.秘gtemp=null;
this.秘isRootPane=false;
this.秘isContentPane=false;
this.秘appletViewer=null;
this.秘frameViewer=null;
this.秘topFrameViewer=null;
this.秘canvas=null;
this.ui=null;
this.秘uiClassID=null;
this.秘peerVis=null;
this.秘border=null;
this.秘iPaintMyself=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.秘appletViewer=($I$(1).currentThread$()).秘appletViewer;
this.秘iPaintMyself=0;
}, 1);
Clazz_newMeth(C$, '秘resizeOriginal$I$I', function (width, height) {
this.resize$I$I(width, height);
});
Clazz_newMeth(C$, '秘ensurePropertyChangeListener$java_awt_Component$java_awt_Component', function (c, listener) {
if (Clazz_instanceOf(listener, "java.beans.PropertyChangeListener")) {
c.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
c.addPropertyChangeListener$java_beans_PropertyChangeListener(listener);
} else if (listener != null ) {
System.err.println$S("JSComponent: " + listener + " is not a PropertyChangeListener -- modal dialog will fail." );
}}, 1);
Clazz_newMeth(C$, '秘getChildArray$java_awt_Container', function (c) {
return (c == null ? $I$(2).EMPTY_ARRAY : c.getChildArray$());
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.秘num=++C$.秘incr;
}, 1);
Clazz_newMeth(C$, 'getGraphics$', function () {
if (this.width == 0 || this.height == 0 || !this.isVisible$() ) return null;
var g;
if (this.秘frameViewer != null ) {
g=this.秘frameViewer.getGraphics$().create$();
if (this.秘isContentPane) {
if (this.秘tempInsets == null ) this.秘tempInsets=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
(this).getRootPane$().getInsets$java_awt_Insets(this.秘tempInsets);
if (this.秘tempInsets.left != 0 || this.秘tempInsets.top != 0 ) g.translate$I$I(this.秘tempInsets.left, this.秘tempInsets.top);
}return g;
}if (this.parent == null ) {
return null;
}g=this.parent.getGraphics$();
if (g == null ) return null;
if (!$I$(4).isComponentObtainingGraphicsFrom$java_awt_Component(null) && !this.秘paintsSelf$() ) {
this.秘setPaintsSelf$();
(this.ui).clearPaintPath$();
}g.translate$I$I(this.x, (this.秘isContentPane ? 0 : this.y));
g.clipRect$I$I$I$I(0, 0, this.width, this.height);
g.setFont$java_awt_Font(this.getFont$());
return g;
});
Clazz_newMeth(C$, 'setFrameViewer$swingjs_JSFrameViewer', function (viewer) {
return this.秘frameViewer=(viewer == null ? viewer=Clazz_new_($I$(5)).setForWindow$javax_swing_RootPaneContainer(this) : viewer);
});
Clazz_newMeth(C$, 'getFrameViewer$', function () {
var parent=null;
return (this.秘topFrameViewer != null ? this.秘topFrameViewer : this.秘frameViewer != null ? this.秘topFrameViewer=this.秘frameViewer : (parent=this.getParent$()) == null ? null : (this.秘topFrameViewer=parent.getFrameViewer$()));
});
Clazz_newMeth(C$, 'getHTMLName$S', function (uid) {
return (this.秘htmlName == null ? this.秘htmlName=this.appContext.getThreadGroup$().getName$() + "_" + uid + "_" + this.秘num : this.秘htmlName);
});
Clazz_newMeth(C$, 'getUIClassID$', function () {
return (this.秘uiClassID == null ? this.秘uiClassID="ComponentUI" : this.秘uiClassID);
});
Clazz_newMeth(C$, 'setUIClassID$S', function (id) {
this.秘uiClassID=id;
});
Clazz_newMeth(C$, 'setUI$javax_swing_plaf_ComponentUI', function (ui) {
this.ui=ui;
});
Clazz_newMeth(C$, 'getUI$', function () {
return this.ui;
});
Clazz_newMeth(C$, 'isDisplayable$', function () {
return C$.秘getTopInvokableAncestor$java_awt_Component$Z(this, false) != null ;
});
Clazz_newMeth(C$, 'updatePeerVisibility$Z', function (isVisible) {
if (this.getOrCreatePeer$() == null ) this.秘peerVis=(isVisible ? $I$(6).TRUE : $I$(6).FALSE);
else this.updatePeerVisibilityOrig$Z(isVisible);
});
Clazz_newMeth(C$, 'getOrCreatePeer$', function () {
return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createComponent$java_awt_Component(this)) : this.peer);
});
Clazz_newMeth(C$, 'updateUI$', function () {
if (this.秘uiClassID == null ) this.秘uiClassID=this.getUIClassID$();
if (this.ui == null ) this.setUI$javax_swing_plaf_ComponentUI($I$(7).getUI$java_awt_Component(this));
});
Clazz_newMeth(C$, '秘getJSGraphic2D$java_awt_Graphics', function (g) {
return (g.mark$ ? g :null);
});
Clazz_newMeth(C$, 'isBackgroundSet$', function () {
return (this.background == null ? false : this.isAWT$ ||false ? !(Clazz_instanceOf(this.background, "javax.swing.plaf.UIResource")) : true);
});
Clazz_newMeth(C$, 'isForegroundSet$', function () {
return (this.foreground == null ? false : this.isAWT$ ||false ? !(Clazz_instanceOf(this.foreground, "javax.swing.plaf.UIResource")) : true);
});
Clazz_newMeth(C$, 'isFontSet$', function () {
return ((this.font == null ? null : new Boolean(this.isAWT$ ||false ? !(Clazz_instanceOf(this.font, "javax.swing.plaf.FontUIResource")) : true))).booleanValue$();
});
Clazz_newMeth(C$, '秘updateUIZOrder$', function () {
var n=(this).getComponentCount$();
if (n < 2) return;
var components=C$.秘getChildArray$java_awt_Container(this);
var zorders=Clazz_array(Integer.TYPE, [n]);
for (var i=0; i < n; i++) zorders[i]=(components[i].getUI$()).getZIndex$S(null);
$I$(8).sort$IA(zorders);
for (var i=0; i < n; i++) (components[i].getUI$()).setZOrder$I(zorders[n - 1 - i ]);
});
Clazz_newMeth(C$, 'invalidateComp$', function () {
C$.superclazz.prototype.invalidateComp$.apply(this, []);
if (this.ui != null ) (this.ui).invalidate$();
});
Clazz_newMeth(C$, 'validate$', function () {
var wasValid=this.isValid$();
C$.superclazz.prototype.validate$.apply(this, []);
if (this.ui != null && !wasValid ) (this.ui).endValidate$();
});
Clazz_newMeth(C$, '秘paintWithBackgroundCheck$java_awt_Graphics', function (g) {
var jcg=this.秘getJSGraphic2D$java_awt_Graphics(g);
this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, true);
this.paint$java_awt_Graphics(g);
this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, false);
});
Clazz_newMeth(C$, '秘paintContainerBackgroundCheck$java_awt_Graphics', function (g) {
var jcg=this.秘getJSGraphic2D$java_awt_Graphics(g);
this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, true);
(this).paintContainer$java_awt_Graphics(g);
this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, false);
});
Clazz_newMeth(C$, 'addKeyListener$java_awt_event_KeyListener', function (l) {
C$.superclazz.prototype.addKeyListener$java_awt_event_KeyListener.apply(this, [l]);
if (l != null && this.ui != null ) (this.ui).enableJSKeys$Z(true);
});
Clazz_newMeth(C$, 'removeKeyListener$java_awt_event_KeyListener', function (l) {
C$.superclazz.prototype.removeKeyListener$java_awt_event_KeyListener.apply(this, [l]);
if (this.keyListener == null && this.ui != null ) (this.ui).enableJSKeys$Z(false);
});
Clazz_newMeth(C$, '秘jsInputMapSet$', function () {
if (this.ui != null ) (this.ui).enableJSKeys$Z(true);
});
Clazz_newMeth(C$, '秘getTopInvokableAncestor$java_awt_Component$Z', function (c, andFocusable) {
for (var p=c; p != null ; p=C$.秘nextHigher$java_awt_Component(p)) {
if (p.isWindowOrJSApplet$() && (!andFocusable || (p).isFocusableWindow$() ) ) {
return p;
}}
return null;
}, 1);
Clazz_newMeth(C$, '秘nextHigher$java_awt_Component', function (c) {
var p=c.getParent$();
if (p == null && Clazz_instanceOf(c, "javax.swing.JPopupMenu") ) p=(c).getInvoker$();
return p;
}, 1);
Clazz_newMeth(C$, '秘isFocusSetAndEnabled$', function () {
return this.秘isFocusableSet && this.isFocusable$() ;
});
Clazz_newMeth(C$, '秘checkBackgroundPainted$swingjs_JSGraphics2D$Z', function (jsg, init) {
if (jsg == null || init ) {
this.秘gtemp=jsg;
(this.ui).paintBackground$swingjs_JSGraphics2D(jsg);
return;
}this.秘gtemp=null;
});
Clazz_newMeth(C$, '秘setPaintsSelf$', function () {
return this.秘iPaintMyself=1;
});
Clazz_newMeth(C$, '秘paintsSelf$', function () {
if (this.秘iPaintMyself == 0) {
this.秘iPaintMyself=($I$(9).isOverridden$O$S$Class(this, "paint$java_awt_Graphics", Clazz_getClass($I$(4))) || $I$(9).isOverridden$O$S$Class(this, "paintComponent$java_awt_Graphics", Clazz_getClass($I$(4))) || $I$(9).isOverridden$O$S$Class(this, "paintContainer$java_awt_Graphics", Clazz_getClass($I$(2))) || $I$(9).isOverridden$O$S$Class(this.秘border, "paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I", Clazz_getClass($I$(10))) ? this.秘setPaintsSelf$() : -1);
}return (this.秘iPaintMyself == 1);
});
Clazz_newMeth(C$, '秘selfOrChildIsPainted$', function () {
return this.秘paintsSelf$();
});
;
(function(){var C$=Clazz_newInterface(P$.JSComponent, "A2SComponentWrapper", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.JSComponent, "A2SWrappedComponent", function(){
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.ArrayList','java.awt.Dialog',['java.awt.Dialog','.ModalityType'],'java.awt.Toolkit','java.awt.Window','java.awt.event.ComponentEvent',['java.awt.Dialog','.ModalExclusionType']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSDialog", null, 'java.awt.Window');
C$.modalDialogs=null;
C$.$nameCounter=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.modalDialogs=Clazz_new_($I$(1));
C$.$nameCounter=0;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.blockedWindows=null;
this.resizable=false;
this.undecorated=false;
this.initialized=false;
this.modal=false;
this.modalityType=null;
this.title=null;
this.modalFilter=null;
this.isInHide=false;
this.isInDispose=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.blockedWindows=Clazz_new_($I$(1));
this.resizable=true;
this.undecorated=false;
this.initialized=false;
this.isInHide=false;
this.isInDispose=false;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSFrame', function (owner) {
C$.c$$java_awt_JSFrame$S$Z.apply(this, [owner, "", false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame', function (owner) {
C$.c$$java_awt_Frame$S$Z.apply(this, [owner, "", false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSFrame$Z', function (owner, modal) {
C$.c$$java_awt_JSFrame$S$Z.apply(this, [owner, "", modal]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$Z', function (owner, modal) {
C$.c$$java_awt_Frame$S$Z.apply(this, [owner, "", modal]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSFrame$S', function (owner, title) {
C$.c$$java_awt_JSFrame$S$Z.apply(this, [owner, title, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$S', function (owner, title) {
C$.c$$java_awt_Frame$S$Z.apply(this, [owner, title, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSFrame$S$Z', function (owner, title, modal) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z', function (owner, title, modal) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSFrame$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSDialog', function (owner) {
C$.c$$java_awt_JSDialog$S$Z.apply(this, [owner, "", false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog', function (owner) {
C$.c$$java_awt_Dialog$S$Z.apply(this, [owner, "", false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSDialog$S', function (owner, title) {
C$.c$$java_awt_JSDialog$S$Z.apply(this, [owner, title, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog$S', function (owner, title) {
C$.c$$java_awt_Dialog$S$Z.apply(this, [owner, title, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSDialog$S$Z', function (owner, title, modal) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z', function (owner, title, modal) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_JSDialog$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window', function (owner) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, null, $I$(3).MODELESS]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$S', function (owner, title) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, $I$(3).MODELESS]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$java_awt_Dialog_ModalityType', function (owner, modalityType) {
C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, null, modalityType]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType', function (owner, title, modalityType) {
C$.superclazz.c$$java_awt_Window.apply(this, [owner]);
C$.$init$.apply(this);
if ((owner != null ) && !(Clazz_instanceOf(owner, "java.awt.JSFrame")) && !(Clazz_instanceOf(owner, "java.awt.JSDialog")) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Wrong parent window"]);
}this.title=title;
this.setModalityType$java_awt_Dialog_ModalityType(modalityType);
this.initialized=true;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration', function (owner, title, modalityType, gc) {
C$.superclazz.c$$java_awt_Window$java_awt_GraphicsConfiguration.apply(this, [owner, gc]);
C$.$init$.apply(this);
if ((owner != null ) && !(Clazz_instanceOf(owner, "java.awt.JSFrame")) && !(Clazz_instanceOf(owner, "java.awt.JSDialog")) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["wrong owner window"]);
}this.title=title;
this.setModalityType$java_awt_Dialog_ModalityType(modalityType);
this.initialized=true;
}, 1);
Clazz_newMeth(C$, 'constructComponentName$', function () {
return "dialog" + C$.$nameCounter++;
});
Clazz_newMeth(C$, 'addNotify$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.getOrCreatePeer$();
if (this.parent != null ) {
this.parent.addNotify$();
}C$.superclazz.prototype.addNotify$.apply(this, []);
}});
Clazz_newMeth(C$, 'getOrCreatePeer$', function () {
return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createDialog$java_awt_Dialog(this)) : this.peer);
});
Clazz_newMeth(C$, 'isModal$', function () {
return this.isModal_NoClientCode$();
});
Clazz_newMeth(C$, 'isModal_NoClientCode$', function () {
return this.modalityType !== $I$(3).MODELESS ;
});
Clazz_newMeth(C$, 'setModal$Z', function (modal) {
this.modal=modal;
this.setModalityType$java_awt_Dialog_ModalityType(modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS);
});
Clazz_newMeth(C$, 'getModalityType$', function () {
return this.modalityType;
});
Clazz_newMeth(C$, 'setModalityType$java_awt_Dialog_ModalityType', function (type) {
if (type == null ) {
type=$I$(3).MODELESS;
}if (!$I$(4).getDefaultToolkit$().isModalityTypeSupported$java_awt_Dialog_ModalityType(type)) {
type=$I$(3).MODELESS;
}if (this.modalityType === type ) {
return;
}p$1.checkModalityPermission$java_awt_Dialog_ModalityType.apply(this, [type]);
this.modalityType=type;
this.modal=(this.modalityType !== $I$(3).MODELESS );
});
Clazz_newMeth(C$, 'getTitle$', function () {
return this.title;
});
Clazz_newMeth(C$, 'setTitle$S', function (title) {
var oldTitle=this.title;
{
this.title=title;
var peer=this.peer;
if (peer != null ) {
peer.setTitle$S(title);
}}this.firePropertyChange$S$O$O("title", oldTitle, title);
});
Clazz_newMeth(C$, 'conditionalShow$java_awt_Component$Long', function (toFocus, time) {
var retval;
P$.Window.closeSplashScreen$();
if (this.ui != null && (this.ui).isDisposed ) this.addNotify$();
this.validate$();
if (this.visible) {
this.toFront$();
retval=false;
} else {
retval=true;
C$.superclazz.prototype.show$.apply(this, []);
if (toFocus != null && time != null && this.isFocusable$() && this.isEnabled$() && !this.isModalBlocked$() ) {
}if (this.isModalBlocked$()) {
this.modalBlocker.toFront$();
}for (var i=0; i < this.ownedWindowList.size$(); i++) {
var child=this.ownedWindowList.elementAt$I(i);
if ((child != null ) && child.showWithParent ) {
child.show$();
child.showWithParent=false;
}}
$I$(5).updateChildFocusableWindowState$java_awt_Window(this);
this.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, this, this.parent, 4, $I$(4).enabledOnToolkit$J(32768));
if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(4).enabledOnToolkit$J(1) ) {
var e=Clazz_new_($I$(6).c$$java_awt_Component$I,[this, 102]);
$I$(4).getEventQueue$().postEvent$java_awt_AWTEvent(e);
}}if (retval && (this.state & 1) == 0 ) {
this.postWindowEvent$I(200);
this.state|=1;
}return retval;
}, p$1);
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
C$.superclazz.prototype.setVisible$Z.apply(this, [b]);
});
Clazz_newMeth(C$, 'show$', function () {
if (!this.initialized) {
throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["The dialog component has not been initialized properly"]);
}this.beforeFirstShow=false;
if (!this.isModal$()) {
p$1.conditionalShow$java_awt_Component$Long.apply(this, [null, null]);
} else {
p$1.conditionalShow$java_awt_Component$Long.apply(this, [null, null]);
}});
Clazz_newMeth(C$, 'modalityPushed$', function () {
});
Clazz_newMeth(C$, 'modalityPopped$', function () {
});
Clazz_newMeth(C$, 'interruptBlocking$', function () {
if (this.isModal$()) {
this.disposeImpl$();
} else if (this.windowClosingException != null ) {
this.windowClosingException.fillInStackTrace$();
this.windowClosingException.printStackTrace$();
this.windowClosingException=null;
}});
Clazz_newMeth(C$, 'hideAndDisposePreHandler', function () {
this.isInHide=true;
this.modalHide$();
if (this.modalFilter != null ) {
this.modalFilter.disable$();
}C$.modalDialogs.remove$O(this);
}, p$1);
Clazz_newMeth(C$, 'hideAndDisposeHandler', function () {
this.isInHide=false;
}, p$1);
Clazz_newMeth(C$, 'hide$', function () {
p$1.hideAndDisposePreHandler.apply(this, []);
C$.superclazz.prototype.hide$.apply(this, []);
if (!this.isInDispose) {
p$1.hideAndDisposeHandler.apply(this, []);
}});
Clazz_newMeth(C$, 'doDispose$', function () {
this.isInDispose=true;
C$.superclazz.prototype.doDispose$.apply(this, []);
p$1.hideAndDisposeHandler.apply(this, []);
this.isInDispose=false;
});
Clazz_newMeth(C$, 'toBack$', function () {
C$.superclazz.prototype.toBack$.apply(this, []);
});
Clazz_newMeth(C$, 'isResizable$', function () {
return this.resizable;
});
Clazz_newMeth(C$, 'setResizable$Z', function (resizable) {
var testvalid=false;
{
this.resizable=resizable;
var peer=this.peer;
if (peer != null ) {
peer.setResizable$Z(resizable);
testvalid=true;
}}if (testvalid) {
this.invalidateIfValid$();
}});
Clazz_newMeth(C$, 'setUndecorated$Z', function (undecorated) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (this.isDisplayable$()) {
throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["The dialog is displayable."]);
}this.undecorated=undecorated;
}});
Clazz_newMeth(C$, 'isUndecorated$', function () {
return this.undecorated;
});
Clazz_newMeth(C$, 'paramString$', function () {
var str=C$.superclazz.prototype.paramString$.apply(this, []) + "," + this.modalityType ;
if (this.title != null ) {
str += ",title=" + this.title;
}return str;
});
Clazz_newMeth(C$, 'modalShow$', function () {
});
Clazz_newMeth(C$, 'modalHide$', function () {
var save=Clazz_new_($I$(1));
var blockedWindowsCount=this.blockedWindows.size$();
for (var i=0; i < blockedWindowsCount; i++) {
var w=this.blockedWindows.get$I(0);
save.add$TE(w);
this.unblockWindow$java_awt_Window(w);
}
for (var i=0; i < blockedWindowsCount; i++) {
var w=save.get$I(i);
if ((Clazz_instanceOf(w, "java.awt.JSDialog")) && (w).isModal_NoClientCode$() ) {
var d=w;
d.modalShow$();
} else {
C$.checkShouldBeBlocked$java_awt_Window(w);
}}
});
Clazz_newMeth(C$, 'shouldBlock$java_awt_Window', function (w) {
if (!this.isVisible_NoClientCode$() || (!w.isVisible_NoClientCode$() && !w.isInShow ) || this.isInHide || (w === this ) || !this.isModal_NoClientCode$() ) {
return false;
}if ((Clazz_instanceOf(w, "java.awt.JSDialog")) && (w).isInHide ) {
return false;
}var blockerToCheck=this;
while (blockerToCheck != null ){
var c=w;
while ((c != null ) && (c !== blockerToCheck ) ){
c=c.getParent_NoClientCode$();
}
if (c === blockerToCheck ) {
return false;
}blockerToCheck=blockerToCheck.getModalBlocker$();
}
switch (this.modalityType) {
case $I$(3).MODELESS:
return false;
case $I$(3).DOCUMENT_MODAL:
if (w.isModalExcluded$java_awt_Dialog_ModalExclusionType($I$(7).APPLICATION_EXCLUDE)) {
var c=this;
while ((c != null ) && (c !== w ) ){
c=c.getParent_NoClientCode$();
}
return c === w ;
} else {
return this.getDocumentRoot$() === w.getDocumentRoot$() ;
}case $I$(3).APPLICATION_MODAL:
return !w.isModalExcluded$java_awt_Dialog_ModalExclusionType($I$(7).APPLICATION_EXCLUDE) && (this.appContext === w.appContext ) ;
case $I$(3).TOOLKIT_MODAL:
return !w.isModalExcluded$java_awt_Dialog_ModalExclusionType($I$(7).TOOLKIT_EXCLUDE);
}
return false;
});
Clazz_newMeth(C$, 'blockWindow$java_awt_Window', function (w) {
if (!w.isModalBlocked$()) {
w.setModalBlocked$java_awt_JSDialog$Z$Z(this, true, true);
this.blockedWindows.add$TE(w);
}});
Clazz_newMeth(C$, 'blockWindows$java_util_List', function (toBlock) {
var dpeer=this.peer;
if (dpeer == null ) {
return;
}var it=toBlock.iterator$();
while (it.hasNext$()){
var w=it.next$();
if (!w.isModalBlocked$()) {
w.setModalBlocked$java_awt_JSDialog$Z$Z(this, true, false);
} else {
it.remove$();
}}
dpeer.blockWindows$java_util_List(toBlock);
this.blockedWindows.addAll$java_util_Collection(toBlock);
});
Clazz_newMeth(C$, 'unblockWindow$java_awt_Window', function (w) {
if (w.isModalBlocked$() && this.blockedWindows.contains$O(w) ) {
this.blockedWindows.remove$O(w);
w.setModalBlocked$java_awt_JSDialog$Z$Z(this, false, true);
}});
Clazz_newMeth(C$, 'checkShouldBeBlocked$java_awt_Window', function (w) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(w.getTreeLock$());
{
for (var i=0; i < C$.modalDialogs.size$(); i++) {
var modalDialog=C$.modalDialogs.get$I(i);
if (modalDialog.shouldBlock$java_awt_Window(w)) {
modalDialog.blockWindow$java_awt_Window(w);
break;
}}
}}, 1);
Clazz_newMeth(C$, 'checkModalityPermission$java_awt_Dialog_ModalityType', function (mt) {
}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Cursor','java.awt.Window']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSFrame", null, 'java.awt.Window');
C$.$nameCounter=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.$nameCounter=0;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.maximizedBounds=null;
this.title=null;
this.resizable=false;
this.undecorated=false;
this.mbManagement=false;
this.$state=0;
this.ownedWindows=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.title="Untitled";
this.resizable=true;
this.undecorated=false;
this.mbManagement=false;
this.$state=0;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.initTitleGC$S$java_awt_GraphicsConfiguration(null, null);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) {
Clazz_super_(C$, this,1);
this.initTitleGC$S$java_awt_GraphicsConfiguration(null, gc);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (title) {
Clazz_super_(C$, this,1);
this.initTitleGC$S$java_awt_GraphicsConfiguration(title, null);
}, 1);
Clazz_newMeth(C$, 'c$$S$java_awt_GraphicsConfiguration', function (title, gc) {
Clazz_super_(C$, this,1);
this.initTitleGC$S$java_awt_GraphicsConfiguration(title, gc);
}, 1);
Clazz_newMeth(C$, 'initTitleGC$S$java_awt_GraphicsConfiguration', function (title, gc) {
this.title=(title == null ? "" : title);
this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(null, gc);
});
Clazz_newMeth(C$, 'constructComponentName$', function () {
return "frame" + C$.$nameCounter++;
});
Clazz_newMeth(C$, 'addNotify$', function () {
this.getOrCreatePeer$();
var p=this.peer;
if (p != null ) p.setMaximizedBounds$java_awt_Rectangle(this.maximizedBounds);
C$.superclazz.prototype.addNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'getOrCreatePeer$', function () {
return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createFrame$java_awt_JSFrame(this)) : this.peer);
});
Clazz_newMeth(C$, 'getTitle$', function () {
return this.title;
});
Clazz_newMeth(C$, 'setTitle$S', function (title) {
var oldTitle=this.title;
if (title == null ) {
title="";
}{
this.title=title;
var peer=this.peer;
if (peer != null ) {
peer.setTitle$S(title);
}}this.firePropertyChange$S$O$O("title", oldTitle, title);
});
Clazz_newMeth(C$, 'getIconImage$', function () {
var icons=this.icons;
if (icons != null ) {
if (icons.size$() > 0) {
return icons.get$I(0);
}}return null;
});
Clazz_newMeth(C$, 'setIconImage$java_awt_Image', function (image) {
C$.superclazz.prototype.setIconImage$java_awt_Image.apply(this, [image]);
});
Clazz_newMeth(C$, 'isResizable$', function () {
return this.resizable;
});
Clazz_newMeth(C$, 'setResizable$Z', function (resizable) {
var oldResizable=this.resizable;
{
this.resizable=resizable;
}this.firePropertyChange$S$Z$Z("resizable", oldResizable, resizable);
});
Clazz_newMeth(C$, 'setState$I', function (state) {
var current=this.getExtendedState$();
if (state == 1 && (current & 1) == 0 ) {
this.setExtendedState$I(current | 1);
} else if (state == 0 && (current & 1) != 0 ) {
this.setExtendedState$I(current & ~1);
}});
Clazz_newMeth(C$, 'setExtendedState$I', function (state) {
if (!p$1.isFrameStateSupported$I.apply(this, [state])) {
return;
}this.$state=state;
});
Clazz_newMeth(C$, 'isFrameStateSupported$I', function (state) {
if (!this.getToolkit$().isFrameStateSupported$I(state)) {
if (((state & 1) != 0) && !this.getToolkit$().isFrameStateSupported$I(1) ) {
return false;
} else {
state&=~1;
}return this.getToolkit$().isFrameStateSupported$I(state);
}return true;
}, p$1);
Clazz_newMeth(C$, 'getState$', function () {
return (this.getExtendedState$() & 1) != 0 ? 1 : 0;
});
Clazz_newMeth(C$, 'getExtendedState$', function () {
return this.$state;
});
Clazz_newMeth(C$, 'setMaximizedBounds$java_awt_Rectangle', function (bounds) {
this.maximizedBounds=bounds;
});
Clazz_newMeth(C$, 'getMaximizedBounds$', function () {
return this.maximizedBounds;
});
Clazz_newMeth(C$, 'setUndecorated$Z', function (undecorated) {
this.undecorated=undecorated;
});
Clazz_newMeth(C$, 'isUndecorated$', function () {
return this.undecorated;
});
Clazz_newMeth(C$, 'removeNotify$', function () {
C$.superclazz.prototype.removeNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'postProcessKeyEvent$java_awt_event_KeyEvent', function (e) {
C$.superclazz.prototype.postProcessKeyEvent$java_awt_event_KeyEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'paramString$', function () {
var str=C$.superclazz.prototype.paramString$.apply(this, []);
if (this.title != null ) {
str += ",title=" + this.title;
}if (this.resizable) {
str += ",resizable";
}this.getExtendedState$();
if (this.$state == 0) {
str += ",normal";
} else {
if ((this.$state & 1) != 0) {
str += ",iconified";
}if ((this.$state & 6) == 6) {
str += ",maximized";
} else if ((this.$state & 2) != 0) {
str += ",maximized_horiz";
} else if ((this.$state & 4) != 0) {
str += ",maximized_vert";
}}return str;
});
Clazz_newMeth(C$, 'setCursor$I', function (cursorType) {
if (cursorType < 0 || cursorType > 13 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal cursor type"]);
}this.setCursor$java_awt_Cursor($I$(1).getPredefinedCursor$I(cursorType));
});
Clazz_newMeth(C$, 'getCursorType$', function () {
return (this.getCursor$().getType$());
});
Clazz_newMeth(C$, 'getFrames$', function () {
var allWindows=$I$(2).getWindows$();
var frameCount=0;
for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) {
if (Clazz_instanceOf(w, "java.awt.JSFrame")) {
frameCount++;
}}
var frames=Clazz_array(C$, [frameCount]);
var c=0;
for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) {
if (Clazz_instanceOf(w, "java.awt.JSFrame")) {
frames[c++]=w;
}}
return frames;
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.FlowLayout']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSPanel", null, 'java.awt.Container');
C$.nameCounter=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.nameCounter=0;
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$java_awt_LayoutManager.apply(this, [Clazz_new_($I$(1))]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) {
Clazz_super_(C$, this,1);
this.setAppContext$();
this.setLayout$java_awt_LayoutManager(layout);
}, 1);
Clazz_newMeth(C$, 'canPaint$', function () {
return this.秘isContentPane;
});
Clazz_newMeth(C$, 'constructComponentName$', function () {
return "panel" + C$.nameCounter++;
});
Clazz_newMeth(C$, 'addNotify$', function () {
this.getOrCreatePeer$();
C$.superclazz.prototype.addNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'getOrCreatePeer$', function () {
return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createPanel$java_awt_Panel(this)) : this.peer);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.LinkedList',['java.awt.KeyboardFocusManager','.LightweightFocusRequest'],'sun.awt.AWTAccessor','java.awt.KeyboardFocusManager','java.awt.AWTKeyStroke','java.util.HashMap','java.awt.DefaultFocusTraversalPolicy','java.util.Set','sun.awt.AppContext','java.awt.DefaultKeyboardFocusManager','Boolean','java.util.StringTokenizer','java.util.Collections','java.util.HashSet','java.awt.Toolkit','java.awt.GraphicsEnvironment','java.beans.PropertyChangeSupport','java.beans.VetoableChangeSupport','sun.awt.SunToolkit',['java.awt.KeyboardFocusManager','.HeavyweightFocusRequest'],['sun.awt.CausedFocusEvent','.Cause'],'java.awt.event.FocusEvent','sun.awt.CausedFocusEvent','java.awt.EventQueue']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "KeyboardFocusManager", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.awt.KeyEventDispatcher', 'java.awt.KeyEventPostProcessor']);
C$.focusOwner=null;
C$.permanentFocusOwner=null;
C$.focusedWindow=null;
C$.activeWindow=null;
C$.defaultFocusTraversalKeyPropertyNames=null;
C$.defaultFocusTraversalKeyStrokes=null;
C$.currentFocusCycleRoot=null;
C$.mostRecentFocusOwners=null;
C$.replaceKeyboardFocusManagerPermission=null;
C$.heavyweightRequests=null;
C$.currentLightweightRequests=null;
C$.clearingCurrentLightweightRequests=false;
C$.allowSyncFocusRequests=false;
C$.newFocusOwner=null;
C$.disableRestoreFocus=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
$I$(3).setKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_KeyboardFocusManagerAccessor(((P$.KeyboardFocusManager$1||
(function(){var C$=Clazz_newClass(P$, "KeyboardFocusManager$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, [['sun.awt.AWTAccessor','sun.awt.AWTAccessor.KeyboardFocusManagerAccessor']], 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'shouldNativelyFocusHeavyweight$java_awt_Component$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (heavyweight, descendant, temporary, focusedWindowChangeAllowed, time, cause) {
return $I$(4).shouldNativelyFocusHeavyweight$java_awt_Component$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(heavyweight, descendant, temporary, focusedWindowChangeAllowed, time, cause);
});
Clazz_newMeth(C$, 'processSynchronousLightweightTransfer$java_awt_Component$java_awt_Component$Z$Z$J', function (heavyweight, descendant, temporary, focusedWindowChangeAllowed, time) {
return $I$(4).processSynchronousLightweightTransfer$java_awt_Component$java_awt_Component$Z$Z$J(heavyweight, descendant, temporary, focusedWindowChangeAllowed, time);
});
Clazz_newMeth(C$, 'removeLastFocusRequest$java_awt_Component', function (heavyweight) {
$I$(4).removeLastFocusRequest$java_awt_Component(heavyweight);
});
Clazz_newMeth(C$, 'setMostRecentFocusOwner$java_awt_Window$java_awt_Component', function (window, component) {
$I$(4).setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, component);
});
Clazz_newMeth(C$, 'getCurrentKeyboardFocusManager$sun_awt_AppContext', function (ctx) {
return $I$(4).getCurrentKeyboardFocusManager$sun_awt_AppContext(ctx);
});
Clazz_newMeth(C$, 'getCurrentFocusCycleRoot$', function () {
return $I$(4).currentFocusCycleRoot;
});
})()
), Clazz_new_(P$.KeyboardFocusManager$1.$init$, [this, null])));
};
C$.defaultFocusTraversalKeyPropertyNames=Clazz_array(String, -1, ["forwardDefaultFocusTraversalKeys", "backwardDefaultFocusTraversalKeys", "upCycleDefaultFocusTraversalKeys", "downCycleDefaultFocusTraversalKeys"]);
C$.defaultFocusTraversalKeyStrokes=Clazz_array($I$(5), -2, [Clazz_array($I$(5), -1, [$I$(5).getAWTKeyStroke$I$I$Z(9, 0, false), $I$(5).getAWTKeyStroke$I$I$Z(9, 130, false)]), Clazz_array($I$(5), -1, [$I$(5).getAWTKeyStroke$I$I$Z(9, 65, false), $I$(5).getAWTKeyStroke$I$I$Z(9, 195, false)]), Clazz_array($I$(5), -1, []), Clazz_array($I$(5), -1, [])]);
C$.mostRecentFocusOwners=Clazz_new_($I$(6));
C$.heavyweightRequests=Clazz_new_($I$(1));
C$.allowSyncFocusRequests=true;
C$.newFocusOwner=null;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.peer=null;
this.defaultPolicy=null;
this.defaultFocusTraversalKeys=null;
this.vetoableSupport=null;
this.changeSupport=null;
this.keyEventDispatchers=null;
this.keyEventPostProcessors=null;
this.currentSequencedEvent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.defaultPolicy=Clazz_new_($I$(7));
this.defaultFocusTraversalKeys=Clazz_array($I$(8), [4]);
this.currentSequencedEvent=null;
}, 1);
Clazz_newMeth(C$, 'getCurrentKeyboardFocusManager$', function () {
return C$.getCurrentKeyboardFocusManager$sun_awt_AppContext($I$(9).getAppContext$());
}, 1);
Clazz_newMeth(C$, 'getCurrentKeyboardFocusManager$sun_awt_AppContext', function (appcontext) {
var manager=appcontext.get$O(Clazz_getClass(C$));
if (manager == null ) {
manager=Clazz_new_($I$(10));
appcontext.put$O$O(Clazz_getClass(C$), manager);
}return manager;
}, 1);
Clazz_newMeth(C$, 'setCurrentKeyboardFocusManager$java_awt_KeyboardFocusManager', function (newManager) {
var oldManager=null;
{
var appcontext=$I$(9).getAppContext$();
if (newManager != null ) {
oldManager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext(appcontext);
appcontext.put$O$O(Clazz_getClass(C$), newManager);
} else {
oldManager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext(appcontext);
appcontext.remove$O(Clazz_getClass(C$));
}}if (oldManager != null ) {
oldManager.firePropertyChange$S$O$O("managingFocus", $I$(11).TRUE, $I$(11).FALSE);
}if (newManager != null ) {
newManager.firePropertyChange$S$O$O("managingFocus", $I$(11).FALSE, $I$(11).TRUE);
}}, 1);
Clazz_newMeth(C$, 'setCurrentSequencedEvent$java_awt_SequencedEvent', function (current) {
{
Clazz_assert(C$, this, function(){return (current == null || this.currentSequencedEvent == null )});
this.currentSequencedEvent=current;
}});
Clazz_newMeth(C$, 'getCurrentSequencedEvent$', function () {
{
return this.currentSequencedEvent;
}});
Clazz_newMeth(C$, 'initFocusTraversalKeysSet$S$java_util_Set', function (value, targetSet) {
var tokens=Clazz_new_($I$(12).c$$S$S,[value, ","]);
while (tokens.hasMoreTokens$()){
targetSet.add$TE($I$(5).getAWTKeyStroke$S(tokens.nextToken$()));
}
return (targetSet.isEmpty$()) ? $I$(13).EMPTY_SET : $I$(13).unmodifiableSet$java_util_Set(targetSet);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
for (var i=0; i < 4; i++) {
var work_set=Clazz_new_($I$(14));
for (var j=0; j < C$.defaultFocusTraversalKeyStrokes[i].length; j++) {
work_set.add$TE(C$.defaultFocusTraversalKeyStrokes[i][j]);
}
this.defaultFocusTraversalKeys[i]=(work_set.isEmpty$()) ? $I$(13).EMPTY_SET : $I$(13).unmodifiableSet$java_util_Set(work_set);
}
p$1.initPeer.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'initPeer', function () {
var tk=$I$(15).getDefaultToolkit$();
var peerProvider=tk;
this.peer=peerProvider.getKeyboardFocusManagerPeer$();
}, p$1);
Clazz_newMeth(C$, 'getFocusOwner$', function () {
if (C$.focusOwner == null ) {
return null;
}return (C$.focusOwner.appContext === $I$(9).getAppContext$() ) ? C$.focusOwner : null;
});
Clazz_newMeth(C$, 'getGlobalFocusOwner$', function () {
return C$.focusOwner;
});
Clazz_newMeth(C$, 'setGlobalFocusOwner$java_awt_Component', function (focusOwner) {
var oldFocusOwner=null;
var shouldFire=false;
if (focusOwner == null || focusOwner.isFocusable$() ) {
p$1.checkKFMSecurity.apply(this, []);
oldFocusOwner=this.getFocusOwner$();
try {
this.fireVetoableChange$S$O$O("focusOwner", oldFocusOwner, focusOwner);
} catch (e) {
if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){
return;
} else {
throw e;
}
}
C$.focusOwner=focusOwner;
if (focusOwner != null && (this.getCurrentFocusCycleRoot$() == null || !focusOwner.isFocusCycleRoot$java_awt_Container(this.getCurrentFocusCycleRoot$()) ) ) {
var rootAncestor=focusOwner.getFocusCycleRootAncestor$();
if (rootAncestor == null && focusOwner.isWindowOrJSApplet$() ) {
rootAncestor=focusOwner;
}if (rootAncestor != null ) {
this.setGlobalCurrentFocusCycleRootPriv$java_awt_Container(rootAncestor);
}}shouldFire=true;
}if (shouldFire) {
this.firePropertyChange$S$O$O("focusOwner", oldFocusOwner, focusOwner);
}});
Clazz_newMeth(C$, 'clearFocusOwner$', function () {
if (this.getFocusOwner$() != null ) {
this.clearGlobalFocusOwner$();
}});
Clazz_newMeth(C$, 'clearGlobalFocusOwner$', function () {
if (!$I$(16).isHeadless$()) {
$I$(15).getDefaultToolkit$();
p$1._clearGlobalFocusOwner.apply(this, []);
}});
Clazz_newMeth(C$, '_clearGlobalFocusOwner', function () {
var activeWindow=C$.markClearGlobalFocusOwner$();
this.peer.clearGlobalFocusOwner$java_awt_Window(activeWindow);
}, p$1);
Clazz_newMeth(C$, 'clearGlobalFocusOwnerPriv$', function () {
this.clearGlobalFocusOwner$();
});
Clazz_newMeth(C$, 'getNativeFocusOwner$', function () {
return this.peer.getCurrentFocusOwner$();
});
Clazz_newMeth(C$, 'setNativeFocusOwner$java_awt_Component', function (comp) {
this.peer.setCurrentFocusOwner$java_awt_Component(comp);
});
Clazz_newMeth(C$, 'getNativeFocusedWindow$', function () {
return this.peer.getCurrentFocusedWindow$();
});
Clazz_newMeth(C$, 'getPermanentFocusOwner$', function () {
{
if (C$.permanentFocusOwner == null ) {
return null;
}return (C$.permanentFocusOwner.appContext === $I$(9).getAppContext$() ) ? C$.permanentFocusOwner : null;
}});
Clazz_newMeth(C$, 'getGlobalPermanentFocusOwner$', function () {
{
p$1.checkKFMSecurity.apply(this, []);
return C$.permanentFocusOwner;
}});
Clazz_newMeth(C$, 'setGlobalPermanentFocusOwner$java_awt_Component', function (permanentFocusOwner) {
var oldPermanentFocusOwner=null;
var shouldFire=false;
if (permanentFocusOwner == null || permanentFocusOwner.isFocusable$() ) {
{
p$1.checkKFMSecurity.apply(this, []);
oldPermanentFocusOwner=this.getPermanentFocusOwner$();
try {
this.fireVetoableChange$S$O$O("permanentFocusOwner", oldPermanentFocusOwner, permanentFocusOwner);
} catch (e) {
if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){
return;
} else {
throw e;
}
}
C$.permanentFocusOwner=permanentFocusOwner;
C$.setMostRecentFocusOwner$java_awt_Component(permanentFocusOwner);
shouldFire=true;
}}if (shouldFire) {
this.firePropertyChange$S$O$O("permanentFocusOwner", oldPermanentFocusOwner, permanentFocusOwner);
}});
Clazz_newMeth(C$, 'getFocusedWindow$', function () {
{
if (C$.focusedWindow == null ) {
return null;
}return (C$.focusedWindow.appContext === $I$(9).getAppContext$() ) ? C$.focusedWindow : null;
}});
Clazz_newMeth(C$, 'getGlobalFocusedWindow$', function () {
{
p$1.checkKFMSecurity.apply(this, []);
return C$.focusedWindow;
}});
Clazz_newMeth(C$, 'setGlobalFocusedWindow$java_awt_Window', function (focusedWindow) {
var oldFocusedWindow=null;
var shouldFire=false;
if (focusedWindow == null || focusedWindow.isFocusableWindow$() ) {
oldFocusedWindow=this.getFocusedWindow$();
try {
this.fireVetoableChange$S$O$O("focusedWindow", oldFocusedWindow, focusedWindow);
} catch (e) {
if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){
return;
} else {
throw e;
}
}
C$.focusedWindow=focusedWindow;
shouldFire=true;
}if (shouldFire) {
this.firePropertyChange$S$O$O("focusedWindow", oldFocusedWindow, focusedWindow);
}});
Clazz_newMeth(C$, 'getActiveWindow$', function () {
{
if (C$.activeWindow == null ) {
return null;
}return (C$.activeWindow.appContext === $I$(9).getAppContext$() ) ? C$.activeWindow : null;
}});
Clazz_newMeth(C$, 'getGlobalActiveWindow$', function () {
{
p$1.checkKFMSecurity.apply(this, []);
return C$.activeWindow;
}});
Clazz_newMeth(C$, 'setGlobalActiveWindow$java_awt_Window', function (activeWindow) {
var oldActiveWindow;
{
p$1.checkKFMSecurity.apply(this, []);
oldActiveWindow=this.getActiveWindow$();
try {
this.fireVetoableChange$S$O$O("activeWindow", oldActiveWindow, activeWindow);
} catch (e) {
if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){
return;
} else {
throw e;
}
}
C$.activeWindow=activeWindow;
}this.firePropertyChange$S$O$O("activeWindow", oldActiveWindow, activeWindow);
});
Clazz_newMeth(C$, 'getDefaultFocusTraversalPolicy$', function () {
return this.defaultPolicy;
});
Clazz_newMeth(C$, 'setDefaultFocusTraversalPolicy$java_awt_FocusTraversalPolicy', function (defaultPolicy) {
if (defaultPolicy == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["default focus traversal policy cannot be null"]);
}var oldPolicy;
{
oldPolicy=this.defaultPolicy;
this.defaultPolicy=defaultPolicy;
}this.firePropertyChange$S$O$O("defaultFocusTraversalPolicy", oldPolicy, defaultPolicy);
});
Clazz_newMeth(C$, 'setDefaultFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) {
if (id < 0 || id >= 4 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}if (keystrokes == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot set null Set of default focus traversal keys"]);
}var oldKeys;
{
for (var keystroke, $keystroke = keystrokes.iterator$(); $keystroke.hasNext$()&&((keystroke=($keystroke.next$())),1);) {
if (keystroke == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot set null focus traversal key"]);
}if (keystroke.getKeyChar$() != "\uffff") {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys cannot map to KEY_TYPED events"]);
}for (var i=0; i < 4; i++) {
if (i == id) {
continue;
}if (this.defaultFocusTraversalKeys[i].contains$O(keystroke)) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys must be unique for a Component"]);
}}
}
oldKeys=this.defaultFocusTraversalKeys[id];
this.defaultFocusTraversalKeys[id]=$I$(13).unmodifiableSet$java_util_Set(Clazz_new_($I$(14).c$$java_util_Collection,[keystrokes]));
}this.firePropertyChange$S$O$O(C$.defaultFocusTraversalKeyPropertyNames[id], oldKeys, keystrokes);
});
Clazz_newMeth(C$, 'getDefaultFocusTraversalKeys$I', function (id) {
if (id < 0 || id >= 4 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}return this.defaultFocusTraversalKeys[id];
});
Clazz_newMeth(C$, 'getCurrentFocusCycleRoot$', function () {
{
if (C$.currentFocusCycleRoot == null ) {
return null;
}return (C$.currentFocusCycleRoot.appContext === $I$(9).getAppContext$() ) ? C$.currentFocusCycleRoot : null;
}});
Clazz_newMeth(C$, 'getGlobalCurrentFocusCycleRoot$', function () {
{
p$1.checkKFMSecurity.apply(this, []);
return C$.currentFocusCycleRoot;
}});
Clazz_newMeth(C$, 'setGlobalCurrentFocusCycleRoot$java_awt_Container', function (newFocusCycleRoot) {
var oldFocusCycleRoot;
{
oldFocusCycleRoot=this.getCurrentFocusCycleRoot$();
C$.currentFocusCycleRoot=newFocusCycleRoot;
}this.firePropertyChange$S$O$O("currentFocusCycleRoot", oldFocusCycleRoot, newFocusCycleRoot);
});
Clazz_newMeth(C$, 'setGlobalCurrentFocusCycleRootPriv$java_awt_Container', function (newFocusCycleRoot) {
this.setGlobalCurrentFocusCycleRoot$java_awt_Container(newFocusCycleRoot);
});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (listener != null ) {
{
if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(17).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener);
}}});
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (listener != null ) {
{
if (this.changeSupport != null ) {
this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
}}}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(17).c$$O,[this]);
}return this.changeSupport.getPropertyChangeListeners$();
});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
if (listener != null ) {
{
if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(17).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener);
}}});
Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
if (listener != null ) {
{
if (this.changeSupport != null ) {
this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener);
}}}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) {
if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(17).c$$O,[this]);
}return this.changeSupport.getPropertyChangeListeners$S(propertyName);
});
Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) {
if (oldValue === newValue ) {
return;
}var changeSupport=this.changeSupport;
if (changeSupport != null ) {
changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue);
}});
Clazz_newMeth(C$, 'addVetoableChangeListener$java_beans_VetoableChangeListener', function (listener) {
if (listener != null ) {
{
if (this.vetoableSupport == null ) {
this.vetoableSupport=Clazz_new_($I$(18).c$$O,[this]);
}this.vetoableSupport.addVetoableChangeListener$java_beans_VetoableChangeListener(listener);
}}});
Clazz_newMeth(C$, 'removeVetoableChangeListener$java_beans_VetoableChangeListener', function (listener) {
if (listener != null ) {
{
if (this.vetoableSupport != null ) {
this.vetoableSupport.removeVetoableChangeListener$java_beans_VetoableChangeListener(listener);
}}}});
Clazz_newMeth(C$, 'getVetoableChangeListeners$', function () {
if (this.vetoableSupport == null ) {
this.vetoableSupport=Clazz_new_($I$(18).c$$O,[this]);
}return this.vetoableSupport.getVetoableChangeListeners$();
});
Clazz_newMeth(C$, 'addVetoableChangeListener$S$java_beans_VetoableChangeListener', function (propertyName, listener) {
if (listener != null ) {
{
if (this.vetoableSupport == null ) {
this.vetoableSupport=Clazz_new_($I$(18).c$$O,[this]);
}this.vetoableSupport.addVetoableChangeListener$S$java_beans_VetoableChangeListener(propertyName, listener);
}}});
Clazz_newMeth(C$, 'removeVetoableChangeListener$S$java_beans_VetoableChangeListener', function (propertyName, listener) {
if (listener != null ) {
{
if (this.vetoableSupport != null ) {
this.vetoableSupport.removeVetoableChangeListener$S$java_beans_VetoableChangeListener(propertyName, listener);
}}}});
Clazz_newMeth(C$, 'getVetoableChangeListeners$S', function (propertyName) {
if (this.vetoableSupport == null ) {
this.vetoableSupport=Clazz_new_($I$(18).c$$O,[this]);
}return this.vetoableSupport.getVetoableChangeListeners$S(propertyName);
});
Clazz_newMeth(C$, 'fireVetoableChange$S$O$O', function (propertyName, oldValue, newValue) {
if (oldValue === newValue ) {
return;
}var vetoableSupport=this.vetoableSupport;
if (vetoableSupport != null ) {
vetoableSupport.fireVetoableChange$S$O$O(propertyName, oldValue, newValue);
}});
Clazz_newMeth(C$, 'addKeyEventDispatcher$java_awt_KeyEventDispatcher', function (dispatcher) {
if (dispatcher != null ) {
{
if (this.keyEventDispatchers == null ) {
this.keyEventDispatchers=Clazz_new_($I$(1));
}this.keyEventDispatchers.add$TE(dispatcher);
}}});
Clazz_newMeth(C$, 'removeKeyEventDispatcher$java_awt_KeyEventDispatcher', function (dispatcher) {
if (dispatcher != null ) {
{
if (this.keyEventDispatchers != null ) {
this.keyEventDispatchers.remove$O(dispatcher);
}}}});
Clazz_newMeth(C$, 'getKeyEventDispatchers$', function () {
return (this.keyEventDispatchers != null ) ? this.keyEventDispatchers.clone$() : null;
});
Clazz_newMeth(C$, 'addKeyEventPostProcessor$java_awt_KeyEventPostProcessor', function (processor) {
if (processor != null ) {
{
if (this.keyEventPostProcessors == null ) {
this.keyEventPostProcessors=Clazz_new_($I$(1));
}this.keyEventPostProcessors.add$TE(processor);
}}});
Clazz_newMeth(C$, 'removeKeyEventPostProcessor$java_awt_KeyEventPostProcessor', function (processor) {
if (processor != null ) {
{
if (this.keyEventPostProcessors != null ) {
this.keyEventPostProcessors.remove$O(processor);
}}}});
Clazz_newMeth(C$, 'getKeyEventPostProcessors$', function () {
return (this.keyEventPostProcessors != null ) ? this.keyEventPostProcessors.clone$() : null;
});
Clazz_newMeth(C$, 'setMostRecentFocusOwner$java_awt_Component', function (component) {
var window=component;
while (window != null && !window.isWindowOrJSApplet$() ){
window=window.parent;
}
if (window != null ) {
C$.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, component);
}}, 1);
Clazz_newMeth(C$, 'setMostRecentFocusOwner$java_awt_Window$java_awt_Component', function (window, component) {
C$.mostRecentFocusOwners.put$TK$TV(window, component);
}, 1);
Clazz_newMeth(C$, 'clearMostRecentFocusOwner$java_awt_Component', function (comp) {
var window;
if (comp == null ) {
return;
}window=comp.getParent$();
while (window != null && !window.isWindowOrJSApplet$() ){
window=window.getParent$();
}
if ((window != null ) && (C$.getMostRecentFocusOwner$java_awt_Window(window) === comp ) ) {
C$.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, null);
}if (window != null ) {
var realWindow=window;
if (realWindow.getTemporaryLostComponent$() === comp ) {
realWindow.setTemporaryLostComponent$java_awt_Component(null);
}}}, 1);
Clazz_newMeth(C$, 'getMostRecentFocusOwner$java_awt_Window', function (window) {
return C$.mostRecentFocusOwners.get$O(window);
}, 1);
Clazz_newMeth(C$, 'redispatchEvent$java_awt_Component$java_awt_AWTEvent', function (target, e) {
e.focusManagerIsDispatching=true;
target.dispatchEvent$java_awt_AWTEvent(e);
e.focusManagerIsDispatching=false;
});
Clazz_newMeth(C$, 'focusNextComponent$', function () {
var focusOwner=this.getFocusOwner$();
if (focusOwner != null ) {
this.focusNextComponent$java_awt_Component(focusOwner);
}});
Clazz_newMeth(C$, 'focusPreviousComponent$', function () {
var focusOwner=this.getFocusOwner$();
if (focusOwner != null ) {
this.focusPreviousComponent$java_awt_Component(focusOwner);
}});
Clazz_newMeth(C$, 'upFocusCycle$', function () {
var focusOwner=this.getFocusOwner$();
if (focusOwner != null ) {
this.upFocusCycle$java_awt_Component(focusOwner);
}});
Clazz_newMeth(C$, 'downFocusCycle$', function () {
var focusOwner=this.getFocusOwner$();
if (Clazz_instanceOf(focusOwner, "java.awt.Container")) {
this.downFocusCycle$java_awt_Container(focusOwner);
}});
Clazz_newMeth(C$, 'dumpRequests$', function () {
System.err.println$S(">>> Requests dump, time: " + System.currentTimeMillis$());
{
for (var req, $req = C$.heavyweightRequests.iterator$(); $req.hasNext$()&&((req=($req.next$())),1);) {
System.err.println$S(">>> Req: " + req);
}
}System.err.println$S("");
});
Clazz_newMeth(C$, 'processSynchronousLightweightTransfer$java_awt_Component$java_awt_Component$Z$Z$J', function (heavyweight, descendant, temporary, focusedWindowChangeAllowed, time) {
var parentWindow=$I$(19).getContainingWindow$java_awt_Component(heavyweight);
if (parentWindow == null || !parentWindow.syncLWRequests ) {
return false;
}if (descendant == null ) {
descendant=heavyweight;
}var manager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext($I$(19).targetToAppContext$O(descendant));
var currentFocusOwnerEvent=null;
var newFocusOwnerEvent=null;
var currentFocusOwner=manager.getGlobalFocusOwner$();
{
var hwFocusRequest=C$.getLastHWRequest$();
if (hwFocusRequest == null && heavyweight === manager.getNativeFocusOwner$() && C$.allowSyncFocusRequests ) {
if (descendant === currentFocusOwner ) {
return true;
}manager.enqueueKeyEvents$J$java_awt_Component(time, descendant);
hwFocusRequest=Clazz_new_($I$(20).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[heavyweight, descendant, temporary, $I$(21).UNKNOWN]);
C$.heavyweightRequests.add$TE(hwFocusRequest);
if (currentFocusOwner != null ) {
currentFocusOwnerEvent=Clazz_new_($I$(22).c$$java_awt_Component$I$Z$java_awt_Component,[currentFocusOwner, 1005, temporary, descendant]);
}newFocusOwnerEvent=Clazz_new_($I$(22).c$$java_awt_Component$I$Z$java_awt_Component,[descendant, 1004, temporary, currentFocusOwner]);
}}var result=false;
var clearing=C$.clearingCurrentLightweightRequests;
var caughtEx=null;
try {
C$.clearingCurrentLightweightRequests=false;
{
if (currentFocusOwnerEvent != null && currentFocusOwner != null ) {
(currentFocusOwnerEvent).isPosted=true;
caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, currentFocusOwner, currentFocusOwnerEvent);
result=true;
}if (newFocusOwnerEvent != null && descendant != null ) {
(newFocusOwnerEvent).isPosted=true;
caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, descendant, newFocusOwnerEvent);
result=true;
}}} finally {
C$.clearingCurrentLightweightRequests=clearing;
}
if (Clazz_instanceOf(caughtEx, "java.lang.RuntimeException")) {
throw caughtEx;
} else if (Clazz_instanceOf(caughtEx, "java.lang.Error")) {
throw caughtEx;
}return result;
}, 1);
Clazz_newMeth(C$, 'shouldNativelyFocusHeavyweight$java_awt_Component$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (heavyweight, descendant, temporary, focusedWindowChangeAllowed, time, cause) {
if (descendant == null ) {
descendant=heavyweight;
}var manager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext($I$(19).targetToAppContext$O(descendant));
var thisManager=C$.getCurrentKeyboardFocusManager$();
var currentFocusOwner=thisManager.getGlobalFocusOwner$();
var nativeFocusOwner=thisManager.getNativeFocusOwner$();
var nativeFocusedWindow=thisManager.getNativeFocusedWindow$();
{
var hwFocusRequest=C$.getLastHWRequest$();
if (hwFocusRequest == null && heavyweight === nativeFocusOwner && heavyweight.getContainingWindow$() === nativeFocusedWindow ) {
if (descendant === currentFocusOwner ) {
return 0;
}manager.enqueueKeyEvents$J$java_awt_Component(time, descendant);
hwFocusRequest=Clazz_new_($I$(20).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[heavyweight, descendant, temporary, cause]);
C$.heavyweightRequests.add$TE(hwFocusRequest);
if (currentFocusOwner != null ) {
var currentFocusOwnerEvent=Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, temporary, descendant, cause]);
$I$(19).postEvent$sun_awt_AppContext$java_awt_AWTEvent(currentFocusOwner.appContext, currentFocusOwnerEvent);
}var newFocusOwnerEvent=Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[descendant, 1004, temporary, currentFocusOwner, cause]);
$I$(19).postEvent$sun_awt_AppContext$java_awt_AWTEvent(descendant.appContext, newFocusOwnerEvent);
return 1;
} else if (hwFocusRequest != null && hwFocusRequest.heavyweight === heavyweight ) {
if (hwFocusRequest.addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause(descendant, temporary, cause)) {
manager.enqueueKeyEvents$J$java_awt_Component(time, descendant);
}return 1;
} else {
if (!focusedWindowChangeAllowed) {
if (hwFocusRequest === $I$(20).CLEAR_GLOBAL_FOCUS_OWNER ) {
var size=C$.heavyweightRequests.size$();
hwFocusRequest=((size >= 2) ? C$.heavyweightRequests.get$I(size - 2) : null);
}if (C$.focusedWindowChanged$java_awt_Component$java_awt_Component(heavyweight, (hwFocusRequest != null ) ? hwFocusRequest.heavyweight : nativeFocusedWindow)) {
return 0;
}}manager.enqueueKeyEvents$J$java_awt_Component(time, descendant);
C$.heavyweightRequests.add$TE(Clazz_new_($I$(20).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[heavyweight, descendant, temporary, cause]));
return 2;
}}}, 1);
Clazz_newMeth(C$, 'markClearGlobalFocusOwner$', function () {
var nativeFocusedWindow=C$.getCurrentKeyboardFocusManager$().getNativeFocusedWindow$();
{
var hwFocusRequest=C$.getLastHWRequest$();
if (hwFocusRequest === $I$(20).CLEAR_GLOBAL_FOCUS_OWNER ) {
return null;
}C$.heavyweightRequests.add$TE($I$(20).CLEAR_GLOBAL_FOCUS_OWNER);
var activeWindow=((hwFocusRequest != null ) ? $I$(19).getContainingWindow$java_awt_Component(hwFocusRequest.heavyweight) : nativeFocusedWindow);
while (activeWindow != null && !(Clazz_instanceOf(activeWindow, "javax.swing.JFrame") || Clazz_instanceOf(activeWindow, "javax.swing.JDialog") || Clazz_instanceOf(activeWindow, "java.applet.JSApplet") ) ){
activeWindow=activeWindow.getParent_NoClientCode$();
}
return activeWindow;
}}, 1);
Clazz_newMeth(C$, 'getCurrentWaitingRequest$java_awt_Component', function (parent) {
{
var hwFocusRequest=C$.getFirstHWRequest$();
if (hwFocusRequest != null ) {
if (hwFocusRequest.heavyweight === parent ) {
var lwFocusRequest=hwFocusRequest.lightweightRequests.getFirst$();
if (lwFocusRequest != null ) {
return lwFocusRequest.component;
}}}}return null;
});
Clazz_newMeth(C$, 'isAutoFocusTransferEnabled$', function () {
{
return (C$.heavyweightRequests.size$() == 0) && !C$.disableRestoreFocus && (null == C$.currentLightweightRequests ) ;
}}, 1);
Clazz_newMeth(C$, 'isAutoFocusTransferEnabledFor$java_awt_Component', function (comp) {
return C$.isAutoFocusTransferEnabled$() && comp.isAutoFocusTransferOnDisposal$() ;
}, 1);
Clazz_newMeth(C$, 'dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent', function (ex, comp, event) {
var retEx=null;
try {
comp.dispatchEvent$java_awt_AWTEvent(event);
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"RuntimeException")){
var re = e$$;
{
retEx=re;
}
} else if (Clazz_exceptionOf(e$$,"Error")){
var er = e$$;
{
retEx=er;
}
} else {
throw e$$;
}
}
if (retEx != null ) {
if (ex != null ) {
C$.handleException$Throwable(ex);
}return retEx;
}return ex;
}, 1);
Clazz_newMeth(C$, 'handleException$Throwable', function (ex) {
ex.printStackTrace$();
}, 1);
Clazz_newMeth(C$, 'processCurrentLightweightRequests$', function () {
var manager=C$.getCurrentKeyboardFocusManager$();
var localLightweightRequests=null;
var globalFocusOwner=manager.getGlobalFocusOwner$();
if ((globalFocusOwner != null ) && (globalFocusOwner.appContext !== $I$(9).getAppContext$() ) ) {
return;
}{
if (C$.currentLightweightRequests != null ) {
C$.clearingCurrentLightweightRequests=true;
C$.disableRestoreFocus=true;
localLightweightRequests=C$.currentLightweightRequests;
C$.allowSyncFocusRequests=(localLightweightRequests.size$() < 2);
C$.currentLightweightRequests=null;
} else {
return;
}}var caughtEx=null;
try {
if (localLightweightRequests != null ) {
var lastFocusOwner=null;
var currentFocusOwner=null;
for (var iter=localLightweightRequests.iterator$(); iter.hasNext$(); ) {
currentFocusOwner=manager.getGlobalFocusOwner$();
var lwFocusRequest=iter.next$();
if (!iter.hasNext$()) {
C$.disableRestoreFocus=false;
}var currentFocusOwnerEvent=null;
if (currentFocusOwner != null ) {
currentFocusOwnerEvent=Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, lwFocusRequest.temporary, lwFocusRequest.component, lwFocusRequest.cause]);
}var newFocusOwnerEvent=Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[lwFocusRequest.component, 1004, lwFocusRequest.temporary, currentFocusOwner == null ? lastFocusOwner : currentFocusOwner, lwFocusRequest.cause]);
if (currentFocusOwner != null ) {
(currentFocusOwnerEvent).isPosted=true;
caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, currentFocusOwner, currentFocusOwnerEvent);
}(newFocusOwnerEvent).isPosted=true;
caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, lwFocusRequest.component, newFocusOwnerEvent);
if (manager.getGlobalFocusOwner$() === lwFocusRequest.component ) {
lastFocusOwner=lwFocusRequest.component;
}}
}} finally {
C$.clearingCurrentLightweightRequests=false;
C$.disableRestoreFocus=false;
localLightweightRequests=null;
C$.allowSyncFocusRequests=true;
}
if (Clazz_instanceOf(caughtEx, "java.lang.RuntimeException")) {
throw caughtEx;
} else if (Clazz_instanceOf(caughtEx, "java.lang.Error")) {
throw caughtEx;
}}, 1);
Clazz_newMeth(C$, 'retargetUnexpectedFocusEvent$java_awt_event_FocusEvent', function (fe) {
{
if (C$.removeFirstRequest$()) {
return C$.retargetFocusEvent$java_awt_AWTEvent(fe);
}var source=fe.getComponent$();
var opposite=fe.getOppositeComponent$();
var temporary=false;
if (fe.getID$() == 1005 && (opposite == null || C$.isTemporary$java_awt_Component$java_awt_Component(opposite, source) ) ) {
temporary=true;
}return Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[source, fe.getID$(), temporary, opposite, $I$(21).NATIVE_SYSTEM]);
}}, 1);
Clazz_newMeth(C$, 'retargetFocusGained$java_awt_event_FocusEvent', function (fe) {
Clazz_assert(C$, this, function(){return (fe.getID$() == 1004)});
var currentFocusOwner=C$.getCurrentKeyboardFocusManager$().getGlobalFocusOwner$();
var source=fe.getComponent$();
var opposite=fe.getOppositeComponent$();
var nativeSource=C$.getHeavyweight$java_awt_Component(source);
{
var hwFocusRequest=C$.getFirstHWRequest$();
if (hwFocusRequest === $I$(20).CLEAR_GLOBAL_FOCUS_OWNER ) {
return C$.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(fe);
}if (source != null && nativeSource == null && hwFocusRequest != null ) {
if (source === hwFocusRequest.getFirstLightweightRequest$().component ) {
source=hwFocusRequest.heavyweight;
nativeSource=source;
}}if (hwFocusRequest != null && nativeSource === hwFocusRequest.heavyweight ) {
C$.heavyweightRequests.removeFirst$();
var lwFocusRequest=hwFocusRequest.lightweightRequests.removeFirst$();
var newSource=lwFocusRequest.component;
if (currentFocusOwner != null ) {
C$.newFocusOwner=newSource;
}var temporary=(opposite == null || C$.isTemporary$java_awt_Component$java_awt_Component(newSource, opposite) ) ? false : lwFocusRequest.temporary;
if (hwFocusRequest.lightweightRequests.size$() > 0) {
C$.currentLightweightRequests=hwFocusRequest.lightweightRequests;
$I$(24).invokeLater$Runnable(((P$.KeyboardFocusManager$2||
(function(){var C$=Clazz_newClass(P$, "KeyboardFocusManager$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
P$.KeyboardFocusManager.processCurrentLightweightRequests$();
});
})()
), Clazz_new_(P$.KeyboardFocusManager$2.$init$, [this, null])));
}return Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[newSource, 1004, temporary, opposite, lwFocusRequest.cause]);
}if (currentFocusOwner != null && currentFocusOwner.getContainingWindow$() === source && (hwFocusRequest == null || source !== hwFocusRequest.heavyweight ) ) {
return Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1004, false, null, $I$(21).ACTIVATION]);
}return C$.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(fe);
}}, 1);
Clazz_newMeth(C$, 'retargetFocusLost$java_awt_event_FocusEvent', function (fe) {
Clazz_assert(C$, this, function(){return (fe.getID$() == 1005)});
var currentFocusOwner=C$.getCurrentKeyboardFocusManager$().getGlobalFocusOwner$();
var opposite=fe.getOppositeComponent$();
var nativeOpposite=C$.getHeavyweight$java_awt_Component(opposite);
{
var hwFocusRequest=C$.getFirstHWRequest$();
if (hwFocusRequest === $I$(20).CLEAR_GLOBAL_FOCUS_OWNER ) {
if (currentFocusOwner != null ) {
C$.heavyweightRequests.removeFirst$();
return Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, false, null, $I$(21).CLEAR_GLOBAL_FOCUS_OWNER]);
}} else if (opposite == null ) {
if (currentFocusOwner != null ) {
return Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, true, null, $I$(21).ACTIVATION]);
} else {
return fe;
}} else if (hwFocusRequest != null && (nativeOpposite === hwFocusRequest.heavyweight || nativeOpposite == null && opposite === hwFocusRequest.getFirstLightweightRequest$().component ) ) {
if (currentFocusOwner == null ) {
return fe;
}var lwFocusRequest=hwFocusRequest.lightweightRequests.getFirst$();
var temporary=C$.isTemporary$java_awt_Component$java_awt_Component(opposite, currentFocusOwner) ? true : lwFocusRequest.temporary;
return Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, temporary, lwFocusRequest.component, lwFocusRequest.cause]);
} else if (C$.focusedWindowChanged$java_awt_Component$java_awt_Component(opposite, currentFocusOwner)) {
if (!fe.isTemporary$() && currentFocusOwner != null ) {
fe=Clazz_new_($I$(23).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, true, opposite, $I$(21).ACTIVATION]);
}return fe;
}return C$.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(fe);
}}, 1);
Clazz_newMeth(C$, 'retargetFocusEvent$java_awt_AWTEvent', function (event) {
if (C$.clearingCurrentLightweightRequests) {
return event;
}var manager=C$.getCurrentKeyboardFocusManager$();
{
if (C$.newFocusOwner != null && event.getID$() == 1005 ) {
var fe=event;
if (manager.getGlobalFocusOwner$() === fe.getComponent$() && fe.getOppositeComponent$() === C$.newFocusOwner ) {
C$.newFocusOwner=null;
return event;
}}}C$.processCurrentLightweightRequests$();
switch (event.getID$()) {
case 1004:
{
event=C$.retargetFocusGained$java_awt_event_FocusEvent(event);
break;
}case 1005:
{
event=C$.retargetFocusLost$java_awt_event_FocusEvent(event);
break;
}default:
}
return event;
}, 1);
Clazz_newMeth(C$, 'clearMarkers$', function () {
});
Clazz_newMeth(C$, 'removeFirstRequest$', function () {
var manager=C$.getCurrentKeyboardFocusManager$();
{
var hwFocusRequest=C$.getFirstHWRequest$();
if (hwFocusRequest != null ) {
C$.heavyweightRequests.removeFirst$();
if (hwFocusRequest.lightweightRequests != null ) {
for (var lwIter=hwFocusRequest.lightweightRequests.iterator$(); lwIter.hasNext$(); ) {
manager.dequeueKeyEvents$J$java_awt_Component(-1, lwIter.next$().component);
}
}}if (C$.heavyweightRequests.size$() == 0) {
manager.clearMarkers$();
}return (C$.heavyweightRequests.size$() > 0);
}}, 1);
Clazz_newMeth(C$, 'removeLastFocusRequest$java_awt_Component', function (heavyweight) {
var manager=C$.getCurrentKeyboardFocusManager$();
{
var hwFocusRequest=C$.getLastHWRequest$();
if (hwFocusRequest != null && hwFocusRequest.heavyweight === heavyweight ) {
C$.heavyweightRequests.removeLast$();
}if (C$.heavyweightRequests.size$() == 0) {
manager.clearMarkers$();
}}}, 1);
Clazz_newMeth(C$, 'focusedWindowChanged$java_awt_Component$java_awt_Component', function (to, from) {
var wto=$I$(19).getContainingWindow$java_awt_Component(to);
var wfrom=$I$(19).getContainingWindow$java_awt_Component(from);
if (wto == null && wfrom == null ) {
return true;
}if (wto == null ) {
return true;
}if (wfrom == null ) {
return true;
}return (wto !== wfrom );
}, 1);
Clazz_newMeth(C$, 'isTemporary$java_awt_Component$java_awt_Component', function (to, from) {
var wto=$I$(19).getContainingWindow$java_awt_Component(to);
var wfrom=$I$(19).getContainingWindow$java_awt_Component(from);
if (wto == null && wfrom == null ) {
return false;
}if (wto == null ) {
return true;
}if (wfrom == null ) {
return false;
}return (wto !== wfrom );
}, 1);
Clazz_newMeth(C$, 'getHeavyweight$java_awt_Component', function (comp) {
if (comp == null || comp.getPeer$() == null ) {
return null;
} else if (Clazz_instanceOf(comp.getPeer$(), "java.awt.peer.LightweightPeer")) {
return comp.getNativeContainer$();
} else {
return comp;
}}, 1);
Clazz_newMeth(C$, 'isProxyActiveImpl$java_awt_event_KeyEvent', function (e) {
return e.isProxyActive ||false;
}, 1);
Clazz_newMeth(C$, 'isProxyActive$java_awt_event_KeyEvent', function (e) {
if (!$I$(16).isHeadless$()) {
return C$.isProxyActiveImpl$java_awt_event_KeyEvent(e);
} else {
return false;
}}, 1);
Clazz_newMeth(C$, 'getLastHWRequest$', function () {
{
return (C$.heavyweightRequests.size$() > 0) ? C$.heavyweightRequests.getLast$() : null;
}}, 1);
Clazz_newMeth(C$, 'getFirstHWRequest$', function () {
{
return (C$.heavyweightRequests.size$() > 0) ? C$.heavyweightRequests.getFirst$() : null;
}}, 1);
Clazz_newMeth(C$, 'checkKFMSecurity', function () {
}, p$1);
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
;
(function(){var C$=Clazz_newClass(P$.KeyboardFocusManager, "LightweightFocusRequest", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.component=null;
this.temporary=false;
this.cause=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause', function (component, temporary, cause) {
C$.$init$.apply(this);
this.component=component;
this.temporary=temporary;
this.cause=cause;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return "LightweightFocusRequest[component=" + this.component + ",temporary=" + this.temporary + ", cause=" + this.cause + "]" ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.KeyboardFocusManager, "HeavyweightFocusRequest", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.CLEAR_GLOBAL_FOCUS_OWNER=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.CLEAR_GLOBAL_FOCUS_OWNER=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.heavyweight=null;
this.lightweightRequests=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.heavyweight=null;
this.lightweightRequests=null;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause', function (heavyweight, descendant, temporary, cause) {
C$.$init$.apply(this);
this.heavyweight=heavyweight;
this.lightweightRequests=Clazz_new_($I$(1));
this.addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause(descendant, temporary, cause);
}, 1);
Clazz_newMeth(C$, 'addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause', function (descendant, temporary, cause) {
var lastDescendant=((this.lightweightRequests.size$() > 0) ? this.lightweightRequests.getLast$().component : null);
if (descendant !== lastDescendant ) {
this.lightweightRequests.add$TE(Clazz_new_($I$(2).c$$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[descendant, temporary, cause]));
return true;
} else {
return false;
}});
Clazz_newMeth(C$, 'getFirstLightweightRequest$', function () {
if (this === C$.CLEAR_GLOBAL_FOCUS_OWNER ) {
return null;
}return this.lightweightRequests.getFirst$();
});
Clazz_newMeth(C$, 'toString', function () {
var first=true;
var str="HeavyweightFocusRequest[heavweight=" + this.heavyweight + ",lightweightRequests=" ;
if (this.lightweightRequests == null ) {
str += null;
} else {
str += "[";
for (var lwRequest, $lwRequest = this.lightweightRequests.iterator$(); $lwRequest.hasNext$()&&((lwRequest=($lwRequest.next$())),1);) {
if (first) {
first=false;
} else {
str += ",";
}str += lwRequest;
}
str += "]";
}str += "]";
return str;
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "KeyEventDispatcher");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "KeyEventPostProcessor");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Label", null, 'swingjs.a2s.Label');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$I.apply(this, [text, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I', function (text, alignment) {
C$.superclazz.c$$S$I.apply(this, [text, alignment]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "LayoutManager");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "LayoutManager2", null, null, 'java.awt.LayoutManager');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},p$2={},I$=[[0,'java.awt.Component','java.awt.Insets','javajs.util.Lst','java.awt.Toolkit','java.awt.event.ContainerEvent','java.awt.Dimension',['java.awt.GraphicsCallback','.PaintCallback'],['java.awt.GraphicsCallback','.PaintAllCallback'],['java.awt.GraphicsCallback','.PaintHeavyweightComponentsCallback'],'java.awt.AWTEventMulticaster','java.awt.event.ContainerListener',['java.awt.Container','.MouseEventTargetFilter'],'java.awt.LightweightDispatcher','java.awt.KeyboardFocusManager','java.awt.event.MouseEvent','java.awt.event.MouseWheelEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LightweightDispatcher", null, null, 'java.awt.event.AWTEventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.targetLastDown=null;
this.targetLastKnown=null;
this.nativeContainer=null;
this.mouseEventTarget=null;
this.targetLastEntered=null;
this.isMouseInNativeContainer=false;
this.eventMask=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.isMouseInNativeContainer=false;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Container', function (nativeContainer) {
C$.$init$.apply(this);
this.nativeContainer=nativeContainer;
this.mouseEventTarget=null;
this.eventMask=0;
}, 1);
Clazz_newMeth(C$, 'dispose$', function () {
p$2.stopListeningForOtherDrags.apply(this, []);
this.mouseEventTarget=null;
});
Clazz_newMeth(C$, 'enableEvents$J', function (events) {
this.eventMask|=events;
});
Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (e) {
var ret=false;
if (Clazz_instanceOf(e, "java.awt.event.MouseEvent") && (this.eventMask & 131120) != 0 ) {
var me=e;
ret=p$2.processMouseEvent$java_awt_event_MouseEvent.apply(this, [me]);
}return ret;
});
Clazz_newMeth(C$, 'isMouseGrab$java_awt_event_MouseEvent', function (e) {
var modifiers=e.getModifiersEx$();
if (e.getID$() == 501 || e.getID$() == 502 ) {
switch (e.getButton$()) {
case 1:
modifiers^=1024;
break;
case 2:
modifiers^=2048;
break;
case 3:
modifiers^=4096;
break;
}
}return ((modifiers & (7168)) != 0);
}, p$2);
Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent', function (e) {
var id=e.getID$();
var mouseOver=this.targetLastKnown=this.nativeContainer.getMouseEventTarget$I$I$Z(e.getX$(), e.getY$(), true);
p$2.trackMouseEnterExit$java_awt_Component$java_awt_event_MouseEvent.apply(this, [mouseOver, e]);
var actualTarget;
switch (id) {
case 506:
case 502:
actualTarget=this.targetLastDown;
break;
case 505:
actualTarget=this.targetLastKnown;
break;
default:
actualTarget=(e.bdata.jqevent && e.bdata.jqevent.target["data-component"] ||null);
break;
}
if (actualTarget != null ) this.mouseEventTarget=actualTarget;
else if (!p$2.isMouseGrab$java_awt_event_MouseEvent.apply(this, [e]) && id != 500 ) {
this.mouseEventTarget=(mouseOver !== this.nativeContainer ) ? mouseOver : null;
}if (this.mouseEventTarget != null ) {
switch (id) {
case 504:
case 505:
break;
case 501:
this.checkInternalFrameMouseDown$java_awt_JSComponent(e.getSource$());
this.targetLastDown=this.mouseEventTarget;
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e);
break;
case 502:
this.targetLastDown=null;
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e);
break;
case 500:
this.targetLastDown=null;
if (mouseOver === this.mouseEventTarget ) {
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(mouseOver, id, e);
}break;
case 503:
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e);
break;
case 506:
if (p$2.isMouseGrab$java_awt_event_MouseEvent.apply(this, [e])) {
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e);
}break;
case 507:
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(mouseOver, id, e);
break;
}
e.consume$();
}return e.isConsumed$();
}, p$2);
Clazz_newMeth(C$, 'checkInternalFrameMouseDown$java_awt_JSComponent', function (c) {
var fv=c.getFrameViewer$();
var top=fv.getTopComponent$();
if (top.getUIClassID$() == "InternalFrameUI") try {
(top).setSelected$Z(true);
} catch (e) {
if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'trackMouseEnterExit$java_awt_Component$java_awt_event_MouseEvent', function (targetOver, e) {
var targetEnter=null;
var id=e.getID$();
if (Clazz_instanceOf(e, "java.awt.ActiveEvent")) {
this.targetLastEntered=null;
return;
}if (id == 505) {
this.isMouseInNativeContainer=false;
p$2.stopListeningForOtherDrags.apply(this, []);
} else if (id != 506 && id != 1500 && this.isMouseInNativeContainer == false ) {
this.isMouseInNativeContainer=true;
p$2.startListeningForOtherDrags.apply(this, []);
}if (this.isMouseInNativeContainer) {
targetEnter=targetOver;
}if (this.targetLastEntered === targetEnter ) {
return;
}if (this.targetLastEntered != null ) {
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.targetLastEntered, 505, e);
}if (id == 505) {
e.consume$();
}if (targetEnter != null ) {
this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(targetEnter, 504, e);
}if (id == 504) {
e.consume$();
}this.targetLastEntered=targetEnter;
}, p$2);
Clazz_newMeth(C$, 'startListeningForOtherDrags', function () {
}, p$2);
Clazz_newMeth(C$, 'stopListeningForOtherDrags', function () {
}, p$2);
Clazz_newMeth(C$, ['eventDispatched$java_awt_AWTEvent','eventDispatched$'], function (e) {
var isForeignDrag=(Clazz_instanceOf(e, "java.awt.event.MouseEvent")) && (e.id == 506) && (e.getSource$() !== this.nativeContainer ) ;
if (!isForeignDrag) {
return;
}var srcEvent=e;
var me;
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.nativeContainer.getTreeLock$());
{
var srcComponent=srcEvent.getComponent$();
if (!srcComponent.isShowing$()) {
return;
}var c=this.nativeContainer;
while (c != null && !(Clazz_instanceOf(c, "java.awt.Window")) ){
c=c.getParent_NoClientCode$();
}
if ((c == null ) || (c).isModalBlocked$() ) {
return;
}me=Clazz_new_($I$(15).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[this.nativeContainer, 1500, srcEvent.getWhen$(), srcEvent.getModifiersEx$() | srcEvent.getModifiers$(), srcEvent.getX$(), srcEvent.getY$(), srcEvent.getXOnScreen$(), srcEvent.getYOnScreen$(), srcEvent.getClickCount$(), srcEvent.isPopupTrigger$(), srcEvent.getButton$()]);
(srcEvent).copyPrivateDataInto$java_awt_AWTEvent(me);
}var targetOver=this.nativeContainer.getMouseEventTarget$I$I$Z(me.getX$(), me.getY$(), true);
p$2.trackMouseEnterExit$java_awt_Component$java_awt_event_MouseEvent.apply(this, [targetOver, me]);
});
Clazz_newMeth(C$, 'retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent', function (target, id, e) {
if (target == null ) {
return;
}var x=e.getX$();
var y=e.getY$();
var component=target;
var p=((target).getUI$()).getTargetParent$();
if (p != null ) {
target=component=p;
}for (; component != null && component !== this.nativeContainer ; component=component.getParent$()) {
x-=component.x;
y-=component.y;
if ((component).getUIClassID$() == "PopupMenuUI") break;
}
var retargeted;
if (component != null ) {
if (id == 507) {
retargeted=Clazz_new_($I$(16).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I$D,[target, id, e.getWhen$(), e.getModifiersEx$() | e.getModifiers$(), x, y, e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), (e).getScrollType$(), (e).getScrollAmount$(), (e).getWheelRotation$(), (e).getPreciseWheelRotation$()]);
} else {
retargeted=Clazz_new_($I$(15).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[target, id, e.getWhen$(), e.getModifiersEx$() | e.getModifiers$(), x, y, e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), e.getButton$()]);
}(e).copyPrivateDataInto$java_awt_AWTEvent(retargeted);
if (target === this.nativeContainer ) {
(target).dispatchEventToSelf$java_awt_AWTEvent(retargeted);
} else {
if (this.nativeContainer.modalComp != null ) {
if ((this.nativeContainer.modalComp).isAncestorOf$java_awt_Component(target)) {
target.dispatchEvent$java_awt_AWTEvent(retargeted);
} else {
e.consume$();
}} else {
target.dispatchEvent$java_awt_AWTEvent(retargeted);
if (e.bdata && e.bdata.jqevent && target.ui.j2sDoPropagate) e.bdata.jqevent.doPropagate = true;
}}}});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "Paint", null, null, 'java.awt.Transparency');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Panel", null, 'swingjs.a2s.Panel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) {
C$.superclazz.c$$java_awt_LayoutManager.apply(this, [layout]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[];
var C$=Clazz_newInterface(P$, "ComponentPeer");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[];
var C$=Clazz_newInterface(P$, "ContainerPeer", null, null, 'java.awt.peer.ComponentPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[];
var C$=Clazz_newInterface(P$, "FramePeer", null, null, 'java.awt.peer.WindowPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[];
var C$=Clazz_newInterface(P$, "KeyboardFocusManagerPeer");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[];
var C$=Clazz_newInterface(P$, "LightweightPeer", null, null, 'java.awt.peer.ContainerPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[];
var C$=Clazz_newInterface(P$, "WindowPeer", null, null, 'java.awt.peer.ContainerPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Point", null, 'java.awt.geom.Point2D');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I.apply(this, [0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Point', function (p) {
C$.c$$I$I.apply(this, [p.x, p.y]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (x, y) {
Clazz_super_(C$, this,1);
this.x=x;
this.y=y;
}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'getLocation$', function () {
return Clazz_new_(C$.c$$I$I,[this.x, this.y]);
});
Clazz_newMeth(C$, 'setLocation$java_awt_Point', function (p) {
this.setLocation$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) {
this.move$I$I(x, y);
});
Clazz_newMeth(C$, 'setLocation$D$D', function (x, y) {
this.x=(Math.floor(x + 0.5)|0);
this.y=(Math.floor(y + 0.5)|0);
});
Clazz_newMeth(C$, 'move$I$I', function (x, y) {
this.x=x;
this.y=y;
});
Clazz_newMeth(C$, 'translate$I$I', function (dx, dy) {
this.x+=dx;
this.y+=dy;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (Clazz_instanceOf(obj, "java.awt.Point")) {
var pt=obj;
return (this.x == pt.x) && (this.y == pt.y) ;
}return C$.superclazz.prototype.equals$O.apply(this, [obj]);
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[x=" + this.x + ",y=" + this.y + "]" ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Queue");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.head=null;
this.tail=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.Point','java.awt.Dimension',['java.awt.geom.Rectangle2D','.Double'],'java.awt.geom.Rectangle2D']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Rectangle", null, 'java.awt.geom.Rectangle2D', 'java.awt.Shape');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.x=0;
this.y=0;
this.width=0;
this.height=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$I$I$I.apply(this, [0, 0, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Rectangle', function (r) {
C$.c$$I$I$I$I.apply(this, [r.x, r.y, r.width, r.height]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (x, y, width, height) {
Clazz_super_(C$, this,1);
this.x=x;
this.y=y;
this.width=width;
this.height=height;
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (width, height) {
C$.c$$I$I$I$I.apply(this, [0, 0, width, height]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Point$java_awt_Dimension', function (p, d) {
C$.c$$I$I$I$I.apply(this, [p.x, p.y, d.width, d.height]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Point', function (p) {
C$.c$$I$I$I$I.apply(this, [p.x, p.y, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Dimension', function (d) {
C$.c$$I$I$I$I.apply(this, [0, 0, d.width, d.height]);
}, 1);
Clazz_newMeth(C$, 'getX$', function () {
return this.x;
});
Clazz_newMeth(C$, 'getY$', function () {
return this.y;
});
Clazz_newMeth(C$, 'getWidth$', function () {
return this.width;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.height;
});
Clazz_newMeth(C$, 'getBounds$', function () {
return Clazz_new_(C$.c$$I$I$I$I,[this.x, this.y, this.width, this.height]);
});
Clazz_newMeth(C$, 'getBounds2D$', function () {
return Clazz_new_(C$.c$$I$I$I$I,[this.x, this.y, this.width, this.height]);
});
Clazz_newMeth(C$, 'setBounds$java_awt_Rectangle', function (r) {
this.reshape$I$I$I$I(r.x, r.y, r.width, r.height);
});
Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) {
this.reshape$I$I$I$I(x, y, width, height);
});
Clazz_newMeth(C$, 'setRect$D$D$D$D', function (x, y, width, height) {
var newx;
var newy;
var neww;
var newh;
if (x > 4.294967294E9 ) {
newx=2147483647;
neww=-1;
} else {
newx=C$.clip$D$Z(x, false);
if (width >= 0 ) width += x - newx;
neww=C$.clip$D$Z(width, width >= 0 );
}if (y > 4.294967294E9 ) {
newy=2147483647;
newh=-1;
} else {
newy=C$.clip$D$Z(y, false);
if (height >= 0 ) height += y - newy;
newh=C$.clip$D$Z(height, height >= 0 );
}this.reshape$I$I$I$I(newx, newy, neww, newh);
});
Clazz_newMeth(C$, 'clip$D$Z', function (v, doceil) {
if (v <= -2147483648 ) {
return -2147483648;
}if (v >= 2147483647 ) {
return 2147483647;
}return ((doceil ? Math.ceil(v) : Math.floor(v))|0);
}, 1);
Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) {
this.x=x;
this.y=y;
this.width=width;
this.height=height;
});
Clazz_newMeth(C$, 'getLocation$', function () {
return Clazz_new_($I$(1).c$$I$I,[this.x, this.y]);
});
Clazz_newMeth(C$, 'setLocation$java_awt_Point', function (p) {
this.setLocation$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) {
this.move$I$I(x, y);
});
Clazz_newMeth(C$, 'move$I$I', function (x, y) {
this.x=x;
this.y=y;
});
Clazz_newMeth(C$, 'translate$I$I', function (dx, dy) {
var oldv=this.x;
var newv=oldv + dx;
if (dx < 0) {
if (newv > oldv) {
if (this.width >= 0) {
this.width+=newv - -2147483648;
}newv=-2147483648;
}} else {
if (newv < oldv) {
if (this.width >= 0) {
this.width+=newv - 2147483647;
if (this.width < 0) this.width=2147483647;
}newv=2147483647;
}}this.x=newv;
oldv=this.y;
newv=oldv + dy;
if (dy < 0) {
if (newv > oldv) {
if (this.height >= 0) {
this.height+=newv - -2147483648;
}newv=-2147483648;
}} else {
if (newv < oldv) {
if (this.height >= 0) {
this.height+=newv - 2147483647;
if (this.height < 0) this.height=2147483647;
}newv=2147483647;
}}this.y=newv;
});
Clazz_newMeth(C$, 'getSize$', function () {
return Clazz_new_($I$(2).c$$I$I,[this.width, this.height]);
});
Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) {
this.setSize$I$I(d.width, d.height);
});
Clazz_newMeth(C$, 'setSize$I$I', function (width, height) {
this.resize$I$I(width, height);
});
Clazz_newMeth(C$, 'resize$I$I', function (width, height) {
this.width=width;
this.height=height;
});
Clazz_newMeth(C$, 'contains$java_awt_Point', function (p) {
return this.contains$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'contains$I$I', function (x, y) {
return this.inside$I$I(x, y);
});
Clazz_newMeth(C$, 'contains$java_awt_Rectangle', function (r) {
return this.contains$I$I$I$I(r.x, r.y, r.width, r.height);
});
Clazz_newMeth(C$, 'contains$I$I$I$I', function (X, Y, W, H) {
var w=this.width;
var h=this.height;
if ((w | h | W | H ) < 0) {
return false;
}var x=this.x;
var y=this.y;
if (X < x || Y < y ) {
return false;
}w+=x;
W+=X;
if (W <= X) {
if (w >= x || W > w ) return false;
} else {
if (w >= x && W > w ) return false;
}h+=y;
H+=Y;
if (H <= Y) {
if (h >= y || H > h ) return false;
} else {
if (h >= y && H > h ) return false;
}return true;
});
Clazz_newMeth(C$, 'inside$I$I', function (X, Y) {
var w=this.width;
var h=this.height;
if ((w | h) < 0) {
return false;
}var x=this.x;
var y=this.y;
if (X < x || Y < y ) {
return false;
}w+=x;
h+=y;
return ((w < x || w > X ) && (h < y || h > Y ) );
});
Clazz_newMeth(C$, 'intersects$java_awt_Rectangle', function (r) {
var tw=this.width;
var th=this.height;
var rw=r.width;
var rh=r.height;
if (rw <= 0 || rh <= 0 || tw <= 0 || th <= 0 ) {
return false;
}var tx=this.x;
var ty=this.y;
var rx=r.x;
var ry=r.y;
rw+=rx;
rh+=ry;
tw+=tx;
th+=ty;
return ((rw < rx || rw > tx ) && (rh < ry || rh > ty ) && (tw < tx || tw > rx ) && (th < ty || th > ry ) );
});
Clazz_newMeth(C$, 'intersection$java_awt_Rectangle', function (r) {
var tx1=this.x;
var ty1=this.y;
var rx1=r.x;
var ry1=r.y;
var tx2=tx1;
tx2+=this.width;
var ty2=ty1;
ty2+=this.height;
var rx2=rx1;
rx2+=r.width;
var ry2=ry1;
ry2+=r.height;
if (tx1 < rx1) tx1=rx1;
if (ty1 < ry1) ty1=ry1;
if (tx2 > rx2) tx2=rx2;
if (ty2 > ry2) ty2=ry2;
tx2-=tx1;
ty2-=ty1;
if (tx2 < -2147483648) tx2=-2147483648;
if (ty2 < -2147483648) ty2=-2147483648;
return Clazz_new_(C$.c$$I$I$I$I,[tx1, ty1, (tx2|0), (ty2|0)]);
});
Clazz_newMeth(C$, 'union$java_awt_Rectangle', function (r) {
var tx2=this.width;
var ty2=this.height;
if ((tx2 | ty2) < 0) {
return Clazz_new_(C$.c$$java_awt_Rectangle,[r]);
}var rx2=r.width;
var ry2=r.height;
if ((rx2 | ry2) < 0) {
return Clazz_new_(C$.c$$java_awt_Rectangle,[this]);
}var tx1=this.x;
var ty1=this.y;
tx2+=tx1;
ty2+=ty1;
var rx1=r.x;
var ry1=r.y;
rx2+=rx1;
ry2+=ry1;
if (tx1 > rx1) tx1=rx1;
if (ty1 > ry1) ty1=ry1;
if (tx2 < rx2) tx2=rx2;
if (ty2 < ry2) ty2=ry2;
tx2-=tx1;
ty2-=ty1;
if (tx2 > 2147483647) tx2=2147483647;
if (ty2 > 2147483647) ty2=2147483647;
return Clazz_new_(C$.c$$I$I$I$I,[tx1, ty1, (tx2|0), (ty2|0)]);
});
Clazz_newMeth(C$, 'add$I$I', function (newx, newy) {
if ((this.width | this.height) < 0) {
this.x=newx;
this.y=newy;
this.width=this.height=0;
return;
}var x1=this.x;
var y1=this.y;
var x2=this.width;
var y2=this.height;
x2+=x1;
y2+=y1;
if (x1 > newx) x1=newx;
if (y1 > newy) y1=newy;
if (x2 < newx) x2=newx;
if (y2 < newy) y2=newy;
x2-=x1;
y2-=y1;
if (x2 > 2147483647) x2=2147483647;
if (y2 > 2147483647) y2=2147483647;
this.reshape$I$I$I$I(x1, y1, (x2|0), (y2|0));
});
Clazz_newMeth(C$, 'add$java_awt_Point', function (pt) {
this.add$I$I(pt.x, pt.y);
});
Clazz_newMeth(C$, 'add$java_awt_Rectangle', function (r) {
var tx2=this.width;
var ty2=this.height;
if ((tx2 | ty2) < 0) {
this.reshape$I$I$I$I(r.x, r.y, r.width, r.height);
}var rx2=r.width;
var ry2=r.height;
if ((rx2 | ry2) < 0) {
return;
}var tx1=this.x;
var ty1=this.y;
tx2+=tx1;
ty2+=ty1;
var rx1=r.x;
var ry1=r.y;
rx2+=rx1;
ry2+=ry1;
if (tx1 > rx1) tx1=rx1;
if (ty1 > ry1) ty1=ry1;
if (tx2 < rx2) tx2=rx2;
if (ty2 < ry2) ty2=ry2;
tx2-=tx1;
ty2-=ty1;
if (tx2 > 2147483647) tx2=2147483647;
if (ty2 > 2147483647) ty2=2147483647;
this.reshape$I$I$I$I(tx1, ty1, (tx2|0), (ty2|0));
});
Clazz_newMeth(C$, 'grow$I$I', function (h, v) {
var x0=this.x;
var y0=this.y;
var x1=this.width;
var y1=this.height;
x1+=x0;
y1+=y0;
x0-=h;
y0-=v;
x1+=h;
y1+=v;
if (x1 < x0) {
x1-=x0;
if (x1 < -2147483648) x1=-2147483648;
if (x0 < -2147483648) x0=-2147483648;
else if (x0 > 2147483647) x0=2147483647;
} else {
if (x0 < -2147483648) x0=-2147483648;
else if (x0 > 2147483647) x0=2147483647;
x1-=x0;
if (x1 < -2147483648) x1=-2147483648;
else if (x1 > 2147483647) x1=2147483647;
}if (y1 < y0) {
y1-=y0;
if (y1 < -2147483648) y1=-2147483648;
if (y0 < -2147483648) y0=-2147483648;
else if (y0 > 2147483647) y0=2147483647;
} else {
if (y0 < -2147483648) y0=-2147483648;
else if (y0 > 2147483647) y0=2147483647;
y1-=y0;
if (y1 < -2147483648) y1=-2147483648;
else if (y1 > 2147483647) y1=2147483647;
}this.reshape$I$I$I$I((x0|0), (y0|0), (x1|0), (y1|0));
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return (this.width <= 0) || (this.height <= 0) ;
});
Clazz_newMeth(C$, 'outcode$D$D', function (x, y) {
var out=0;
if (this.width <= 0) {
out|=5;
} else if (x < this.x ) {
out|=1;
} else if (x > this.x + this.width ) {
out|=4;
}if (this.height <= 0) {
out|=10;
} else if (y < this.y ) {
out|=2;
} else if (y > this.y + this.height ) {
out|=8;
}return out;
});
Clazz_newMeth(C$, 'createIntersection$java_awt_geom_Rectangle2D', function (r) {
if (Clazz_instanceOf(r, "java.awt.Rectangle")) {
return this.intersection$java_awt_Rectangle(r);
}var dest=Clazz_new_($I$(3));
$I$(4).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest);
return dest;
});
Clazz_newMeth(C$, 'createUnion$java_awt_geom_Rectangle2D', function (r) {
if (Clazz_instanceOf(r, "java.awt.Rectangle")) {
return this.union$java_awt_Rectangle(r);
}var dest=Clazz_new_($I$(3));
$I$(4).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest);
return dest;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (Clazz_instanceOf(obj, "java.awt.Rectangle")) {
var r=obj;
return ((this.x == r.x) && (this.y == r.y) && (this.width == r.width) && (this.height == r.height) );
}return C$.superclazz.prototype.equals$O.apply(this, [obj]);
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[x=" + this.x + ",y=" + this.y + ",width=" + this.width + ",height=" + this.height + "]" ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.HashMap','InternalError',['java.awt.RenderingHints','.SunKey'],['java.awt.RenderingHints','.Value'],['java.awt.RenderingHints','.LCDContrastKey'],'java.util.Collections']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "RenderingHints", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.util.Map', 'Cloneable']);
C$.KEY_RENDERING=null;
C$.VALUE_RENDER_SPEED=null;
C$.VALUE_RENDER_QUALITY=null;
C$.VALUE_RENDER_DEFAULT=null;
C$.KEY_ANTIALIASING=null;
C$.VALUE_ANTIALIAS_ON=null;
C$.VALUE_ANTIALIAS_OFF=null;
C$.VALUE_ANTIALIAS_DEFAULT=null;
C$.KEY_FRACTIONALMETRICS=null;
C$.VALUE_FRACTIONALMETRICS_ON=null;
C$.VALUE_FRACTIONALMETRICS_OFF=null;
C$.VALUE_FRACTIONALMETRICS_DEFAULT=null;
C$.KEY_DITHERING=null;
C$.VALUE_DITHER_ENABLE=null;
C$.VALUE_DITHER_DISABLE=null;
C$.VALUE_DITHER_DEFAULT=null;
C$.KEY_INTERPOLATION=null;
C$.VALUE_INTERPOLATION_NEAREST_NEIGHBOR=null;
C$.VALUE_INTERPOLATION_BILINEAR=null;
C$.VALUE_INTERPOLATION_BICUBIC=null;
C$.KEY_ALPHA_INTERPOLATION=null;
C$.VALUE_ALPHA_INTERPOLATION_SPEED=null;
C$.VALUE_ALPHA_INTERPOLATION_QUALITY=null;
C$.VALUE_ALPHA_INTERPOLATION_DEFAULT=null;
C$.KEY_COLOR_RENDERING=null;
C$.VALUE_COLOR_RENDER_SPEED=null;
C$.VALUE_COLOR_RENDER_QUALITY=null;
C$.VALUE_COLOR_RENDER_DEFAULT=null;
C$.KEY_STROKE_CONTROL=null;
C$.VALUE_STROKE_DEFAULT=null;
C$.VALUE_STROKE_NORMALIZE=null;
C$.VALUE_STROKE_PURE=null;
C$.KEY_TEXT_ANTIALIASING=null;
C$.VALUE_TEXT_ANTIALIAS_ON=null;
C$.VALUE_TEXT_ANTIALIAS_OFF=null;
C$.VALUE_TEXT_ANTIALIAS_DEFAULT=null;
C$.VALUE_TEXT_ANTIALIAS_GASP=null;
C$.VALUE_TEXT_ANTIALIAS_LCD_HRGB=null;
C$.VALUE_TEXT_ANTIALIAS_LCD_HBGR=null;
C$.VALUE_TEXT_ANTIALIAS_LCD_VRGB=null;
C$.VALUE_TEXT_ANTIALIAS_LCD_VBGR=null;
C$.KEY_TEXT_ANTIALIAS_LCD_CONTRAST=null;
C$.KEY_TEXT_LCD_CONTRAST=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.KEY_RENDERING=Clazz_new_($I$(3).c$$I$S,[0, "Global rendering quality key"]);
C$.VALUE_RENDER_SPEED=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_RENDERING, 1, "Fastest rendering methods"]);
C$.VALUE_RENDER_QUALITY=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_RENDERING, 2, "Highest quality rendering methods"]);
C$.VALUE_RENDER_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_RENDERING, 0, "Default rendering methods"]);
C$.KEY_ANTIALIASING=Clazz_new_($I$(3).c$$I$S,[1, "Global antialiasing enable key"]);
C$.VALUE_ANTIALIAS_ON=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ANTIALIASING, 2, "Antialiased rendering mode"]);
C$.VALUE_ANTIALIAS_OFF=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ANTIALIASING, 1, "Nonantialiased rendering mode"]);
C$.VALUE_ANTIALIAS_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ANTIALIASING, 0, "Default antialiasing rendering mode"]);
C$.KEY_FRACTIONALMETRICS=Clazz_new_($I$(3).c$$I$S,[3, "Fractional metrics enable key"]);
C$.VALUE_FRACTIONALMETRICS_ON=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_FRACTIONALMETRICS, 2, "Fractional text metrics mode"]);
C$.VALUE_FRACTIONALMETRICS_OFF=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_FRACTIONALMETRICS, 1, "Integer text metrics mode"]);
C$.VALUE_FRACTIONALMETRICS_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_FRACTIONALMETRICS, 0, "Default fractional text metrics mode"]);
C$.KEY_DITHERING=Clazz_new_($I$(3).c$$I$S,[4, "Dithering quality key"]);
C$.VALUE_DITHER_ENABLE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_DITHERING, 2, "Dithered rendering mode"]);
C$.VALUE_DITHER_DISABLE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_DITHERING, 1, "Nondithered rendering mode"]);
C$.VALUE_DITHER_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_DITHERING, 0, "Default dithering mode"]);
C$.KEY_INTERPOLATION=Clazz_new_($I$(3).c$$I$S,[5, "Image interpolation method key"]);
C$.VALUE_INTERPOLATION_NEAREST_NEIGHBOR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_INTERPOLATION, 0, "Nearest Neighbor image interpolation mode"]);
C$.VALUE_INTERPOLATION_BILINEAR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_INTERPOLATION, 1, "Bilinear image interpolation mode"]);
C$.VALUE_INTERPOLATION_BICUBIC=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_INTERPOLATION, 2, "Bicubic image interpolation mode"]);
C$.KEY_ALPHA_INTERPOLATION=Clazz_new_($I$(3).c$$I$S,[6, "Alpha blending interpolation method key"]);
C$.VALUE_ALPHA_INTERPOLATION_SPEED=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ALPHA_INTERPOLATION, 1, "Fastest alpha blending methods"]);
C$.VALUE_ALPHA_INTERPOLATION_QUALITY=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ALPHA_INTERPOLATION, 2, "Highest quality alpha blending methods"]);
C$.VALUE_ALPHA_INTERPOLATION_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ALPHA_INTERPOLATION, 0, "Default alpha blending methods"]);
C$.KEY_COLOR_RENDERING=Clazz_new_($I$(3).c$$I$S,[7, "Color rendering quality key"]);
C$.VALUE_COLOR_RENDER_SPEED=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_COLOR_RENDERING, 1, "Fastest color rendering mode"]);
C$.VALUE_COLOR_RENDER_QUALITY=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_COLOR_RENDERING, 2, "Highest quality color rendering mode"]);
C$.VALUE_COLOR_RENDER_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_COLOR_RENDERING, 0, "Default color rendering mode"]);
C$.KEY_STROKE_CONTROL=Clazz_new_($I$(3).c$$I$S,[8, "Stroke normalization control key"]);
C$.VALUE_STROKE_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_STROKE_CONTROL, 0, "Default stroke normalization"]);
C$.VALUE_STROKE_NORMALIZE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_STROKE_CONTROL, 1, "Normalize strokes for consistent rendering"]);
C$.VALUE_STROKE_PURE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_STROKE_CONTROL, 2, "Pure stroke conversion for accurate paths"]);
C$.KEY_TEXT_ANTIALIASING=Clazz_new_($I$(3).c$$I$S,[2, "Text-specific antialiasing enable key"]);
C$.VALUE_TEXT_ANTIALIAS_ON=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 2, "Antialiased text mode"]);
C$.VALUE_TEXT_ANTIALIAS_OFF=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 1, "Nonantialiased text mode"]);
C$.VALUE_TEXT_ANTIALIAS_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 0, "Default antialiasing text mode"]);
C$.VALUE_TEXT_ANTIALIAS_GASP=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 3, "gasp antialiasing text mode"]);
C$.VALUE_TEXT_ANTIALIAS_LCD_HRGB=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 4, "LCD HRGB antialiasing text mode"]);
C$.VALUE_TEXT_ANTIALIAS_LCD_HBGR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 5, "LCD HBGR antialiasing text mode"]);
C$.VALUE_TEXT_ANTIALIAS_LCD_VRGB=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 6, "LCD VRGB antialiasing text mode"]);
C$.VALUE_TEXT_ANTIALIAS_LCD_VBGR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 7, "LCD VBGR antialiasing text mode"]);
C$.KEY_TEXT_ANTIALIAS_LCD_CONTRAST=Clazz_new_($I$(5).c$$I$S,[100, "Text-specific LCD contrast key"]);
C$.KEY_TEXT_LCD_CONTRAST=C$.KEY_TEXT_ANTIALIAS_LCD_CONTRAST;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.hintmap=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.hintmap=Clazz_new_($I$(1).c$$I,[7]);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (init) {
C$.$init$.apply(this);
if (init != null ) {
this.hintmap.putAll$java_util_Map(init);
}}, 1);
Clazz_newMeth(C$, 'c$$java_awt_RenderingHints_Key$O', function (key, value) {
C$.$init$.apply(this);
if (key != null ) this.hintmap.put$TK$TV(key, value);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.hintmap.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.hintmap.isEmpty$();
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
return this.hintmap.containsKey$O(key);
});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
return this.hintmap.containsValue$O(value);
});
Clazz_newMeth(C$, 'get$O', function (key) {
return this.hintmap.get$O(key);
});
Clazz_newMeth(C$, ['put$O$O','put$TK$TV'], function (key, value) {
if (!(key).isCompatibleValue$O(value)) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[value + " incompatible with " + key ]);
}return this.hintmap.put$TK$TV(key, value);
});
Clazz_newMeth(C$, 'add$java_awt_RenderingHints', function (hints) {
this.hintmap.putAll$java_util_Map(hints.hintmap);
});
Clazz_newMeth(C$, 'clear$', function () {
this.hintmap.clear$();
});
Clazz_newMeth(C$, 'remove$O', function (key) {
return this.hintmap.remove$O(key);
});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) {
if (Clazz_getClass(C$).isInstance$O(m)) {
for (var entry, $entry = m.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) this.hintmap.put$TK$TV(entry.getKey$(), entry.getValue$());
} else {
for (var entry, $entry = m.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) this.put$O$O(entry.getKey$(), entry.getValue$());
}});
Clazz_newMeth(C$, 'keySet$', function () {
return this.hintmap.keySet$();
});
Clazz_newMeth(C$, 'values$', function () {
return this.hintmap.values$();
});
Clazz_newMeth(C$, 'entrySet$', function () {
return $I$(6).unmodifiableMap$java_util_Map(this.hintmap).entrySet$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (Clazz_instanceOf(o, "java.awt.RenderingHints")) {
return this.hintmap.equals$O((o).hintmap);
} else if (Clazz_instanceOf(o, "java.util.Map")) {
return this.hintmap.equals$O(o);
}return false;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.hintmap.hashCode$();
});
Clazz_newMeth(C$, 'clone$', function () {
var rh;
try {
rh=Clazz_clone(this);
if (this.hintmap != null ) {
rh.hintmap=this.hintmap.clone$();
}} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(2));
} else {
throw e;
}
}
return rh;
});
Clazz_newMeth(C$, 'toString', function () {
if (this.hintmap == null ) {
return this.getClass$().getName$() + "@" + Integer.toHexString$I(this.hashCode$()) + " (0 hints)" ;
}return this.hintmap.toString();
});
;
(function(){var C$=Clazz_newClass(P$.RenderingHints, "Key", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.identitymap=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.identitymap=Clazz_new_($I$(1).c$$I,[17]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.privatekey=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getIdentity', function () {
return this.getClass$().getName$() + "@" + Integer.toHexString$I(System.identityHashCode$O(this.getClass$())) + ":" + Integer.toHexString$I(this.privatekey) ;
}, p$1);
Clazz_newMeth(C$, 'recordIdentity$java_awt_RenderingHints_Key', function (k) {
var identity=p$1.getIdentity.apply(k, []);
var otherref=C$.identitymap.get$O(identity);
if (otherref != null ) {
var otherkey=otherref;
if (otherkey != null && otherkey.getClass$() === k.getClass$() ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[identity + " already registered"]);
}}C$.identitymap.put$TK$TV(identity, k);
}, p$1);
Clazz_newMeth(C$, 'c$$I', function (privatekey) {
C$.$init$.apply(this);
this.privatekey=privatekey;
p$1.recordIdentity$java_awt_RenderingHints_Key.apply(this, [this]);
}, 1);
Clazz_newMeth(C$, 'intKey$', function () {
return this.privatekey;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return C$.superclazz.prototype.hashCode$.apply(this, []);
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return this === o ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.RenderingHints, "SunKey", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.awt.RenderingHints','.Key']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.description=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$S', function (privatekey, description) {
C$.superclazz.c$$I.apply(this, [privatekey]);
C$.$init$.apply(this);
this.description=description;
}, 1);
Clazz_newMeth(C$, 'getIndex$', function () {
return this.privatekey;
});
Clazz_newMeth(C$, 'toString', function () {
return this.description;
});
Clazz_newMeth(C$, 'isCompatibleValue$O', function (val) {
if (Clazz_instanceOf(val, "java.awt.RenderingHints.Value")) {
return (val).isCompatibleKey$java_awt_RenderingHints_SunKey(this);
}return false;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.RenderingHints, "Value", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.ValueObjects=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.ValueObjects=Clazz_array(C$, [9, 8]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.myKey=null;
this.index=0;
this.description=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'register$java_awt_RenderingHints_SunKey$java_awt_RenderingHints_Value', function (key, value) {
var kindex=key.getIndex$();
var vindex=value.getIndex$();
if (C$.ValueObjects[kindex][vindex] != null ) {
throw Clazz_new_($I$(2).c$$S,["duplicate index: " + vindex]);
}C$.ValueObjects[kindex][vindex]=value;
}, 1);
Clazz_newMeth(C$, 'get$I$I', function (keyindex, valueindex) {
return C$.ValueObjects[keyindex][valueindex];
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_RenderingHints_SunKey$I$S', function (key, index, description) {
C$.$init$.apply(this);
this.myKey=key;
this.index=index;
this.description=description;
C$.register$java_awt_RenderingHints_SunKey$java_awt_RenderingHints_Value(key, this);
}, 1);
Clazz_newMeth(C$, 'getIndex$', function () {
return this.index;
});
Clazz_newMeth(C$, 'toString', function () {
return this.description;
});
Clazz_newMeth(C$, 'isCompatibleKey$java_awt_RenderingHints_SunKey', function (k) {
return this.myKey === k ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.description.hashCode$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return this === o ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.RenderingHints, "LCDContrastKey", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.awt.RenderingHints','.SunKey']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$S', function (privatekey, description) {
C$.superclazz.c$$I$S.apply(this, [privatekey, description]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'isCompatibleValue$O', function (val) {
if (Clazz_instanceOf(val, "java.lang.Integer")) {
var ival=(val).intValue$();
return ival >= 100 && ival <= 250 ;
}return false;
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "Scrollbar", null, 'swingjs.a2s.Scrollbar');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (orientation) {
C$.superclazz.c$$I.apply(this, [orientation]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I$I', function (orientation, value, visible, minimum, maximum) {
C$.superclazz.c$$I$I$I$I$I.apply(this, [orientation, value, visible, minimum, maximum]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "ScrollPane", null, 'swingjs.a2s.ScrollPane');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (scrollbarDisplayPolicy) {
C$.superclazz.c$$I.apply(this, [scrollbarDisplayPolicy]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "Shape");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "Stroke");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "TextArea", null, 'swingjs.a2s.TextArea');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.superclazz.c$$S.apply(this, [text]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (rows, columns) {
C$.superclazz.c$$I$I.apply(this, [rows, columns]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I', function (text, rows, columns) {
C$.superclazz.c$$S$I$I.apply(this, [text, rows, columns]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I$I', function (text, rows, columns, scrollbars) {
C$.superclazz.c$$S$I$I$I.apply(this, [text, rows, columns, scrollbars]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "TextComponent");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newClass(P$, "TextField", null, 'swingjs.a2s.TextField');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.superclazz.c$$S.apply(this, [text]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (columns) {
C$.superclazz.c$$I.apply(this, [columns]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S$I', function (text, columns) {
C$.superclazz.c$$S$I.apply(this, [text, columns]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.util.HashMap','sun.awt.NullComponentPeer','java.awt.Insets','swingjs.JSToolkit','java.awt.GraphicsEnvironment','java.awt.Cursor',['java.awt.Toolkit','.SelectiveAWTEventListener'],['java.awt.Toolkit','.ToolkitEventMulticaster'],'java.awt.AWTEventMulticaster','java.awt.event.AWTEventListener','java.awt.event.AWTEventListenerProxy','java.util.ArrayList','java.beans.PropertyChangeSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Toolkit", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.lightweightMarker=null;
C$.toolkit=null;
C$.resources=null;
C$.enabledOnToolkitMask=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.desktopProperties=null;
this.desktopPropsSupport=null;
this.calls=null;
this.eventListener=null;
this.listener2SelectiveListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.desktopProperties=Clazz_new_($I$(1));
this.desktopPropsSupport=C$.createPropertyChangeSupport$java_awt_Toolkit(this);
this.calls=Clazz_array(Integer.TYPE, [32]);
this.eventListener=null;
this.listener2SelectiveListener=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'createComponent$java_awt_Component', function (target) {
if (C$.lightweightMarker == null ) {
C$.lightweightMarker=Clazz_new_($I$(2));
}return C$.lightweightMarker;
});
Clazz_newMeth(C$, 'loadSystemColors$IA', function (systemColors) {
});
Clazz_newMeth(C$, 'setDynamicLayout$Z', function (dynamic) {
});
Clazz_newMeth(C$, 'isDynamicLayoutSet$', function () {
if (this !== C$.getDefaultToolkit$() ) {
return C$.getDefaultToolkit$().isDynamicLayoutSet$();
} else {
return false;
}});
Clazz_newMeth(C$, 'isDynamicLayoutActive$', function () {
if (this !== C$.getDefaultToolkit$() ) {
return C$.getDefaultToolkit$().isDynamicLayoutActive$();
} else {
return false;
}});
Clazz_newMeth(C$, 'getScreenInsets$java_awt_GraphicsConfiguration', function (gc) {
if (this !== C$.getDefaultToolkit$() ) {
return C$.getDefaultToolkit$().getScreenInsets$java_awt_GraphicsConfiguration(gc);
} else {
return Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
}});
Clazz_newMeth(C$, 'getDefaultToolkit$', function () {
return (C$.toolkit == null ? C$.toolkit=Clazz_new_($I$(4)) : C$.toolkit);
}, 1);
Clazz_newMeth(C$, 'createImage$BA', function (imagedata) {
return this.createImage$BA$I$I(imagedata, 0, imagedata.length);
});
Clazz_newMeth(C$, 'getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) {
if (this !== C$.getDefaultToolkit$() ) {
return C$.getDefaultToolkit$().getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes(frame, jobtitle, jobAttributes, pageAttributes);
} else {
return this.getPrintJob$java_awt_JSFrame$S$java_util_Properties(frame, jobtitle, null);
}});
Clazz_newMeth(C$, 'getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) {
if (this !== C$.getDefaultToolkit$() ) {
return C$.getDefaultToolkit$().getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes(frame, jobtitle, jobAttributes, pageAttributes);
} else {
return this.getPrintJob$java_awt_Frame$S$java_util_Properties(frame, jobtitle, null);
}});
Clazz_newMeth(C$, 'getSystemSelection$', function () {
if (this !== C$.getDefaultToolkit$() ) {
return C$.getDefaultToolkit$().getSystemSelection$();
} else {
$I$(5).checkHeadless$();
return null;
}});
Clazz_newMeth(C$, 'getMenuShortcutKeyMask$', function () {
return 2;
});
Clazz_newMeth(C$, 'getNativeContainer$java_awt_Component', function (c) {
return null;
}, 1);
Clazz_newMeth(C$, 'createCustomCursor$java_awt_Image$java_awt_Point$S', function (cursor, hotSpot, name) {
return (name == null ? Clazz_new_($I$(6).c$$I,[0]) : Clazz_new_($I$(6).c$$S,[name]));
});
Clazz_newMeth(C$, 'isFrameStateSupported$I', function (state) {
return (state == 0);
});
Clazz_newMeth(C$, 'getProperty$S$S', function (key, defaultValue) {
if (C$.resources != null ) {
try {
return C$.resources.getString$S(key);
} catch (e) {
if (Clazz_exceptionOf(e,"java.util.MissingResourceException")){
} else {
throw e;
}
}
}return defaultValue;
}, 1);
Clazz_newMeth(C$, 'getSystemEventQueue$', function () {
return this.getSystemEventQueueImpl$();
});
Clazz_newMeth(C$, 'getEventQueue$', function () {
return C$.getDefaultToolkit$().getSystemEventQueueImpl$();
}, 1);
Clazz_newMeth(C$, 'createDragGestureRecognizer$Class$java_awt_dnd_DragSource$java_awt_Component$I$java_awt_dnd_DragGestureListener', function (abstractRecognizerClass, ds, c, srcActions, dgl) {
return null;
});
Clazz_newMeth(C$, 'getDesktopProperty$S', function (propertyName) {
if (this.desktopProperties.isEmpty$()) {
this.initializeDesktopProperties$();
}var value;
if (propertyName.equals$O("awt.dynamicLayoutSupported")) {
value=this.lazilyLoadDesktopProperty$S(propertyName);
return value;
}value=this.desktopProperties.get$O(propertyName);
if (value == null ) {
value=this.lazilyLoadDesktopProperty$S(propertyName);
if (value != null ) {
this.setDesktopProperty$S$O(propertyName, value);
}}if (Clazz_instanceOf(value, "java.awt.RenderingHints")) {
value=(value).clone$();
}return value;
});
Clazz_newMeth(C$, 'setDesktopProperty$S$O', function (name, newValue) {
var oldValue;
{
oldValue=this.desktopProperties.get$O(name);
this.desktopProperties.put$TK$TV(name, newValue);
}this.desktopPropsSupport.firePropertyChange$S$O$O(name, oldValue, newValue);
});
Clazz_newMeth(C$, 'lazilyLoadDesktopProperty$S', function (name) {
return null;
});
Clazz_newMeth(C$, 'initializeDesktopProperties$', function () {
});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (name, pcl) {
this.desktopPropsSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(name, pcl);
});
Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (name, pcl) {
this.desktopPropsSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(name, pcl);
});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
return this.desktopPropsSupport.getPropertyChangeListeners$();
});
Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) {
return this.desktopPropsSupport.getPropertyChangeListeners$S(propertyName);
});
Clazz_newMeth(C$, 'isAlwaysOnTopSupported$', function () {
return true;
});
Clazz_newMeth(C$, 'deProxyAWTEventListener$java_awt_event_AWTEventListener', function (l) {
var localL=l;
if (localL == null ) {
return null;
}if (Clazz_instanceOf(l, "java.awt.event.AWTEventListenerProxy")) {
localL=(l).getListener$();
}return localL;
}, 1);
Clazz_newMeth(C$, 'addAWTEventListener$java_awt_event_AWTEventListener$J', function (listener, eventMask) {
var localL=C$.deProxyAWTEventListener$java_awt_event_AWTEventListener(listener);
if (localL == null ) {
return;
}{
var selectiveListener=this.listener2SelectiveListener.get$O(localL);
if (selectiveListener == null ) {
selectiveListener=Clazz_new_($I$(7).c$$java_awt_event_AWTEventListener$J, [this, null, localL, eventMask]);
this.listener2SelectiveListener.put$TK$TV(localL, selectiveListener);
this.eventListener=$I$(8).add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(this.eventListener, selectiveListener);
}selectiveListener.orEventMasks$J(eventMask);
C$.enabledOnToolkitMask|=eventMask;
var mask=eventMask;
for (var i=0; i < 32; i++) {
if (mask == 0) {
break;
}if ((mask & 1) != 0) {
this.calls[i]++;
}mask>>>=1;
}
}});
Clazz_newMeth(C$, 'removeAWTEventListener$java_awt_event_AWTEventListener', function (listener) {
var localL=C$.deProxyAWTEventListener$java_awt_event_AWTEventListener(listener);
if (listener == null ) {
return;
}{
var selectiveListener=this.listener2SelectiveListener.get$O(localL);
if (selectiveListener != null ) {
this.listener2SelectiveListener.remove$O(localL);
var listenerCalls=selectiveListener.getCalls$();
for (var i=0; i < 32; i++) {
this.calls[i]-=listenerCalls[i];
if (this.calls[i] == 0) {
C$.enabledOnToolkitMask&=~(1 << i);
}}
}this.eventListener=$I$(8).remove$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(this.eventListener, (selectiveListener == null ) ? localL : selectiveListener);
}});
Clazz_newMeth(C$, 'enabledOnToolkit$J', function (eventMask) {
return (C$.enabledOnToolkitMask & eventMask) != 0;
}, 1);
Clazz_newMeth(C$, 'countAWTEventListeners$J', function (eventMask) {
var ci=0;
for (; eventMask != 0; eventMask>>>=1, ci++) {
}
ci--;
return this.calls[ci];
});
Clazz_newMeth(C$, 'getAWTEventListeners$', function () {
{
var la=$I$(9).getListeners$java_util_EventListener$Class(this.eventListener, Clazz_getClass($I$(10),['eventDispatched$java_awt_AWTEvent']));
var ret=Clazz_array($I$(10), [la.length]);
for (var i=0; i < la.length; i++) {
var sael=la[i];
var tempL=sael.getListener$();
ret[i]=Clazz_new_($I$(11).c$$J$java_awt_event_AWTEventListener,[sael.getEventMask$(), tempL]);
}
return ret;
}});
Clazz_newMeth(C$, 'getAWTEventListeners$J', function (eventMask) {
{
var la=$I$(9).getListeners$java_util_EventListener$Class(this.eventListener, Clazz_getClass($I$(10),['eventDispatched$java_awt_AWTEvent']));
var list=Clazz_new_($I$(12).c$$I,[la.length]);
for (var i=0; i < la.length; i++) {
var sael=la[i];
if ((sael.getEventMask$() & eventMask) == eventMask) {
list.add$TE(Clazz_new_($I$(11).c$$J$java_awt_event_AWTEventListener,[sael.getEventMask$(), sael.getListener$()]));
}}
return list.toArray$TTA(Clazz_array($I$(10), [0]));
}});
Clazz_newMeth(C$, 'notifyAWTEventListeners$java_awt_AWTEvent', function (theEvent) {
var eventListener=this.eventListener;
if (eventListener != null ) {
eventListener.eventDispatched$(theEvent);
}});
Clazz_newMeth(C$, 'createPropertyChangeSupport$java_awt_Toolkit', function (toolkit) {
return Clazz_new_($I$(13).c$$O,[toolkit]);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.Toolkit, "ToolkitEventMulticaster", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.awt.AWTEventMulticaster', 'java.awt.event.AWTEventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener', function (a, b) {
C$.superclazz.c$$java_util_EventListener$java_util_EventListener.apply(this, [a, b]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener', function (a, b) {
if (a == null ) return b;
if (b == null ) return a;
return Clazz_new_(C$.c$$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener,[a, b]);
}, 1);
Clazz_newMeth(C$, 'remove$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener', function (l, oldl) {
return P$.AWTEventMulticaster.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl);
}, 1);
Clazz_newMeth(C$, 'remove$java_util_EventListener', function (oldl) {
if (oldl === this.a ) return this.b;
if (oldl === this.b ) return this.a;
var a2=P$.AWTEventMulticaster.removeInternal$java_util_EventListener$java_util_EventListener(this.a, oldl);
var b2=P$.AWTEventMulticaster.removeInternal$java_util_EventListener$java_util_EventListener(this.b, oldl);
if (a2 === this.a && b2 === this.b ) {
return this;
}return C$.add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(a2, b2);
});
Clazz_newMeth(C$, ['eventDispatched$java_awt_AWTEvent','eventDispatched$'], function (event) {
(this.a).eventDispatched$(event);
(this.b).eventDispatched$(event);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Toolkit, "SelectiveAWTEventListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.awt.event.AWTEventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.listener=null;
this.eventMask=0;
this.calls=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.calls=Clazz_array(Integer.TYPE, [32]);
}, 1);
Clazz_newMeth(C$, 'getListener$', function () {
return this.listener;
});
Clazz_newMeth(C$, 'getEventMask$', function () {
return this.eventMask;
});
Clazz_newMeth(C$, 'getCalls$', function () {
return this.calls;
});
Clazz_newMeth(C$, 'orEventMasks$J', function (mask) {
this.eventMask|=mask;
for (var i=0; i < 32; i++) {
if (mask == 0) {
break;
}if ((mask & 1) != 0) {
this.calls[i]++;
}mask>>>=1;
}
});
Clazz_newMeth(C$, 'c$$java_awt_event_AWTEventListener$J', function (l, mask) {
C$.$init$.apply(this);
this.listener=l;
this.eventMask=mask;
}, 1);
Clazz_newMeth(C$, ['eventDispatched$java_awt_AWTEvent','eventDispatched$'], function (event) {
var eventBit=0;
if (((eventBit=this.eventMask & 1) != 0 && event.id >= 100 && event.id <= 103 ) || ((eventBit=this.eventMask & 2) != 0 && event.id >= 300 && event.id <= 301 ) || ((eventBit=this.eventMask & 4) != 0 && event.id >= 1004 && event.id <= 1005 ) || ((eventBit=this.eventMask & 8) != 0 && event.id >= 400 && event.id <= 402 ) || ((eventBit=this.eventMask & 131072) != 0 && event.id == 507 ) || ((eventBit=this.eventMask & 32) != 0 && (event.id == 503 || event.id == 506 ) ) || ((eventBit=this.eventMask & 16) != 0 && event.id != 503 && event.id != 506 && event.id != 507 && event.id >= 500 && event.id <= 507 ) || ((eventBit=this.eventMask & 64) != 0 && (event.id >= 200 && event.id <= 209 ) ) || ((eventBit=this.eventMask & 128) != 0 && event.id >= 1001 && event.id <= 1001 ) || ((eventBit=this.eventMask & 256) != 0 && event.id >= 601 && event.id <= 601 ) || ((eventBit=this.eventMask & 512) != 0 && event.id >= 701 && event.id <= 701 ) || ((eventBit=this.eventMask & 1024) != 0 && event.id >= 900 && event.id <= 900 ) || ((eventBit=this.eventMask & 2048) != 0 && event.id >= 1100 && event.id <= 1101 ) || ((eventBit=this.eventMask & 8192) != 0 && event.id >= 800 && event.id <= 801 ) || ((eventBit=this.eventMask & 16384) != 0 && event.id >= 1200 && event.id <= 1201 ) || ((eventBit=this.eventMask & 32768) != 0 && event.id == 1400 ) || ((eventBit=this.eventMask & 65536) != 0 && (event.id == 1401 || event.id == 1402 ) ) || ((eventBit=this.eventMask & 262144) != 0 && event.id == 209 ) || ((eventBit=this.eventMask & 524288) != 0 && (event.id == 207 || event.id == 208 ) ) ) {
var ci=0;
for (var eMask=eventBit; eMask != 0; eMask>>>=1, ci++) {
}
ci--;
for (var i=0; i < this.calls[ci]; i++) {
this.listener.eventDispatched$(event);
}
}});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),I$=[];
var C$=Clazz_newInterface(P$, "Transparency");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Color','java.util.Vector','java.awt.Cursor','java.awt.BorderLayout',['java.awt.Dialog','.ModalExclusionType'],'java.util.ArrayList','swingjs.JSUtil','java.awt.Toolkit','java.awt.event.WindowEvent','java.util.Locale','java.util.Arrays','sun.awt.AppContext','java.awt.AWTEventMulticaster','java.awt.event.WindowListener','java.awt.event.WindowFocusListener','java.awt.event.WindowStateListener','java.awt.KeyboardFocusManager','java.awt.ComponentOrientation','java.util.ResourceBundle','swingjs.JSToolkit','java.awt.GraphicsEnvironment','java.awt.Point']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Window", null, 'javax.swing.JComponent');
C$.systemSyncLWRequests=false;
C$.nameCounter=0;
C$.TRANSPARENT_BACKGROUND_COLOR=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.systemSyncLWRequests=false;
C$.nameCounter=0;
C$.TRANSPARENT_BACKGROUND_COLOR=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.warningString=null;
this.icons=null;
this.temporaryLostComponent=null;
this.syncLWRequests=false;
this.beforeFirstShow=false;
this.state=0;
this.alwaysOnTop=false;
this.ownedWindowList=null;
this.showWithParent=false;
this.modalBlocker=null;
this.modalExclusionType=null;
this.windowListener=null;
this.windowStateListener=null;
this.windowFocusListener=null;
this.focusableWindowState=false;
this.isInShow=false;
this.opacity=0;
this.shape=null;
this.isTrayIconWindow=false;
this._disposed=false;
this.opaque=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.syncLWRequests=false;
this.beforeFirstShow=true;
this.ownedWindowList=Clazz_new_($I$(2));
this.focusableWindowState=true;
this.isInShow=false;
this.opacity=1.0;
this.shape=null;
this.isTrayIconWindow=false;
this.opaque=true;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(null, null);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) {
Clazz_super_(C$, this,1);
this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(null, gc);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window', function (owner) {
Clazz_super_(C$, this,1);
this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(owner, null);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Window$java_awt_GraphicsConfiguration', function (owner, gc) {
Clazz_super_(C$, this,1);
this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(owner, gc);
}, 1);
Clazz_newMeth(C$, 'initWinGC$java_awt_Window$java_awt_GraphicsConfiguration', function (owner, gc) {
this.setAppContext$();
this.isWindow=true;
this.parent=owner;
if (owner != null ) owner.addOwnedWindow$java_awt_Window(this);
this.syncLWRequests=C$.systemSyncLWRequests;
p$1.addToWindowList.apply(this, []);
this.cursor=$I$(3).getPredefinedCursor$I(0);
this.visible=false;
this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(4)));
this.modalExclusionType=$I$(5).NO_EXCLUDE;
});
Clazz_newMeth(C$, 'constructComponentName$', function () {
{
return "win" + C$.nameCounter++;
}});
Clazz_newMeth(C$, 'getIconImages$', function () {
var icons=this.icons;
if (icons == null || icons.size$() == 0 ) {
return Clazz_new_($I$(6));
}return Clazz_new_($I$(6).c$$java_util_Collection,[icons]);
});
Clazz_newMeth(C$, 'setIconImages$java_util_List', function (icons) {
this.icons=(icons == null ) ? Clazz_new_($I$(6)) : Clazz_new_($I$(6).c$$java_util_Collection,[icons]);
this.firePropertyChange$S$O$O("iconImage", null, null);
});
Clazz_newMeth(C$, 'setIconImage$java_awt_Image', function (image) {
var imageList=Clazz_new_($I$(6));
if (image != null ) {
imageList.add$TE(image);
}this.setIconImages$java_util_List(imageList);
});
Clazz_newMeth(C$, 'addNotify$', function () {
var parent=this.parent;
if (parent != null && parent.getPeer$() == null ) parent.addNotify$();
this.getOrCreatePeer$();
$I$(7).getAppletViewer$().addWindow$java_awt_Window(this);
C$.superclazz.prototype.addNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'getOrCreatePeer$', function () {
return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createWindow$java_awt_Window(this)) : this.peer);
});
Clazz_newMeth(C$, 'removeNotify$', function () {
$I$(7).getAppletViewer$().allWindows.removeObj$O(this);
C$.superclazz.prototype.removeNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'pack$', function () {
var parent=this.parent;
if (parent != null && parent.getPeer$() == null ) {
parent.addNotify$();
}if (this.peer == null ) {
this.addNotify$();
}if (this.beforeFirstShow) {
this.isPacked=true;
}this.repackContainer$();
});
Clazz_newMeth(C$, 'setMinimumSize$java_awt_Dimension', function (minimumSize) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
C$.superclazz.prototype.setMinimumSize$java_awt_Dimension.apply(this, [minimumSize]);
var size=this.getSize$();
if (this.isMinimumSizeSet$()) {
if (size.width < minimumSize.width || size.height < minimumSize.height ) {
var nw=Math.max(this.width, minimumSize.width);
var nh=Math.max(this.height, minimumSize.height);
this.setSize$I$I(nw, nh);
}}}});
Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) {
C$.superclazz.prototype.setSize$java_awt_Dimension.apply(this, [d]);
});
Clazz_newMeth(C$, 'setSize$I$I', function (width, height) {
C$.superclazz.prototype.setSize$I$I.apply(this, [width, height]);
});
Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) {
if (this.isMinimumSizeSet$()) {
var minSize=this.getMinimumSize$();
if (width < minSize.width) {
width=minSize.width;
}if (height < minSize.height) {
height=minSize.height;
}}C$.superclazz.prototype.reshape$I$I$I$I.apply(this, [x, y, width, height]);
});
Clazz_newMeth(C$, 'closeSplashScreen$', function () {
}, 1);
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
this.paintContainer$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) {
this.updateContainer$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'printAll$java_awt_Graphics', function (g) {
C$.superclazz.prototype.printAll$java_awt_Graphics.apply(this, [g]);
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.preferredSize$();
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
if (b) {
this.show$();
this.repaint$();
} else {
this.hide$();
}});
Clazz_newMeth(C$, 'show$', function () {
if (this.ui != null && (this.ui).isDisposed ) this.addNotify$();
this.validate$();
this.isInShow=true;
if (this.visible) {
this.toFront$();
} else {
this.beforeFirstShow=false;
C$.closeSplashScreen$();
C$.superclazz.prototype.show$.apply(this, []);
for (var i=0; i < this.ownedWindowList.size$(); i++) {
var child=this.ownedWindowList.elementAt$I(i);
if ((child != null ) && child.showWithParent ) {
child.show$();
child.showWithParent=false;
}}
if (Clazz_instanceOf(this, "java.awt.JSFrame") || Clazz_instanceOf(this, "java.awt.JSDialog") ) {
C$.updateChildFocusableWindowState$java_awt_Window(this);
}}this.isInShow=false;
if ((this.state & 1) == 0) {
this.repaint$();
this.postWindowEvent$I(200);
this.state|=1;
}});
Clazz_newMeth(C$, 'updateChildFocusableWindowState$java_awt_Window', function (w) {
for (var i=0; i < w.ownedWindowList.size$(); i++) {
var child=w.ownedWindowList.elementAt$I(i);
if (child != null ) {
C$.updateChildFocusableWindowState$java_awt_Window(child);
}}
}, 1);
Clazz_newMeth(C$, 'postWindowEvent$I', function (id) {
if (this.windowListener != null || (this.eventMask & 64) != 0 || $I$(8).enabledOnToolkit$J(64) ) {
var e=Clazz_new_($I$(9).c$$java_awt_Window$I,[this, id]);
$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e);
}});
Clazz_newMeth(C$, 'hide$', function () {
{
for (var i=0; i < this.ownedWindowList.size$(); i++) {
var child=this.ownedWindowList.elementAt$I(i);
if ((child != null ) && child.visible ) {
child.hide$();
child.showWithParent=true;
}}
}C$.superclazz.prototype.hide$.apply(this, []);
});
Clazz_newMeth(C$, 'clearMostRecentFocusOwnerOnHide$', function () {
});
Clazz_newMeth(C$, 'dispose$', function () {
this.doDispose$();
});
Clazz_newMeth(C$, 'disposeImpl$', function () {
this.dispose$();
if (!this._disposed && this.getPeer$() != null ) {
this.doDispose$();
}});
Clazz_newMeth(C$, 'doDispose$', function () {
this._disposed=true;
var me=this;
var action=((P$.Window$1||
(function(){var C$=Clazz_newClass(P$, "Window$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
var parent=this.b$['java.awt.Window'].getOwner$.apply(this.b$['java.awt.Window'], []);
if (parent != null ) {
parent.removeOwnedWindow$java_awt_Window(this.$finals$.me);
}var ui=this.$finals$.me.getUI$();
if (ui != null ) {
ui.reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this.$finals$.me, null);
}var ownedWindowArray;
{
ownedWindowArray=Clazz_array(java.lang.Object, [this.b$['java.awt.Window'].ownedWindowList.size$()]);
this.b$['java.awt.Window'].ownedWindowList.copyInto$OA(ownedWindowArray);
}for (var i=0; i < ownedWindowArray.length; i++) {
var child=ownedWindowArray[i];
if (child != null ) child.disposeImpl$();
}
this.b$['java.awt.Window'].hide$.apply(this.b$['java.awt.Window'], []);
this.b$['java.awt.Window'].beforeFirstShow=true;
this.b$['java.awt.Window'].removeNotify$.apply(this.b$['java.awt.Window'], []);
this.b$['java.awt.Container'].clearCurrentFocusCycleRootOnHide$.apply(this.b$['java.awt.Container'], []);
});
})()
), Clazz_new_(P$.Window$1.$init$, [this, {me: me}]));
action.run$();
this.postWindowEvent$I(202);
});
Clazz_newMeth(C$, 'adjustListeningChildrenOnParent$J$I', function (mask, num) {
});
Clazz_newMeth(C$, 'adjustDecendantsOnParent$I', function (num) {
});
Clazz_newMeth(C$, 'toFront$', function () {
this.toFront_NoClientCode$();
});
Clazz_newMeth(C$, 'toFront_NoClientCode$', function () {
if (this.visible) {
var peer=this.peer;
if (peer != null ) {
peer.toFront$();
}if (this.isModalBlocked$()) {
this.modalBlocker.toFront_NoClientCode$();
}for (var i=0; i < this.ownedWindowList.size$(); i++) {
if (this.ownedWindowList.get$I(i).isVisible$()) this.ownedWindowList.get$I(i).toFront$();
}
}});
Clazz_newMeth(C$, 'toBack$', function () {
this.toBack_NoClientCode$();
});
Clazz_newMeth(C$, 'toBack_NoClientCode$', function () {
if (this.isAlwaysOnTop$()) {
try {
this.setAlwaysOnTop$Z(false);
} catch (e) {
if (Clazz_exceptionOf(e,"SecurityException")){
} else {
throw e;
}
}
}});
Clazz_newMeth(C$, 'getToolkit$', function () {
return $I$(8).getDefaultToolkit$();
});
Clazz_newMeth(C$, 'getWarningString$', function () {
return this.warningString;
});
Clazz_newMeth(C$, 'getLocale$', function () {
if (this.locale == null ) {
return $I$(10).getDefault$();
}return this.locale;
});
Clazz_newMeth(C$, 'setCursor$java_awt_Cursor', function (cursor) {
if (cursor == null ) {
cursor=$I$(3).getPredefinedCursor$I(0);
}C$.superclazz.prototype.setCursor$java_awt_Cursor.apply(this, [cursor]);
});
Clazz_newMeth(C$, 'getOwner$', function () {
return this.getOwner_NoClientCode$();
});
Clazz_newMeth(C$, 'getOwner_NoClientCode$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'getOwnedWindows$', function () {
return this.getOwnedWindows_NoClientCode$();
});
Clazz_newMeth(C$, 'getOwnedWindows_NoClientCode$', function () {
var realCopy;
{
var fullSize=this.ownedWindowList.size$();
var realSize=0;
var fullCopy=Clazz_array(C$, [fullSize]);
for (var i=0; i < fullSize; i++) {
fullCopy[realSize]=this.ownedWindowList.elementAt$I(i);
if (fullCopy[realSize] != null ) {
realSize++;
}}
if (fullSize != realSize) {
realCopy=$I$(11).copyOf$TTA$I(fullCopy, realSize);
} else {
realCopy=fullCopy;
}}return realCopy;
});
Clazz_newMeth(C$, 'isModalBlocked$', function () {
return this.modalBlocker != null ;
});
Clazz_newMeth(C$, 'setModalBlocked$java_awt_JSDialog$Z$Z', function (blocker, blocked, peerCall) {
this.modalBlocker=blocked ? blocker : null;
if (peerCall) {
var peer=this.peer;
if (peer != null ) {
peer.setModalBlocked$java_awt_JSDialog$Z(blocker, blocked);
}}});
Clazz_newMeth(C$, 'setModalBlocked$java_awt_Dialog$Z$Z', function (blocker, blocked, peerCall) {
this.setModalBlocked$java_awt_JSDialog$Z$Z(blocker, blocked, peerCall);
});
Clazz_newMeth(C$, 'getModalBlocker$', function () {
return this.modalBlocker;
});
Clazz_newMeth(C$, 'getAllWindows$', function () {
var v=Clazz_new_($I$(6));
v.addAll$java_util_Collection($I$(7).getAppletViewer$().allWindows);
return v;
}, 1);
Clazz_newMeth(C$, 'getAllUnblockedWindows$', function () {
var allWindows=$I$(7).getAppletViewer$().allWindows;
var unblocked=Clazz_new_($I$(6));
for (var i=0; i < allWindows.size$(); i++) {
var w=allWindows.get$I(i);
if (!w.isModalBlocked$()) {
unblocked.add$TE(w);
}}
return unblocked;
}, 1);
Clazz_newMeth(C$, 'getWindows$sun_awt_AppContext', function (appContext) {
{
var realCopy;
var windowList=appContext.get$O(Clazz_getClass(C$));
if (windowList != null ) {
var fullSize=windowList.size$();
var realSize=0;
var fullCopy=Clazz_array(C$, [fullSize]);
for (var i=0; i < fullSize; i++) {
var w=windowList.get$I(i);
if (w != null ) {
fullCopy[realSize++]=w;
}}
if (fullSize != realSize) {
realCopy=$I$(11).copyOf$TTA$I(fullCopy, realSize);
} else {
realCopy=fullCopy;
}} else {
realCopy=Clazz_array(C$, [0]);
}return realCopy;
}}, 1);
Clazz_newMeth(C$, 'getWindows$', function () {
return C$.getWindows$sun_awt_AppContext($I$(12).getAppContext$());
}, 1);
Clazz_newMeth(C$, 'getOwnerlessWindows$', function () {
var allWindows=C$.getWindows$();
var ownerlessCount=0;
for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) {
if (w.getOwner$() == null ) {
ownerlessCount++;
}}
var ownerless=Clazz_array(C$, [ownerlessCount]);
var c=0;
for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) {
if (w.getOwner$() == null ) {
ownerless[c++]=w;
}}
return ownerless;
}, 1);
Clazz_newMeth(C$, 'getDocumentRoot$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var w=this;
while (w.getOwner$() != null ){
w=w.getOwner$();
}
return w;
}});
Clazz_newMeth(C$, 'setModalExclusionType$java_awt_Dialog_ModalExclusionType', function (exclusionType) {
if (exclusionType == null ) {
exclusionType=$I$(5).NO_EXCLUDE;
}if (!$I$(8).getDefaultToolkit$().isModalExclusionTypeSupported$java_awt_Dialog_ModalExclusionType(exclusionType)) {
exclusionType=$I$(5).NO_EXCLUDE;
}if (this.modalExclusionType === exclusionType ) {
return;
}this.modalExclusionType=exclusionType;
});
Clazz_newMeth(C$, 'getModalExclusionType$', function () {
return this.modalExclusionType;
});
Clazz_newMeth(C$, 'isModalExcluded$java_awt_Dialog_ModalExclusionType', function (exclusionType) {
if ((this.modalExclusionType != null ) && this.modalExclusionType.compareTo$TE(exclusionType) >= 0 ) {
return true;
}var owner=this.getOwner_NoClientCode$();
return (owner != null ) && owner.isModalExcluded$java_awt_Dialog_ModalExclusionType(exclusionType) ;
});
Clazz_newMeth(C$, 'addWindowListener$java_awt_event_WindowListener', function (l) {
if (l == null ) {
return;
}this.newEventsOnly=true;
this.windowListener=$I$(13).add$java_awt_event_WindowListener$java_awt_event_WindowListener(this.windowListener, l);
});
Clazz_newMeth(C$, 'addWindowStateListener$java_awt_event_WindowStateListener', function (l) {
if (l == null ) {
return;
}this.windowStateListener=$I$(13).add$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener(this.windowStateListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'addWindowFocusListener$java_awt_event_WindowFocusListener', function (l) {
if (l == null ) {
return;
}this.windowFocusListener=$I$(13).add$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener(this.windowFocusListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeWindowListener$java_awt_event_WindowListener', function (l) {
if (l == null ) {
return;
}this.windowListener=$I$(13).remove$java_awt_event_WindowListener$java_awt_event_WindowListener(this.windowListener, l);
});
Clazz_newMeth(C$, 'removeWindowStateListener$java_awt_event_WindowStateListener', function (l) {
if (l == null ) {
return;
}this.windowStateListener=$I$(13).remove$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener(this.windowStateListener, l);
});
Clazz_newMeth(C$, 'removeWindowFocusListener$java_awt_event_WindowFocusListener', function (l) {
if (l == null ) {
return;
}this.windowFocusListener=$I$(13).remove$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener(this.windowFocusListener, l);
});
Clazz_newMeth(C$, 'getWindowListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(14),['windowActivated$java_awt_event_WindowEvent','windowClosed$java_awt_event_WindowEvent','windowClosing$java_awt_event_WindowEvent','windowDeactivated$java_awt_event_WindowEvent','windowDeiconified$java_awt_event_WindowEvent','windowIconified$java_awt_event_WindowEvent','windowOpened$java_awt_event_WindowEvent'])));
});
Clazz_newMeth(C$, 'getWindowFocusListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(15),['windowGainedFocus$java_awt_event_WindowEvent','windowLostFocus$java_awt_event_WindowEvent'])));
});
Clazz_newMeth(C$, 'getWindowStateListeners$', function () {
return (this.getListeners$Class(Clazz_getClass($I$(16),['windowStateChanged$java_awt_event_WindowEvent'])));
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
var l=null;
if (listenerType === Clazz_getClass($I$(15),['windowGainedFocus$java_awt_event_WindowEvent','windowLostFocus$java_awt_event_WindowEvent']) ) {
l=this.windowFocusListener;
} else if (listenerType === Clazz_getClass($I$(16),['windowStateChanged$java_awt_event_WindowEvent']) ) {
l=this.windowStateListener;
} else if (listenerType === Clazz_getClass($I$(14),['windowActivated$java_awt_event_WindowEvent','windowClosed$java_awt_event_WindowEvent','windowClosing$java_awt_event_WindowEvent','windowDeactivated$java_awt_event_WindowEvent','windowDeiconified$java_awt_event_WindowEvent','windowIconified$java_awt_event_WindowEvent','windowOpened$java_awt_event_WindowEvent']) ) {
l=this.windowListener;
} else {
return C$.superclazz.prototype.getListeners$Class.apply(this, [listenerType]);
}return $I$(13).getListeners$java_util_EventListener$Class(l, listenerType);
});
Clazz_newMeth(C$, 'eventEnabled$java_awt_AWTEvent', function (e) {
switch (e.id) {
case 200:
case 201:
case 202:
case 203:
case 204:
case 205:
case 206:
if ((this.eventMask & 64) != 0 || this.windowListener != null ) {
return true;
}return false;
case 207:
case 208:
if ((this.eventMask & 524288) != 0 || this.windowFocusListener != null ) {
return true;
}return false;
case 209:
if ((this.eventMask & 262144) != 0 || this.windowStateListener != null ) {
return true;
}return false;
default:
break;
}
return C$.superclazz.prototype.eventEnabled$java_awt_AWTEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'processEvent$java_awt_AWTEvent', function (e) {
if (Clazz_instanceOf(e, "java.awt.event.WindowEvent")) {
switch (e.getID$()) {
case 200:
case 201:
case 202:
case 203:
case 204:
case 205:
case 206:
this.processWindowEvent$java_awt_event_WindowEvent(e);
break;
case 207:
case 208:
this.processWindowFocusEvent$java_awt_event_WindowEvent(e);
break;
case 209:
this.processWindowStateEvent$java_awt_event_WindowEvent(e);
default:
break;
}
return;
}this.processEventCont$java_awt_AWTEvent(e);
});
Clazz_newMeth(C$, 'processWindowEvent$java_awt_event_WindowEvent', function (e) {
var listener=this.windowListener;
if (listener != null ) {
switch (e.getID$()) {
case 200:
listener.windowOpened$java_awt_event_WindowEvent(e);
break;
case 201:
listener.windowClosing$java_awt_event_WindowEvent(e);
break;
case 202:
listener.windowClosed$java_awt_event_WindowEvent(e);
break;
case 203:
listener.windowIconified$java_awt_event_WindowEvent(e);
break;
case 204:
listener.windowDeiconified$java_awt_event_WindowEvent(e);
break;
case 205:
listener.windowActivated$java_awt_event_WindowEvent(e);
break;
case 206:
listener.windowDeactivated$java_awt_event_WindowEvent(e);
break;
default:
break;
}
}});
Clazz_newMeth(C$, 'processWindowFocusEvent$java_awt_event_WindowEvent', function (e) {
var listener=this.windowFocusListener;
if (listener != null ) {
switch (e.getID$()) {
case 207:
listener.windowGainedFocus$java_awt_event_WindowEvent(e);
break;
case 208:
listener.windowLostFocus$java_awt_event_WindowEvent(e);
break;
default:
break;
}
}});
Clazz_newMeth(C$, 'processWindowStateEvent$java_awt_event_WindowEvent', function (e) {
var listener=this.windowStateListener;
if (listener != null ) {
switch (e.getID$()) {
case 209:
listener.windowStateChanged$(e);
break;
default:
break;
}
}});
Clazz_newMeth(C$, 'preProcessKeyEvent$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$, 'postProcessKeyEvent$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$, 'setAlwaysOnTop$Z', function (alwaysOnTop) {
var oldAlwaysOnTop;
{
oldAlwaysOnTop=this.alwaysOnTop;
this.alwaysOnTop=alwaysOnTop;
}if (oldAlwaysOnTop != alwaysOnTop ) {
if (this.isAlwaysOnTopSupported$()) {
}this.firePropertyChange$S$Z$Z("alwaysOnTop", oldAlwaysOnTop, alwaysOnTop);
}});
Clazz_newMeth(C$, 'isAlwaysOnTopSupported$', function () {
return $I$(8).getDefaultToolkit$().isAlwaysOnTopSupported$();
});
Clazz_newMeth(C$, 'isAlwaysOnTop$', function () {
return this.alwaysOnTop;
});
Clazz_newMeth(C$, 'getFocusOwner$', function () {
return (this.isFocused$()) ? $I$(17).getCurrentKeyboardFocusManager$().getFocusOwner$() : null;
});
Clazz_newMeth(C$, 'getMostRecentFocusOwner$', function () {
if (this.isFocused$()) {
return this.getFocusOwner$();
} else {
var mostRecent=$I$(17).getMostRecentFocusOwner$java_awt_Window(this);
if (mostRecent != null ) {
return mostRecent;
} else {
return (this.isFocusableWindow$()) ? this.getFocusTraversalPolicy$().getInitialComponent$java_awt_Window(this) : null;
}}});
Clazz_newMeth(C$, 'isActive$', function () {
return ($I$(17).getCurrentKeyboardFocusManager$().getActiveWindow$() === this );
});
Clazz_newMeth(C$, 'isFocused$', function () {
return ($I$(17).getCurrentKeyboardFocusManager$().getGlobalFocusedWindow$() === this );
});
Clazz_newMeth(C$, 'getFocusTraversalKeys$I', function (id) {
if (id < 0 || id >= 4 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]);
}var keystrokes=(this.focusTraversalKeys != null ) ? this.focusTraversalKeys[id] : null;
if (keystrokes != null ) {
return keystrokes;
} else {
return $I$(17).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalKeys$I(id);
}});
Clazz_newMeth(C$, 'setFocusCycleRoot$Z', function (focusCycleRoot) {
});
Clazz_newMeth(C$, 'isFocusCycleRoot$', function () {
return true;
});
Clazz_newMeth(C$, 'getFocusCycleRootAncestor$', function () {
return null;
});
Clazz_newMeth(C$, 'isFocusableWindow$', function () {
if (!this.getFocusableWindowState$()) {
return false;
}if (Clazz_instanceOf(this, "java.awt.JSFrame") || Clazz_instanceOf(this, "java.awt.JSDialog") ) {
return true;
}if (this.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(this) == null ) {
return false;
}for (var owner=this.getOwner$(); owner != null ; owner=owner.getOwner$()) {
if (Clazz_instanceOf(owner, "java.awt.JSFrame") || Clazz_instanceOf(owner, "java.awt.JSDialog") ) {
return owner.isShowing$();
}}
return false;
});
Clazz_newMeth(C$, 'getFocusableWindowState$', function () {
return this.focusableWindowState;
});
Clazz_newMeth(C$, 'setFocusableWindowState$Z', function (focusableWindowState) {
var oldFocusableWindowState;
{
oldFocusableWindowState=this.focusableWindowState;
this.focusableWindowState=focusableWindowState;
}this.firePropertyChange$S$Z$Z("focusableWindowState", oldFocusableWindowState, focusableWindowState);
if (oldFocusableWindowState && !focusableWindowState && this.isFocused$() ) {
for (var owner=this.getOwner$(); owner != null ; owner=owner.getOwner$()) {
}
}});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
C$.superclazz.prototype.addPropertyChangeListener$java_beans_PropertyChangeListener.apply(this, [listener]);
});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
C$.superclazz.prototype.addPropertyChangeListener$S$java_beans_PropertyChangeListener.apply(this, [propertyName, listener]);
});
Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent', function (e) {
if (e.getID$() == 101) {
this.invalidate$();
this.validate$();
}C$.superclazz.prototype.dispatchEventImpl$java_awt_AWTEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'postEvent$java_awt_Event', function (e) {
if (this.handleEvent$java_awt_Event(e)) {
e.consume$();
return true;
}return false;
});
Clazz_newMeth(C$, 'isShowing$', function () {
return this.visible;
});
Clazz_newMeth(C$, 'applyResourceBundle$java_util_ResourceBundle', function (rb) {
this.applyComponentOrientation$java_awt_ComponentOrientation($I$(18).getOrientation$java_util_ResourceBundle(rb));
});
Clazz_newMeth(C$, 'applyResourceBundle$S', function (rbName) {
this.applyResourceBundle$java_util_ResourceBundle($I$(19).getBundle$S(rbName));
});
Clazz_newMeth(C$, 'addOwnedWindow$java_awt_Window', function (weakWindow) {
if (weakWindow != null ) {
{
if (!this.ownedWindowList.contains$O(weakWindow)) {
this.ownedWindowList.addElement$TE(weakWindow);
}}}});
Clazz_newMeth(C$, 'removeOwnedWindow$java_awt_Window', function (weakWindow) {
if (weakWindow != null ) {
this.ownedWindowList.removeElement$O(weakWindow);
}});
Clazz_newMeth(C$, 'connectOwnedWindow$java_awt_Window', function (child) {
child.parent=this;
this.addOwnedWindow$java_awt_Window(child);
});
Clazz_newMeth(C$, 'addToWindowList', function () {
var windowList=this.appContext.get$O(Clazz_getClass(C$));
if (windowList == null ) {
windowList=Clazz_new_($I$(2));
this.appContext.put$O$O(Clazz_getClass(C$), windowList);
}windowList.add$TE(this);
}, p$1);
Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () {
if (this.graphicsConfig == null ) this.graphicsConfig=$I$(20).getGraphicsConfiguration$();
return this.graphicsConfig;
});
Clazz_newMeth(C$, 'resetGC$', function () {
});
Clazz_newMeth(C$, 'setLocationRelativeTo$java_awt_Component', function (c) {
var root=null;
if (c != null ) {
if (c.isWindowOrJSApplet$()) {
root=c;
} else {
var parent;
for (parent=c.getParent$(); parent != null ; parent=parent.getParent$()) {
if (parent.isWindowOrJSApplet$()) {
root=parent;
break;
}}
}}if ((c != null && !c.isShowing$() ) || root == null || !root.isShowing$() ) {
var paneSize=this.getSize$();
var centerPoint=$I$(21).getLocalGraphicsEnvironment$().getCenterPoint$();
this.setLocation$I$I(centerPoint.x - (paneSize.width/2|0), centerPoint.y - (paneSize.height/2|0));
} else {
var invokerSize=c.getSize$();
var invokerScreenLocation=c.getLocationOnScreen$();
var windowBounds=this.getBounds$();
var dx=invokerScreenLocation.x + ((invokerSize.width - windowBounds.width) >> 1);
var dy=invokerScreenLocation.y + ((invokerSize.height - windowBounds.height) >> 1);
var ss=root.getGraphicsConfiguration$().getBounds$();
if (dy + windowBounds.height > ss.y + ss.height) {
dy=ss.y + ss.height - windowBounds.height;
if (invokerScreenLocation.x - ss.x + (invokerSize.width/2|0) < (ss.width/2|0)) {
dx=invokerScreenLocation.x + invokerSize.width;
} else {
dx=invokerScreenLocation.x - windowBounds.width;
}}if (dx + windowBounds.width > ss.x + ss.width) {
dx=ss.x + ss.width - windowBounds.width;
}if (dx < ss.x) dx=ss.x;
if (dy < ss.y) dy=ss.y;
this.setLocation$I$I(dx, dy);
}});
Clazz_newMeth(C$, 'deliverMouseWheelToAncestor$java_awt_event_MouseWheelEvent', function (e) {
});
Clazz_newMeth(C$, 'dispatchMouseWheelToAncestor$java_awt_event_MouseWheelEvent', function (e) {
return false;
});
Clazz_newMeth(C$, 'getTemporaryLostComponent$', function () {
return this.temporaryLostComponent;
});
Clazz_newMeth(C$, 'setTemporaryLostComponent$java_awt_Component', function (component) {
var previousComp=this.temporaryLostComponent;
if (component == null || component.canBeFocusOwner$() ) {
this.temporaryLostComponent=component;
} else {
this.temporaryLostComponent=null;
}return previousComp;
});
Clazz_newMeth(C$, 'canContainFocusOwner$java_awt_Component', function (focusOwnerCandidate) {
return C$.superclazz.prototype.canContainFocusOwner$java_awt_Component.apply(this, [focusOwnerCandidate]) && this.isFocusableWindow$() ;
});
Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) {
C$.superclazz.prototype.setBounds$I$I$I$I.apply(this, [x, y, width, height]);
});
Clazz_newMeth(C$, 'setBounds$java_awt_Rectangle', function (r) {
this.setBounds$I$I$I$I(r.x, r.y, r.width, r.height);
});
Clazz_newMeth(C$, 'isRecursivelyVisible$', function () {
return this.visible;
});
Clazz_newMeth(C$, 'getOpacity$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
return this.opacity;
}});
Clazz_newMeth(C$, 'setOpacity$F', function (opacity) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (opacity < 0.0 || opacity > 1.0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["The value of opacity should be in the range [0.0f .. 1.0f]."]);
}this.opacity=opacity;
}});
Clazz_newMeth(C$, 'getShape$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
return this.shape;
}});
Clazz_newMeth(C$, 'setShape$java_awt_Shape', function (shape) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
this.shape=shape;
}});
Clazz_newMeth(C$, 'isOpaque$', function () {
return this.opaque;
});
Clazz_newMeth(C$, 'setOpaque$Z', function (opaque) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
C$.setLayersOpaque$java_awt_Component$Z(this, opaque);
this.opaque=opaque;
var peer=this.getPeer$();
if (peer != null ) {
peer.setOpaque$Z(opaque);
}}});
Clazz_newMeth(C$, 'setLayersOpaque$java_awt_Component$Z', function (component, isOpaque) {
if (Clazz_instanceOf(component, "javax.swing.RootPaneContainer")) {
var rpc=component;
var root=rpc.getRootPane$();
var lp=root.getLayeredPane$();
var c=root.getContentPane$();
var content=(Clazz_instanceOf(c, "javax.swing.JComponent") ? c : null);
lp.setOpaque$Z(isOpaque);
root.setOpaque$Z(isOpaque);
root.setDoubleBuffered$Z(isOpaque);
if (content != null ) {
content.setOpaque$Z(isOpaque);
content.setDoubleBuffered$Z(isOpaque);
var numChildren=content.getComponentCount$();
if (numChildren > 0) {
var child=content.getComponent$I(0);
if (Clazz_instanceOf(child, "javax.swing.RootPaneContainer")) {
C$.setLayersOpaque$java_awt_Component$Z(child, isOpaque);
}}}}var bg=component.getBackground$();
var hasTransparentBg=C$.TRANSPARENT_BACKGROUND_COLOR.equals$O(bg);
var container=null;
if (Clazz_instanceOf(component, "java.awt.Container")) {
container=component;
}if (isOpaque) {
if (hasTransparentBg) {
var newColor=null;
if (container != null && container.preserveBackgroundColor != null ) {
newColor=container.preserveBackgroundColor;
} else {
newColor=Clazz_new_($I$(1).c$$I$I$I,[255, 255, 255]);
}component.setBackground$java_awt_Color(newColor);
}} else {
if (!hasTransparentBg && container != null ) {
container.preserveBackgroundColor=bg;
}component.setBackground$java_awt_Color(C$.TRANSPARENT_BACKGROUND_COLOR);
}}, 1);
Clazz_newMeth(C$, 'getContainer$', function () {
return null;
});
Clazz_newMeth(C$, 'mixOnReshaping$', function () {
});
Clazz_newMeth(C$, 'getLocationOnWindow$', function () {
return Clazz_new_($I$(22).c$$I$I,[0, 0]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.beans"),I$=[[0,'java.util.HashMap','java.util.ArrayList','java.util.Collections']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ChangeListenerMap");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.map=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'add$S$TL', function (name, listener) {
if (this.map == null ) {
this.map=Clazz_new_($I$(1));
}var array=this.map.get$O(name);
var size=(array != null ) ? array.length : 0;
var clone=this.newArray$I(size + 1);
clone[size]=listener;
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, clone, 0, size);
}this.map.put$TK$TV(name, clone);
});
Clazz_newMeth(C$, 'remove$S$TL', function (name, listener) {
if (this.map != null ) {
var array=this.map.get$O(name);
if (array != null ) {
for (var i=0; i < array.length; i++) {
if (listener.equals$O(array[i])) {
var size=array.length - 1;
if (size > 0) {
var clone=this.newArray$I(size);
System.arraycopy$O$I$O$I$I(array, 0, clone, 0, i);
System.arraycopy$O$I$O$I$I(array, i + 1, clone, i, size - i);
this.map.put$TK$TV(name, clone);
} else {
this.map.remove$O(name);
if (this.map.isEmpty$()) {
this.map=null;
}}break;
}}
}}});
Clazz_newMeth(C$, 'get$S', function (name) {
return (this.map != null ) ? this.map.get$O(name) : null;
});
Clazz_newMeth(C$, 'set$S$TLA', function (name, listeners) {
if (listeners != null ) {
if (this.map == null ) {
this.map=Clazz_new_($I$(1));
}this.map.put$TK$TV(name, listeners);
} else if (this.map != null ) {
this.map.remove$O(name);
if (this.map.isEmpty$()) {
this.map=null;
}}});
Clazz_newMeth(C$, 'getListeners$', function () {
if (this.map == null ) {
return this.newArray$I(0);
}var list=Clazz_new_($I$(2));
var listeners=this.map.get$O(null);
if (listeners != null ) {
for (var listener, $listener = 0, $$listener = listeners; $listener<$$listener.length&&((listener=($$listener[$listener])),1);$listener++) {
list.add$TE(listener);
}
}for (var entry, $entry = this.map.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) {
var name=entry.getKey$();
if (name != null ) {
for (var listener, $listener = 0, $$listener = entry.getValue$(); $listener<$$listener.length&&((listener=($$listener[$listener])),1);$listener++) {
list.add$TE(this.newProxy$S$TL(name, listener));
}
}}
return list.toArray$TTA(this.newArray$I(list.size$()));
});
Clazz_newMeth(C$, 'getListeners$S', function (name) {
if (name != null ) {
var listeners=this.get$S(name);
if (listeners != null ) {
return listeners.clone$();
}}return this.newArray$I(0);
});
Clazz_newMeth(C$, 'hasListeners$S', function (name) {
if (this.map == null ) {
return false;
}var array=this.map.get$O(null);
return (array != null ) || ((name != null ) && (null != this.map.get$O(name) ) ) ;
});
Clazz_newMeth(C$, 'getEntries$', function () {
return (this.map != null ) ? this.map.entrySet$() : $I$(3).emptySet$();
});
Clazz_newMeth(C$, 'extract$TL', function (listener) {
while (Clazz_instanceOf(listener, "java.util.EventListenerProxy")){
var proxy=listener;
listener=proxy.getListener$();
}
return listener;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.beans"),I$=[];
var C$=Clazz_newClass(P$, "PropertyChangeEvent", null, 'java.util.EventObject');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.propertyName=null;
this.newValue=null;
this.oldValue=null;
this.propagationId=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O$S$O$O', function (source, propertyName, oldValue, newValue) {
C$.superclazz.c$$O.apply(this, [source]);
C$.$init$.apply(this);
this.propertyName=propertyName;
this.newValue=newValue;
this.oldValue=oldValue;
}, 1);
Clazz_newMeth(C$, 'getPropertyName$', function () {
return this.propertyName;
});
Clazz_newMeth(C$, 'getNewValue$', function () {
return this.newValue;
});
Clazz_newMeth(C$, 'getOldValue$', function () {
return this.oldValue;
});
Clazz_newMeth(C$, 'setPropagationId$O', function (propagationId) {
this.propagationId=propagationId;
});
Clazz_newMeth(C$, 'getPropagationId$', function () {
return this.propagationId;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.beans"),I$=[];
var C$=Clazz_newInterface(P$, "PropertyChangeListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.beans"),p$1={},I$=[[0,'java.beans.PropertyChangeListener','java.beans.PropertyChangeListenerProxy',['java.beans.PropertyChangeSupport','.PropertyChangeListenerMap'],'java.beans.PropertyChangeEvent','Boolean','java.beans.IndexedPropertyChangeEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "PropertyChangeSupport", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.map=null;
this.source=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.map=Clazz_new_($I$(3));
}, 1);
Clazz_newMeth(C$, 'c$$O', function (sourceBean) {
C$.$init$.apply(this);
if (sourceBean == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}this.source=sourceBean;
}, 1);
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (listener == null ) {
return;
}if (Clazz_instanceOf(listener, "java.beans.PropertyChangeListenerProxy")) {
var proxy=listener;
this.addPropertyChangeListener$S$java_beans_PropertyChangeListener(proxy.getPropertyName$(), proxy.getListener$());
} else {
this.map.add$S$TL(null, listener);
}});
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (listener == null ) {
return;
}if (Clazz_instanceOf(listener, "java.beans.PropertyChangeListenerProxy")) {
var proxy=listener;
this.removePropertyChangeListener$S$java_beans_PropertyChangeListener(proxy.getPropertyName$(), proxy.getListener$());
} else {
this.map.remove$S$TL(null, listener);
}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
return this.map.getListeners$();
});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
if (listener == null || propertyName == null ) {
return;
}listener=this.map.extract$TL(listener);
if (listener != null ) {
this.map.add$S$TL(propertyName, listener);
}});
Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
if (listener == null || propertyName == null ) {
return;
}listener=this.map.extract$TL(listener);
if (listener != null ) {
this.map.remove$S$TL(propertyName, listener);
}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) {
return this.map.getListeners$S(propertyName);
});
Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) {
if (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) {
return;
}this.firePropertyChange$java_beans_PropertyChangeEvent(Clazz_new_($I$(4).c$$O$S$O$O,[this.source, propertyName, oldValue, newValue]));
});
Clazz_newMeth(C$, 'firePropertyChange$S$I$I', function (propertyName, oldValue, newValue) {
if (oldValue == newValue) {
return;
}this.firePropertyChange$S$O$O(propertyName, Integer.valueOf$I(oldValue), Integer.valueOf$I(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$S$Z$Z', function (propertyName, oldValue, newValue) {
if (oldValue == newValue ) {
return;
}this.firePropertyChange$S$O$O(propertyName, $I$(5).valueOf$Z(oldValue), $I$(5).valueOf$Z(newValue));
});
Clazz_newMeth(C$, 'firePropertyChange$java_beans_PropertyChangeEvent', function (evt) {
var oldValue=evt.getOldValue$();
var newValue=evt.getNewValue$();
var propertyName=evt.getPropertyName$();
if (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) {
return;
}var common=this.map.get$S(null);
var named=(propertyName != null ) ? this.map.get$S(propertyName) : null;
p$1.fire$java_beans_PropertyChangeListenerA$java_beans_PropertyChangeEvent.apply(this, [common, evt]);
p$1.fire$java_beans_PropertyChangeListenerA$java_beans_PropertyChangeEvent.apply(this, [named, evt]);
});
Clazz_newMeth(C$, 'fire$java_beans_PropertyChangeListenerA$java_beans_PropertyChangeEvent', function (listeners, event) {
if (listeners != null ) {
for (var i=0, n=listeners.length; i < n; i++) listeners[i].propertyChange$(event);
}}, p$1);
Clazz_newMeth(C$, 'fireIndexedPropertyChange$S$I$O$O', function (propertyName, index, oldValue, newValue) {
this.firePropertyChange$java_beans_PropertyChangeEvent(Clazz_new_($I$(6).c$$O$S$O$O$I,[this.source, propertyName, oldValue, newValue, index]));
});
Clazz_newMeth(C$, 'fireIndexedPropertyChange$S$I$I$I', function (propertyName, index, oldValue, newValue) {
if (oldValue == newValue) {
return;
}this.fireIndexedPropertyChange$S$I$O$O(propertyName, index, Integer.valueOf$I(oldValue), Integer.valueOf$I(newValue));
});
Clazz_newMeth(C$, 'fireIndexedPropertyChange$S$I$Z$Z', function (propertyName, index, oldValue, newValue) {
if (oldValue == newValue ) {
return;
}this.fireIndexedPropertyChange$S$I$O$O(propertyName, index, $I$(5).valueOf$Z(oldValue), $I$(5).valueOf$Z(newValue));
});
Clazz_newMeth(C$, 'hasListeners$S', function (propertyName) {
return this.map.hasListeners$S(propertyName);
});
;
(function(){var C$=Clazz_newClass(P$.PropertyChangeSupport, "PropertyChangeListenerMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.beans.ChangeListenerMap');
C$.EMPTY=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY=Clazz_array($I$(1), -1, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'newArray$I', function (length) {
return (0 < length) ? Clazz_array($I$(1), [length]) : C$.EMPTY;
});
Clazz_newMeth(C$, ['newProxy$S$java_beans_PropertyChangeListener','newProxy$S$TL'], function (name, listener) {
return Clazz_new_($I$(2).c$$S$java_beans_PropertyChangeListener,[name, listener]);
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,p$1={},I$=[[0,'org.apache.harmony.luni.util.Msg']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractStringBuilder");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.value=null;
this.count=0;
this.shared=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, 'shareValue$', function () {
this.shared=true;
return this.value;
});
Clazz_newMeth(C$, 'set$CA$I', function (val, len) {
if (val == null ) val=Clazz_array(Character.TYPE, [0]);
if (val.length < len) throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,[$I$(1).getString$S("K0199")]);
this.shared=false;
this.value=val;
this.count=len;
});
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.value=Clazz_array(Character.TYPE, [16]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (capacity) {
C$.$init$.apply(this);
if (capacity < 0) throw Clazz_new_(Clazz_load('NegativeArraySizeException'));
this.value=Clazz_array(Character.TYPE, [capacity]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (string) {
C$.$init$.apply(this);
if (string == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
this.count=string.length$();
this.shared=false;
this.value=Clazz_array(Character.TYPE, [this.count + 16]);
string.getChars$I$I$CA$I(0, this.count, this.value, 0);
}, 1);
Clazz_newMeth(C$, 'enlargeBuffer$I', function (min) {
var twice=(this.value.length << 1) + 2;
var newData=Clazz_array(Character.TYPE, [min > twice ? min : twice]);
System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, this.count);
this.value=newData;
this.shared=false;
}, p$1);
Clazz_newMeth(C$, 'appendNull$', function () {
var newSize=this.count + 4;
if (newSize > this.value.length) {
p$1.enlargeBuffer$I.apply(this, [newSize]);
} else if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}this.value[this.count++]="n";
this.value[this.count++]="u";
this.value[this.count++]="l";
this.value[this.count++]="l";
});
Clazz_newMeth(C$, 'append0$CA', function (chars) {
var newSize=this.count + chars.length;
if (newSize > this.value.length) {
p$1.enlargeBuffer$I.apply(this, [newSize]);
} else if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}System.arraycopy$O$I$O$I$I(chars, 0, this.value, this.count, chars.length);
this.count=newSize;
});
Clazz_newMeth(C$, 'append0$CA$I$I', function (chars, start, length) {
if (chars == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}if (start >= 0 && 0 <= length && length <= chars.length - start ) {
var newSize=this.count + length;
if (newSize > this.value.length) {
p$1.enlargeBuffer$I.apply(this, [newSize]);
} else if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}System.arraycopy$O$I$O$I$I(chars, start, this.value, this.count, length);
this.count=newSize;
} else {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException'));
}});
Clazz_newMeth(C$, 'append0$C', function (ch) {
if (this.count == this.value.length) {
p$1.enlargeBuffer$I.apply(this, [this.count + 1]);
}if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}this.value[this.count++]=ch;
});
Clazz_newMeth(C$, 'append0$S', function (string) {
if (string == null ) {
this.appendNull$();
return;
}var adding=string.length$();
var newSize=this.count + adding;
if (newSize > this.value.length) {
p$1.enlargeBuffer$I.apply(this, [newSize]);
} else if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}string.getChars$I$I$CA$I(0, adding, this.value, this.count);
this.count=newSize;
});
Clazz_newMeth(C$, 'append0$CharSequence$I$I', function (s, start, end) {
if (s == null ) s="null";
if (start < 0 || end < 0 || start > end || end > s.length$() ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException'));
this.append0$S(s.subSequence$I$I(start, end).toString());
});
Clazz_newMeth(C$, 'capacity$', function () {
return this.value.length;
});
Clazz_newMeth(C$, 'charAt$I', function (index) {
if (index < 0 || index >= this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
return this.value[index];
});
Clazz_newMeth(C$, 'delete0$I$I', function (start, end) {
if (start >= 0) {
if (end > this.count) {
end=this.count;
}if (end == start) {
return;
}if (end > start) {
var length=this.count - end;
if (length > 0) {
if (!this.shared) {
System.arraycopy$O$I$O$I$I(this.value, end, this.value, start, length);
} else {
var newData=Clazz_array(Character.TYPE, [this.value.length]);
System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, start);
System.arraycopy$O$I$O$I$I(this.value, end, newData, start, length);
this.value=newData;
this.shared=false;
}}this.count-=end - start;
return;
}}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException'));
});
Clazz_newMeth(C$, 'deleteCharAt0$I', function (location) {
if (0 > location || location >= this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[location]);
var length=this.count - location - 1 ;
if (length > 0) {
if (!this.shared) {
System.arraycopy$O$I$O$I$I(this.value, location + 1, this.value, location, length);
} else {
var newData=Clazz_array(Character.TYPE, [this.value.length]);
System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, location);
System.arraycopy$O$I$O$I$I(this.value, location + 1, newData, location, length);
this.value=newData;
this.shared=false;
}}this.count--;
});
Clazz_newMeth(C$, 'ensureCapacity$I', function (min) {
if (min > this.value.length) {
p$1.enlargeBuffer$I.apply(this, [min]);
}});
Clazz_newMeth(C$, 'getChars$I$I$CA$I', function (start, end, dest, destStart) {
if (start > this.count || end > this.count || start > end ) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException'));
}System.arraycopy$O$I$O$I$I(this.value, start, dest, destStart, end - start);
});
Clazz_newMeth(C$, 'insert0$I$CA', function (index, chars) {
if (0 > index || index > this.count ) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
}if (chars.length != 0) {
p$1.move$I$I.apply(this, [chars.length, index]);
System.arraycopy$O$I$O$I$I(chars, 0, this.value, index, chars.length);
this.count+=chars.length;
}});
Clazz_newMeth(C$, 'insert0$I$CA$I$I', function (index, chars, start, length) {
if (0 <= index && index <= this.count ) {
if (start >= 0 && 0 <= length && length <= chars.length - start ) {
if (length != 0) {
p$1.move$I$I.apply(this, [length, index]);
System.arraycopy$O$I$O$I$I(chars, start, this.value, index, length);
this.count+=length;
}return;
}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$S,["offset " + start + ", len " + length + ", array.length " + chars.length ]);
}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
});
Clazz_newMeth(C$, 'insert0$I$C', function (index, ch) {
if (0 > index || index > this.count ) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
}p$1.move$I$I.apply(this, [1, index]);
this.value[index]=ch;
this.count++;
});
Clazz_newMeth(C$, 'insert0$I$S', function (index, string) {
if (0 <= index && index <= this.count ) {
if (string == null ) string="null";
var min=string.length$();
if (min != 0) {
p$1.move$I$I.apply(this, [min, index]);
string.getChars$I$I$CA$I(0, min, this.value, index);
this.count+=min;
}} else {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
}});
Clazz_newMeth(C$, 'insert0$I$CharSequence$I$I', function (index, s, start, end) {
if (s == null ) s="null";
if (index < 0 || index > this.count || start < 0 || end < 0 || start > end || end > s.length$() ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException'));
this.insert0$I$S(index, s.subSequence$I$I(start, end).toString());
});
Clazz_newMeth(C$, 'length$', function () {
return this.count;
});
Clazz_newMeth(C$, 'move$I$I', function (size, index) {
var newSize;
if (this.value.length - this.count >= size) {
if (!this.shared) {
System.arraycopy$O$I$O$I$I(this.value, index, this.value, index + size, this.count - index);
return;
}newSize=this.value.length;
} else {
var a=this.count + size;
var b=(this.value.length << 1) + 2;
newSize=a > b ? a : b;
}var newData=Clazz_array(Character.TYPE, [newSize]);
System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, index);
System.arraycopy$O$I$O$I$I(this.value, index, newData, index + size, this.count - index);
this.value=newData;
this.shared=false;
}, p$1);
Clazz_newMeth(C$, 'replace0$I$I$S', function (start, end, string) {
if (start >= 0) {
if (end > this.count) end=this.count;
if (end > start) {
var stringLength=string.length$();
var diff=end - start - stringLength ;
if (diff > 0) {
if (!this.shared) {
System.arraycopy$O$I$O$I$I(this.value, end, this.value, start + stringLength, this.count - end);
} else {
var newData=Clazz_array(Character.TYPE, [this.value.length]);
System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, start);
System.arraycopy$O$I$O$I$I(this.value, end, newData, start + stringLength, this.count - end);
this.value=newData;
this.shared=false;
}} else if (diff < 0) {
p$1.move$I$I.apply(this, [-diff, end]);
} else if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}string.getChars$I$I$CA$I(0, stringLength, this.value, start);
this.count-=diff;
return;
}if (start == end) {
if (string == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
this.insert0$I$S(start, string);
return;
}}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException'));
});
Clazz_newMeth(C$, 'reverse0$', function () {
if (this.count < 2) {
return;
}if (!this.shared) {
for (var i=0, end=this.count, mid=(this.count/2|0); i < mid; i++) {
var temp=this.value[--end];
this.value[end]=this.value[i];
this.value[i]=temp;
}
} else {
var newData=Clazz_array(Character.TYPE, [this.value.length]);
for (var i=0, end=this.count; i < this.count; i++) {
newData[--end]=this.value[i];
}
this.value=newData;
this.shared=false;
}});
Clazz_newMeth(C$, 'setCharAt$I$C', function (index, ch) {
if (0 > index || index >= this.count ) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
}if (this.shared) {
this.value=this.value.clone$();
this.shared=false;
}this.value[index]=ch;
});
Clazz_newMeth(C$, 'setLength$I', function (length) {
if (length < 0) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[length]);
if (this.count < length) {
if (length > this.value.length) {
p$1.enlargeBuffer$I.apply(this, [length]);
} else {
if (this.shared) {
var newData=Clazz_array(Character.TYPE, [this.value.length]);
System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, this.count);
this.value=newData;
this.shared=false;
} else {
for (var i=this.count; i < length; i++) {
this.value[i]=String.fromCharCode(0);
}
}}}this.count=length;
});
Clazz_newMeth(C$, 'substring$I', function (start) {
if (0 <= start && start <= this.count ) {
if (start == this.count) return "";
this.shared=true;
return String.instantialize(this.value, start, this.count - start);
}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[start]);
});
Clazz_newMeth(C$, 'substring$I$I', function (start, end) {
if (0 <= start && start <= end && end <= this.count ) {
if (start == end) return "";
this.shared=true;
return String.instantialize(this.value, start, end - start);
}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException'));
});
Clazz_newMeth(C$, 'toString', function () {
if (this.count == 0) return "";
if (this.count >= 256 && this.count <= (this.value.length >> 1) ) return String.instantialize(this.value, 0, this.count);
this.shared=true;
return String.instantialize(this.value, 0, this.count);
});
Clazz_newMeth(C$, 'subSequence$I$I', function (start, end) {
return this.substring$I$I(start, end);
});
Clazz_newMeth(C$, 'indexOf$S', function (string) {
return this.indexOf$S$I(string, 0);
});
Clazz_newMeth(C$, 'indexOf$S$I', function (subString, start) {
if (start < 0) start=0;
var subCount=subString.length$();
if (subCount > 0) {
if (subCount + start > this.count) return -1;
var firstChar=subString.charAt$I(0);
while (true){
var i=start;
var found=false;
for (; i < this.count; i++) if (this.value[i] == firstChar) {
found=true;
break;
}
if (!found || subCount + i > this.count ) return -1;
var o1=i;
var o2=0;
while (++o2 < subCount && this.value[++o1] == subString.charAt$I(o2) ){
}
if (o2 == subCount) return i;
start=i + 1;
}
}return (start < this.count || start == 0 ) ? start : this.count;
});
Clazz_newMeth(C$, 'lastIndexOf$S', function (string) {
return this.lastIndexOf$S$I(string, this.count);
});
Clazz_newMeth(C$, 'lastIndexOf$S$I', function (subString, start) {
var subCount=subString.length$();
if (subCount <= this.count && start >= 0 ) {
if (subCount > 0) {
if (start > this.count - subCount) start=this.count - subCount;
var firstChar=subString.charAt$I(0);
while (true){
var i=start;
var found=false;
for (; i >= 0; --i) if (this.value[i] == firstChar) {
found=true;
break;
}
if (!found) return -1;
var o1=i;
var o2=0;
while (++o2 < subCount && this.value[++o1] == subString.charAt$I(o2) ){
}
if (o2 == subCount) return i;
start=i - 1;
}
}return start < this.count ? start : this.count;
}return -1;
});
Clazz_newMeth(C$, 'trimToSize$', function () {
if (this.count < this.value.length) {
var newValue=Clazz_array(Character.TYPE, [this.count]);
System.arraycopy$O$I$O$I$I(this.value, 0, newValue, 0, this.count);
this.value=newValue;
this.shared=false;
}});
Clazz_newMeth(C$, 'codePointAt$I', function (index) {
if (index < 0 || index >= this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
return Character.codePointAt$CA$I$I(this.value, index, this.count);
});
Clazz_newMeth(C$, 'codePointBefore$I', function (index) {
if (index < 1 || index > this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
return Character.codePointBefore$CA$I(this.value, index);
});
Clazz_newMeth(C$, 'codePointCount$I$I', function (beginIndex, endIndex) {
if (beginIndex < 0 || endIndex > this.count || beginIndex > endIndex ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException'));
return Character.codePointCount$CA$I$I(this.value, beginIndex, endIndex - beginIndex);
});
Clazz_newMeth(C$, 'offsetByCodePoints$I$I', function (index, codePointOffset) {
return Character.offsetByCodePoints$CA$I$I$I$I(this.value, 0, this.count, index, codePointOffset);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,p$1={},I$=[[0,'java.lang.reflect.Method','java.util.Arrays','java.lang.reflect.TypeVariable','swingjs.JSUtil','java.lang.reflect.Field','java.lang.reflect.Constructor','Boolean','Void','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Class", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.io.Serializable', 'java.lang.reflect.GenericDeclaration']);
C$.initted=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.initted=false;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.$clazz$=null;
this.$methodList$=null;
this.name=null;
this.fields=null;
this.classRedefinedCount=0;
this.lastRedefinedCount=0;
this.enumConstants=null;
this.enumConstantDirectory=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.classRedefinedCount=0;
this.lastRedefinedCount=0;
this.enumConstants=null;
this.enumConstantDirectory=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return (this.isInterface$() ? "interface " : (this.isPrimitive$() ? "" : "class ")) + this.getName$();
});
Clazz_newMeth(C$, 'forName$S', function (className) {
return C$.forName0$S$Z$ClassLoader(className, true, null);
}, 1);
Clazz_newMeth(C$, 'forName$S$Z$ClassLoader', function (name, initialize, loader) {
return C$.forName0$S$Z$ClassLoader(name, initialize, loader);
}, 1);
Clazz_newMeth(C$, 'forName0$S$Z$ClassLoader', function (name, initialize, loader) {
{
return Clazz_forName(name, initialize, loader);
}
}, 1);
Clazz_newMeth(C$, 'newInstance$', function () {
{
return new this.$clazz$;
}
});
Clazz_newMeth(C$, 'isInstance$O', function (obj) {
{
return Clazz_instanceOf(obj, this.$clazz$);
}
});
Clazz_newMeth(C$, 'isAssignableFrom$Class', function (cls) {
{
return(Clazz_instanceOf(cls.$clazz$, this.$clazz$));
}
});
Clazz_newMeth(C$, 'isInterface$', function () {
{
return this.$clazz$.$isInterface;
}
});
Clazz_newMeth(C$, 'isArray$', function () {
{
return !!this.$clazz$.__ARRAYTYPE;
}
});
Clazz_newMeth(C$, 'isPrimitive$', function () {
{
return !!this.__PRIMITIVE;
}
});
Clazz_newMeth(C$, 'isAnnotation$', function () {
return (this.getModifiers$() & 8192) != 0;
});
Clazz_newMeth(C$, 'isSynthetic$', function () {
return (this.getModifiers$() & 4096) != 0;
});
Clazz_newMeth(C$, 'getName$', function () {
if (this.name == null ) this.name=p$1.getName0.apply(this, []);
return this.name;
});
Clazz_newMeth(C$, 'getName0', function () {
var code="";
code = this.$clazz$.__CLASS_NAME$__ || this.$clazz$.__CLASS_NAME__;
if (code) return code;
code = this.$clazz$.__PARAMCODE;
switch (code) {
case "S":
code="String";
break;
case "I":
code="Integer";
break;
case "H":
code="Short";
break;
case "B":
code="Byte";
break;
case "L":
code="Long";
break;
case "C":
code="Character";
break;
default:
return null;
}
return "java.lang." + code;
}, p$1);
Clazz_newMeth(C$, 'getClassLoader$', function () {
var cl=this.getClassLoader0$();
cl.baseClass = this;
return cl;
});
Clazz_newMeth(C$, 'getClassLoader0$', function () {
var loader=null;
{
var baseFolder = Clazz._Loader.getJ2SLibBase();
loader = Clazz._Loader.requireLoaderByBase(baseFolder);
var me = this;
loader.getResourceAsStream$S = function(s) { return me.getResourceAsStream$S(s.indexOf("/") == 0 ? s : "/" + s) };
loader.getResource$S = function(s) { return me.getResource$S(s.indexOf("/") == 0 ? s : "/" + s) };
}
return loader;
});
Clazz_newMeth(C$, 'getTypeParameters$', function () {
return Clazz_array($I$(3), [0]);
});
Clazz_newMeth(C$, 'getSuperclass$', function () {
{
if (this.$clazz$ == java.lang.Object) return null;
return Clazz_getClass(this.$clazz$.superclazz || java.lang.Object);
}
});
Clazz_newMeth(C$, 'getInterfaces$', function () {
$I$(4).notImplemented$S(null);
return Clazz_array(Class, [0]);
});
Clazz_newMeth(C$, 'getComponentType$', function () {
return null;
});
Clazz_newMeth(C$, 'getModifiers$', function () {
return 1 | (this.isEnum$() ? 16384 : this.isInterface$() ? 512 : 0);
});
Clazz_newMeth(C$, 'getSigners$', function () {
$I$(4).notImplemented$S(null);
return Clazz_array(java.lang.Object, [0]);
});
Clazz_newMeth(C$, 'setSigners$OA', function (signers) {
$I$(4).notImplemented$S(null);
});
Clazz_newMeth(C$, 'getDeclaringClass$', function () {
$I$(4).notImplemented$S(null);
return null;
});
Clazz_newMeth(C$, 'getSimpleName$', function () {
if (this.isArray$()) return this.getComponentType$().getSimpleName$() + "[]";
var name="";
{
name = (this.$clazz$.__ANON ? "" : this.$clazz$.__CLASS_NAME__);
}
return name.substring$I(name.lastIndexOf$S(".") + 1);
});
Clazz_newMeth(C$, 'getCanonicalName$', function () {
if (this.isArray$()) {
var canonicalName=this.getComponentType$().getCanonicalName$();
if (canonicalName != null ) return canonicalName + "[]";
else return null;
}if (p$1.isLocalOrAnonymousClass.apply(this, [])) return null;
var name=null;
name = this.$clazz$.__CLASS_NAME__ || null;
return name;
});
Clazz_newMeth(C$, 'isAnonymousClass$', function () {
return "".equals$O(this.getSimpleName$());
});
Clazz_newMeth(C$, 'isLocalClass$', function () {
{
return !!this.$clazz$.__LOCAL;
}
});
Clazz_newMeth(C$, 'isLocalOrAnonymousClass', function () {
{
return !!this.$clazz$.__ISANON || !!this.$clazz$.__LOCAL;
}
}, p$1);
Clazz_newMeth(C$, 'getClasses$', function () {
return null;
});
Clazz_newMeth(C$, 'getFields$', function () {
if (this.fields != null ) return this.fields;
this.fields=Clazz_array($I$(5), [0]);
var _static=8;
var cl=this.$clazz$ ||null;
var proto=cl.prototype ||null;
p$1.addFields$O$reflect_FieldA$I.apply(this, [proto, this.fields, 0]);
p$1.addFields$O$reflect_FieldA$I.apply(this, [cl, this.fields, _static]);
return this.fields;
});
Clazz_newMeth(C$, 'getMethods$', function () {
return (p$1.privateGetPublicMethods.apply(this, []));
});
Clazz_newMeth(C$, 'getConstructors$', function () {
return null;
});
Clazz_newMeth(C$, 'getField$S', function (name) {
this.getFields$();
for (var i=this.fields.length; --i >= 0; ) {
if (this.fields[i].jsName == name) return this.fields[i];
}
throw Clazz_new_(Clazz_load('NoSuchFieldException').c$$S,["field " + name]);
});
Clazz_newMeth(C$, 'addFields$O$reflect_FieldA$I', function (c, f, modifiers) {
var m=null;
for (m in c) { if (!modifiers && this.$clazz$[m]) continue;
if (this.excludeField$S(m)) continue;
var o = c[m];
switch (typeof o) { case "object": if (o && o.__CLASS_NAME__) continue;
case "number": case "boolean": case "string":p$1.addField$reflect_FieldA$S$I.apply(this, [f, m, modifiers]);
break;
} }
}, p$1);
Clazz_newMeth(C$, 'excludeField$S', function (name) {
return (name == "prototype" || name.startsWith$S("__") );
});
Clazz_newMeth(C$, 'addField$reflect_FieldA$S$I', function (fields, m, modifiers) {
var f=Clazz_new_($I$(5).c$$Class$S$I,[this, m, modifiers]);
fields.push(f);
}, p$1);
Clazz_newMeth(C$, 'getMethod$S$ClassA', function (name, paramTypes) {
var m=Clazz_new_($I$(1).c$$Class$S$ClassA$Class$ClassA$I,[this, name, paramTypes, null, null, 0]);
if (!this.isInterface$()) {
var o=null;
var qname=name + C$.argumentTypesToString$ClassA(paramTypes);
o = this.$clazz$;
o = o[qname] || o.prototype && o.prototype[qname];
if (o == null ) throw Clazz_new_(Clazz_load('NoSuchMethodException').c$$S,[this.getName$() + "." + qname ]);
}return m;
});
Clazz_newMeth(C$, 'getConstructor$ClassA', function (parameterTypes) {
var x=parameterTypes;
if (parameterTypes == null ) parameterTypes=Clazz_array(Class, [0]);
return Clazz_new_($I$(6).c$$Class$ClassA$ClassA$I,[this, parameterTypes, Clazz_array(Class, [0]), 0]);
});
Clazz_newMeth(C$, 'getDeclaredClasses$', function () {
return this.getClasses$();
});
Clazz_newMeth(C$, 'getDeclaredFields$', function () {
return this.getFields$();
});
Clazz_newMeth(C$, 'getDeclaredMethods$', function () {
return this.getMethods$();
});
Clazz_newMeth(C$, 'getDeclaredConstructors$', function () {
return this.getConstructors$();
});
Clazz_newMeth(C$, 'getDeclaredField$S', function (name) {
return this.getField$S(name);
});
Clazz_newMeth(C$, 'getDeclaredMethod$S$ClassA', function (name, parameterTypes) {
return this.getMethod$S$ClassA(name, parameterTypes);
});
Clazz_newMeth(C$, 'getDeclaredConstructor$ClassA', function (parameterTypes) {
return this.getConstructor$ClassA(parameterTypes);
});
Clazz_newMeth(C$, 'getResourceAsStream$S', function (name) {
var clazzName=this.$clazz$.__CLASS_NAME$__ || this.$clazz$.__CLASS_NAME__ ||"";
var data=null;
var fname=null;
if (!name) return null;
name = name.replace (/\\/g, '/');
var baseFolder = null;
fname = name;
if (arguments.length == 2 && name.indexOf ('/') != 0) { // additional argument
name = "/" + name;
} if (name.indexOf ('/') == 0) { if (arguments.length == 2) // additional argument
baseFolder = arguments[1];
if (!baseFolder) baseFolder = Clazz._Loader.getJ2SLibBase();
if (baseFolder.charAt(baseFolder.length - 1) != '/') baseFolder += "/";
fname = baseFolder + name.substring (1);
} else { baseFolder = Clazz._Loader.getJ2SLibBase(); // getClass().getClassLoader() uses full path
fname = baseFolder;
if (this.$_$base == null) { // getClass().getResource() will be here
var pkgs = clazzName.split(".");
var fname = baseFolder;
if (fname.charAt(fname.length - 1) != '/') fname += "/";
var map = Clazz._allPackage;
for (var i = 0; i < pkgs.length - 1; i++) { if (!(map = map[pkgs[i]])) break;
fname += pkgs[i] + "/";
} } fname += name;
} var url = null;
var javapath = fname;
try { if (fname.indexOf(":/") < 0) { var d = document.location.href.split("?")[0].split("/");
d[d.length - 1] = fname;
fname = d.join("/");
} Clazz_load("java.net.URL");
url = Clazz_new_(java.net.URL.c$$S,[fname]);
} catch (e) { return null;
} var fileCache = J2S.getSetJavaFileCache(null);
data = fileCache && fileCache.get$O(javapath);
if (data == null ) data=$I$(4).J2S.getFileData(fname.toString(), null, true, true);
{
if (data == null || data == "error" || data.indexOf && data.indexOf("[Exception") == 0) return null;
var bytes = (data.__BYTESIZE == 1 ? data : J2S._strToBytes(data));
Clazz_load("java.io.BufferedInputStream");
Clazz_load("java.io.ByteArrayInputStream");
var is = Clazz_new_(java.io.BufferedInputStream.c$$java_io_InputStream, [Clazz_new_(java.io.ByteArrayInputStream.c$$BA, [bytes])]);
is.url = url;
url._streamData = is;
return is;
}
});
Clazz_newMeth(C$, 'getResource$S', function (name) {
{
var stream = this.getResourceAsStream$S(name);
return(stream ? stream.url : null);
}
});
Clazz_newMeth(C$, 'getPrimitiveClass$S', function (name) {
switch (name) {
case "boolean":
return $I$(7).TYPE;
case "byte":
return Byte.TYPE;
case "char":
return Character.TYPE;
case "short":
return Short.TYPE;
case "int":
return Integer.TYPE;
case "long":
return Long.TYPE;
case "float":
return Float.TYPE;
case "double":
return Double.TYPE;
default:
return null;
}
}, 1);
Clazz_newMeth(C$, 'privateGetPublicMethods', function () {
var ms;
if (this.$methodList$ != null ) {
ms=Clazz_array($I$(1), [this.$methodList$.length]);
for (var i=ms.length; --i >= 0; ) {
ms[i]=Clazz_new_($I$(1).c$$Class$S$ClassA$Class$ClassA$I,[this, this.$methodList$[i], null, Clazz_getClass($I$(8)), null, 1]);
}
return ms;
}ms=Clazz_array($I$(1), [0]);
{
var p = this.$clazz$.prototype;
for (var attr in p) { if (typeof p[attr] == "function" && !p[attr].__CLASS_NAME__ && p[attr] != this.$clazz$[attr] && p[attr].exClazz == this.$clazz$) { // there are polynormical methods.
ms.push(Clazz_new_(Clazz_load('java.lang.reflect.Method').c$$Class$S$ClassA$Class$ClassA$I, [this, attr, [], java.lang.Void, [], 1]));
} } p = this.$clazz$;
for (var attr in p) { if (typeof p[attr] == "function" && !p[attr].__CLASS_NAME__ && p[attr].exClazz == this.$clazz$) { ms.push(Clazz_new_(Clazz_load('java.lang.reflect.Method').c$$Class$S$ClassA$Class$ClassA$I, [this, attr, [], java.lang.Void, [], 1 | 8]));
} }
}
return ms;
}, p$1);
Clazz_newMeth(C$, 'arrayContentsEq$OA$OA', function (a1, a2) {
if (a1 == null ) {
return a2 == null || a2.length == 0 ;
}if (a2 == null ) {
return a1.length == 0;
}if (a1.length != a2.length) {
return false;
}for (var i=0; i < a1.length; i++) {
if (a1[i] !== a2[i] ) {
return false;
}}
return true;
}, 1);
Clazz_newMeth(C$, 'argumentTypesToString$ClassA', function (parameterTypes) {
if (parameterTypes == null ) return "$";
var s="";
for (var i=0; i < parameterTypes.length; i++) s += "$" + (Clazz._getParamCode(parameterTypes[i]) ||null);
return s;
}, 1);
Clazz_newMeth(C$, 'isEnum$', function () {
{
return this.$clazz$.$isEnum;
}
});
Clazz_newMeth(C$, 'getEnumConstants$', function () {
return this.getEnumConstantsShared$();
});
Clazz_newMeth(C$, 'getEnumConstantsShared$', function () {
if (this.enumConstants == null ) {
if (this.isEnum$()) this.enumConstants=this.$clazz$.values$() ||null;
}return this.enumConstants;
});
Clazz_newMeth(C$, 'enumConstantDirectory$', function () {
if (this.enumConstantDirectory == null ) {
var universe=this.getEnumConstantsShared$();
if (universe == null ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[this.getName$() + " is not an enum type"]);
var m=Clazz_new_($I$(9).c$$I,[2 * universe.length]);
for (var constant, $constant = 0, $$constant = universe; $constant<$$constant.length&&((constant=($$constant[$constant])),1);$constant++) m.put$TK$TV((constant).name$(), constant);
this.enumConstantDirectory=m;
}return this.enumConstantDirectory;
});
Clazz_newMeth(C$, 'cast$O', function (obj) {
if (obj != null && !this.isInstance$O(obj) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$1.cannotCastMsg$O.apply(this, [obj])]);
return obj;
});
Clazz_newMeth(C$, 'cannotCastMsg$O', function (obj) {
return "Cannot cast " + obj.getClass$().getName$() + " to " + this.getName$() ;
}, p$1);
Clazz_newMeth(C$, 'hashCode$', function () {
var name=null;
name = this.$clazz$.__CLASS_NAME__ || this.$clazz$.toString();
return name.hashCode$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return o.__CLASS_NAME__ == "java.lang.Class" && o.$clazz$ == this.$clazz$;
return false;
});
Clazz_newMeth(C$, 'getArgumentArray$ClassA$OA$Z', function (types, args, isProxy) {
var a=Clazz_array(java.lang.Object, [args == null ? 0 : args.length]);
if (args != null && (types != null || isProxy ) ) for (var i=args.length; --i >= 0; ) a[i]=(isProxy ? args[i] : (types[i].__PRIMITIVE && args[i].valueOf ? args[i].valueOf() : args[i]) ||null);
return a;
}, 1);
Clazz_newMeth(C$, 'getPackage$', function () {
return null;
});
Clazz_newMeth(C$, 'getAnnotation$Class', function (c) {
return null;
});
Clazz_newMeth(C$, 'getJ2SSuperclassFor$Class', function (cl) {
var c=null;
{
c = cl.getSuperclass$ && cl.getSuperclass$();
}
if (c == null && cl !== Clazz_getClass(java.lang.Object) ) {
c=Clazz_getClass(java.lang.Object);
}return c;
}, 1);
;
(function(){var C$=Clazz_newClass(P$.Class, "JSClass", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.__CLASS_NAME__=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Class, "MethodArray", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.methods=null;
this.length=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.methods=Clazz_array($I$(1), [20]);
this.length=0;
}, 1);
Clazz_newMeth(C$, 'add$reflect_Method', function (m) {
if (this.length == this.methods.length) {
this.methods=$I$(2).copyOf$TTA$I(this.methods, 2 * this.methods.length);
}this.methods[this.length++]=m;
});
Clazz_newMeth(C$, 'addAll$reflect_MethodA', function (ma) {
for (var i=0; i < ma.length; i++) {
this.add$reflect_Method(ma[i]);
}
});
Clazz_newMeth(C$, 'addAll$Class_MethodArray', function (ma) {
for (var i=0; i < ma.length$(); i++) {
this.add$reflect_Method(ma.get$I(i));
}
});
Clazz_newMeth(C$, 'addIfNotPresent$reflect_Method', function (newMethod) {
for (var i=0; i < this.length; i++) {
var m=this.methods[i];
if (m === newMethod || (m != null && m.equals$O(newMethod) ) ) {
return;
}}
this.add$reflect_Method(newMethod);
});
Clazz_newMeth(C$, 'addAllIfNotPresent$Class_MethodArray', function (newMethods) {
for (var i=0; i < newMethods.length$(); i++) {
var m=newMethods.get$I(i);
if (m != null ) {
this.addIfNotPresent$reflect_Method(m);
}}
});
Clazz_newMeth(C$, 'length$', function () {
return this.length;
});
Clazz_newMeth(C$, 'get$I', function (i) {
return this.methods[i];
});
Clazz_newMeth(C$, 'removeByNameAndSignature$reflect_Method', function (toRemove) {
for (var i=0; i < this.length; i++) {
var m=this.methods[i];
if (m != null && m.getReturnType$() === toRemove.getReturnType$() && m.getName$() == toRemove.getName$() && Class.arrayContentsEq$OA$OA(m.getParameterTypes$(), toRemove.getParameterTypes$()) ) {
this.methods[i]=null;
}}
});
Clazz_newMeth(C$, 'compactAndTrim$', function () {
var newPos=0;
for (var pos=0; pos < this.length; pos++) {
var m=this.methods[pos];
if (m != null ) {
if (pos != newPos) {
this.methods[newPos]=m;
}newPos++;
}}
if (newPos != this.methods.length) {
this.methods=$I$(2).copyOf$TTA$I(this.methods, newPos);
}});
Clazz_newMeth(C$, 'getArray$', function () {
return this.methods;
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,I$=[];
var C$=Clazz_newClass(P$, "Enum", null, null, ['Comparable', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.name=null;
this.ordinal=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'name$', function () {
return this.name;
});
Clazz_newMeth(C$, 'ordinal$', function () {
return this.ordinal;
});
Clazz_newMeth(C$, 'c$$S$I', function (name, ordinal) {
C$.$init$.apply(this);
this.name=name;
this.ordinal=ordinal;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.name;
});
Clazz_newMeth(C$, 'equals$O', function (other) {
return this === other ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return C$.superclazz.prototype.hashCode$.apply(this, []);
});
Clazz_newMeth(C$, 'clone$', function () {
throw Clazz_new_(Clazz_load('CloneNotSupportedException'));
});
Clazz_newMeth(C$, ['compareTo$TE','compareTo$','compareTo$TT'], function (o) {
var other=o;
var self=this;
if (self.getClass$() !== other.getClass$() && self.getDeclaringClass$() !== other.getDeclaringClass$() ) throw Clazz_new_(Clazz_load('ClassCastException'));
return self.ordinal - other.ordinal;
});
Clazz_newMeth(C$, 'getDeclaringClass$', function () {
var clazz=this.getClass$();
var zuper=clazz.getSuperclass$();
return ((zuper === Clazz_getClass(C$) ) ? clazz : zuper);
});
Clazz_newMeth(C$, 'valueOf$Class$S', function (enumType, name) {
var result=null;
{
result = enumType.$clazz$[name];
}
if (result != null ) return result;
if (name == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Name is null"]);
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["No enum const " + enumType + "." + name ]);
}, 1);
Clazz_newMeth(C$, 'finalize$', function () {
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,I$=[[0,'java.util.Objects','java.util.Spliterators']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newInterface(P$, "Iterable");
C$.$defaults$ = function(C$){
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
for (var t, $t = this.iterator$(); $t.hasNext$()&&((t=($t.next$())),1);) {
action.accept$(t);
}
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(2).spliteratorUnknownSize$java_util_Iterator$I(this.iterator$(), 0);
});
};})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang.reflect,I$=[];
var C$=Clazz_newClass(P$, "Constructor", null, 'java.lang.reflect.AccessibleObject', ['java.lang.reflect.GenericDeclaration', 'java.lang.reflect.Member']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.Class_=null;
this.parameterTypes=null;
this.exceptionTypes=null;
this.modifiers=0;
this.signature=null;
this.constr=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$Class$ClassA$ClassA$I', function (declaringClass, parameterTypes, checkedExceptions, modifiers) {
Clazz_super_(C$, this,1);
this.Class_=declaringClass;
this.parameterTypes=parameterTypes;
this.exceptionTypes=checkedExceptions;
this.modifiers=modifiers;
this.parameterTypes=parameterTypes;
this.signature="c$" + Class.argumentTypesToString$ClassA(parameterTypes);
this.constr=this.Class_.$clazz$[this.signature] ||null;
}, 1);
Clazz_newMeth(C$, 'newInstance$OA', function (args) {
if (this.constr != null ) {
var a=Class.getArgumentArray$ClassA$OA$Z(this.parameterTypes, args, false);
var instance=Clazz_new_(this.constr, a) ||null;
if (instance != null ) return instance;
}var message="Constructor " + this.getDeclaringClass$().getName$() + "." + this.signature + " was not found" ;
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]);
});
Clazz_newMeth(C$, 'getTypeParameters$', function () {
return null;
});
Clazz_newMeth(C$, 'toGenericString$', function () {
return null;
});
Clazz_newMeth(C$, 'getGenericParameterTypes$', function () {
return null;
});
Clazz_newMeth(C$, 'getGenericExceptionTypes$', function () {
return null;
});
Clazz_newMeth(C$, 'getParameterAnnotations$', function () {
return null;
});
Clazz_newMeth(C$, 'isVarArgs$', function () {
return false;
});
Clazz_newMeth(C$, 'isSynthetic$', function () {
return false;
});
Clazz_newMeth(C$, 'equals$O', function (object) {
if (object != null && Clazz_instanceOf(object, "java.lang.reflect.Constructor") ) {
var other=object;
if (this.getDeclaringClass$() === other.getDeclaringClass$() ) {
var params1=this.parameterTypes;
var params2=other.parameterTypes;
if (params1.length == params2.length) {
for (var i=0; i < params1.length; i++) {
if (params1[i] !== params2[i] ) return false;
}
return true;
}}}return false;
});
Clazz_newMeth(C$, 'getDeclaringClass$', function () {
return this.Class_;
});
Clazz_newMeth(C$, 'getExceptionTypes$', function () {
return this.exceptionTypes;
});
Clazz_newMeth(C$, 'getModifiers$', function () {
return this.modifiers;
});
Clazz_newMeth(C$, 'getName$', function () {
return this.getDeclaringClass$().getName$();
});
Clazz_newMeth(C$, 'getParameterTypes$', function () {
return this.parameterTypes;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.getDeclaringClass$().getName$().hashCode$();
});
Clazz_newMeth(C$, 'toString', function () {
return this.Class_.getName$() + "." + this.signature ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:48 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang.reflect,I$=[[0,'Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Method", null, 'java.lang.reflect.AccessibleObject', ['java.lang.reflect.GenericDeclaration', 'java.lang.reflect.Member']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.signature=null;
this.Class_=null;
this.name=null;
this.returnType=null;
this.parameterTypes=null;
this.exceptionTypes=null;
this.modifiers=0;
this.isProxy=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.modifiers=0;
}, 1);
Clazz_newMeth(C$, 'c$$Class$S$ClassA$Class$ClassA$I', function (declaringClass, name, parameterTypes, returnType, checkedExceptions, modifiers) {
Clazz_super_(C$, this,1);
this.Class_=declaringClass;
this.name=name;
this.parameterTypes=parameterTypes;
this.returnType=returnType;
this.exceptionTypes=checkedExceptions;
this.modifiers=modifiers;
this.signature=name + Class.argumentTypesToString$ClassA(parameterTypes);
}, 1);
Clazz_newMeth(C$, 'invoke$O$OA', function (receiver, args) {
var a=Class.getArgumentArray$ClassA$OA$Z(this.parameterTypes, args, this.isProxy);
var c=(this.isProxy ? receiver : this.Class_);
var m=null;
var val=null;
if (!this.isProxy) c = c.$clazz$;
m= c[this.signature] || c.prototype && c.prototype[this.signature];
val = (m == null ? null : m.apply(receiver,a));
if (val != null && !this.isProxy) val = this.wrap$O(val);
if (m == null ) {
var message="Method " + this.getDeclaringClass$().getName$() + "." + this.signature + " was not found" ;
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]);
}return val;
});
Clazz_newMeth(C$, 'wrap$O', function (o) {
switch (typeof o ||"") {
case "number":
var d=(1 ? o :0);
return new Double((d == (d|0) ? (Integer.valueOf$I((d|0))).intValue$() : (Double.valueOf$D(d)).doubleValue$()));
case "boolean":
return $I$(1).valueOf$Z(o ||false);
}
return o;
});
Clazz_newMeth(C$, 'getTypeParameters$', function () {
return null;
});
Clazz_newMeth(C$, 'toGenericString$', function () {
return null;
});
Clazz_newMeth(C$, 'getGenericParameterTypes$', function () {
return null;
});
Clazz_newMeth(C$, 'getGenericExceptionTypes$', function () {
return null;
});
Clazz_newMeth(C$, 'getGenericReturnType$', function () {
return null;
});
Clazz_newMeth(C$, 'getParameterAnnotations$', function () {
return null;
});
Clazz_newMeth(C$, 'isVarArgs$', function () {
return false;
});
Clazz_newMeth(C$, 'isBridge$', function () {
return false;
});
Clazz_newMeth(C$, 'isSynthetic$', function () {
return false;
});
Clazz_newMeth(C$, 'getDefaultValue$', function () {
return null;
});
Clazz_newMeth(C$, 'equals$O', function (object) {
if (object != null && Clazz_instanceOf(object, "java.lang.reflect.Method") ) {
var other=object;
if ((this.getDeclaringClass$() === other.getDeclaringClass$() ) && (this.getName$() == other.getName$()) ) {
var params1=this.parameterTypes;
var params2=other.parameterTypes;
if (params1.length == params2.length) {
for (var i=0; i < params1.length; i++) {
if (params1[i] !== params2[i] ) return false;
}
return true;
}}}return false;
});
Clazz_newMeth(C$, 'getDeclaringClass$', function () {
return this.Class_;
});
Clazz_newMeth(C$, 'getExceptionTypes$', function () {
return this.exceptionTypes;
});
Clazz_newMeth(C$, 'getModifiers$', function () {
return this.modifiers;
});
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getParameterTypes$', function () {
return this.parameterTypes;
});
Clazz_newMeth(C$, 'getReturnType$', function () {
return this.returnType;
});
Clazz_newMeth(C$, 'getSignature$', function () {
return this.signature;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.getDeclaringClass$().getName$().hashCode$() ^ this.getName$().hashCode$();
});
Clazz_newMeth(C$, 'toString', function () {
return this.Class_.getName$() + "." + this.name ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:48 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,p$1={};
var C$=Clazz_newClass(P$, "StringBuffer", null, 'AbstractStringBuilder', ['Appendable', 'java.io.Serializable', 'CharSequence']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (capacity) {
C$.superclazz.c$$I.apply(this, [capacity]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (string) {
C$.superclazz.c$$S.apply(this, [string]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$CharSequence', function (cs) {
C$.superclazz.c$$S.apply(this, [cs == null ? null : cs.toString()]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'append$Z', function (b) {
return this.append$S(b ? "true" : "false");
});
Clazz_newMeth(C$, 'append$C', function (ch) {
this.append0$C(ch);
return this;
});
Clazz_newMeth(C$, 'append$D', function (d) {
return this.append$S(Double.toString$D(d));
});
Clazz_newMeth(C$, 'append$F', function (f) {
return this.append$S(Float.toString$F(f));
});
Clazz_newMeth(C$, 'append$I', function (i) {
return this.append$S(Integer.toString$I(i));
});
Clazz_newMeth(C$, 'append$J', function (l) {
return this.append$S(Long.toString$J(l));
});
Clazz_newMeth(C$, 'append$O', function (obj) {
if (obj == null ) {
this.appendNull$();
} else {
this.append0$S(obj.toString());
}return this;
});
Clazz_newMeth(C$, 'append$S', function (string) {
this.append0$S(string);
return this;
});
Clazz_newMeth(C$, 'append$StringBuffer', function (sb) {
if (sb == null ) {
this.appendNull$();
} else {
{
this.append0$CA$I$I(sb.getValue$(), 0, sb.length$());
}}return this;
});
Clazz_newMeth(C$, 'append$CA', function (chars) {
this.append0$CA(chars);
return this;
});
Clazz_newMeth(C$, 'append$CA$I$I', function (chars, start, length) {
this.append0$CA$I$I(chars, start, length);
return this;
});
Clazz_newMeth(C$, 'append$CharSequence', function (s) {
if (s == null ) {
this.appendNull$();
} else {
this.append0$S(s.toString());
}return this;
});
Clazz_newMeth(C$, 'append$CharSequence$I$I', function (s, start, end) {
this.append0$CharSequence$I$I(s, start, end);
return this;
});
Clazz_newMeth(C$, 'appendCodePoint$I', function (codePoint) {
return this.append$CA(Character.toChars$I(codePoint));
});
Clazz_newMeth(C$, 'charAt$I', function (index) {
return C$.superclazz.prototype.charAt$I.apply(this, [index]);
});
Clazz_newMeth(C$, 'codePointAt$I', function (index) {
return C$.superclazz.prototype.codePointAt$I.apply(this, [index]);
});
Clazz_newMeth(C$, 'codePointBefore$I', function (index) {
return C$.superclazz.prototype.codePointBefore$I.apply(this, [index]);
});
Clazz_newMeth(C$, 'codePointCount$I$I', function (beginIndex, endIndex) {
return C$.superclazz.prototype.codePointCount$I$I.apply(this, [beginIndex, endIndex]);
});
Clazz_newMeth(C$, 'delete$I$I', function (start, end) {
this.delete0$I$I(start, end);
return this;
});
Clazz_newMeth(C$, 'deleteCharAt$I', function (location) {
this.deleteCharAt0$I(location);
return this;
});
Clazz_newMeth(C$, 'ensureCapacity$I', function (min) {
C$.superclazz.prototype.ensureCapacity$I.apply(this, [min]);
});
Clazz_newMeth(C$, 'getChars$I$I$CA$I', function (start, end, buffer, idx) {
C$.superclazz.prototype.getChars$I$I$CA$I.apply(this, [start, end, buffer, idx]);
});
Clazz_newMeth(C$, 'indexOf$S$I', function (subString, start) {
return C$.superclazz.prototype.indexOf$S$I.apply(this, [subString, start]);
});
Clazz_newMeth(C$, 'insert$I$C', function (index, ch) {
this.insert0$I$C(index, ch);
return this;
});
Clazz_newMeth(C$, 'insert$I$Z', function (index, b) {
return this.insert$I$S(index, b ? "true" : "false");
});
Clazz_newMeth(C$, 'insert$I$I', function (index, i) {
return this.insert$I$S(index, Integer.toString$I(i));
});
Clazz_newMeth(C$, 'insert$I$J', function (index, l) {
return this.insert$I$S(index, Long.toString$J(l));
});
Clazz_newMeth(C$, 'insert$I$D', function (index, d) {
return this.insert$I$S(index, Double.toString$D(d));
});
Clazz_newMeth(C$, 'insert$I$F', function (index, f) {
return this.insert$I$S(index, Float.toString$F(f));
});
Clazz_newMeth(C$, 'insert$I$O', function (index, obj) {
return this.insert$I$S(index, obj == null ? "null" : obj.toString());
});
Clazz_newMeth(C$, 'insert$I$S', function (index, string) {
this.insert0$I$S(index, string);
return this;
});
Clazz_newMeth(C$, 'insert$I$CA', function (index, chars) {
this.insert0$I$CA(index, chars);
return this;
});
Clazz_newMeth(C$, 'insert$I$CA$I$I', function (index, chars, start, length) {
this.insert0$I$CA$I$I(index, chars, start, length);
return this;
});
Clazz_newMeth(C$, 'insert$I$CharSequence', function (index, s) {
this.insert0$I$S(index, s == null ? "null" : s.toString());
return this;
});
Clazz_newMeth(C$, 'insert$I$CharSequence$I$I', function (index, s, start, end) {
this.insert0$I$CharSequence$I$I(index, s, start, end);
return this;
});
Clazz_newMeth(C$, 'lastIndexOf$S$I', function (subString, start) {
return C$.superclazz.prototype.lastIndexOf$S$I.apply(this, [subString, start]);
});
Clazz_newMeth(C$, 'offsetByCodePoints$I$I', function (index, codePointOffset) {
return C$.superclazz.prototype.offsetByCodePoints$I$I.apply(this, [index, codePointOffset]);
});
Clazz_newMeth(C$, 'replace$I$I$S', function (start, end, string) {
this.replace0$I$I$S(start, end, string);
return this;
});
Clazz_newMeth(C$, 'reverse$', function () {
this.reverse0$();
return this;
});
Clazz_newMeth(C$, 'setCharAt$I$C', function (index, ch) {
C$.superclazz.prototype.setCharAt$I$C.apply(this, [index, ch]);
});
Clazz_newMeth(C$, 'setLength$I', function (length) {
C$.superclazz.prototype.setLength$I.apply(this, [length]);
});
Clazz_newMeth(C$, 'subSequence$I$I', function (start, end) {
return C$.superclazz.prototype.substring$I$I.apply(this, [start, end]);
});
Clazz_newMeth(C$, 'substring$I', function (start) {
return C$.superclazz.prototype.substring$I.apply(this, [start]);
});
Clazz_newMeth(C$, 'substring$I$I', function (start, end) {
return C$.superclazz.prototype.substring$I$I.apply(this, [start, end]);
});
Clazz_newMeth(C$, 'toString', function () {
return C$.superclazz.prototype.toString.apply(this, []);
});
Clazz_newMeth(C$, 'trimToSize$', function () {
C$.superclazz.prototype.trimToSize$.apply(this, []);
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (out) {
var fields=out.putFields$();
fields.put$S$I("count", this.length$());
fields.put$S$Z("shared", false);
fields.put$S$O("value", this.getValue$());
out.writeFields$();
}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function ($in) {
var fields=$in.readFields$();
var count=fields.get$S$I("count", 0);
var value=fields.get$S$O("value", null);
this.set$CA$I(value, count);
}, p$1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,p$1={};
var C$=Clazz_newClass(P$, "StringBuilder", null, 'AbstractStringBuilder', ['Appendable', 'CharSequence', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (capacity) {
C$.superclazz.c$$I.apply(this, [capacity]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$CharSequence', function (seq) {
C$.superclazz.c$$S.apply(this, [seq.toString()]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (str) {
C$.superclazz.c$$S.apply(this, [str]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'append$Z', function (b) {
this.append0$S(b ? "true" : "false");
return this;
});
Clazz_newMeth(C$, 'append$C', function (c) {
this.append0$C(c);
return this;
});
Clazz_newMeth(C$, 'append$I', function (i) {
this.append0$S(Integer.toString$I(i));
return this;
});
Clazz_newMeth(C$, 'append$J', function (lng) {
this.append0$S(Long.toString$J(lng));
return this;
});
Clazz_newMeth(C$, 'append$F', function (f) {
this.append0$S(Float.toString$F(f));
return this;
});
Clazz_newMeth(C$, 'append$D', function (d) {
this.append0$S(Double.toString$D(d));
return this;
});
Clazz_newMeth(C$, 'append$O', function (obj) {
if (obj == null ) {
this.appendNull$();
} else {
this.append0$S(obj.toString());
}return this;
});
Clazz_newMeth(C$, 'append$S', function (str) {
this.append0$S(str);
return this;
});
Clazz_newMeth(C$, 'append$StringBuffer', function (sb) {
if (sb == null ) {
this.appendNull$();
} else {
this.append0$CA$I$I(sb.getValue$(), 0, sb.length$());
}return this;
});
Clazz_newMeth(C$, 'append$CA', function (ch) {
this.append0$CA(ch);
return this;
});
Clazz_newMeth(C$, 'append$CA$I$I', function (str, offset, len) {
this.append0$CA$I$I(str, offset, len);
return this;
});
Clazz_newMeth(C$, 'append$CharSequence', function (csq) {
if (csq == null ) {
this.appendNull$();
} else {
this.append0$S(csq.toString());
}return this;
});
Clazz_newMeth(C$, 'append$CharSequence$I$I', function (csq, start, end) {
this.append0$CharSequence$I$I(csq, start, end);
return this;
});
Clazz_newMeth(C$, 'appendCodePoint$I', function (codePoint) {
this.append0$CA(Character.toChars$I(codePoint));
return this;
});
Clazz_newMeth(C$, 'delete$I$I', function (start, end) {
this.delete0$I$I(start, end);
return this;
});
Clazz_newMeth(C$, 'deleteCharAt$I', function (index) {
this.deleteCharAt0$I(index);
return this;
});
Clazz_newMeth(C$, 'insert$I$Z', function (offset, b) {
this.insert0$I$S(offset, b ? "true" : "false");
return this;
});
Clazz_newMeth(C$, 'insert$I$C', function (offset, c) {
this.insert0$I$C(offset, c);
return this;
});
Clazz_newMeth(C$, 'insert$I$I', function (offset, i) {
this.insert0$I$S(offset, Integer.toString$I(i));
return this;
});
Clazz_newMeth(C$, 'insert$I$J', function (offset, l) {
this.insert0$I$S(offset, Long.toString$J(l));
return this;
});
Clazz_newMeth(C$, 'insert$I$F', function (offset, f) {
this.insert0$I$S(offset, Float.toString$F(f));
return this;
});
Clazz_newMeth(C$, 'insert$I$D', function (offset, d) {
this.insert0$I$S(offset, Double.toString$D(d));
return this;
});
Clazz_newMeth(C$, 'insert$I$O', function (offset, obj) {
this.insert0$I$S(offset, obj == null ? "null" : obj.toString());
return this;
});
Clazz_newMeth(C$, 'insert$I$S', function (offset, str) {
this.insert0$I$S(offset, str);
return this;
});
Clazz_newMeth(C$, 'insert$I$CA', function (offset, ch) {
this.insert0$I$CA(offset, ch);
return this;
});
Clazz_newMeth(C$, 'insert$I$CA$I$I', function (offset, str, strOffset, strLen) {
this.insert0$I$CA$I$I(offset, str, strOffset, strLen);
return this;
});
Clazz_newMeth(C$, 'insert$I$CharSequence', function (offset, s) {
this.insert0$I$S(offset, s == null ? "null" : s.toString());
return this;
});
Clazz_newMeth(C$, 'insert$I$CharSequence$I$I', function (offset, s, start, end) {
this.insert0$I$CharSequence$I$I(offset, s, start, end);
return this;
});
Clazz_newMeth(C$, 'replace$I$I$S', function (start, end, str) {
this.replace0$I$I$S(start, end, str);
return this;
});
Clazz_newMeth(C$, 'reverse$', function () {
this.reverse0$();
return this;
});
Clazz_newMeth(C$, 'toString', function () {
return C$.superclazz.prototype.toString.apply(this, []);
});
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function ($in) {
$in.defaultReadObject$();
var count=$in.readInt$();
var value=$in.readObject$();
this.set$CA$I(value, count);
}, p$1);
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (out) {
out.defaultWriteObject$();
out.writeInt$I(this.length$());
out.writeObject$O(this.getValue$());
}, p$1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,p$1={},I$=[[0,'ThreadGroup','swingjs.JSToolkit','ThreadDeath','NoSuchMethodError','swingjs.JSUtil','java.util.HashMap',['Thread','.State']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Thread", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, 'Runnable');
C$.threadInitNumber=0;
C$.threadSeqNumber=0;
C$.thisThread=null;
C$.defaultUncaughtExceptionHandler=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.name=null;
this.priority=0;
this.daemon=false;
this.target=null;
this.group=null;
this.tid=0;
this.threadStatus=0;
this.parkBlocker=null;
this.stopBeforeStart=false;
this.throwableFromStop=null;
this.me=null;
this.started=false;
this.uncaughtExceptionHandler=null;
this.interrupted=false;
this.stopped=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.priority=5;
this.daemon=false;
this.threadStatus=0;
}, 1);
Clazz_newMeth(C$, 'nextThreadNum$', function () {
return C$.threadInitNumber++;
}, 1);
Clazz_newMeth(C$, 'nextThreadID$', function () {
return ++C$.threadSeqNumber;
}, 1);
Clazz_newMeth(C$, 'currentThread$', function () {
{
if (java.lang.Thread.thisThread === "working") return null;
}
if (C$.thisThread == null ) {
{
java.lang.Thread.thisThread = "working";
java.lang.Thread.thisThread = Clazz_new_(java.lang.Thread.c$$S, ["master"]);
var name = J2S._applets["master"]._id; var g = Clazz_new_(Clazz_load('swingjs.JSThreadGroup').c$$ThreadGroup$S, [null, name]); java.lang.Thread.thisThread = Clazz_new_(Clazz_load("javajs.util.JSThread").c$$ThreadGroup$S, [g, name]);
}
C$.thisThread.setPriority$I(5);
}return C$.thisThread;
}, 1);
Clazz_newMeth(C$, 'yield$', function () {
}, 1);
Clazz_newMeth(C$, 'sleep$J', function (millis) {
}, 1);
Clazz_newMeth(C$, 'sleep$J$I', function (millis, nanos) {
if (millis < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["timeout value is negative"]);
}if (nanos < 0 || nanos > 999999 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["nanosecond timeout value out of range"]);
}if (nanos >= 500000 || (nanos != 0 && millis == 0 ) ) {
millis++;
}C$.sleep$J(millis);
}, 1);
Clazz_newMeth(C$, 'init$ThreadGroup$Runnable$S$J', function (g, target, name, stackSize) {
p$1.init$ThreadGroup$Runnable$S$J$O.apply(this, [g, target, name, stackSize, null]);
}, p$1);
Clazz_newMeth(C$, 'init$ThreadGroup$Runnable$S$J$O', function (g, target, name, stackSize, acc) {
var parent=(C$.thisThread == null ? null : C$.thisThread);
if (g == null ) {
if (g == null && parent != null && !parent.equals$O("working") ) {
g=parent.getThreadGroup$();
}}if (g == null ) {
g=this.newThreadGroup$ThreadGroup$S(null, name);
parent=this;
}g.checkAccess$();
g.addUnstarted$();
this.group=g;
this.priority=parent.getPriority$();
this.name=name;
this.target=target;
this.setPriority$I(this.priority);
this.tid=C$.nextThreadID$();
this.me=this;
}, p$1);
Clazz_newMeth(C$, 'newThreadGroup$ThreadGroup$S', function (group, name) {
return Clazz_new_($I$(1).c$$ThreadGroup$S,[group, name]);
});
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, null, "Thread-" + C$.nextThreadNum$(), 0]);
}, 1);
Clazz_newMeth(C$, 'c$$Runnable', function (target) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, target, "Thread-" + C$.nextThreadNum$(), 0]);
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$Runnable', function (group, target) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, target, "Thread-" + C$.nextThreadNum$(), 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, null, name, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (group, name) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, null, name, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$Runnable$S', function (target, name) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, target, name, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$Runnable$S', function (group, target, name) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, target, name, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$Runnable$S$J', function (group, target, name, stackSize) {
C$.$init$.apply(this);
p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, target, name, stackSize]);
}, 1);
Clazz_newMeth(C$, 'start$', function () {
if (this.threadStatus != 0 || this !== this.me ) throw Clazz_new_(Clazz_load('IllegalThreadStateException'));
this.group.add$Thread(this);
p$1.start0.apply(this, []);
if (this.stopBeforeStart) {
p$1.stop0$O.apply(this, [this.throwableFromStop]);
}});
Clazz_newMeth(C$, 'start0', function () {
this.started=true;
$I$(2).dispatch$O$I$I(this, 0, 0);
}, p$1);
Clazz_newMeth(C$, 'run$', function () {
if (this.target != null ) {
this.target.run$();
}});
Clazz_newMeth(C$, 'stop$', function () {
if ((this.threadStatus != 0) && !this.isAlive$() ) {
return;
}p$1.stop1$Throwable.apply(this, [Clazz_new_($I$(3))]);
});
Clazz_newMeth(C$, 'stop$Throwable', function (obj) {
p$1.stop1$Throwable.apply(this, [obj]);
});
Clazz_newMeth(C$, 'stop1$Throwable', function (th) {
if (this.threadStatus != 0) {
this.resume$();
p$1.stop0$O.apply(this, [th]);
} else {
if (th == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}this.stopBeforeStart=true;
this.throwableFromStop=th;
}}, p$1);
Clazz_newMeth(C$, 'interrupt$', function () {
p$1.interrupt0.apply(this, []);
});
Clazz_newMeth(C$, 'interrupted$', function () {
return p$1.isInterruptedB$Z.apply(C$.currentThread$(), [true]);
}, 1);
Clazz_newMeth(C$, 'isInterrupted$', function () {
return p$1.isInterruptedB$Z.apply(this, [false]);
});
Clazz_newMeth(C$, 'isInterruptedB$Z', function (clearInterrupted) {
var wasInt=this.interrupted;
if (clearInterrupted) this.interrupted=false;
return wasInt;
}, p$1);
Clazz_newMeth(C$, 'destroy$', function () {
throw Clazz_new_($I$(4));
});
Clazz_newMeth(C$, 'isAlive$', function () {
return this.started && !this.stopped ;
});
Clazz_newMeth(C$, 'suspend$', function () {
this.checkAccess$();
p$1.suspend0.apply(this, []);
});
Clazz_newMeth(C$, 'resume$', function () {
this.checkAccess$();
p$1.resume0.apply(this, []);
});
Clazz_newMeth(C$, 'setPriority$I', function (newPriority) {
var g;
this.checkAccess$();
if (newPriority > 10 || newPriority < 1 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException'));
}if ((g=this.getThreadGroup$()) != null ) {
if (newPriority > g.getMaxPriority$()) {
newPriority=g.getMaxPriority$();
}p$1.setPriority0$I.apply(this, [this.priority=newPriority]);
}});
Clazz_newMeth(C$, 'getPriority$', function () {
return this.priority;
});
Clazz_newMeth(C$, 'setName$S', function (name) {
this.checkAccess$();
this.name=name;
});
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getThreadGroup$', function () {
return this.group;
});
Clazz_newMeth(C$, 'activeCount$', function () {
return C$.currentThread$().getThreadGroup$().activeCount$();
}, 1);
Clazz_newMeth(C$, 'enumerate$ThreadA', function (tarray) {
return C$.currentThread$().getThreadGroup$().enumerate$ThreadA(tarray);
}, 1);
Clazz_newMeth(C$, 'countStackFrames$', function () {
return 0;
});
Clazz_newMeth(C$, 'join$J', function (millis) {
var base=System.currentTimeMillis$();
var now=0;
if (millis < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["timeout value is negative"]);
}$I$(5).warn$S("Cannot wait in Thread");
if (millis == 0) {
while (this.isAlive$()){
this.wait$J(0);
}
} else {
while (this.isAlive$()){
var delay=millis - now;
if (delay <= 0) {
break;
}this.wait$J(delay);
now=System.currentTimeMillis$() - base;
}
}});
Clazz_newMeth(C$, 'join$J$I', function (millis, nanos) {
if (millis < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["timeout value is negative"]);
}if (nanos < 0 || nanos > 999999 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["nanosecond timeout value out of range"]);
}if (nanos >= 500000 || (nanos != 0 && millis == 0 ) ) {
millis++;
}this.join$J(millis);
});
Clazz_newMeth(C$, 'join$', function () {
this.join$J(0);
});
Clazz_newMeth(C$, 'dumpStack$', function () {
Clazz_new_(Clazz_load('Exception').c$$S,["Stack trace"]).printStackTrace$();
}, 1);
Clazz_newMeth(C$, 'setDaemon$Z', function (on) {
this.checkAccess$();
if (this.isAlive$()) {
throw Clazz_new_(Clazz_load('IllegalThreadStateException'));
}this.daemon=on;
});
Clazz_newMeth(C$, 'isDaemon$', function () {
return this.daemon;
});
Clazz_newMeth(C$, 'checkAccess$', function () {
});
Clazz_newMeth(C$, 'toString', function () {
var group=this.getThreadGroup$();
if (group != null ) {
return "Thread[" + this.getName$() + "," + this.getPriority$() + "," + group.getName$() + "]" ;
} else {
return "Thread[" + this.getName$() + "," + this.getPriority$() + "," + "" + "]" ;
}});
Clazz_newMeth(C$, 'getContextClassLoader$', function () {
var cl=Clazz_getClass($I$(5)).getClassLoader$();
cl.baseClass = {getName$:function(){return "swingjs"}};
return cl;
});
Clazz_newMeth(C$, 'setContextClassLoader$ClassLoader', function (cl) {
});
Clazz_newMeth(C$, 'holdsLock$O', function (obj) {
return false;
}, 1);
Clazz_newMeth(C$, 'getStackTrace$', function () {
return (Clazz_new_(Clazz_load('Exception'))).getStackTrace$();
});
Clazz_newMeth(C$, 'getAllStackTraces$', function () {
var threads=C$.getThreads$();
var traces=C$.dumpThreads$ThreadA(threads);
var m=Clazz_new_($I$(6).c$$I,[threads.length]);
for (var i=0; i < threads.length; i++) {
var stackTrace=traces[i];
if (stackTrace != null ) {
m.put$TK$TV(threads[i], stackTrace);
}}
return m;
}, 1);
Clazz_newMeth(C$, 'dumpThreads$ThreadA', function (threads) {
return null;
}, 1);
Clazz_newMeth(C$, 'getThreads$', function () {
return null;
}, 1);
Clazz_newMeth(C$, 'getId$', function () {
return this.tid;
});
Clazz_newMeth(C$, 'getState$', function () {
switch (this.threadStatus) {
case 0:
return $I$(7).NEW;
case 1:
return $I$(7).RUNNABLE;
case 2:
default:
return $I$(7).TERMINATED;
case 3:
return $I$(7).TIMED_WAITING;
case 4:
return $I$(7).WAITING;
}
});
Clazz_newMeth(C$, 'setDefaultUncaughtExceptionHandler$Thread_UncaughtExceptionHandler', function (eh) {
C$.defaultUncaughtExceptionHandler=eh;
}, 1);
Clazz_newMeth(C$, 'getDefaultUncaughtExceptionHandler$', function () {
return C$.defaultUncaughtExceptionHandler;
}, 1);
Clazz_newMeth(C$, 'getUncaughtExceptionHandler$', function () {
return this.uncaughtExceptionHandler != null ? this.uncaughtExceptionHandler : this.group;
});
Clazz_newMeth(C$, 'setUncaughtExceptionHandler$Thread_UncaughtExceptionHandler', function (eh) {
this.checkAccess$();
this.uncaughtExceptionHandler=eh;
});
Clazz_newMeth(C$, 'setPriority0$I', function (newPriority) {
}, p$1);
Clazz_newMeth(C$, 'stop0$O', function (o) {
this.stopped=true;
}, p$1);
Clazz_newMeth(C$, 'suspend0', function () {
}, p$1);
Clazz_newMeth(C$, 'resume0', function () {
}, p$1);
Clazz_newMeth(C$, 'interrupt0', function () {
this.interrupted=true;
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.Thread, "State", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "NEW", 0, []);
Clazz_newEnumConst($vals, C$.c$, "RUNNABLE", 1, []);
Clazz_newEnumConst($vals, C$.c$, "BLOCKED", 2, []);
Clazz_newEnumConst($vals, C$.c$, "WAITING", 3, []);
Clazz_newEnumConst($vals, C$.c$, "TIMED_WAITING", 4, []);
Clazz_newEnumConst($vals, C$.c$, "TERMINATED", 5, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
;
(function(){var C$=Clazz_newInterface(P$.Thread, "UncaughtExceptionHandler", function(){
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:48 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.lang,p$1={},I$=[[0,'Thread','java.util.Arrays']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ThreadGroup", null, null, [['Thread','Thread.UncaughtExceptionHandler']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.parent=null;
this.name=null;
this.maxPriority=0;
this.destroyed=false;
this.daemon=false;
this.vmAllowSuspension=false;
this.nUnstartedThreads=0;
this.nthreads=0;
this.threads=null;
this.ngroups=0;
this.groups=null;
this.秘html5Applet=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.maxPriority=10;
this.nUnstartedThreads=0;
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.c$$ThreadGroup$S.apply(this, [$I$(1).currentThread$().getThreadGroup$(), name]);
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (parent, name) {
C$.$init$.apply(this);
this.name=name;
this.parent=parent;
if (parent != null ) {
this.maxPriority=parent.maxPriority;
this.daemon=parent.daemon;
this.vmAllowSuspension=parent.vmAllowSuspension;
p$1.add$ThreadGroup.apply(parent, [this]);
}}, 1);
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getParent$', function () {
if (this.parent != null ) this.parent.checkAccess$();
return this.parent;
});
Clazz_newMeth(C$, 'getMaxPriority$', function () {
return this.maxPriority;
});
Clazz_newMeth(C$, 'isDaemon$', function () {
return this.daemon;
});
Clazz_newMeth(C$, 'isDestroyed$', function () {
return this.destroyed;
});
Clazz_newMeth(C$, 'setDaemon$Z', function (daemon) {
this.checkAccess$();
this.daemon=daemon;
});
Clazz_newMeth(C$, 'setMaxPriority$I', function (pri) {
var ngroupsSnapshot;
var groupsSnapshot;
{
this.checkAccess$();
if (pri < 1 || pri > 10 ) {
return;
}this.maxPriority=(this.parent != null ) ? Math.min(pri, this.parent.maxPriority) : pri;
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}for (var i=0; i < ngroupsSnapshot; i++) {
groupsSnapshot[i].setMaxPriority$I(pri);
}
});
Clazz_newMeth(C$, 'parentOf$ThreadGroup', function (g) {
for (; g != null ; g=g.parent) {
if (g === this ) {
return true;
}}
return false;
});
Clazz_newMeth(C$, 'checkAccess$', function () {
});
Clazz_newMeth(C$, 'activeCount$', function () {
var result;
var ngroupsSnapshot;
var groupsSnapshot;
{
if (this.destroyed) {
return 0;
}result=this.nthreads;
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}for (var i=0; i < ngroupsSnapshot; i++) {
result+=groupsSnapshot[i].activeCount$();
}
return result;
});
Clazz_newMeth(C$, 'enumerate$ThreadA', function (list) {
this.checkAccess$();
return p$1.enumerate$ThreadA$I$Z.apply(this, [list, 0, true]);
});
Clazz_newMeth(C$, 'enumerate$ThreadA$Z', function (list, recurse) {
this.checkAccess$();
return p$1.enumerate$ThreadA$I$Z.apply(this, [list, 0, recurse]);
});
Clazz_newMeth(C$, 'enumerate$ThreadA$I$Z', function (list, n, recurse) {
var ngroupsSnapshot=0;
var groupsSnapshot=null;
{
if (this.destroyed) {
return 0;
}var nt=this.nthreads;
if (nt > list.length - n) {
nt=list.length - n;
}for (var i=0; i < nt; i++) {
if (this.threads[i].isAlive$()) {
list[n++]=this.threads[i];
}}
if (recurse) {
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}}if (recurse) {
for (var i=0; i < ngroupsSnapshot; i++) {
n=p$1.enumerate$ThreadA$I$Z.apply(groupsSnapshot[i], [list, n, true]);
}
}return n;
}, p$1);
Clazz_newMeth(C$, 'activeGroupCount$', function () {
var ngroupsSnapshot;
var groupsSnapshot;
{
if (this.destroyed) {
return 0;
}ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}var n=ngroupsSnapshot;
for (var i=0; i < ngroupsSnapshot; i++) {
n+=groupsSnapshot[i].activeGroupCount$();
}
return n;
});
Clazz_newMeth(C$, 'enumerate$ThreadGroupA', function (list) {
this.checkAccess$();
return p$1.enumerate$ThreadGroupA$I$Z.apply(this, [list, 0, true]);
});
Clazz_newMeth(C$, 'enumerate$ThreadGroupA$Z', function (list, recurse) {
this.checkAccess$();
return p$1.enumerate$ThreadGroupA$I$Z.apply(this, [list, 0, recurse]);
});
Clazz_newMeth(C$, 'enumerate$ThreadGroupA$I$Z', function (list, n, recurse) {
var ngroupsSnapshot=0;
var groupsSnapshot=null;
{
if (this.destroyed) {
return 0;
}var ng=this.ngroups;
if (ng > list.length - n) {
ng=list.length - n;
}if (ng > 0) {
System.arraycopy$O$I$O$I$I(this.groups, 0, list, n, ng);
n+=ng;
}if (recurse) {
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}}if (recurse) {
for (var i=0; i < ngroupsSnapshot; i++) {
n=p$1.enumerate$ThreadGroupA$I$Z.apply(groupsSnapshot[i], [list, n, true]);
}
}return n;
}, p$1);
Clazz_newMeth(C$, 'stop$', function () {
if (p$1.stopOrSuspend$Z.apply(this, [false])) $I$(1).currentThread$().stop$();
});
Clazz_newMeth(C$, 'interrupt$', function () {
var ngroupsSnapshot;
var groupsSnapshot;
{
this.checkAccess$();
for (var i=0; i < this.nthreads; i++) {
this.threads[i].interrupt$();
}
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}for (var i=0; i < ngroupsSnapshot; i++) {
groupsSnapshot[i].interrupt$();
}
});
Clazz_newMeth(C$, 'suspend$', function () {
if (p$1.stopOrSuspend$Z.apply(this, [true])) $I$(1).currentThread$().suspend$();
});
Clazz_newMeth(C$, 'stopOrSuspend$Z', function (suspend) {
var suicide=false;
var us=$I$(1).currentThread$();
var ngroupsSnapshot;
var groupsSnapshot=null;
{
this.checkAccess$();
for (var i=0; i < this.nthreads; i++) {
if (this.threads[i] === us ) suicide=true;
else if (suspend) this.threads[i].suspend$();
else this.threads[i].stop$();
}
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
}}for (var i=0; i < ngroupsSnapshot; i++) suicide=p$1.stopOrSuspend$Z.apply(groupsSnapshot[i], [suspend]) || suicide ;
return suicide;
}, p$1);
Clazz_newMeth(C$, 'resume$', function () {
var ngroupsSnapshot;
var groupsSnapshot;
{
this.checkAccess$();
for (var i=0; i < this.nthreads; i++) {
this.threads[i].resume$();
}
ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}}for (var i=0; i < ngroupsSnapshot; i++) {
groupsSnapshot[i].resume$();
}
});
Clazz_newMeth(C$, 'destroy$', function () {
var ngroupsSnapshot;
var groupsSnapshot;
{
this.checkAccess$();
if (this.destroyed || (this.nthreads > 0) ) {
throw Clazz_new_(Clazz_load('IllegalThreadStateException'));
}ngroupsSnapshot=this.ngroups;
if (this.groups != null ) {
groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot);
} else {
groupsSnapshot=null;
}if (this.parent != null ) {
this.destroyed=true;
this.ngroups=0;
this.groups=null;
this.nthreads=0;
this.threads=null;
}}for (var i=0; i < ngroupsSnapshot; i+=1) {
groupsSnapshot[i].destroy$();
}
if (this.parent != null ) {
p$1.remove$ThreadGroup.apply(this.parent, [this]);
}});
Clazz_newMeth(C$, 'add$ThreadGroup', function (g) {
{
if (this.destroyed) {
throw Clazz_new_(Clazz_load('IllegalThreadStateException'));
}if (this.groups == null ) {
this.groups=Clazz_array(C$, [4]);
} else if (this.ngroups == this.groups.length) {
this.groups=$I$(2).copyOf$TTA$I(this.groups, this.ngroups * 2);
}this.groups[this.ngroups]=g;
this.ngroups++;
}}, p$1);
Clazz_newMeth(C$, 'remove$ThreadGroup', function (g) {
{
if (this.destroyed) {
return;
}for (var i=0; i < this.ngroups; i++) {
if (this.groups[i] === g ) {
this.ngroups-=1;
System.arraycopy$O$I$O$I$I(this.groups, i + 1, this.groups, i, this.ngroups - i);
this.groups[this.ngroups]=null;
break;
}}
if (this.nthreads == 0) {
this.notifyAll$();
}if (this.daemon && (this.nthreads == 0) && (this.nUnstartedThreads == 0) && (this.ngroups == 0) ) {
this.destroy$();
}}}, p$1);
Clazz_newMeth(C$, 'addUnstarted$', function () {
{
if (this.destroyed) {
throw Clazz_new_(Clazz_load('IllegalThreadStateException'));
}this.nUnstartedThreads++;
}});
Clazz_newMeth(C$, 'add$Thread', function (t) {
{
if (this.destroyed) {
throw Clazz_new_(Clazz_load('IllegalThreadStateException'));
}if (this.threads == null ) {
this.threads=Clazz_array($I$(1), [4]);
} else if (this.nthreads == this.threads.length) {
this.threads=$I$(2).copyOf$TTA$I(this.threads, this.nthreads * 2);
}this.threads[this.nthreads]=t;
this.nthreads++;
this.nUnstartedThreads--;
}});
Clazz_newMeth(C$, 'remove$Thread', function (t) {
{
if (this.destroyed) {
return;
}for (var i=0; i < this.nthreads; i++) {
if (this.threads[i] === t ) {
System.arraycopy$O$I$O$I$I(this.threads, i + 1, this.threads, i, --this.nthreads - i);
this.threads[this.nthreads]=null;
break;
}}
if (this.nthreads == 0) {
this.notifyAll$();
}if (this.daemon && (this.nthreads == 0) && (this.nUnstartedThreads == 0) && (this.ngroups == 0) ) {
this.destroy$();
}}});
Clazz_newMeth(C$, ['uncaughtException$Thread$Throwable','uncaughtException$'], function (t, e) {
if (this.parent != null ) {
this.parent.uncaughtException$Thread$Throwable(t, e);
} else {
var ueh=$I$(1).getDefaultUncaughtExceptionHandler$();
if (ueh != null ) {
ueh.uncaughtException$(t, e);
} else if (!(Clazz_instanceOf(e, "java.lang.ThreadDeath"))) {
System.err.print$S("Exception in thread \"" + t.getName$() + "\" " );
e.printStackTrace$java_io_PrintStream(System.err);
}}});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[name=" + this.getName$() + ",maxpri=" + this.maxPriority + ",html5Applet=" + this.秘html5Applet + "]" ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:48 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.math"),I$=[];
var C$=Clazz_newClass(P$, "RoundingMode", null, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$$I, "UP", 0, [0]);
Clazz_newEnumConst($vals, C$.c$$I, "DOWN", 1, [1]);
Clazz_newEnumConst($vals, C$.c$$I, "CEILING", 2, [2]);
Clazz_newEnumConst($vals, C$.c$$I, "FLOOR", 3, [3]);
Clazz_newEnumConst($vals, C$.c$$I, "HALF_UP", 4, [4]);
Clazz_newEnumConst($vals, C$.c$$I, "HALF_DOWN", 5, [5]);
Clazz_newEnumConst($vals, C$.c$$I, "HALF_EVEN", 6, [6]);
Clazz_newEnumConst($vals, C$.c$$I, "UNNECESSARY", 7, [7]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.oldMode=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (oldMode) {
C$.$init$.apply(this);
this.oldMode=oldMode;
}, 1);
Clazz_newMeth(C$, 'valueOf$I', function (rm) {
switch (rm) {
case 0:
return C$.UP;
case 1:
return C$.DOWN;
case 2:
return C$.CEILING;
case 3:
return C$.FLOOR;
case 4:
return C$.HALF_UP;
case 5:
return C$.HALF_DOWN;
case 6:
return C$.HALF_EVEN;
case 7:
return C$.UNNECESSARY;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["argument out of range"]);
}
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:49 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.net"),p$1={},I$=[[0,'java.util.Hashtable','java.net.Parts','javajs.util.AjaxURLConnection','Error']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "URL");
C$.factory=null;
C$.handlers=null;
C$.streamHandlerLock=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.handlers=Clazz_new_($I$(1));
C$.streamHandlerLock= Clazz_new_();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.protocol=null;
this.host=null;
this.port=0;
this.file=null;
this.query=null;
this.authority=null;
this.path=null;
this.userInfo=null;
this.ref=null;
this.handler=null;
this._streamData=null;
this.hashCode=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.port=-1;
this.hashCode=-1;
}, 1);
Clazz_newMeth(C$, 'c$$S$S$I$S', function (protocol, host, port, file) {
C$.c$$S$S$I$S$java_net_URLStreamHandler.apply(this, [protocol, host, port, file, null]);
}, 1);
Clazz_newMeth(C$, 'c$$S$S$S', function (protocol, host, file) {
C$.c$$S$S$I$S.apply(this, [protocol, host, -1, file]);
}, 1);
Clazz_newMeth(C$, 'c$$S$S$I$S$java_net_URLStreamHandler', function (protocol, host, port, file, handler) {
C$.$init$.apply(this);
protocol=protocol.toLowerCase$();
this.protocol=protocol;
if (host != null ) {
if (host.indexOf$I(":") >= 0 && !host.startsWith$S("[") ) {
host="[" + host + "]" ;
}this.host=host;
if (port < -1) {
throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["Invalid port number :" + port]);
}this.port=port;
this.authority=(port == -1) ? host : host + ":" + port ;
}var parts=Clazz_new_($I$(2).c$$S,[file]);
this.path=parts.getPath$();
this.query=parts.getQuery$();
if (this.query != null ) {
this.file=this.path + "?" + this.query ;
} else {
this.file=this.path;
}this.ref=parts.getRef$();
if (handler == null && (handler=C$.getURLStreamHandler$S(protocol)) == null ) {
throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["unknown protocol: " + protocol]);
}this.handler=handler;
}, 1);
Clazz_newMeth(C$, 'c$$S', function (spec) {
C$.c$$java_net_URL$S$java_net_URLStreamHandler.apply(this, [null, spec, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_net_URL$S', function (context, spec) {
C$.c$$java_net_URL$S$java_net_URLStreamHandler.apply(this, [context, spec, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_net_URL$S$java_net_URLStreamHandler', function (context, spec, handler) {
C$.$init$.apply(this);
var original=spec;
var i;
var limit;
var c;
var start=0;
var newProtocol=null;
var aRef=false;
var isRelative=false;
try {
limit=spec.length$();
while ((limit > 0) && (spec.charAt$I(limit - 1) <= " ") ){
limit--;
}
while ((start < limit) && (spec.charAt$I(start) <= " ") ){
start++;
}
if (spec.regionMatches$Z$I$S$I$I(true, start, "url:", 0, 4)) {
start+=4;
}if (start < spec.length$() && spec.charAt$I(start) == "#" ) {
aRef=true;
}for (i=start; !aRef && (i < limit) && ((c=spec.charAt$I(i).$c()) != 47 ) ; i++) {
if (c == 58 ) {
var s=spec.substring$I$I(start, i).toLowerCase$();
if (p$1.isValidProtocol$S.apply(this, [s])) {
newProtocol=s;
start=i + 1;
}break;
}}
this.protocol=newProtocol;
if ((context != null ) && ((newProtocol == null ) || newProtocol.equalsIgnoreCase$S(context.protocol) ) ) {
if (handler == null ) {
handler=context.handler;
}if (context.path != null && context.path.startsWith$S("/") ) newProtocol=null;
if (newProtocol == null ) {
this.protocol=context.protocol;
this.authority=context.authority;
this.userInfo=context.userInfo;
this.host=context.host;
this.port=context.port;
this.file=context.file;
this.path=context.path;
isRelative=true;
}}if (this.protocol == null ) {
throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["no protocol: " + original]);
}if (handler == null && (handler=C$.getURLStreamHandler$S(this.protocol)) == null ) {
throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["unknown protocol: " + this.protocol]);
}this.handler=handler;
i=spec.indexOf$I$I("#", start);
if (i >= 0) {
this.ref=spec.substring$I$I(i + 1, limit);
limit=i;
}if (isRelative && start == limit ) {
this.query=context.query;
if (this.ref == null ) {
this.ref=context.ref;
}}handler.parseURL$java_net_URL$S$I$I(this, spec, start, limit);
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"java.net.MalformedURLException")){
var e = e$$;
{
throw e;
}
} else if (Clazz_exceptionOf(e$$,"Exception")){
var e = e$$;
{
var exception=Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,[e.getMessage$()]);
exception.initCause$Throwable(e);
throw exception;
}
} else {
throw e$$;
}
}
}, 1);
Clazz_newMeth(C$, 'isValidProtocol$S', function (protocol) {
var len=protocol.length$();
if (len < 1) return false;
var c=protocol.charAt$I(0);
if (!Character.isLetter$C(c)) return false;
for (var i=1; i < len; i++) {
c=protocol.charAt$I(i);
if (!Character.isLetterOrDigit$C(c) && c != "." && c != "+" && c != "-" ) {
return false;
}}
return true;
}, p$1);
Clazz_newMeth(C$, 'set5$S$S$I$S$S', function (protocol, host, port, file, ref) {
{
this.protocol=protocol;
this.host=host;
this.authority=port == -1 ? host : host + ":" + port ;
this.port=port;
this.file=file;
this.ref=ref;
this.hashCode=-1;
var q=file.lastIndexOf$I("?");
if (q != -1) {
this.query=file.substring$I(q + 1);
this.path=file.substring$I$I(0, q);
} else this.path=file;
}});
Clazz_newMeth(C$, 'set$S$S$I$S$S$S$S$S', function (protocol, host, port, authority, userInfo, path, query, ref) {
{
this.protocol=protocol;
this.host=host;
this.port=port;
this.file=query == null ? path : path + "?" + query ;
this.userInfo=userInfo;
this.path=path;
this.ref=ref;
this.hashCode=-1;
this.query=query;
this.authority=authority;
}});
Clazz_newMeth(C$, 'getQuery$', function () {
return this.query;
});
Clazz_newMeth(C$, 'getPath$', function () {
return this.path;
});
Clazz_newMeth(C$, 'getUserInfo$', function () {
return this.userInfo;
});
Clazz_newMeth(C$, 'getAuthority$', function () {
return this.authority;
});
Clazz_newMeth(C$, 'getPort$', function () {
return this.port;
});
Clazz_newMeth(C$, 'getDefaultPort$', function () {
return this.handler.getDefaultPort$();
});
Clazz_newMeth(C$, 'getProtocol$', function () {
return this.protocol;
});
Clazz_newMeth(C$, 'getHost$', function () {
return this.host;
});
Clazz_newMeth(C$, 'getFile$', function () {
return this.file;
});
Clazz_newMeth(C$, 'getRef$', function () {
return this.ref;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (!(Clazz_instanceOf(obj, "java.net.URL"))) return false;
var u2=obj;
return this.handler.equals2$java_net_URL$java_net_URL(this, u2);
});
Clazz_newMeth(C$, 'hashCode$', function () {
if (this.hashCode != -1) return this.hashCode;
this.hashCode=this.handler.hashCode$java_net_URL(this);
return this.hashCode;
});
Clazz_newMeth(C$, 'sameFile$java_net_URL', function (other) {
return this.handler.sameFile$java_net_URL$java_net_URL(this, other);
});
Clazz_newMeth(C$, 'toString', function () {
return this.toExternalForm$();
});
Clazz_newMeth(C$, 'toExternalForm$', function () {
return this.handler.toExternalForm$java_net_URL(this);
});
Clazz_newMeth(C$, 'openConnection$', function () {
return this.handler.openConnection$java_net_URL(this);
});
Clazz_newMeth(C$, 'openStream$', function () {
return this.openConnection$().getInputStream$();
});
Clazz_newMeth(C$, 'getContent$', function () {
var bis=$I$(3).getAttachedStreamData$java_net_URL$Z(this, false);
return (bis == null ? this.openConnection$().getInputStream$() : bis);
});
Clazz_newMeth(C$, 'setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory', function (fac) {
{
if (C$.factory != null ) {
throw Clazz_new_($I$(4).c$$S,["factory already defined"]);
}var security=System.getSecurityManager$();
if (security != null ) {
security.checkSetFactory$();
}C$.handlers.clear$();
C$.factory=fac;
}}, 1);
Clazz_newMeth(C$, 'getURLStreamHandler$S', function (protocol) {
var handler=C$.handlers.get$O(protocol);
if (handler == null ) {
if (C$.factory == null ) {
try {
C$.setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory(Clazz_forName("javajs.util.AjaxURLStreamHandlerFactory").newInstance$());
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
} else {
throw e;
}
}
}if (C$.factory != null ) {
handler=C$.factory.createURLStreamHandler$(protocol);
}}return handler;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:49 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.net"),I$=[];
var C$=Clazz_newInterface(P$, "URLStreamHandlerFactory");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:49 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),I$=[];
var C$=Clazz_newInterface(P$, "CharacterIterator", null, null, 'Cloneable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,'java.text.FieldPosition','java.util.Hashtable','java.text.DigitList','java.util.Locale','sun.util.resources.LocaleData','java.text.DecimalFormatSymbols',['java.text.NumberFormat','.Field'],'java.text.CharacterIteratorFieldDelegate','StringBuffer','java.text.ParsePosition','InternalError','java.util.ArrayList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DecimalFormat", null, 'java.text.NumberFormat');
C$.EmptyFieldPositionArray=null;
C$.$cachedLocaleData=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EmptyFieldPositionArray=Clazz_array($I$(1), [0]);
C$.$cachedLocaleData=Clazz_new_($I$(2).c$$I,[3]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.digitList=null;
this.positivePrefix=null;
this.positiveSuffix=null;
this.negativePrefix=null;
this.negativeSuffix=null;
this.posPrefixPattern=null;
this.posSuffixPattern=null;
this.negPrefixPattern=null;
this.negSuffixPattern=null;
this.multiplier=0;
this.groupingSize=0;
this.decimalSeparatorAlwaysShown=false;
this.parseBigDecimal=false;
this.isCurrencyFormat=false;
this.symbols=null;
this.useExponentialNotation=false;
this.positivePrefixFieldPositions=null;
this.positiveSuffixFieldPositions=null;
this.negativePrefixFieldPositions=null;
this.negativeSuffixFieldPositions=null;
this.minExponentDigits=0;
this.$maximumIntegerDigits=0;
this.$minimumIntegerDigits=0;
this.$maximumFractionDigits=0;
this.$minimumFractionDigits=0;
this.roundingMode=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.digitList=Clazz_new_($I$(3));
this.positivePrefix="";
this.positiveSuffix="";
this.negativePrefix="-";
this.negativeSuffix="";
this.multiplier=1;
this.groupingSize=($b$[0] = 3, $b$[0]);
this.decimalSeparatorAlwaysShown=false;
this.parseBigDecimal=false;
this.isCurrencyFormat=false;
this.symbols=null;
this.$maximumIntegerDigits=C$.superclazz.prototype.getMaximumIntegerDigits$.apply(this, []);
this.$minimumIntegerDigits=C$.superclazz.prototype.getMinimumIntegerDigits$.apply(this, []);
this.$maximumFractionDigits=C$.superclazz.prototype.getMaximumFractionDigits$.apply(this, []);
this.$minimumFractionDigits=C$.superclazz.prototype.getMinimumFractionDigits$.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
var def=$I$(4).getDefault$();
var pattern=C$.$cachedLocaleData.get$O(def);
if (pattern == null ) {
var rb=$I$(5).getNumberFormatData$java_util_Locale(def);
var all=rb.getStringArray$S("NumberPatterns");
pattern=all[0];
C$.$cachedLocaleData.put$TK$TV(def, pattern);
}this.symbols=Clazz_new_($I$(6).c$$java_util_Locale,[def]);
p$1.applyPattern$S$Z.apply(this, [pattern, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (pattern) {
Clazz_super_(C$, this,1);
this.symbols=Clazz_new_($I$(6).c$$java_util_Locale,[$I$(4).getDefault$()]);
p$1.applyPattern$S$Z.apply(this, [pattern, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S$java_text_DecimalFormatSymbols', function (pattern, symbols) {
Clazz_super_(C$, this,1);
this.symbols=symbols.clone$();
p$1.applyPattern$S$Z.apply(this, [pattern, false]);
}, 1);
Clazz_newMeth(C$, 'format$O$StringBuffer$java_text_FieldPosition', function (number, toAppendTo, pos) {
if (Clazz_instanceOf(number, "java.lang.Long") || Clazz_instanceOf(number, "java.lang.Integer") || Clazz_instanceOf(number, "java.lang.Short") || Clazz_instanceOf(number, "java.lang.Byte") ) {
return this.format$J$StringBuffer$java_text_FieldPosition((number).longValue$(), toAppendTo, pos);
} else if (Clazz_instanceOf(number, "java.lang.Number")) {
return this.format$D$StringBuffer$java_text_FieldPosition((number).doubleValue$(), toAppendTo, pos);
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Cannot format given Object as a Number"]);
}});
Clazz_newMeth(C$, 'format$D$StringBuffer$java_text_FieldPosition', function (number, result, fieldPosition) {
fieldPosition.setBeginIndex$I(0);
fieldPosition.setEndIndex$I(0);
var isInt=(number == (number|0) && Math.abs(number) < 2147483647 );
if (isInt) return p$1.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this, [(number|0), result, fieldPosition.getFieldDelegate$()]);
else return p$1.formatDouble$D$StringBuffer$java_text_Format_FieldDelegate.apply(this, [number, result, fieldPosition.getFieldDelegate$()]);
});
Clazz_newMeth(C$, 'formatDouble$D$StringBuffer$java_text_Format_FieldDelegate', function (number, result, delegate) {
if (Double.isNaN$D(number) || (Double.isInfinite$D(number) && this.multiplier == 0 ) ) {
var iFieldStart=result.length$();
result.append$S(this.symbols.getNaN$());
delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, result.length$(), result);
return result;
}var isNegative=!!(((number < 0.0 ) || (number == 0.0 && 1 / number < 0.0 ) ) ^ (this.multiplier < 0));
if (this.multiplier != 1) {
number *= this.multiplier;
}if (Double.isInfinite$D(number)) {
if (isNegative) {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativePrefix, delegate, p$1.getNegativePrefixFieldPositions.apply(this, []), $I$(7).SIGN]);
} else {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positivePrefix, delegate, p$1.getPositivePrefixFieldPositions.apply(this, []), $I$(7).SIGN]);
}var iFieldStart=result.length$();
result.append$S(this.symbols.getInfinity$());
delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, result.length$(), result);
if (isNegative) {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativeSuffix, delegate, p$1.getNegativeSuffixFieldPositions.apply(this, []), $I$(7).SIGN]);
} else {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positiveSuffix, delegate, p$1.getPositiveSuffixFieldPositions.apply(this, []), $I$(7).SIGN]);
}return result;
}if (isNegative) {
number=-number;
}Clazz_assert(C$, this, function(){return (number >= 0 && !Double.isInfinite$D(number) )});
{
var maxIntDigits=C$.superclazz.prototype.getMaximumIntegerDigits$.apply(this, []);
var minIntDigits=C$.superclazz.prototype.getMinimumIntegerDigits$.apply(this, []);
var maxFraDigits=C$.superclazz.prototype.getMaximumFractionDigits$.apply(this, []);
var minFraDigits=C$.superclazz.prototype.getMinimumFractionDigits$.apply(this, []);
this.digitList.set$Z$D$I$Z(isNegative, number, this.useExponentialNotation ? maxIntDigits + maxFraDigits : maxFraDigits, !this.useExponentialNotation);
return p$1.subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I.apply(this, [result, delegate, isNegative, false, maxIntDigits, minIntDigits, maxFraDigits, minFraDigits]);
}}, p$1);
Clazz_newMeth(C$, 'format$J$StringBuffer$java_text_FieldPosition', function (number, result, fieldPosition) {
fieldPosition.setBeginIndex$I(0);
fieldPosition.setEndIndex$I(0);
return p$1.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this, [number, result, fieldPosition.getFieldDelegate$()]);
});
Clazz_newMeth(C$, 'formatLong$J$StringBuffer$java_text_Format_FieldDelegate', function (number, result, delegate) {
var isNegative=(number < 0);
if (isNegative) {
number=-number;
}if (number < 0) {
} else if (this.multiplier != 1 && this.multiplier != 0 ) {
var cutoff=(9223372036854775807/this.multiplier|0);
if (cutoff < 0) {
cutoff=-cutoff;
}}number*=this.multiplier;
if (number == 0) {
isNegative=false;
} else {
if (this.multiplier < 0) {
number=-number;
isNegative=!isNegative;
}}{
var maxIntDigits=C$.superclazz.prototype.getMaximumIntegerDigits$.apply(this, []);
var minIntDigits=C$.superclazz.prototype.getMinimumIntegerDigits$.apply(this, []);
var maxFraDigits=C$.superclazz.prototype.getMaximumFractionDigits$.apply(this, []);
var minFraDigits=C$.superclazz.prototype.getMinimumFractionDigits$.apply(this, []);
this.digitList.setLong$Z$J$I(isNegative, number, this.useExponentialNotation ? maxIntDigits + maxFraDigits : 0);
return p$1.subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I.apply(this, [result, delegate, isNegative, true, maxIntDigits, minIntDigits, maxFraDigits, minFraDigits]);
}}, p$1);
Clazz_newMeth(C$, 'formatToCharacterIterator$O', function (obj) {
var delegate=Clazz_new_($I$(8));
var sb=Clazz_new_($I$(9));
if (Clazz_instanceOf(obj, "java.lang.Double") || Clazz_instanceOf(obj, "java.lang.Float") ) {
p$1.formatDouble$D$StringBuffer$java_text_Format_FieldDelegate.apply(this, [(obj).doubleValue$(), sb, delegate]);
} else if (Clazz_instanceOf(obj, "java.lang.Long") || Clazz_instanceOf(obj, "java.lang.Integer") || Clazz_instanceOf(obj, "java.lang.Short") || Clazz_instanceOf(obj, "java.lang.Byte") ) {
p$1.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this, [(obj).longValue$(), sb, delegate]);
} else if (obj == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["formatToCharacterIterator must be passed non-null object"]);
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Cannot format given Object as a Number"]);
}return delegate.getIterator$S(sb.toString());
});
Clazz_newMeth(C$, 'subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I', function (result, delegate, isNegative, isInteger, maxIntDigits, minIntDigits, maxFraDigits, minFraDigits) {
var zero=this.symbols.getZeroDigit$();
var zeroDelta=zero.$c() - 48;
var grouping=this.symbols.getGroupingSeparator$();
var decimal=this.isCurrencyFormat ? this.symbols.getMonetaryDecimalSeparator$() : this.symbols.getDecimalSeparator$();
if (this.digitList.isZero$()) {
this.digitList.decimalAt=0;
}if (isNegative) {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativePrefix, delegate, p$1.getNegativePrefixFieldPositions.apply(this, []), $I$(7).SIGN]);
} else {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positivePrefix, delegate, p$1.getPositivePrefixFieldPositions.apply(this, []), $I$(7).SIGN]);
}if (this.useExponentialNotation) {
var iFieldStart=result.length$();
var iFieldEnd=-1;
var fFieldStart=-1;
var exponent=this.digitList.decimalAt;
var repeat=maxIntDigits;
var minimumIntegerDigits=minIntDigits;
if (repeat > 1 && repeat > minIntDigits ) {
if (exponent >= 1) {
exponent=(((exponent - 1)/repeat|0)) * repeat;
} else {
exponent=(((exponent - repeat)/repeat|0)) * repeat;
}minimumIntegerDigits=1;
} else {
exponent-=minimumIntegerDigits;
}var minimumDigits=minIntDigits + minFraDigits;
if (minimumDigits < 0) {
minimumDigits=2147483647;
}var integerDigits=this.digitList.isZero$() ? minimumIntegerDigits : this.digitList.decimalAt - exponent;
if (minimumDigits < integerDigits) {
minimumDigits=integerDigits;
}var totalDigits=this.digitList.count;
if (minimumDigits > totalDigits) {
totalDigits=minimumDigits;
}var addedDecimalSeparator=false;
for (var i=0; i < totalDigits; ++i) {
if (i == integerDigits) {
iFieldEnd=result.length$();
result.append$C(decimal);
addedDecimalSeparator=true;
fFieldStart=result.length$();
}result.append$C((i < this.digitList.count) ? String.fromCharCode(((this.digitList.digits[i]).$c() + zeroDelta)) : zero);
}
if (this.decimalSeparatorAlwaysShown && totalDigits == integerDigits ) {
iFieldEnd=result.length$();
result.append$C(decimal);
addedDecimalSeparator=true;
fFieldStart=result.length$();
}if (iFieldEnd == -1) {
iFieldEnd=result.length$();
}delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, iFieldEnd, result);
if (addedDecimalSeparator) {
delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).DECIMAL_SEPARATOR, $I$(7).DECIMAL_SEPARATOR, iFieldEnd, fFieldStart, result);
}if (fFieldStart == -1) {
fFieldStart=result.length$();
}delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(1, $I$(7).FRACTION, $I$(7).FRACTION, fFieldStart, result.length$(), result);
var fieldStart=result.length$();
result.append$S(this.symbols.getExponentSeparator$());
delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).EXPONENT_SYMBOL, $I$(7).EXPONENT_SYMBOL, fieldStart, result.length$(), result);
if (this.digitList.isZero$()) {
exponent=0;
}var negativeExponent=exponent < 0;
if (negativeExponent) {
exponent=-exponent;
fieldStart=result.length$();
result.append$C(this.symbols.getMinusSign$());
delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).EXPONENT_SIGN, $I$(7).EXPONENT_SIGN, fieldStart, result.length$(), result);
}this.digitList.setExp$Z$J(negativeExponent, exponent);
var eFieldStart=result.length$();
for (var i=this.digitList.decimalAt; i < this.minExponentDigits; ++i) {
result.append$C(zero);
}
for (var i=0; i < this.digitList.decimalAt; ++i) {
result.append$C((i < this.digitList.count) ? String.fromCharCode(((this.digitList.digits[i]).$c() + zeroDelta)) : zero);
}
delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).EXPONENT, $I$(7).EXPONENT, eFieldStart, result.length$(), result);
} else {
var iFieldStart=result.length$();
var count=minIntDigits;
var digitIndex=0;
if (this.digitList.decimalAt > 0 && count < this.digitList.decimalAt ) {
count=this.digitList.decimalAt;
}if (count > maxIntDigits) {
count=maxIntDigits;
digitIndex=this.digitList.decimalAt - count;
}var sizeBeforeIntegerPart=result.length$();
for (var i=count - 1; i >= 0; --i) {
if (i < this.digitList.decimalAt && digitIndex < this.digitList.count ) {
result.append$C(String.fromCharCode(((this.digitList.digits[digitIndex++]).$c() + zeroDelta)));
} else {
result.append$C(zero);
}if (this.isGroupingUsed$() && i > 0 && (this.groupingSize != 0) && (i % this.groupingSize == 0) ) {
var gStart=result.length$();
result.append$C(grouping);
delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).GROUPING_SEPARATOR, $I$(7).GROUPING_SEPARATOR, gStart, result.length$(), result);
}}
var fractionPresent=(minFraDigits > 0) || (!isInteger && digitIndex < this.digitList.count ) ;
if (!fractionPresent && result.length$() == sizeBeforeIntegerPart ) {
result.append$C(zero);
}delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, result.length$(), result);
var sStart=result.length$();
if (this.decimalSeparatorAlwaysShown || fractionPresent ) {
result.append$C(decimal);
}if (sStart != result.length$()) {
delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).DECIMAL_SEPARATOR, $I$(7).DECIMAL_SEPARATOR, sStart, result.length$(), result);
}var fFieldStart=result.length$();
for (var i=0; i < maxFraDigits; ++i) {
if (i >= minFraDigits && (isInteger || digitIndex >= this.digitList.count ) ) {
break;
}if (-1 - i > (this.digitList.decimalAt - 1)) {
result.append$C(zero);
continue;
}if (!isInteger && digitIndex < this.digitList.count ) {
result.append$C(String.fromCharCode(((this.digitList.digits[digitIndex++]).$c() + zeroDelta)));
} else {
result.append$C(zero);
}}
delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(1, $I$(7).FRACTION, $I$(7).FRACTION, fFieldStart, result.length$(), result);
}if (isNegative) {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativeSuffix, delegate, p$1.getNegativeSuffixFieldPositions.apply(this, []), $I$(7).SIGN]);
} else {
p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positiveSuffix, delegate, p$1.getPositiveSuffixFieldPositions.apply(this, []), $I$(7).SIGN]);
}return result;
}, p$1);
Clazz_newMeth(C$, 'append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field', function (result, string, delegate, positions, signAttribute) {
var start=result.length$();
if (string.length$() > 0) {
result.append$S(string);
for (var counter=0, max=positions.length; counter < max; counter++) {
var fp=positions[counter];
var attribute=fp.getFieldAttribute$();
if (attribute === $I$(7).SIGN ) {
attribute=signAttribute;
}delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer(attribute, attribute, start + fp.getBeginIndex$(), start + fp.getEndIndex$(), result);
}
}}, p$1);
Clazz_newMeth(C$, 'parse$S$java_text_ParsePosition', function (text, pos) {
if (text.regionMatches$I$S$I$I(pos.index, this.symbols.getNaN$(), 0, this.symbols.getNaN$().length$())) {
pos.index=pos.index + this.symbols.getNaN$().length$();
return new Double(NaN);
}var status=Clazz_array(Boolean.TYPE, [2]);
if (!p$1.subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA.apply(this, [text, pos, this.positivePrefix, this.negativePrefix, this.digitList, false, status])) {
return null;
}if (status[0]) {
if (status[1] == (this.multiplier >= 0) ) {
return new Double(Infinity);
} else {
return new Double(-Infinity);
}}if (this.multiplier == 0) {
if (this.digitList.isZero$()) {
return new Double(NaN);
} else if (status[1]) {
return new Double(Infinity);
} else {
return new Double(-Infinity);
}}var gotDouble=true;
var gotLongMinimum=false;
var doubleResult=0.0;
var longResult=0;
if (this.digitList.fitsIntoLong$Z$Z(status[1], this.isParseIntegerOnly$())) {
gotDouble=false;
longResult=this.digitList.getLong$();
if (longResult < 0) {
gotLongMinimum=true;
}} else {
doubleResult=this.digitList.getDouble$();
}if (this.multiplier != 1) {
if (gotDouble) {
doubleResult /= this.multiplier;
} else {
if (longResult % this.multiplier == 0) {
longResult=(longResult/this.multiplier|0);
} else {
doubleResult=(longResult) / this.multiplier;
gotDouble=true;
}}}if (!status[1] && !gotLongMinimum ) {
doubleResult=-doubleResult;
longResult=-longResult;
}if (this.multiplier != 1 && gotDouble ) {
longResult=(doubleResult|0);
gotDouble=((doubleResult != longResult ) || (doubleResult == 0.0 && 1 / doubleResult < 0.0 ) ) && !this.isParseIntegerOnly$() ;
}return gotDouble ? new Double(doubleResult) : new Long(longResult);
});
Clazz_newMeth(C$, 'subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA', function (text, parsePosition, positivePrefix, negativePrefix, digits, isExponent, status) {
var position=parsePosition.index;
var oldStart=parsePosition.index;
var backup;
var gotPositive;
var gotNegative;
gotPositive=text.regionMatches$I$S$I$I(position, positivePrefix, 0, positivePrefix.length$());
gotNegative=text.regionMatches$I$S$I$I(position, negativePrefix, 0, negativePrefix.length$());
if (gotPositive && gotNegative ) {
if (positivePrefix.length$() > negativePrefix.length$()) {
gotNegative=false;
} else if (positivePrefix.length$() < negativePrefix.length$()) {
gotPositive=false;
}}if (gotPositive) {
position+=positivePrefix.length$();
} else if (gotNegative) {
position+=negativePrefix.length$();
} else {
parsePosition.errorIndex=position;
return false;
}status[0]=false;
if (!isExponent && text.regionMatches$I$S$I$I(position, this.symbols.getInfinity$(), 0, this.symbols.getInfinity$().length$()) ) {
position+=this.symbols.getInfinity$().length$();
status[0]=true;
} else {
digits.decimalAt=digits.count=0;
var zero=this.symbols.getZeroDigit$();
var decimal=this.isCurrencyFormat ? this.symbols.getMonetaryDecimalSeparator$() : this.symbols.getDecimalSeparator$();
var grouping=this.symbols.getGroupingSeparator$();
var exponentString=this.symbols.getExponentSeparator$();
var sawDecimal=false;
var sawExponent=false;
var sawDigit=false;
var exponent=0;
var digitCount=0;
backup=-1;
for (; position < text.length$(); ++position) {
var ch=text.charAt$I(position);
var digit=ch.$c() - zero.$c();
if (digit < 0 || digit > 9 ) {
digit=Character.digit$C$I(ch, 10);
}if (digit == 0) {
backup=-1;
sawDigit=true;
if (digits.count == 0) {
if (!sawDecimal) {
continue;
}--digits.decimalAt;
} else {
++digitCount;
digits.append$C(String.fromCharCode((digit + 48)));
}} else if (digit > 0 && digit <= 9 ) {
sawDigit=true;
++digitCount;
digits.append$C(String.fromCharCode((digit + 48)));
backup=-1;
} else if (!isExponent && ch == decimal ) {
if (this.isParseIntegerOnly$() || sawDecimal ) {
break;
}digits.decimalAt=digitCount;
sawDecimal=true;
} else if (!isExponent && ch == grouping && this.isGroupingUsed$() ) {
if (sawDecimal) {
break;
}backup=position;
} else if (!isExponent && text.regionMatches$I$S$I$I(position, exponentString, 0, exponentString.length$()) && !sawExponent ) {
var pos=Clazz_new_($I$(10).c$$I,[position + exponentString.length$()]);
var stat=Clazz_array(Boolean.TYPE, [2]);
var exponentDigits=Clazz_new_($I$(3));
if (p$1.subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA.apply(this, [text, pos, "", Character.toString$C(this.symbols.getMinusSign$()), exponentDigits, true, stat]) && exponentDigits.fitsIntoLong$Z$Z(stat[1], true) ) {
position=pos.index;
exponent=(exponentDigits.getLong$()|0);
if (!stat[1]) {
exponent=-exponent;
}sawExponent=true;
}break;
} else {
break;
}}
if (backup != -1) {
position=backup;
}if (!sawDecimal) {
digits.decimalAt=digitCount;
}digits.decimalAt+=exponent;
if (!sawDigit && digitCount == 0 ) {
parsePosition.index=oldStart;
parsePosition.errorIndex=oldStart;
return false;
}}if (!isExponent) {
if (gotPositive) {
gotPositive=text.regionMatches$I$S$I$I(position, this.positiveSuffix, 0, this.positiveSuffix.length$());
}if (gotNegative) {
gotNegative=text.regionMatches$I$S$I$I(position, this.negativeSuffix, 0, this.negativeSuffix.length$());
}if (gotPositive && gotNegative ) {
if (this.positiveSuffix.length$() > this.negativeSuffix.length$()) {
gotNegative=false;
} else if (this.positiveSuffix.length$() < this.negativeSuffix.length$()) {
gotPositive=false;
}}if (gotPositive == gotNegative ) {
parsePosition.errorIndex=position;
return false;
}parsePosition.index=position + (gotPositive ? this.positiveSuffix.length$() : this.negativeSuffix.length$());
} else {
parsePosition.index=position;
}status[1]=gotPositive;
if (parsePosition.index == oldStart) {
parsePosition.errorIndex=position;
return false;
}return true;
}, p$1);
Clazz_newMeth(C$, 'getDecimalFormatSymbols$', function () {
try {
return this.symbols.clone$();
} catch (foo) {
if (Clazz_exceptionOf(foo,"Exception")){
return null;
} else {
throw foo;
}
}
});
Clazz_newMeth(C$, 'setDecimalFormatSymbols$java_text_DecimalFormatSymbols', function (newSymbols) {
try {
this.symbols=newSymbols.clone$();
p$1.expandAffixes.apply(this, []);
} catch (foo) {
if (Clazz_exceptionOf(foo,"Exception")){
} else {
throw foo;
}
}
});
Clazz_newMeth(C$, 'getPositivePrefix$', function () {
return this.positivePrefix;
});
Clazz_newMeth(C$, 'setPositivePrefix$S', function (newValue) {
this.positivePrefix=newValue;
this.posPrefixPattern=null;
this.positivePrefixFieldPositions=null;
});
Clazz_newMeth(C$, 'getPositivePrefixFieldPositions', function () {
if (this.positivePrefixFieldPositions == null ) {
if (this.posPrefixPattern != null ) {
this.positivePrefixFieldPositions=p$1.expandAffix$S.apply(this, [this.posPrefixPattern]);
} else {
this.positivePrefixFieldPositions=C$.EmptyFieldPositionArray;
}}return this.positivePrefixFieldPositions;
}, p$1);
Clazz_newMeth(C$, 'getNegativePrefix$', function () {
return this.negativePrefix;
});
Clazz_newMeth(C$, 'setNegativePrefix$S', function (newValue) {
this.negativePrefix=newValue;
this.negPrefixPattern=null;
});
Clazz_newMeth(C$, 'getNegativePrefixFieldPositions', function () {
if (this.negativePrefixFieldPositions == null ) {
if (this.negPrefixPattern != null ) {
this.negativePrefixFieldPositions=p$1.expandAffix$S.apply(this, [this.negPrefixPattern]);
} else {
this.negativePrefixFieldPositions=C$.EmptyFieldPositionArray;
}}return this.negativePrefixFieldPositions;
}, p$1);
Clazz_newMeth(C$, 'getPositiveSuffix$', function () {
return this.positiveSuffix;
});
Clazz_newMeth(C$, 'setPositiveSuffix$S', function (newValue) {
this.positiveSuffix=newValue;
this.posSuffixPattern=null;
});
Clazz_newMeth(C$, 'getPositiveSuffixFieldPositions', function () {
if (this.positiveSuffixFieldPositions == null ) {
if (this.posSuffixPattern != null ) {
this.positiveSuffixFieldPositions=p$1.expandAffix$S.apply(this, [this.posSuffixPattern]);
} else {
this.positiveSuffixFieldPositions=C$.EmptyFieldPositionArray;
}}return this.positiveSuffixFieldPositions;
}, p$1);
Clazz_newMeth(C$, 'getNegativeSuffix$', function () {
return this.negativeSuffix;
});
Clazz_newMeth(C$, 'setNegativeSuffix$S', function (newValue) {
this.negativeSuffix=newValue;
this.negSuffixPattern=null;
});
Clazz_newMeth(C$, 'getNegativeSuffixFieldPositions', function () {
if (this.negativeSuffixFieldPositions == null ) {
if (this.negSuffixPattern != null ) {
this.negativeSuffixFieldPositions=p$1.expandAffix$S.apply(this, [this.negSuffixPattern]);
} else {
this.negativeSuffixFieldPositions=C$.EmptyFieldPositionArray;
}}return this.negativeSuffixFieldPositions;
}, p$1);
Clazz_newMeth(C$, 'getMultiplier$', function () {
return this.multiplier;
});
Clazz_newMeth(C$, 'setMultiplier$I', function (newValue) {
this.multiplier=newValue;
});
Clazz_newMeth(C$, 'getGroupingSize$', function () {
return this.groupingSize;
});
Clazz_newMeth(C$, 'setGroupingSize$I', function (newValue) {
this.groupingSize=($b$[0] = (newValue|0), $b$[0]);
});
Clazz_newMeth(C$, 'isDecimalSeparatorAlwaysShown$', function () {
return this.decimalSeparatorAlwaysShown;
});
Clazz_newMeth(C$, 'setDecimalSeparatorAlwaysShown$Z', function (newValue) {
this.decimalSeparatorAlwaysShown=newValue;
});
Clazz_newMeth(C$, 'isParseBigDecimal$', function () {
return this.parseBigDecimal;
});
Clazz_newMeth(C$, 'setParseBigDecimal$Z', function (newValue) {
this.parseBigDecimal=newValue;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var other=C$.superclazz.prototype.clone$.apply(this, []);
other.symbols=this.symbols.clone$();
other.digitList=this.digitList.clone$();
return other;
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
throw Clazz_new_($I$(11));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (obj == null ) return false;
if (!C$.superclazz.prototype.equals$O.apply(this, [obj])) return false;
var other=obj;
return ((this.posPrefixPattern == other.posPrefixPattern && this.positivePrefix.equals$O(other.positivePrefix) ) || (this.posPrefixPattern != null && this.posPrefixPattern.equals$O(other.posPrefixPattern) ) ) && ((this.posSuffixPattern == other.posSuffixPattern && this.positiveSuffix.equals$O(other.positiveSuffix) ) || (this.posSuffixPattern != null && this.posSuffixPattern.equals$O(other.posSuffixPattern) ) ) && ((this.negPrefixPattern == other.negPrefixPattern && this.negativePrefix.equals$O(other.negativePrefix) ) || (this.negPrefixPattern != null && this.negPrefixPattern.equals$O(other.negPrefixPattern) ) ) && ((this.negSuffixPattern == other.negSuffixPattern && this.negativeSuffix.equals$O(other.negativeSuffix) ) || (this.negSuffixPattern != null && this.negSuffixPattern.equals$O(other.negSuffixPattern) ) ) && this.multiplier == other.multiplier && this.groupingSize == other.groupingSize && this.decimalSeparatorAlwaysShown == other.decimalSeparatorAlwaysShown && this.parseBigDecimal == other.parseBigDecimal && this.useExponentialNotation == other.useExponentialNotation && (!this.useExponentialNotation || this.minExponentDigits == other.minExponentDigits ) && this.$maximumIntegerDigits == other.$maximumIntegerDigits && this.$minimumIntegerDigits == other.$minimumIntegerDigits && this.$maximumFractionDigits == other.$maximumFractionDigits && this.$minimumFractionDigits == other.$minimumFractionDigits && this.roundingMode === other.roundingMode && this.symbols.equals$O(other.symbols) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return C$.superclazz.prototype.hashCode$.apply(this, []) * 37 + this.positivePrefix.hashCode$();
});
Clazz_newMeth(C$, 'toPattern$', function () {
return p$1.toPattern$Z.apply(this, [false]);
});
Clazz_newMeth(C$, 'toLocalizedPattern$', function () {
return p$1.toPattern$Z.apply(this, [true]);
});
Clazz_newMeth(C$, 'expandAffixes', function () {
var buffer=Clazz_new_($I$(9));
if (this.posPrefixPattern != null ) {
this.positivePrefix=p$1.expandAffix$S$StringBuffer.apply(this, [this.posPrefixPattern, buffer]);
this.positivePrefixFieldPositions=null;
}if (this.posSuffixPattern != null ) {
this.positiveSuffix=p$1.expandAffix$S$StringBuffer.apply(this, [this.posSuffixPattern, buffer]);
this.positiveSuffixFieldPositions=null;
}if (this.negPrefixPattern != null ) {
this.negativePrefix=p$1.expandAffix$S$StringBuffer.apply(this, [this.negPrefixPattern, buffer]);
this.negativePrefixFieldPositions=null;
}if (this.negSuffixPattern != null ) {
this.negativeSuffix=p$1.expandAffix$S$StringBuffer.apply(this, [this.negSuffixPattern, buffer]);
this.negativeSuffixFieldPositions=null;
}}, p$1);
Clazz_newMeth(C$, 'expandAffix$S$StringBuffer', function (pattern, buffer) {
buffer.setLength$I(0);
for (var i=0; i < pattern.length$(); ) {
var c=pattern.charAt$I(i++);
if (c == "\'") {
c=pattern.charAt$I(i++);
switch (c.$c()) {
case 164:
if (i < pattern.length$() && pattern.charAt$I(i) == "\u00a4" ) {
++i;
buffer.append$S(this.symbols.getInternationalCurrencySymbol$());
} else {
buffer.append$S(this.symbols.getCurrencySymbol$());
}continue;
case 37:
c=this.symbols.getPercent$();
break;
case 8240:
c=this.symbols.getPerMill$();
break;
case 45:
c=this.symbols.getMinusSign$();
break;
}
}buffer.append$C(c);
}
return buffer.toString();
}, p$1);
Clazz_newMeth(C$, 'expandAffix$S', function (pattern) {
var positions=null;
var stringIndex=0;
for (var i=0; i < pattern.length$(); ) {
var c=pattern.charAt$I(i++);
if (c == "\'") {
var field=-1;
var fieldID=null;
c=pattern.charAt$I(i++);
switch (c.$c()) {
case 164:
var string;
if (i < pattern.length$() && pattern.charAt$I(i) == "\u00a4" ) {
++i;
string=this.symbols.getInternationalCurrencySymbol$();
} else {
string=this.symbols.getCurrencySymbol$();
}if (string.length$() > 0) {
if (positions == null ) {
positions=Clazz_new_($I$(12).c$$I,[2]);
}var fp=Clazz_new_($I$(1).c$$java_text_Format_Field,[$I$(7).CURRENCY]);
fp.setBeginIndex$I(stringIndex);
fp.setEndIndex$I(stringIndex + string.length$());
positions.add$TE(fp);
stringIndex+=string.length$();
}continue;
case 37:
c=this.symbols.getPercent$();
field=-1;
fieldID=$I$(7).PERCENT;
break;
case 8240:
c=this.symbols.getPerMill$();
field=-1;
fieldID=$I$(7).PERMILLE;
break;
case 45:
c=this.symbols.getMinusSign$();
field=-1;
fieldID=$I$(7).SIGN;
break;
}
if (fieldID != null ) {
if (positions == null ) {
positions=Clazz_new_($I$(12).c$$I,[2]);
}var fp=Clazz_new_($I$(1).c$$java_text_Format_Field$I,[fieldID, field]);
fp.setBeginIndex$I(stringIndex);
fp.setEndIndex$I(stringIndex + 1);
positions.add$TE(fp);
}}stringIndex++;
}
if (positions != null ) {
return positions.toArray$TTA(C$.EmptyFieldPositionArray);
}return C$.EmptyFieldPositionArray;
}, p$1);
Clazz_newMeth(C$, 'appendAffix$StringBuffer$S$S$Z', function (buffer, affixPattern, expAffix, localized) {
if (affixPattern == null ) {
p$1.appendAffix$StringBuffer$S$Z.apply(this, [buffer, expAffix, localized]);
} else {
var i;
for (var pos=0; pos < affixPattern.length$(); pos=i) {
i=affixPattern.indexOf$I$I("\'", pos);
if (i < 0) {
p$1.appendAffix$StringBuffer$S$Z.apply(this, [buffer, affixPattern.substring$I(pos), localized]);
break;
}if (i > pos) {
p$1.appendAffix$StringBuffer$S$Z.apply(this, [buffer, affixPattern.substring$I$I(pos, i), localized]);
}var c=affixPattern.charAt$I(++i);
++i;
if (c == "\'") {
buffer.append$C(c);
} else if (c == "\u00a4" && i < affixPattern.length$() && affixPattern.charAt$I(i) == "\u00a4" ) {
++i;
buffer.append$C(c);
} else if (localized) {
switch (c.$c()) {
case 37:
c=this.symbols.getPercent$();
break;
case 8240:
c=this.symbols.getPerMill$();
break;
case 45:
c=this.symbols.getMinusSign$();
break;
}
}buffer.append$C(c);
}
}}, p$1);
Clazz_newMeth(C$, 'appendAffix$StringBuffer$S$Z', function (buffer, affix, localized) {
var needQuote;
if (localized) {
needQuote=affix.indexOf$I(this.symbols.getZeroDigit$()) >= 0 || affix.indexOf$I(this.symbols.getGroupingSeparator$()) >= 0 || affix.indexOf$I(this.symbols.getDecimalSeparator$()) >= 0 || affix.indexOf$I(this.symbols.getPercent$()) >= 0 || affix.indexOf$I(this.symbols.getPerMill$()) >= 0 || affix.indexOf$I(this.symbols.getDigit$()) >= 0 || affix.indexOf$I(this.symbols.getPatternSeparator$()) >= 0 || affix.indexOf$I(this.symbols.getMinusSign$()) >= 0 || affix.indexOf$I("\u00a4") >= 0 ;
} else {
needQuote=affix.indexOf$I("0") >= 0 || affix.indexOf$I(",") >= 0 || affix.indexOf$I(".") >= 0 || affix.indexOf$I("%") >= 0 || affix.indexOf$I("\u2030") >= 0 || affix.indexOf$I("#") >= 0 || affix.indexOf$I(";") >= 0 || affix.indexOf$I("-") >= 0 || affix.indexOf$I("\u00a4") >= 0 ;
}if (needQuote) buffer.append$C("\'");
if (affix.indexOf$I("\'") < 0) buffer.append$S(affix);
else {
for (var j=0; j < affix.length$(); ++j) {
var c=affix.charAt$I(j);
buffer.append$C(c);
if (c == "\'") buffer.append$C(c);
}
}if (needQuote) buffer.append$C("\'");
}, p$1);
Clazz_newMeth(C$, 'toPattern$Z', function (localized) {
var result=Clazz_new_($I$(9));
for (var j=1; j >= 0; --j) {
if (j == 1) p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.posPrefixPattern, this.positivePrefix, localized]);
else p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.negPrefixPattern, this.negativePrefix, localized]);
var i;
var digitCount=this.useExponentialNotation ? this.getMaximumIntegerDigits$() : Math.max(this.groupingSize, this.getMinimumIntegerDigits$()) + 1;
for (i=digitCount; i > 0; --i) {
if (i != digitCount && this.isGroupingUsed$() && this.groupingSize != 0 && i % this.groupingSize == 0 ) {
result.append$C(localized ? this.symbols.getGroupingSeparator$() : ",");
}result.append$C(i <= this.getMinimumIntegerDigits$() ? (localized ? this.symbols.getZeroDigit$() : "0") : (localized ? this.symbols.getDigit$() : "#"));
}
if (this.getMaximumFractionDigits$() > 0 || this.decimalSeparatorAlwaysShown ) result.append$C(localized ? this.symbols.getDecimalSeparator$() : ".");
for (i=0; i < this.getMaximumFractionDigits$(); ++i) {
if (i < this.getMinimumFractionDigits$()) {
result.append$C(localized ? this.symbols.getZeroDigit$() : "0");
} else {
result.append$C(localized ? this.symbols.getDigit$() : "#");
}}
if (this.useExponentialNotation) {
result.append$S(localized ? this.symbols.getExponentSeparator$() : "E");
for (i=0; i < this.minExponentDigits; ++i) result.append$C(localized ? this.symbols.getZeroDigit$() : "0");
}if (j == 1) {
p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.posSuffixPattern, this.positiveSuffix, localized]);
if ((this.negSuffixPattern == this.posSuffixPattern && this.negativeSuffix.equals$O(this.positiveSuffix) ) || (this.negSuffixPattern != null && this.negSuffixPattern.equals$O(this.posSuffixPattern) ) ) {
if ((this.negPrefixPattern != null && this.posPrefixPattern != null && this.negPrefixPattern.equals$O("'-" + this.posPrefixPattern) ) || (this.negPrefixPattern == this.posPrefixPattern && this.negativePrefix.equals$O(this.symbols.getMinusSign$() + this.positivePrefix) ) ) break;
}result.append$C(localized ? this.symbols.getPatternSeparator$() : ";");
} else p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.negSuffixPattern, this.negativeSuffix, localized]);
}
return result.toString();
}, p$1);
Clazz_newMeth(C$, 'applyPattern$S', function (pattern) {
p$1.applyPattern$S$Z.apply(this, [pattern, false]);
});
Clazz_newMeth(C$, 'applyLocalizedPattern$S', function (pattern) {
p$1.applyPattern$S$Z.apply(this, [pattern, true]);
});
Clazz_newMeth(C$, 'applyPattern$S$Z', function (pattern, localized) {
var zeroDigit="0";
var groupingSeparator=",";
var decimalSeparator=".";
var percent="%";
var perMill="\u2030";
var digit="#";
var separator=";";
var exponent="E";
var minus="-";
if (localized) {
zeroDigit=this.symbols.getZeroDigit$();
groupingSeparator=this.symbols.getGroupingSeparator$();
decimalSeparator=this.symbols.getDecimalSeparator$();
percent=this.symbols.getPercent$();
perMill=this.symbols.getPerMill$();
digit=this.symbols.getDigit$();
separator=this.symbols.getPatternSeparator$();
exponent=this.symbols.getExponentSeparator$();
minus=this.symbols.getMinusSign$();
}var gotNegative=false;
this.decimalSeparatorAlwaysShown=false;
this.isCurrencyFormat=false;
this.useExponentialNotation=false;
var phaseOneLength=0;
var start=0;
for (var j=1; j >= 0 && start < pattern.length$() ; --j) {
var inQuote=false;
var prefix=Clazz_new_($I$(9));
var suffix=Clazz_new_($I$(9));
var decimalPos=-1;
var multiplier=1;
var digitLeftCount=0;
var zeroDigitCount=0;
var digitRightCount=0;
var groupingCount=($b$[0] = -1, $b$[0]);
var phase=0;
var affix=prefix;
for (var pos=start; pos < pattern.length$(); ++pos) {
var ch=pattern.charAt$I(pos);
switch (phase) {
case 0:
case 2:
if (inQuote) {
if (ch == "\'") {
if ((pos + 1) < pattern.length$() && pattern.charAt$I(pos + 1) == "\'" ) {
++pos;
affix.append$S("\'\'");
} else {
inQuote=false;
}continue;
}} else {
if (ch == digit || ch == zeroDigit || ch == groupingSeparator || ch == decimalSeparator ) {
phase=1;
--pos;
continue;
} else if (ch == "\u00a4") {
var doubled=(pos + 1) < pattern.length$() && pattern.charAt$I(pos + 1) == "\u00a4" ;
if (doubled) {
++pos;
}this.isCurrencyFormat=true;
affix.append$S(doubled ? "\'\u00a4\u00a4" : "\'\u00a4");
continue;
} else if (ch == "\'") {
if (ch == "\'") {
if ((pos + 1) < pattern.length$() && pattern.charAt$I(pos + 1) == "\'" ) {
++pos;
affix.append$S("\'\'");
} else {
inQuote=true;
}continue;
}} else if (ch == separator) {
if (phase == 0 || j == 0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Unquoted special character '" + ch + "' in pattern \"" + pattern + '"' ]);
}start=pos + 1;
pos=pattern.length$();
continue;
} else if (ch == percent) {
if (multiplier != 1) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Too many percent/per mille characters in pattern \"" + pattern + '"' ]);
}multiplier=100;
affix.append$S("\'%");
continue;
} else if (ch == perMill) {
if (multiplier != 1) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Too many percent/per mille characters in pattern \"" + pattern + '"' ]);
}multiplier=1000;
affix.append$S("\'\u2030");
continue;
} else if (ch == minus) {
affix.append$S("\'-");
continue;
}}affix.append$C(ch);
break;
case 1:
if (j == 1) {
++phaseOneLength;
} else {
if (--phaseOneLength == 0) {
phase=2;
affix=suffix;
}continue;
}if (ch == digit) {
if (zeroDigitCount > 0) {
++digitRightCount;
} else {
++digitLeftCount;
}if (groupingCount >= 0 && decimalPos < 0 ) {
(($b$[0]=++groupingCount,groupingCount=$b$[0],$b$[0]));
}} else if (ch == zeroDigit) {
if (digitRightCount > 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Unexpected '0' in pattern \"" + pattern + '"' ]);
}++zeroDigitCount;
if (groupingCount >= 0 && decimalPos < 0 ) {
(($b$[0]=++groupingCount,groupingCount=$b$[0],$b$[0]));
}} else if (ch == groupingSeparator) {
groupingCount=($b$[0] = 0, $b$[0]);
} else if (ch == decimalSeparator) {
if (decimalPos >= 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Multiple decimal separators in pattern \"" + pattern + '"' ]);
}decimalPos=digitLeftCount + zeroDigitCount + digitRightCount ;
} else if (pattern.regionMatches$I$S$I$I(pos, exponent, 0, exponent.length$())) {
if (this.useExponentialNotation) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Multiple exponential symbols in pattern \"" + pattern + '"' ]);
}this.useExponentialNotation=true;
this.minExponentDigits=($b$[0] = 0, $b$[0]);
pos=pos + exponent.length$();
while (pos < pattern.length$() && pattern.charAt$I(pos) == zeroDigit ){
(($b$[0]=++this.minExponentDigits,this.minExponentDigits=$b$[0],$b$[0]));
++phaseOneLength;
++pos;
}
if ((digitLeftCount + zeroDigitCount) < 1 || this.minExponentDigits < 1 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Malformed exponential pattern \"" + pattern + '"' ]);
}phase=2;
affix=suffix;
--pos;
continue;
} else {
phase=2;
affix=suffix;
--pos;
--phaseOneLength;
continue;
}break;
}
}
if (zeroDigitCount == 0 && digitLeftCount > 0 && decimalPos >= 0 ) {
var n=decimalPos;
if (n == 0) {
++n;
}digitRightCount=digitLeftCount - n;
digitLeftCount=n - 1;
zeroDigitCount=1;
}if ((decimalPos < 0 && digitRightCount > 0 ) || (decimalPos >= 0 && (decimalPos < digitLeftCount || decimalPos > (digitLeftCount + zeroDigitCount) ) ) || groupingCount == 0 || inQuote ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Malformed pattern \"" + pattern + '"' ]);
}if (j == 1) {
this.posPrefixPattern=prefix.toString();
this.posSuffixPattern=suffix.toString();
this.negPrefixPattern=this.posPrefixPattern;
this.negSuffixPattern=this.posSuffixPattern;
var digitTotalCount=digitLeftCount + zeroDigitCount + digitRightCount ;
var effectiveDecimalPos=decimalPos >= 0 ? decimalPos : digitTotalCount;
this.setMinimumIntegerDigits$I(effectiveDecimalPos - digitLeftCount);
this.setMaximumIntegerDigits$I(this.useExponentialNotation ? digitLeftCount + this.getMinimumIntegerDigits$() : 2147483647);
this.setMaximumFractionDigits$I(decimalPos >= 0 ? (digitTotalCount - decimalPos) : 0);
this.setMinimumFractionDigits$I(decimalPos >= 0 ? (digitLeftCount + zeroDigitCount - decimalPos) : 0);
this.setGroupingUsed$Z(groupingCount > 0);
this.groupingSize=($b$[0] = (groupingCount > 0) ? (groupingCount|0) : (0|0), $b$[0]);
this.multiplier=multiplier;
this.setDecimalSeparatorAlwaysShown$Z(decimalPos == 0 || decimalPos == digitTotalCount );
} else {
this.negPrefixPattern=prefix.toString();
this.negSuffixPattern=suffix.toString();
gotNegative=true;
}}
if (pattern.length$() == 0) {
this.posPrefixPattern=this.posSuffixPattern="";
this.setMinimumIntegerDigits$I(0);
this.setMaximumIntegerDigits$I(2147483647);
this.setMinimumFractionDigits$I(0);
this.setMaximumFractionDigits$I(2147483647);
}if (!gotNegative || (this.negPrefixPattern.equals$O(this.posPrefixPattern) && this.negSuffixPattern.equals$O(this.posSuffixPattern) ) ) {
this.negSuffixPattern=this.posSuffixPattern;
this.negPrefixPattern="'-" + this.posPrefixPattern;
}p$1.expandAffixes.apply(this, []);
}, p$1);
Clazz_newMeth(C$, 'setMaximumIntegerDigits$I', function (newValue) {
this.$maximumIntegerDigits=Math.min(Math.max(0, newValue), 2147483647);
C$.superclazz.prototype.setMaximumIntegerDigits$I.apply(this, [(this.$maximumIntegerDigits > 309) ? 309 : this.$maximumIntegerDigits]);
if (this.$minimumIntegerDigits > this.$maximumIntegerDigits) {
this.$minimumIntegerDigits=this.$maximumIntegerDigits;
C$.superclazz.prototype.setMinimumIntegerDigits$I.apply(this, [(this.$minimumIntegerDigits > 309) ? 309 : this.$minimumIntegerDigits]);
}});
Clazz_newMeth(C$, 'setMinimumIntegerDigits$I', function (newValue) {
this.$minimumIntegerDigits=Math.min(Math.max(0, newValue), 2147483647);
C$.superclazz.prototype.setMinimumIntegerDigits$I.apply(this, [(this.$minimumIntegerDigits > 309) ? 309 : this.$minimumIntegerDigits]);
if (this.$minimumIntegerDigits > this.$maximumIntegerDigits) {
this.$maximumIntegerDigits=this.$minimumIntegerDigits;
C$.superclazz.prototype.setMaximumIntegerDigits$I.apply(this, [(this.$maximumIntegerDigits > 309) ? 309 : this.$maximumIntegerDigits]);
}});
Clazz_newMeth(C$, 'setMaximumFractionDigits$I', function (newValue) {
this.$maximumFractionDigits=Math.min(Math.max(0, newValue), 2147483647);
C$.superclazz.prototype.setMaximumFractionDigits$I.apply(this, [(this.$maximumFractionDigits > 340) ? 340 : this.$maximumFractionDigits]);
if (this.$minimumFractionDigits > this.$maximumFractionDigits) {
this.$minimumFractionDigits=this.$maximumFractionDigits;
C$.superclazz.prototype.setMinimumFractionDigits$I.apply(this, [(this.$minimumFractionDigits > 340) ? 340 : this.$minimumFractionDigits]);
}});
Clazz_newMeth(C$, 'setMinimumFractionDigits$I', function (newValue) {
this.$minimumFractionDigits=Math.min(Math.max(0, newValue), 2147483647);
C$.superclazz.prototype.setMinimumFractionDigits$I.apply(this, [(this.$minimumFractionDigits > 340) ? 340 : this.$minimumFractionDigits]);
if (this.$minimumFractionDigits > this.$maximumFractionDigits) {
this.$maximumFractionDigits=this.$minimumFractionDigits;
C$.superclazz.prototype.setMaximumFractionDigits$I.apply(this, [(this.$maximumFractionDigits > 340) ? 340 : this.$maximumFractionDigits]);
}});
Clazz_newMeth(C$, 'getMaximumIntegerDigits$', function () {
return this.$maximumIntegerDigits;
});
Clazz_newMeth(C$, 'getMinimumIntegerDigits$', function () {
return this.$minimumIntegerDigits;
});
Clazz_newMeth(C$, 'getMaximumFractionDigits$', function () {
return this.$maximumFractionDigits;
});
Clazz_newMeth(C$, 'getMinimumFractionDigits$', function () {
return this.$minimumFractionDigits;
});
Clazz_newMeth(C$, 'getRoundingMode$', function () {
return this.roundingMode;
});
Clazz_newMeth(C$, 'setRoundingMode$java_math_RoundingMode', function (roundingMode) {
if (roundingMode == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}this.roundingMode=roundingMode;
this.digitList.setRoundingMode$java_math_RoundingMode(roundingMode);
});
Clazz_newMeth(C$, 'adjustForCurrencyDefaultFractionDigits$', function () {
var digits=2;
var oldMinDigits=this.getMinimumFractionDigits$();
if (oldMinDigits == this.getMaximumFractionDigits$()) {
this.setMinimumFractionDigits$I(digits);
this.setMaximumFractionDigits$I(digits);
} else {
this.setMinimumFractionDigits$I(Math.min(digits, oldMinDigits));
this.setMaximumFractionDigits$I(digits);
}});
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
var $b$ = new Int8Array(1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,'java.util.Hashtable','java.util.Locale','InternalError','sun.util.resources.LocaleData']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DecimalFormatSymbols", null, null, 'Cloneable');
C$.cachedLocaleData=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.cachedLocaleData=Clazz_new_($I$(1).c$$I,[3]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.zeroDigit='\0';
this.groupingSeparator='\0';
this.decimalSeparator='\0';
this.perMill='\0';
this.percent='\0';
this.digit='\0';
this.patternSeparator='\0';
this.infinity=null;
this.NaN=null;
this.minusSign='\0';
this.currencySymbol=null;
this.intlCurrencySymbol=null;
this.monetarySeparator='\0';
this.exponential='\0';
this.exponentialSeparator=null;
this.locale=null;
this.serialVersionOnStream=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.serialVersionOnStream=3;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
p$1.initialize$java_util_Locale.apply(this, [$I$(2).getDefault$()]);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Locale', function (locale) {
C$.$init$.apply(this);
p$1.initialize$java_util_Locale.apply(this, [locale]);
}, 1);
Clazz_newMeth(C$, 'getInstance$', function () {
return C$.getInstance$java_util_Locale($I$(2).getDefault$());
}, 1);
Clazz_newMeth(C$, 'getInstance$java_util_Locale', function (locale) {
return Clazz_new_(C$.c$$java_util_Locale,[locale]);
}, 1);
Clazz_newMeth(C$, 'getZeroDigit$', function () {
return this.zeroDigit;
});
Clazz_newMeth(C$, 'setZeroDigit$C', function (zeroDigit) {
this.zeroDigit=zeroDigit;
});
Clazz_newMeth(C$, 'getGroupingSeparator$', function () {
return this.groupingSeparator;
});
Clazz_newMeth(C$, 'setGroupingSeparator$C', function (groupingSeparator) {
this.groupingSeparator=groupingSeparator;
});
Clazz_newMeth(C$, 'getDecimalSeparator$', function () {
return this.decimalSeparator;
});
Clazz_newMeth(C$, 'setDecimalSeparator$C', function (decimalSeparator) {
this.decimalSeparator=decimalSeparator;
});
Clazz_newMeth(C$, 'getPerMill$', function () {
return this.perMill;
});
Clazz_newMeth(C$, 'setPerMill$C', function (perMill) {
this.perMill=perMill;
});
Clazz_newMeth(C$, 'getPercent$', function () {
return this.percent;
});
Clazz_newMeth(C$, 'setPercent$C', function (percent) {
this.percent=percent;
});
Clazz_newMeth(C$, 'getDigit$', function () {
return this.digit;
});
Clazz_newMeth(C$, 'setDigit$C', function (digit) {
this.digit=digit;
});
Clazz_newMeth(C$, 'getPatternSeparator$', function () {
return this.patternSeparator;
});
Clazz_newMeth(C$, 'setPatternSeparator$C', function (patternSeparator) {
this.patternSeparator=patternSeparator;
});
Clazz_newMeth(C$, 'getInfinity$', function () {
return this.infinity;
});
Clazz_newMeth(C$, 'setInfinity$S', function (infinity) {
this.infinity=infinity;
});
Clazz_newMeth(C$, 'getNaN$', function () {
return this.NaN;
});
Clazz_newMeth(C$, 'setNaN$S', function (NaN) {
this.NaN=NaN;
});
Clazz_newMeth(C$, 'getMinusSign$', function () {
return this.minusSign;
});
Clazz_newMeth(C$, 'setMinusSign$C', function (minusSign) {
this.minusSign=minusSign;
});
Clazz_newMeth(C$, 'getCurrencySymbol$', function () {
return this.currencySymbol;
});
Clazz_newMeth(C$, 'setCurrencySymbol$S', function (currency) {
this.currencySymbol=currency;
});
Clazz_newMeth(C$, 'getInternationalCurrencySymbol$', function () {
return this.intlCurrencySymbol;
});
Clazz_newMeth(C$, 'setInternationalCurrencySymbol$S', function (currencyCode) {
this.intlCurrencySymbol=currencyCode;
});
Clazz_newMeth(C$, 'getMonetaryDecimalSeparator$', function () {
return this.monetarySeparator;
});
Clazz_newMeth(C$, 'setMonetaryDecimalSeparator$C', function (sep) {
this.monetarySeparator=sep;
});
Clazz_newMeth(C$, 'getExponentialSymbol$', function () {
return this.exponential;
});
Clazz_newMeth(C$, 'getExponentSeparator$', function () {
return this.exponentialSeparator;
});
Clazz_newMeth(C$, 'setExponentialSymbol$C', function (exp) {
this.exponential=exp;
});
Clazz_newMeth(C$, 'setExponentSeparator$S', function (exp) {
if (exp == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}this.exponentialSeparator=exp;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(3));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (obj == null ) return false;
if (this === obj ) return true;
if (this.getClass$() !== obj.getClass$() ) return false;
var other=obj;
return (this.zeroDigit == other.zeroDigit && this.groupingSeparator == other.groupingSeparator && this.decimalSeparator == other.decimalSeparator && this.percent == other.percent && this.perMill == other.perMill && this.digit == other.digit && this.minusSign == other.minusSign && this.patternSeparator == other.patternSeparator && this.infinity.equals$O(other.infinity) && this.NaN.equals$O(other.NaN) && this.currencySymbol.equals$O(other.currencySymbol) && this.intlCurrencySymbol.equals$O(other.intlCurrencySymbol) && this.monetarySeparator == other.monetarySeparator && this.exponentialSeparator.equals$O(other.exponentialSeparator) && this.locale.equals$O(other.locale) );
});
Clazz_newMeth(C$, 'hashCode$', function () {
var result=this.zeroDigit.$c();
result=result * 37 + this.groupingSeparator.$c();
result=result * 37 + this.decimalSeparator.$c();
return result;
});
Clazz_newMeth(C$, 'initialize$java_util_Locale', function (locale) {
this.locale=locale;
var needCacheUpdate=false;
var data=C$.cachedLocaleData.get$O(locale);
if (data == null ) {
data=Clazz_array(java.lang.Object, [3]);
var rb=$I$(4).getNumberFormatData$java_util_Locale(locale);
data[0]=rb.getStringArray$S("NumberElements");
needCacheUpdate=true;
}var numberElements=data[0];
this.decimalSeparator=numberElements[0].charAt$I(0);
this.groupingSeparator=numberElements[1].charAt$I(0);
this.patternSeparator=numberElements[2].charAt$I(0);
this.percent=numberElements[3].charAt$I(0);
this.zeroDigit=numberElements[4].charAt$I(0);
this.digit=numberElements[5].charAt$I(0);
this.minusSign=numberElements[6].charAt$I(0);
this.exponential=numberElements[7].charAt$I(0);
this.exponentialSeparator=numberElements[7];
this.perMill=numberElements[8].charAt$I(0);
this.infinity=numberElements[9];
this.NaN=numberElements[10];
this.intlCurrencySymbol="\u00a4";
this.currencySymbol="$";
this.monetarySeparator=this.decimalSeparator;
if (needCacheUpdate) {
C$.cachedLocaleData.put$TK$TV(locale, data);
}}, p$1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,'java.math.RoundingMode','InternalError','StringBuffer']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DigitList", null, null, 'Cloneable');
C$.LONG_MIN_REP=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.LONG_MIN_REP="9223372036854775808".toCharArray$();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.decimalAt=0;
this.count=0;
this.digits=null;
this.data=null;
this.roundingMode=null;
this.isNegative=false;
this.tempBuffer=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.decimalAt=0;
this.count=0;
this.digits=Clazz_array(Character.TYPE, [19]);
this.roundingMode=$I$(1).HALF_EVEN;
this.isNegative=false;
}, 1);
Clazz_newMeth(C$, 'isZero$', function () {
for (var i=0; i < this.count; ++i) {
if (this.digits[i] != "0") {
return false;
}}
return true;
});
Clazz_newMeth(C$, 'setRoundingMode$java_math_RoundingMode', function (r) {
this.roundingMode=r;
});
Clazz_newMeth(C$, 'clear$', function () {
this.decimalAt=0;
this.count=0;
});
Clazz_newMeth(C$, 'append$C', function (digit) {
if (this.count == this.digits.length) {
var data=Clazz_array(Character.TYPE, [this.count + 100]);
System.arraycopy$O$I$O$I$I(this.digits, 0, data, 0, this.count);
this.digits=data;
}this.digits[this.count++]=digit;
});
Clazz_newMeth(C$, 'getDouble$', function () {
if (this.count == 0) {
return 0.0;
}var temp=p$1.getStringBuffer.apply(this, []);
temp.append$C(".");
temp.append$CA$I$I(this.digits, 0, this.count);
temp.append$C("E");
temp.append$S("" + this.decimalAt);
return Double.parseDouble$S(temp.toString());
});
Clazz_newMeth(C$, 'getLong$', function () {
if (this.count == 0) {
return 0;
}if (p$1.isLongMIN_VALUE.apply(this, [])) {
return -9223372036854775808;
}var temp=p$1.getStringBuffer.apply(this, []);
temp.append$CA$I$I(this.digits, 0, this.count);
for (var i=this.count; i < this.decimalAt; ++i) {
temp.append$C("0");
}
return Long.parseLong$S(temp.toString());
});
Clazz_newMeth(C$, 'fitsIntoLong$Z$Z', function (isPositive, ignoreNegativeZero) {
while (this.count > 0 && this.digits[this.count - 1] == "0" ){
--this.count;
}
if (this.count == 0) {
return isPositive || ignoreNegativeZero ;
}if (this.decimalAt < this.count || this.decimalAt > 19 ) {
return false;
}if (this.decimalAt < 19) return true;
for (var i=0; i < this.count; ++i) {
var dig=this.digits[i];
var max=C$.LONG_MIN_REP[i];
if (dig > max) return false;
if (dig < max) return true;
}
if (this.count < this.decimalAt) return true;
return !isPositive;
});
Clazz_newMeth(C$, 'setDouble$Z$D$I', function (isNegative, source, maximumFractionDigits) {
this.set$Z$D$I$Z(isNegative, source, maximumFractionDigits, true);
});
Clazz_newMeth(C$, 'set$Z$D$I$Z', function (isNegative, source, maximumDigits, fixedPoint) {
this.set$Z$S$I$Z(isNegative, Double.toString$D(source), maximumDigits, fixedPoint);
});
Clazz_newMeth(C$, 'set$Z$S$I$Z', function (isNegative, s, maximumDigits, fixedPoint) {
this.isNegative=isNegative;
var len=s.length$();
var source=p$1.getDataChars$I.apply(this, [len]);
s.getChars$I$I$CA$I(0, len, source, 0);
this.decimalAt=-1;
this.count=0;
var exponent=0;
var leadingZerosAfterDecimal=0;
var nonZeroDigitSeen=false;
for (var i=0; i < len; ) {
var c=source[i++];
if (c == ".") {
this.decimalAt=this.count;
} else if (c == "e" || c == "E" ) {
exponent=C$.parseInt$CA$I$I(source, i, len);
break;
} else {
if (!nonZeroDigitSeen) {
nonZeroDigitSeen=(c != "0");
if (!nonZeroDigitSeen && this.decimalAt != -1 ) ++leadingZerosAfterDecimal;
}if (nonZeroDigitSeen) {
this.digits[this.count++]=c;
}}}
if (this.decimalAt == -1) {
this.decimalAt=this.count;
}if (nonZeroDigitSeen) {
this.decimalAt+=exponent - leadingZerosAfterDecimal;
}if (fixedPoint) {
if (-this.decimalAt > maximumDigits) {
this.count=0;
return;
} else if (-this.decimalAt == maximumDigits) {
if (p$1.shouldRoundUp$I.apply(this, [0])) {
this.count=1;
++this.decimalAt;
this.digits[0]="1";
} else {
this.count=0;
}return;
}}while (this.count > 1 && this.digits[this.count - 1] == "0" ){
--this.count;
}
p$1.round$I.apply(this, [fixedPoint ? (maximumDigits + this.decimalAt) : maximumDigits]);
});
Clazz_newMeth(C$, 'round$I', function (maximumDigits) {
if (maximumDigits >= 0 && maximumDigits < this.count ) {
if (p$1.shouldRoundUp$I.apply(this, [maximumDigits])) {
for (; ; ) {
--maximumDigits;
if (maximumDigits < 0) {
this.digits[0]="1";
++this.decimalAt;
maximumDigits=0;
break;
}(this.digits[maximumDigits]=String.fromCharCode(this.digits[maximumDigits].$c()+1));
if (this.digits[maximumDigits] <= "9") break;
}
++maximumDigits;
}this.count=maximumDigits;
while (this.count > 1 && this.digits[this.count - 1] == "0" ){
--this.count;
}
}}, p$1);
Clazz_newMeth(C$, 'shouldRoundUp$I', function (maximumDigits) {
if (maximumDigits < this.count) {
switch (this.roundingMode) {
case $I$(1).UP:
for (var i=maximumDigits; i < this.count; ++i) {
if (this.digits[i] != "0") {
return true;
}}
break;
case $I$(1).DOWN:
break;
case $I$(1).CEILING:
for (var i=maximumDigits; i < this.count; ++i) {
if (this.digits[i] != "0") {
return !this.isNegative;
}}
break;
case $I$(1).FLOOR:
for (var i=maximumDigits; i < this.count; ++i) {
if (this.digits[i] != "0") {
return this.isNegative;
}}
break;
case $I$(1).HALF_UP:
if (this.digits[maximumDigits] >= "5") {
return true;
}break;
case $I$(1).HALF_DOWN:
if (this.digits[maximumDigits] > "5") {
return true;
} else if (this.digits[maximumDigits] == "5") {
for (var i=maximumDigits + 1; i < this.count; ++i) {
if (this.digits[i] != "0") {
return true;
}}
}break;
case $I$(1).HALF_EVEN:
if (this.digits[maximumDigits] > "5") {
return true;
} else if (this.digits[maximumDigits] == "5") {
for (var i=maximumDigits + 1; i < this.count; ++i) {
if (this.digits[i] != "0") {
return true;
}}
return maximumDigits > 0 && ((this.digits[maximumDigits - 1]).$c() % 2 != 0) ;
}break;
case $I$(1).UNNECESSARY:
for (var i=maximumDigits; i < this.count; ++i) {
if (this.digits[i] != "0") {
throw Clazz_new_(Clazz_load('ArithmeticException').c$$S,["Rounding needed with the rounding mode being set to RoundingMode.UNNECESSARY"]);
}}
break;
default:
Clazz_assert(C$, this, function(){return false});
}
}return false;
}, p$1);
Clazz_newMeth(C$, 'setExp$Z$J', function (isNegative, source) {
this.setLong$Z$J$I(isNegative, source, 0);
});
Clazz_newMeth(C$, 'setLong$Z$J$I', function (isNegative, source, maximumDigits) {
this.isNegative=isNegative;
if (source <= 0) {
if (source == -9223372036854775808) {
this.decimalAt=this.count=19;
System.arraycopy$O$I$O$I$I(C$.LONG_MIN_REP, 0, this.digits, 0, this.count);
} else {
this.decimalAt=this.count=0;
}} else {
var left=19;
var right;
while (source >= 1){
this.digits[--left]=String.fromCharCode((48 + (source % 10)));
source=(source/10|0);
}
this.decimalAt=19 - left;
for (right=18; this.digits[right] == "0"; --right) ;
this.count=right - left + 1;
System.arraycopy$O$I$O$I$I(this.digits, left, this.digits, 0, this.count);
}if (maximumDigits > 0) p$1.round$I.apply(this, [maximumDigits]);
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (this === obj ) return true;
if (!(Clazz_instanceOf(obj, "java.text.DigitList"))) return false;
var other=obj;
if (this.count != other.count || this.decimalAt != other.decimalAt ) return false;
for (var i=0; i < this.count; i++) if (this.digits[i] != other.digits[i]) return false;
return true;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var hashcode=this.decimalAt;
for (var i=0; i < this.count; i++) {
hashcode=hashcode * 37 + (this.digits[i]).$c();
}
return hashcode;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var other=Clazz_clone(this);
var newDigits=Clazz_array(Character.TYPE, [this.digits.length]);
System.arraycopy$O$I$O$I$I(this.digits, 0, newDigits, 0, this.digits.length);
other.digits=newDigits;
other.tempBuffer=null;
return other;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(2));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'isLongMIN_VALUE', function () {
if (this.decimalAt != this.count || this.count != 19 ) {
return false;
}for (var i=0; i < this.count; ++i) {
if (this.digits[i] != C$.LONG_MIN_REP[i]) return false;
}
return true;
}, p$1);
Clazz_newMeth(C$, 'parseInt$CA$I$I', function (str, offset, strLen) {
var c;
var positive=true;
if ((c=str[offset]) == "-") {
positive=false;
offset++;
} else if (c == "+") {
offset++;
}var value=0;
while (offset < strLen){
c=str[offset++];
if (c >= "0" && c <= "9" ) {
value=value * 10 + (c.$c() - 48);
} else {
break;
}}
return positive ? value : -value;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
if (this.isZero$()) {
return "0";
}var buf=p$1.getStringBuffer.apply(this, []);
buf.append$S("0.");
buf.append$CA$I$I(this.digits, 0, this.count);
buf.append$S("x10^");
buf.append$S("" + this.decimalAt);
return buf.toString();
});
Clazz_newMeth(C$, 'getStringBuffer', function () {
if (this.tempBuffer == null ) {
this.tempBuffer=Clazz_new_($I$(3).c$$I,[19]);
} else {
this.tempBuffer.setLength$I(0);
}return this.tempBuffer;
}, p$1);
Clazz_newMeth(C$, 'getDataChars$I', function (length) {
if (this.data == null || this.data.length < length ) {
this.data=Clazz_array(Character.TYPE, [length]);
}return this.data;
}, p$1);
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,['java.text.FieldPosition','.Delegate']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "FieldPosition", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.field=0;
this.endIndex=0;
this.beginIndex=0;
this.attribute=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.field=0;
this.endIndex=0;
this.beginIndex=0;
}, 1);
Clazz_newMeth(C$, 'c$$I', function (field) {
C$.$init$.apply(this);
this.field=field;
}, 1);
Clazz_newMeth(C$, 'c$$java_text_Format_Field', function (attribute) {
C$.c$$java_text_Format_Field$I.apply(this, [attribute, -1]);
}, 1);
Clazz_newMeth(C$, 'c$$java_text_Format_Field$I', function (attribute, fieldID) {
C$.$init$.apply(this);
this.attribute=attribute;
this.field=fieldID;
}, 1);
Clazz_newMeth(C$, 'getFieldAttribute$', function () {
return this.attribute;
});
Clazz_newMeth(C$, 'getField$', function () {
return this.field;
});
Clazz_newMeth(C$, 'getBeginIndex$', function () {
return this.beginIndex;
});
Clazz_newMeth(C$, 'getEndIndex$', function () {
return this.endIndex;
});
Clazz_newMeth(C$, 'setBeginIndex$I', function (bi) {
this.beginIndex=bi;
});
Clazz_newMeth(C$, 'setEndIndex$I', function (ei) {
this.endIndex=ei;
});
Clazz_newMeth(C$, 'getFieldDelegate$', function () {
return Clazz_new_($I$(1), [this, null]);
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (obj == null ) return false;
if (!(Clazz_instanceOf(obj, "java.text.FieldPosition"))) return false;
var other=obj;
if (this.attribute == null ) {
if (other.attribute != null ) {
return false;
}} else if (!this.attribute.equals$O(other.attribute)) {
return false;
}return (this.beginIndex == other.beginIndex && this.endIndex == other.endIndex && this.field == other.field );
});
Clazz_newMeth(C$, 'hashCode$', function () {
return (this.field << 24) | (this.beginIndex << 16) | this.endIndex ;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[field=" + this.field + ",attribute=" + this.attribute + ",beginIndex=" + this.beginIndex + ",endIndex=" + this.endIndex + ']' ;
});
Clazz_newMeth(C$, 'matchesField$java_text_Format_Field', function (attribute) {
if (this.attribute != null ) {
return this.attribute.equals$O(attribute);
}return false;
}, p$1);
Clazz_newMeth(C$, 'matchesField$java_text_Format_Field$I', function (attribute, field) {
if (this.attribute != null ) {
return this.attribute.equals$O(attribute);
}return (field == this.field);
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.FieldPosition, "Delegate", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, [['java.text.Format','java.text.Format.FieldDelegate']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.encounteredField=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'formatted$java_text_Format_Field$O$I$I$StringBuffer', function (attr, value, start, end, buffer) {
if (!this.encounteredField && p$1.matchesField$java_text_Format_Field.apply(this.this$0, [attr]) ) {
this.this$0.setBeginIndex$I.apply(this.this$0, [start]);
this.this$0.setEndIndex$I.apply(this.this$0, [end]);
this.encounteredField=(start != end);
}});
Clazz_newMeth(C$, 'formatted$I$java_text_Format_Field$O$I$I$StringBuffer', function (fieldID, attr, value, start, end, buffer) {
if (!this.encounteredField && p$1.matchesField$java_text_Format_Field$I.apply(this.this$0, [attr, fieldID]) ) {
this.this$0.setBeginIndex$I.apply(this.this$0, [start]);
this.this$0.setEndIndex$I.apply(this.this$0, [end]);
this.encounteredField=(start != end);
}});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),I$=[[0,'StringBuffer','java.text.FieldPosition','java.text.ParsePosition','java.text.AttributedString']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Format", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.io.Serializable', 'Cloneable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'format$O', function (obj) {
return this.format$O$StringBuffer$java_text_FieldPosition(obj, Clazz_new_($I$(1)), Clazz_new_($I$(2).c$$I,[0])).toString();
});
Clazz_newMeth(C$, 'formatToCharacterIterator$O', function (obj) {
return this.createAttributedCharacterIterator$S(this.format$O(obj));
});
Clazz_newMeth(C$, 'parseObject$S', function (source) {
var pos=Clazz_new_($I$(3).c$$I,[0]);
var result=this.parseObject$S$java_text_ParsePosition(source, pos);
if (pos.index == 0) {
throw Clazz_new_(Clazz_load('java.text.ParseException').c$$S$I,["Format.parseObject(String) failed", pos.errorIndex]);
}return result;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
return null;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'createAttributedCharacterIterator$S', function (s) {
var as=Clazz_new_($I$(4).c$$S,[s]);
return as.getIterator$();
});
Clazz_newMeth(C$, 'createAttributedCharacterIterator$java_text_AttributedCharacterIteratorA', function (iterators) {
var as=Clazz_new_($I$(4).c$$java_text_AttributedCharacterIteratorA,[iterators]);
return as.getIterator$();
});
Clazz_newMeth(C$, 'createAttributedCharacterIterator$S$java_text_AttributedCharacterIterator_Attribute$O', function (string, key, value) {
var as=Clazz_new_($I$(4).c$$S,[string]);
as.addAttribute$java_text_AttributedCharacterIterator_Attribute$O(key, value);
return as.getIterator$();
});
Clazz_newMeth(C$, 'createAttributedCharacterIterator$java_text_AttributedCharacterIterator$java_text_AttributedCharacterIterator_Attribute$O', function (iterator, key, value) {
var as=Clazz_new_($I$(4).c$$java_text_AttributedCharacterIterator,[iterator]);
as.addAttribute$java_text_AttributedCharacterIterator_Attribute$O(key, value);
return as.getIterator$();
});
;
(function(){var C$=Clazz_newClass(P$.Format, "Field", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.text.AttributedCharacterIterator','.Attribute']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.superclazz.c$$S.apply(this, [name]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newInterface(P$.Format, "FieldDelegate", function(){
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("java.text"),I$=[[0,'java.util.HashMap','java.util.Hashtable','StringBuffer','java.text.DontCareFieldPosition','java.text.ParsePosition','java.util.Locale','sun.util.resources.LocaleData','java.text.DecimalFormatSymbols','java.text.DecimalFormat']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "NumberFormat", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.text.Format');
C$.cachedLocaleData=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.cachedLocaleData=Clazz_new_($I$(2).c$$I,[3]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.groupingUsed=false;
this.maxFractionDigits=0;
this.parseIntegerOnly=false;
this.maximumIntegerDigits=0;
this.minimumIntegerDigits=0;
this.maximumFractionDigits=0;
this.minimumFractionDigits=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.groupingUsed=true;
this.maxFractionDigits=($b$[0] = 3, $b$[0]);
this.parseIntegerOnly=false;
this.maximumIntegerDigits=40;
this.minimumIntegerDigits=1;
this.maximumFractionDigits=3;
this.minimumFractionDigits=0;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'format$O$StringBuffer$java_text_FieldPosition', function (number, toAppendTo, pos) {
if (Clazz_instanceOf(number, "java.lang.Long") || Clazz_instanceOf(number, "java.lang.Integer") || Clazz_instanceOf(number, "java.lang.Short") || Clazz_instanceOf(number, "java.lang.Byte") ) {
return this.format$J$StringBuffer$java_text_FieldPosition((number).longValue$(), toAppendTo, pos);
} else if (Clazz_instanceOf(number, "java.lang.Number")) {
return this.format$D$StringBuffer$java_text_FieldPosition((number).doubleValue$(), toAppendTo, pos);
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Cannot format given Object as a Number"]);
}});
Clazz_newMeth(C$, 'parseObject$S$java_text_ParsePosition', function (source, pos) {
return this.parse$S$java_text_ParsePosition(source, pos);
});
Clazz_newMeth(C$, 'format$D', function (number) {
return this.format$D$StringBuffer$java_text_FieldPosition(number, Clazz_new_($I$(3)), $I$(4).INSTANCE).toString();
});
Clazz_newMeth(C$, 'format$J', function (number) {
return this.format$J$StringBuffer$java_text_FieldPosition(number, Clazz_new_($I$(3)), $I$(4).INSTANCE).toString();
});
Clazz_newMeth(C$, 'parse$S', function (source) {
var parsePosition=Clazz_new_($I$(5).c$$I,[0]);
var result=this.parse$S$java_text_ParsePosition(source, parsePosition);
if (parsePosition.index == 0) {
throw Clazz_new_(Clazz_load('java.text.ParseException').c$$S$I,["Unparseable number: \"" + source + "\"" , parsePosition.errorIndex]);
}return result;
});
Clazz_newMeth(C$, 'isParseIntegerOnly$', function () {
return this.parseIntegerOnly;
});
Clazz_newMeth(C$, 'setParseIntegerOnly$Z', function (value) {
this.parseIntegerOnly=value;
});
Clazz_newMeth(C$, 'getInstance$', function () {
return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 0);
}, 1);
Clazz_newMeth(C$, 'getInstance$java_util_Locale', function (inLocale) {
return C$.getInstance$java_util_Locale$I(inLocale, 0);
}, 1);
Clazz_newMeth(C$, 'getNumberInstance$', function () {
return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 0);
}, 1);
Clazz_newMeth(C$, 'getNumberInstance$java_util_Locale', function (inLocale) {
return C$.getInstance$java_util_Locale$I(inLocale, 0);
}, 1);
Clazz_newMeth(C$, 'getIntegerInstance$', function () {
return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 4);
}, 1);
Clazz_newMeth(C$, 'getIntegerInstance$java_util_Locale', function (inLocale) {
return C$.getInstance$java_util_Locale$I(inLocale, 4);
}, 1);
Clazz_newMeth(C$, 'getCurrencyInstance$', function () {
return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 1);
}, 1);
Clazz_newMeth(C$, 'getCurrencyInstance$java_util_Locale', function (inLocale) {
return C$.getInstance$java_util_Locale$I(inLocale, 1);
}, 1);
Clazz_newMeth(C$, 'getPercentInstance$', function () {
return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 2);
}, 1);
Clazz_newMeth(C$, 'getPercentInstance$java_util_Locale', function (inLocale) {
return C$.getInstance$java_util_Locale$I(inLocale, 2);
}, 1);
Clazz_newMeth(C$, 'getScientificInstance$', function () {
return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 3);
}, 1);
Clazz_newMeth(C$, 'getScientificInstance$java_util_Locale', function (inLocale) {
return C$.getInstance$java_util_Locale$I(inLocale, 3);
}, 1);
Clazz_newMeth(C$, 'hashCode$', function () {
return this.maximumIntegerDigits * 37 + this.maxFractionDigits;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (obj == null ) {
return false;
}if (this === obj ) {
return true;
}if (this.getClass$() !== obj.getClass$() ) {
return false;
}var other=obj;
return (this.maximumIntegerDigits == other.maximumIntegerDigits && this.minimumIntegerDigits == other.minimumIntegerDigits && this.maximumFractionDigits == other.maximumFractionDigits && this.minimumFractionDigits == other.minimumFractionDigits && this.groupingUsed == other.groupingUsed && this.parseIntegerOnly == other.parseIntegerOnly );
});
Clazz_newMeth(C$, 'clone$', function () {
var other=C$.superclazz.prototype.clone$.apply(this, []);
return other;
});
Clazz_newMeth(C$, 'isGroupingUsed$', function () {
return this.groupingUsed;
});
Clazz_newMeth(C$, 'setGroupingUsed$Z', function (newValue) {
this.groupingUsed=newValue;
});
Clazz_newMeth(C$, 'getMaximumIntegerDigits$', function () {
return this.maximumIntegerDigits;
});
Clazz_newMeth(C$, 'setMaximumIntegerDigits$I', function (newValue) {
this.maximumIntegerDigits=Math.max(0, newValue);
if (this.minimumIntegerDigits > this.maximumIntegerDigits) {
this.minimumIntegerDigits=this.maximumIntegerDigits;
}});
Clazz_newMeth(C$, 'getMinimumIntegerDigits$', function () {
return this.minimumIntegerDigits;
});
Clazz_newMeth(C$, 'setMinimumIntegerDigits$I', function (newValue) {
this.minimumIntegerDigits=Math.max(0, newValue);
if (this.minimumIntegerDigits > this.maximumIntegerDigits) {
this.maximumIntegerDigits=this.minimumIntegerDigits;
}});
Clazz_newMeth(C$, 'getMaximumFractionDigits$', function () {
return this.maximumFractionDigits;
});
Clazz_newMeth(C$, 'setMaximumFractionDigits$I', function (newValue) {
this.maximumFractionDigits=Math.max(0, newValue);
if (this.maximumFractionDigits < this.minimumFractionDigits) {
this.minimumFractionDigits=this.maximumFractionDigits;
}});
Clazz_newMeth(C$, 'getMinimumFractionDigits$', function () {
return this.minimumFractionDigits;
});
Clazz_newMeth(C$, 'setMinimumFractionDigits$I', function (newValue) {
this.minimumFractionDigits=Math.max(0, newValue);
if (this.maximumFractionDigits < this.minimumFractionDigits) {
this.maximumFractionDigits=this.minimumFractionDigits;
}});
Clazz_newMeth(C$, 'getRoundingMode$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'setRoundingMode$java_math_RoundingMode', function (roundingMode) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'getInstance$java_util_Locale$I', function (desiredLocale, choice) {
var numberPatterns=C$.cachedLocaleData.get$O(desiredLocale);
if (numberPatterns == null ) {
var resource=$I$(7).getNumberFormatData$java_util_Locale(desiredLocale);
numberPatterns=resource.getStringArray$S("NumberPatterns");
C$.cachedLocaleData.put$TK$TV(desiredLocale, numberPatterns);
}var symbols=$I$(8).getInstance$java_util_Locale(desiredLocale);
var entry=(choice == 4) ? 0 : choice;
var format=Clazz_new_($I$(9).c$$S$java_text_DecimalFormatSymbols,[numberPatterns[entry], symbols]);
if (choice == 4) {
format.setMaximumFractionDigits$I(0);
format.setDecimalSeparatorAlwaysShown$Z(false);
format.setParseIntegerOnly$Z(true);
} else if (choice == 1) {
format.adjustForCurrencyDefaultFractionDigits$();
}return format;
}, 1);
var $b$ = new Int8Array(1);
;
(function(){var C$=Clazz_newClass(P$.NumberFormat, "Field", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.text.Format','.Field']);
C$.$instanceMap=null;
C$.INTEGER=null;
C$.FRACTION=null;
C$.EXPONENT=null;
C$.DECIMAL_SEPARATOR=null;
C$.SIGN=null;
C$.GROUPING_SEPARATOR=null;
C$.EXPONENT_SYMBOL=null;
C$.PERCENT=null;
C$.PERMILLE=null;
C$.CURRENCY=null;
C$.EXPONENT_SIGN=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.$instanceMap=Clazz_new_($I$(1).c$$I,[11]);
C$.INTEGER=Clazz_new_(C$.c$$S,["integer"]);
C$.FRACTION=Clazz_new_(C$.c$$S,["fraction"]);
C$.EXPONENT=Clazz_new_(C$.c$$S,["exponent"]);
C$.DECIMAL_SEPARATOR=Clazz_new_(C$.c$$S,["decimal separator"]);
C$.SIGN=Clazz_new_(C$.c$$S,["sign"]);
C$.GROUPING_SEPARATOR=Clazz_new_(C$.c$$S,["grouping separator"]);
C$.EXPONENT_SYMBOL=Clazz_new_(C$.c$$S,["exponent symbol"]);
C$.PERCENT=Clazz_new_(C$.c$$S,["percent"]);
C$.PERMILLE=Clazz_new_(C$.c$$S,["per mille"]);
C$.CURRENCY=Clazz_new_(C$.c$$S,["currency"]);
C$.EXPONENT_SIGN=Clazz_new_(C$.c$$S,["exponent sign"]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.superclazz.c$$S.apply(this, [name]);
C$.$init$.apply(this);
if (this.getClass$() === Clazz_getClass(C$) ) {
C$.$instanceMap.put$TK$TV(name, this);
}}, 1);
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Arrays','java.lang.reflect.Array','OutOfMemoryError','java.util.Objects','StringBuilder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractCollection", null, null, 'java.util.Collection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.size$() == 0;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
var it=this.iterator$();
if (o == null ) {
while (it.hasNext$())if (it.next$() == null ) return true;
} else {
while (it.hasNext$())if (o.equals$O(it.next$())) return true;
}return false;
});
Clazz_newMeth(C$, 'toArray$', function () {
var r=Clazz_array(java.lang.Object, [this.size$()]);
var it=this.iterator$();
for (var i=0; i < r.length; i++) {
if (!it.hasNext$()) return $I$(1).copyOf$TTA$I(r, i);
r[i]=it.next$();
}
return it.hasNext$() ? C$.finishToArray$TTA$java_util_Iterator(r, it) : r;
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var size=this.size$();
var r=a.length >= size ? a : Clazz_array(a.getClass$().getComponentType$(), size);
var it=this.iterator$();
for (var i=0; i < r.length; i++) {
if (!it.hasNext$()) {
if (a === r ) {
r[i]=null;
} else if (a.length < i) {
return $I$(1).copyOf$TTA$I(r, i);
} else {
System.arraycopy$O$I$O$I$I(r, 0, a, 0, i);
if (a.length > i) {
a[i]=null;
}}return a;
}r[i]=it.next$();
}
return it.hasNext$() ? C$.finishToArray$TTA$java_util_Iterator(r, it) : r;
});
Clazz_newMeth(C$, 'finishToArray$TTA$java_util_Iterator', function (r, it) {
var i=r.length;
while (it.hasNext$()){
var cap=r.length;
if (i == cap) {
var newCap=cap + (cap >> 1) + 1 ;
if (newCap - 2147483639 > 0) newCap=C$.hugeCapacity$I(cap + 1);
r=$I$(1).copyOf$TTA$I(r, newCap);
}r[i++]=it.next$();
}
return (i == r.length) ? r : $I$(1).copyOf$TTA$I(r, i);
}, 1);
Clazz_newMeth(C$, 'hugeCapacity$I', function (minCapacity) {
if (minCapacity < 0) throw Clazz_new_($I$(3).c$$S,["Required array size too large"]);
return (minCapacity > 2147483639) ? 2147483647 : 2147483639;
}, 1);
Clazz_newMeth(C$, ['add$TE'], function (e) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O', function (o) {
var it=this.iterator$();
if (o == null ) {
while (it.hasNext$()){
if (it.next$() == null ) {
it.remove$();
return true;
}}
} else {
while (it.hasNext$()){
if (o.equals$O(it.next$())) {
it.remove$();
return true;
}}
}return false;
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (!this.contains$O(e)) return false;
return true;
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) {
var modified=false;
for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (this.add$TE(e)) modified=true;
return modified;
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
$I$(4).requireNonNull$TT(c);
var modified=false;
var it=this.iterator$();
while (it.hasNext$()){
if (c.contains$O(it.next$())) {
it.remove$();
modified=true;
}}
return modified;
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) {
$I$(4).requireNonNull$TT(c);
var modified=false;
var it=this.iterator$();
while (it.hasNext$()){
if (!c.contains$O(it.next$())) {
it.remove$();
modified=true;
}}
return modified;
});
Clazz_newMeth(C$, 'clear$', function () {
var it=this.iterator$();
while (it.hasNext$()){
it.next$();
it.remove$();
}
});
Clazz_newMeth(C$, 'toString', function () {
var it=this.iterator$();
if (!it.hasNext$()) return "[]";
var sb=Clazz_new_($I$(5));
sb.append$C("[");
for (; ; ) {
var e=it.next$();
sb.append$O(e === this ? "(this Collection)" : e);
if (!it.hasNext$()) return sb.append$C("]").toString();
sb.append$C(",").append$C(" ");
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},p$2={},I$=[[0,['java.util.AbstractList','.Itr'],['java.util.AbstractList','.ListItr'],'java.util.RandomAccessSubList','java.util.SubList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractList", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.AbstractCollection', 'java.util.List');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.modCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.modCount=0;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.add$I$TE(this.size$(), e);
return true;
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$I', function (index) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
var it=this.listIterator$();
if (o == null ) {
while (it.hasNext$())if (it.next$() == null ) return it.previousIndex$();
} else {
while (it.hasNext$())if (o.equals$O(it.next$())) return it.previousIndex$();
}return -1;
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
var it=this.listIterator$I(this.size$());
if (o == null ) {
while (it.hasPrevious$())if (it.previous$() == null ) return it.nextIndex$();
} else {
while (it.hasPrevious$())if (o.equals$O(it.previous$())) return it.nextIndex$();
}return -1;
});
Clazz_newMeth(C$, 'clear$', function () {
this.removeRange$I$I(0, this.size$());
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
p$1.rangeCheckForAdd$I.apply(this, [index]);
var modified=false;
for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) {
this.add$I$TE(index++, e);
modified=true;
}
return modified;
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(1), [this, null]);
});
Clazz_newMeth(C$, 'listIterator$', function () {
return this.listIterator$I(0);
});
Clazz_newMeth(C$, 'listIterator$I', function (index) {
p$1.rangeCheckForAdd$I.apply(this, [index]);
return Clazz_new_($I$(2).c$$I, [this, null, index]);
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
return (Clazz_instanceOf(this, "java.util.RandomAccess") ? Clazz_new_($I$(3).c$$java_util_AbstractList$I$I,[this, fromIndex, toIndex]) : Clazz_new_($I$(4).c$$java_util_AbstractList$I$I,[this, fromIndex, toIndex]));
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.List"))) return false;
var e1=this.listIterator$();
var e2=(o).listIterator$();
while (e1.hasNext$() && e2.hasNext$() ){
var o1=e1.next$();
var o2=e2.next$();
if (!(o1 == null ? o2 == null : o1.equals$O(o2))) return false;
}
return !(e1.hasNext$() || e2.hasNext$() );
});
Clazz_newMeth(C$, 'hashCode$', function () {
var hashCode=1;
for (var e, $e = this.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) hashCode=31 * hashCode + (e == null ? 0 : e.hashCode$());
return hashCode;
});
Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) {
var it=this.listIterator$I(fromIndex);
for (var i=0, n=toIndex - fromIndex; i < n; i++) {
it.next$();
it.remove$();
}
});
Clazz_newMeth(C$, 'rangeCheckForAdd$I', function (index) {
if (index < 0 || index > this.size$() ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) {
return "Index: " + index + ", Size: " + this.size$() ;
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.AbstractList, "Itr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.cursor=0;
this.lastRet=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.cursor=0;
this.lastRet=-1;
this.expectedModCount=this.this$0.modCount;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.cursor != this.b$['java.util.AbstractCollection'].size$.apply(this.b$['java.util.AbstractCollection'], []);
});
Clazz_newMeth(C$, 'next$', function () {
this.checkForComodification$();
try {
var i=this.cursor;
var next=this.b$['java.util.AbstractList'].get$I.apply(this.b$['java.util.AbstractList'], [i]);
this.lastRet=i;
this.cursor=i + 1;
return next;
} catch (e) {
if (Clazz_exceptionOf(e,"IndexOutOfBoundsException")){
this.checkForComodification$();
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'remove$', function () {
if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
try {
this.b$['java.util.AbstractList'].remove$I.apply(this.b$['java.util.AbstractList'], [this.lastRet]);
if (this.lastRet < this.cursor) this.cursor--;
this.lastRet=-1;
this.expectedModCount=this.this$0.modCount;
} catch (e) {
if (Clazz_exceptionOf(e,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'checkForComodification$', function () {
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractList, "ListItr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.AbstractList','.Itr'], 'java.util.ListIterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (index) {
Clazz_super_(C$, this,1);
this.cursor=index;
}, 1);
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.cursor != 0;
});
Clazz_newMeth(C$, 'previous$', function () {
this.checkForComodification$();
try {
var i=this.cursor - 1;
var previous=this.b$['java.util.AbstractList'].get$I.apply(this.b$['java.util.AbstractList'], [i]);
this.lastRet=this.cursor=i;
return previous;
} catch (e) {
if (Clazz_exceptionOf(e,"IndexOutOfBoundsException")){
this.checkForComodification$();
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.cursor;
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.cursor - 1;
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
try {
this.b$['java.util.AbstractList'].set$I$TE.apply(this.b$['java.util.AbstractList'], [this.lastRet, e]);
this.expectedModCount=this.this$0.modCount;
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.checkForComodification$();
try {
var i=this.cursor;
this.b$['java.util.AbstractList'].add$I$TE.apply(this.b$['java.util.AbstractList'], [i, e]);
this.lastRet=-1;
this.cursor=i + 1;
this.expectedModCount=this.this$0.modCount;
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.AbstractSet','java.util.AbstractCollection','StringBuilder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractMap", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, 'java.util.Map');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.keySet=null;
this.values=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.entrySet$().size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.size$() == 0;
});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
var i=this.entrySet$().iterator$();
if (value == null ) {
while (i.hasNext$()){
var e=i.next$();
if (e.getValue$() == null ) return true;
}
} else {
while (i.hasNext$()){
var e=i.next$();
if (value.equals$O(e.getValue$())) return true;
}
}return false;
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
var i=this.entrySet$().iterator$();
if (key == null ) {
while (i.hasNext$()){
var e=i.next$();
if (e.getKey$() == null ) return true;
}
} else {
while (i.hasNext$()){
var e=i.next$();
if (key.equals$O(e.getKey$())) return true;
}
}return false;
});
Clazz_newMeth(C$, 'get$O', function (key) {
var i=this.entrySet$().iterator$();
if (key == null ) {
while (i.hasNext$()){
var e=i.next$();
if (e.getKey$() == null ) return e.getValue$();
}
} else {
while (i.hasNext$()){
var e=i.next$();
if (key.equals$O(e.getKey$())) return e.getValue$();
}
}return null;
});
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O', function (key) {
var i=this.entrySet$().iterator$();
var correctEntry=null;
if (key == null ) {
while (correctEntry == null && i.hasNext$() ){
var e=i.next$();
if (e.getKey$() == null ) correctEntry=e;
}
} else {
while (correctEntry == null && i.hasNext$() ){
var e=i.next$();
if (key.equals$O(e.getKey$())) correctEntry=e;
}
}var oldValue=null;
if (correctEntry != null ) {
oldValue=correctEntry.getValue$();
i.remove$();
}return oldValue;
});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) {
for (var e, $e = m.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.put$TK$TV(e.getKey$(), e.getValue$());
});
Clazz_newMeth(C$, 'clear$', function () {
this.entrySet$().clear$();
});
Clazz_newMeth(C$, 'keySet$', function () {
if (this.keySet == null ) {
this.keySet=((P$.AbstractMap$1||
(function(){var C$=Clazz_newClass(P$, "AbstractMap$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.util.AbstractSet'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return ((P$.AbstractMap$1$1||
(function(){var C$=Clazz_newClass(P$, "AbstractMap$1$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.i=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.i=this.b$['java.util.AbstractMap'].entrySet$.apply(this.b$['java.util.AbstractMap'], []).iterator$();
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.i.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.i.next$().getKey$();
});
Clazz_newMeth(C$, 'remove$', function () {
this.i.remove$();
});
})()
), Clazz_new_(P$.AbstractMap$1$1.$init$, [this, null]));
});
Clazz_newMeth(C$, 'size$', function () {
return this.b$['java.util.AbstractMap'].size$.apply(this.b$['java.util.AbstractMap'], []);
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.b$['java.util.AbstractMap'].isEmpty$.apply(this.b$['java.util.AbstractMap'], []);
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.AbstractMap'].clear$.apply(this.b$['java.util.AbstractMap'], []);
});
Clazz_newMeth(C$, 'contains$O', function (k) {
return this.b$['java.util.AbstractMap'].containsKey$O.apply(this.b$['java.util.AbstractMap'], [k]);
});
})()
), Clazz_new_($I$(1), [this, null],P$.AbstractMap$1));
}return this.keySet;
});
Clazz_newMeth(C$, 'values$', function () {
if (this.values == null ) {
this.values=((P$.AbstractMap$2||
(function(){var C$=Clazz_newClass(P$, "AbstractMap$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.util.AbstractCollection'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return ((P$.AbstractMap$2$1||
(function(){var C$=Clazz_newClass(P$, "AbstractMap$2$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.i=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.i=this.b$['java.util.AbstractMap'].entrySet$.apply(this.b$['java.util.AbstractMap'], []).iterator$();
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.i.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.i.next$().getValue$();
});
Clazz_newMeth(C$, 'remove$', function () {
this.i.remove$();
});
})()
), Clazz_new_(P$.AbstractMap$2$1.$init$, [this, null]));
});
Clazz_newMeth(C$, 'size$', function () {
return this.b$['java.util.AbstractMap'].size$.apply(this.b$['java.util.AbstractMap'], []);
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.b$['java.util.AbstractMap'].isEmpty$.apply(this.b$['java.util.AbstractMap'], []);
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.AbstractMap'].clear$.apply(this.b$['java.util.AbstractMap'], []);
});
Clazz_newMeth(C$, 'contains$O', function (v) {
return this.b$['java.util.AbstractMap'].containsValue$O.apply(this.b$['java.util.AbstractMap'], [v]);
});
})()
), Clazz_new_($I$(2), [this, null],P$.AbstractMap$2));
}return this.values;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.Map"))) return false;
var m=o;
if (m.size$() != this.size$()) return false;
try {
var i=this.entrySet$().iterator$();
while (i.hasNext$()){
var e=i.next$();
var key=e.getKey$();
var value=e.getValue$();
if (value == null ) {
if (!(m.get$O(key) == null && m.containsKey$O(key) )) return false;
} else {
if (!value.equals$O(m.get$O(key))) return false;
}}
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"ClassCastException")){
var unused = e$$;
{
return false;
}
} else if (Clazz_exceptionOf(e$$,"NullPointerException")){
var unused = e$$;
{
return false;
}
} else {
throw e$$;
}
}
return true;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var h=0;
var i=this.entrySet$().iterator$();
while (i.hasNext$())h+=i.next$().hashCode$();
return h;
});
Clazz_newMeth(C$, 'toString', function () {
var i=this.entrySet$().iterator$();
if (!i.hasNext$()) return "{}";
var sb=Clazz_new_($I$(3));
sb.append$C("{");
for (; ; ) {
var e=i.next$();
var key=e.getKey$();
var value=e.getValue$();
sb.append$O(key === this ? "(this Map)" : key);
sb.append$C("=");
sb.append$O(value === this ? "(this Map)" : value);
if (!i.hasNext$()) return sb.append$C("}").toString();
sb.append$C(",").append$C(" ");
}
});
Clazz_newMeth(C$, 'clone$', function () {
var result=Clazz_clone(this);
result.keySet=null;
result.values=null;
return result;
});
Clazz_newMeth(C$, 'eq$O$O', function (o1, o2) {
return o1 == null ? o2 == null : o1.equals$O(o2);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.AbstractMap, "SimpleEntry", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.util.Map','java.util.Map.Entry'], 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.key=null;
this.value=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$TK$TV'], function (key, value) {
C$.$init$.apply(this);
this.key=key;
this.value=value;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map_Entry', function (entry) {
C$.$init$.apply(this);
this.key=entry.getKey$();
this.value=entry.getValue$();
}, 1);
Clazz_newMeth(C$, 'getKey$', function () {
return this.key;
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, ['setValue$TV'], function (value) {
var oldValue=this.value;
this.value=value;
return oldValue;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
return P$.AbstractMap.eq$O$O(this.key, e.getKey$()) && P$.AbstractMap.eq$O$O(this.value, e.getValue$()) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return (this.key == null ? 0 : this.key.hashCode$()) ^ (this.value == null ? 0 : this.value.hashCode$());
});
Clazz_newMeth(C$, 'toString', function () {
return this.key + "=" + this.value ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractMap, "SimpleImmutableEntry", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.util.Map','java.util.Map.Entry'], 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.key=null;
this.value=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$TK$TV'], function (key, value) {
C$.$init$.apply(this);
this.key=key;
this.value=value;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map_Entry', function (entry) {
C$.$init$.apply(this);
this.key=entry.getKey$();
this.value=entry.getValue$();
}, 1);
Clazz_newMeth(C$, 'getKey$', function () {
return this.key;
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, ['setValue$TV'], function (value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
return P$.AbstractMap.eq$O$O(this.key, e.getKey$()) && P$.AbstractMap.eq$O$O(this.value, e.getValue$()) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return (this.key == null ? 0 : this.key.hashCode$()) ^ (this.value == null ? 0 : this.value.hashCode$());
});
Clazz_newMeth(C$, 'toString', function () {
return this.key + "=" + this.value ;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newClass(P$, "AbstractSequentialList", null, 'java.util.AbstractList');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'get$I', function (index) {
try {
return this.listIterator$I(index).next$();
} catch (exc) {
if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
} else {
throw exc;
}
}
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
try {
var e=this.listIterator$I(index);
var oldVal=e.next$();
e.set$TE(element);
return oldVal;
} catch (exc) {
if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
} else {
throw exc;
}
}
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
try {
this.listIterator$I(index).add$TE(element);
} catch (exc) {
if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
} else {
throw exc;
}
}
});
Clazz_newMeth(C$, 'remove$I', function (index) {
try {
var e=this.listIterator$I(index);
var outCast=e.next$();
e.remove$();
return outCast;
} catch (exc) {
if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
} else {
throw exc;
}
}
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
try {
var modified=false;
var e1=this.listIterator$I(index);
var e2=c.iterator$();
while (e2.hasNext$()){
e1.add$TE(e2.next$());
modified=true;
}
return modified;
} catch (exc) {
if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
} else {
throw exc;
}
}
});
Clazz_newMeth(C$, 'iterator$', function () {
return this.listIterator$();
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Objects']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractSet", null, 'java.util.AbstractCollection', 'java.util.Set');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.Set"))) return false;
var c=o;
if (c.size$() != this.size$()) return false;
try {
return this.containsAll$java_util_Collection(c);
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"ClassCastException")){
var unused = e$$;
{
return false;
}
} else if (Clazz_exceptionOf(e$$,"NullPointerException")){
var unused = e$$;
{
return false;
}
} else {
throw e$$;
}
}
});
Clazz_newMeth(C$, 'hashCode$', function () {
var h=0;
var i=this.iterator$();
while (i.hasNext$()){
var obj=i.next$();
if (obj != null ) h+=obj.hashCode$();
}
return h;
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
$I$(1).requireNonNull$TT(c);
var modified=false;
if (this.size$() > c.size$()) {
for (var i=c.iterator$(); i.hasNext$(); ) modified|=this.remove$O(i.next$());
} else {
for (var i=this.iterator$(); i.hasNext$(); ) {
if (c.contains$O(i.next$())) {
i.remove$();
modified=true;
}}
}return modified;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},p$2={},I$=[[0,'java.util.Objects',['java.util.ArrayList','.ArrayListSpliterator'],'java.util.Arrays','OutOfMemoryError','InternalError',['java.util.ArrayList','.ListItr'],['java.util.ArrayList','.Itr'],['java.util.ArrayList','.SubList'],'java.util.BitSet']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ArrayList", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.AbstractList', ['java.util.List', 'java.util.RandomAccess', 'Cloneable', 'java.io.Serializable']);
C$.EMPTY_ELEMENTDATA=null;
C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_ELEMENTDATA=Clazz_array(java.lang.Object, -1, []);
C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA=Clazz_array(java.lang.Object, -1, []);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.elementData=null;
this.size=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialCapacity) {
Clazz_super_(C$, this,1);
if (initialCapacity > 0) {
this.elementData=Clazz_array(java.lang.Object, [initialCapacity]);
} else if (initialCapacity == 0) {
this.elementData=C$.EMPTY_ELEMENTDATA;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Capacity: " + initialCapacity]);
}}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.elementData=C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) {
Clazz_super_(C$, this,1);
this.elementData=c.toArray$();
if ((this.size=this.elementData.length) != 0) {
if (this.elementData.getClass$() !== Clazz_array(java.lang.Object, -1) ) this.elementData=$I$(3).copyOf$TUA$I$Class(this.elementData, this.size, Clazz_array(java.lang.Object, -1));
} else {
this.elementData=C$.EMPTY_ELEMENTDATA;
}}, 1);
Clazz_newMeth(C$, 'trimToSize$', function () {
this.modCount++;
if (this.size < this.elementData.length) {
this.elementData=(this.size == 0) ? C$.EMPTY_ELEMENTDATA : $I$(3).copyOf$TTA$I(this.elementData, this.size);
}});
Clazz_newMeth(C$, 'ensureCapacity$I', function (minCapacity) {
var minExpand=(this.elementData !== C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA ) ? 0 : 10;
if (minCapacity > minExpand) {
p$1.ensureExplicitCapacity$I.apply(this, [minCapacity]);
}});
Clazz_newMeth(C$, 'ensureCapacityInternal$I', function (minCapacity) {
if (this.elementData === C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA ) {
minCapacity=Math.max(10, minCapacity);
}p$1.ensureExplicitCapacity$I.apply(this, [minCapacity]);
}, p$1);
Clazz_newMeth(C$, 'ensureExplicitCapacity$I', function (minCapacity) {
this.modCount++;
if (minCapacity - this.elementData.length > 0) p$1.grow$I.apply(this, [minCapacity]);
}, p$1);
Clazz_newMeth(C$, 'grow$I', function (minCapacity) {
var oldCapacity=this.elementData.length;
var newCapacity=oldCapacity + (oldCapacity >> 1);
if (newCapacity - minCapacity < 0) newCapacity=minCapacity;
if (newCapacity - 2147483639 > 0) newCapacity=C$.hugeCapacity$I(minCapacity);
this.elementData=$I$(3).copyOf$TTA$I(this.elementData, newCapacity);
}, p$1);
Clazz_newMeth(C$, 'hugeCapacity$I', function (minCapacity) {
if (minCapacity < 0) throw Clazz_new_($I$(4));
return (minCapacity > 2147483639) ? 2147483647 : 2147483639;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.size;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.size == 0;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.indexOf$O(o) >= 0;
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
if (o == null ) {
for (var i=0; i < this.size; i++) if (this.elementData[i] == null ) return i;
} else {
for (var i=0; i < this.size; i++) if (o.equals$O(this.elementData[i])) return i;
}return -1;
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
if (o == null ) {
for (var i=this.size - 1; i >= 0; i--) if (this.elementData[i] == null ) return i;
} else {
for (var i=this.size - 1; i >= 0; i--) if (o.equals$O(this.elementData[i])) return i;
}return -1;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var v=Clazz_clone(this);
v.elementData=$I$(3).copyOf$TTA$I(this.elementData, this.size);
v.modCount=0;
return v;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(5).c$$Throwable,[e]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'toArray$', function () {
return $I$(3).copyOf$TTA$I(this.elementData, this.size);
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
if (a.length < this.size) return $I$(3).copyOf$TUA$I$Class(this.elementData, this.size, a.getClass$());
System.arraycopy$O$I$O$I$I(this.elementData, 0, a, 0, this.size);
if (a.length > this.size) a[this.size]=null;
return a;
});
Clazz_newMeth(C$, 'elementData$I', function (index) {
return this.elementData[index];
});
Clazz_newMeth(C$, 'get$I', function (index) {
p$1.rangeCheck$I.apply(this, [index]);
return this.elementData$I(index);
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
p$1.rangeCheck$I.apply(this, [index]);
var oldValue=this.elementData$I(index);
this.elementData[index]=element;
return oldValue;
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
p$1.ensureCapacityInternal$I.apply(this, [this.size + 1]);
this.elementData[this.size++]=e;
return true;
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
p$1.rangeCheckForAdd$I.apply(this, [index]);
p$1.ensureCapacityInternal$I.apply(this, [this.size + 1]);
System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + 1, this.size - index);
this.elementData[index]=element;
this.size++;
});
Clazz_newMeth(C$, 'remove$I', function (index) {
p$1.rangeCheck$I.apply(this, [index]);
this.modCount++;
var oldValue=this.elementData$I(index);
var numMoved=this.size - index - 1 ;
if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, numMoved);
this.elementData[--this.size]=null;
return oldValue;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (o == null ) {
for (var index=0; index < this.size; index++) if (this.elementData[index] == null ) {
p$1.fastRemove$I.apply(this, [index]);
return true;
}
} else {
for (var index=0; index < this.size; index++) if (o.equals$O(this.elementData[index])) {
p$1.fastRemove$I.apply(this, [index]);
return true;
}
}return false;
});
Clazz_newMeth(C$, 'fastRemove$I', function (index) {
this.modCount++;
var numMoved=this.size - index - 1 ;
if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, numMoved);
this.elementData[--this.size]=null;
}, p$1);
Clazz_newMeth(C$, 'clear$', function () {
this.modCount++;
for (var i=0; i < this.size; i++) this.elementData[i]=null;
this.size=0;
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) {
var a=c.toArray$();
var numNew=a.length;
p$1.ensureCapacityInternal$I.apply(this, [this.size + numNew]);
System.arraycopy$O$I$O$I$I(a, 0, this.elementData, this.size, numNew);
this.size+=numNew;
return numNew != 0;
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
p$1.rangeCheckForAdd$I.apply(this, [index]);
var a=c.toArray$();
var numNew=a.length;
p$1.ensureCapacityInternal$I.apply(this, [this.size + numNew]);
var numMoved=this.size - index;
if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + numNew, numMoved);
System.arraycopy$O$I$O$I$I(a, 0, this.elementData, index, numNew);
this.size+=numNew;
return numNew != 0;
});
Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) {
this.modCount++;
var numMoved=this.size - toIndex;
System.arraycopy$O$I$O$I$I(this.elementData, toIndex, this.elementData, fromIndex, numMoved);
var newSize=this.size - (toIndex - fromIndex);
for (var i=newSize; i < this.size; i++) {
this.elementData[i]=null;
}
this.size=newSize;
});
Clazz_newMeth(C$, 'rangeCheck$I', function (index) {
if (index >= this.size) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'rangeCheckForAdd$I', function (index) {
if (index > this.size || index < 0 ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) {
return "Index: " + index + ", Size: " + this.size ;
}, p$1);
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
$I$(1).requireNonNull$TT(c);
return p$1.batchRemove$java_util_Collection$Z.apply(this, [c, false]);
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) {
$I$(1).requireNonNull$TT(c);
return p$1.batchRemove$java_util_Collection$Z.apply(this, [c, true]);
});
Clazz_newMeth(C$, 'batchRemove$java_util_Collection$Z', function (c, complement) {
var elementData=this.elementData;
var r=0;
var w=0;
var modified=false;
try {
for (; r < this.size; r++) if (c.contains$O(elementData[r]) == complement ) elementData[w++]=elementData[r];
} finally {
if (r != this.size) {
System.arraycopy$O$I$O$I$I(elementData, r, elementData, w, this.size - r);
w+=this.size - r;
}if (w != this.size) {
for (var i=w; i < this.size; i++) elementData[i]=null;
this.modCount+=this.size - w;
this.size=w;
modified=true;
}}
return modified;
}, p$1);
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
var expectedModCount=this.modCount;
s.defaultWriteObject$();
s.writeInt$I(this.size);
for (var i=0; i < this.size; i++) {
s.writeObject$O(this.elementData[i]);
}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) {
this.elementData=C$.EMPTY_ELEMENTDATA;
s.defaultReadObject$();
s.readInt$();
if (this.size > 0) {
p$1.ensureCapacityInternal$I.apply(this, [this.size]);
var a=this.elementData;
for (var i=0; i < this.size; i++) {
a[i]=s.readObject$();
}
}}, p$1);
Clazz_newMeth(C$, 'listIterator$I', function (index) {
if (index < 0 || index > this.size ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
return Clazz_new_($I$(6).c$$I, [this, null, index]);
});
Clazz_newMeth(C$, 'listIterator$', function () {
return Clazz_new_($I$(6).c$$I, [this, null, 0]);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(7), [this, null]);
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
C$.subListRangeCheck$I$I$I(fromIndex, toIndex, this.size);
return Clazz_new_($I$(8).c$$java_util_AbstractList$I$I$I, [this, null, this, 0, fromIndex, toIndex]);
});
Clazz_newMeth(C$, 'subListRangeCheck$I$I$I', function (fromIndex, toIndex, size) {
if (fromIndex < 0) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["fromIndex = " + fromIndex]);
if (toIndex > size) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["toIndex = " + toIndex]);
if (fromIndex > toIndex) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ]);
}, 1);
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
var expectedModCount=this.modCount;
var elementData=this.elementData;
var size=this.size;
for (var i=0; this.modCount == expectedModCount && i < size ; i++) {
action.accept$(elementData[i]);
}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(2).c$$java_util_ArrayList$I$I$I,[this, 0, -1, 0]);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
$I$(1).requireNonNull$TT(filter);
var removeCount=0;
var removeSet=Clazz_new_($I$(9).c$$I,[this.size]);
var expectedModCount=this.modCount;
var size=this.size;
for (var i=0; this.modCount == expectedModCount && i < size ; i++) {
var element=this.elementData[i];
if (filter.test$(element)) {
removeSet.set$I(i);
removeCount++;
}}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}var anyToRemove=removeCount > 0;
if (anyToRemove) {
var newSize=size - removeCount;
for (var i=0, j=0; (i < size) && (j < newSize) ; i++, j++) {
i=removeSet.nextClearBit$I(i);
this.elementData[j]=this.elementData[i];
}
for (var k=newSize; k < size; k++) {
this.elementData[k]=null;
}
this.size=newSize;
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}this.modCount++;
}return anyToRemove;
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
$I$(1).requireNonNull$TT(operator);
var expectedModCount=this.modCount;
var size=this.size;
for (var i=0; this.modCount == expectedModCount && i < size ; i++) {
this.elementData[i]=operator.apply$(this.elementData[i]);
}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}this.modCount++;
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
var expectedModCount=this.modCount;
$I$(3).sort$TTA$I$I$java_util_Comparator(this.elementData, 0, this.size, c);
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}this.modCount++;
});
;
(function(){var C$=Clazz_newClass(P$.ArrayList, "Itr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.cursor=0;
this.lastRet=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.lastRet=-1;
this.expectedModCount=this.this$0.modCount;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.cursor != this.this$0.size;
});
Clazz_newMeth(C$, 'next$', function () {
this.checkForComodification$();
var i=this.cursor;
if (i >= this.this$0.size) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
var elementData=this.b$['java.util.ArrayList'].elementData;
if (i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.cursor=i + 1;
return elementData[this.lastRet=i];
});
Clazz_newMeth(C$, 'remove$', function () {
if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
try {
this.b$['java.util.ArrayList'].remove$I.apply(this.b$['java.util.ArrayList'], [this.lastRet]);
this.cursor=this.lastRet;
this.lastRet=-1;
this.expectedModCount=this.this$0.modCount;
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (consumer) {
$I$(1).requireNonNull$TT(consumer);
var size=this.b$['java.util.ArrayList'].size;
var i=this.cursor;
if (i >= size) {
return;
}var elementData=this.b$['java.util.ArrayList'].elementData;
if (i >= elementData.length) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}while (i != size && this.this$0.modCount == this.expectedModCount ){
consumer.accept$(elementData[i++]);
}
this.cursor=i;
this.lastRet=i - 1;
this.checkForComodification$();
});
Clazz_newMeth(C$, 'checkForComodification$', function () {
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.ArrayList, "ListItr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.ArrayList','.Itr'], 'java.util.ListIterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (index) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.cursor=index;
}, 1);
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.cursor != 0;
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.cursor;
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.cursor - 1;
});
Clazz_newMeth(C$, 'previous$', function () {
this.checkForComodification$();
var i=this.cursor - 1;
if (i < 0) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
var elementData=this.b$['java.util.ArrayList'].elementData;
if (i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.cursor=i;
return elementData[this.lastRet=i];
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
try {
this.b$['java.util.ArrayList'].set$I$TE.apply(this.b$['java.util.ArrayList'], [this.lastRet, e]);
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.checkForComodification$();
try {
var i=this.cursor;
this.b$['java.util.ArrayList'].add$I$TE.apply(this.b$['java.util.ArrayList'], [i, e]);
this.cursor=i + 1;
this.lastRet=-1;
this.expectedModCount=this.this$0.modCount;
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.ArrayList, "SubList", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractList', 'java.util.RandomAccess');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.parent=null;
this.parentOffset=0;
this.offset=0;
this.size=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_AbstractList$I$I$I', function (parent, offset, fromIndex, toIndex) {
Clazz_super_(C$, this,1);
this.parent=parent;
this.parentOffset=fromIndex;
this.offset=offset + fromIndex;
this.size=toIndex - fromIndex;
this.modCount=this.b$['java.util.ArrayList'].modCount;
}, 1);
Clazz_newMeth(C$, 'set$I$TE', function (index, e) {
p$1.rangeCheck$I.apply(this, [index]);
p$1.checkForComodification.apply(this, []);
var oldValue=this.b$['java.util.ArrayList'].elementData$I.apply(this.b$['java.util.ArrayList'], [this.offset + index]);
this.b$['java.util.ArrayList'].elementData[this.offset + index]=e;
return oldValue;
});
Clazz_newMeth(C$, 'get$I', function (index) {
p$1.rangeCheck$I.apply(this, [index]);
p$1.checkForComodification.apply(this, []);
return this.b$['java.util.ArrayList'].elementData$I.apply(this.b$['java.util.ArrayList'], [this.offset + index]);
});
Clazz_newMeth(C$, 'size$', function () {
p$1.checkForComodification.apply(this, []);
return this.size;
});
Clazz_newMeth(C$, 'add$I$TE', function (index, e) {
p$1.rangeCheckForAdd$I.apply(this, [index]);
p$1.checkForComodification.apply(this, []);
this.parent.add$I$TE(this.parentOffset + index, e);
this.modCount=this.parent.modCount;
this.size++;
});
Clazz_newMeth(C$, 'remove$I', function (index) {
p$1.rangeCheck$I.apply(this, [index]);
p$1.checkForComodification.apply(this, []);
var result=this.parent.remove$I(this.parentOffset + index);
this.modCount=this.parent.modCount;
this.size--;
return result;
});
Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) {
p$1.checkForComodification.apply(this, []);
this.parent.removeRange$I$I(this.parentOffset + fromIndex, this.parentOffset + toIndex);
this.modCount=this.parent.modCount;
this.size-=toIndex - fromIndex;
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) {
return this.addAll$I$java_util_Collection(this.size, c);
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
p$1.rangeCheckForAdd$I.apply(this, [index]);
var cSize=c.size$();
if (cSize == 0) return false;
p$1.checkForComodification.apply(this, []);
this.parent.addAll$I$java_util_Collection(this.parentOffset + index, c);
this.modCount=this.parent.modCount;
this.size+=cSize;
return true;
});
Clazz_newMeth(C$, 'iterator$', function () {
return this.listIterator$();
});
Clazz_newMeth(C$, 'listIterator$I', function (index) {
p$1.checkForComodification.apply(this, []);
p$1.rangeCheckForAdd$I.apply(this, [index]);
var offset=this.offset;
return ((P$.ArrayList$SubList$1||
(function(){var C$=Clazz_newClass(P$, "ArrayList$SubList$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.ListIterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.cursor=0;
this.lastRet=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.cursor=this.$finals$.index;
this.lastRet=-1;
this.expectedModCount=this.b$['java.util.ArrayList'].modCount;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.cursor != this.b$['java.util.ArrayList.SubList'].size;
});
Clazz_newMeth(C$, 'next$', function () {
this.checkForComodification$();
var i=this.cursor;
if (i >= this.b$['java.util.ArrayList.SubList'].size) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
var elementData=this.b$['java.util.ArrayList'].elementData;
if (this.$finals$.offset + i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.cursor=i + 1;
return elementData[this.$finals$.offset + (this.lastRet=i)];
});
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.cursor != 0;
});
Clazz_newMeth(C$, 'previous$', function () {
this.checkForComodification$();
var i=this.cursor - 1;
if (i < 0) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
var elementData=this.b$['java.util.ArrayList'].elementData;
if (this.$finals$.offset + i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.cursor=i;
return elementData[this.$finals$.offset + (this.lastRet=i)];
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (consumer) {
$I$(1).requireNonNull$TT(consumer);
var size=this.b$['java.util.ArrayList.SubList'].size;
var i=this.cursor;
if (i >= size) {
return;
}var elementData=this.b$['java.util.ArrayList'].elementData;
if (this.$finals$.offset + i >= elementData.length) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}while (i != size && this.b$['java.util.ArrayList.SubList'].modCount == this.expectedModCount ){
consumer.accept$(elementData[this.$finals$.offset + (i++)]);
}
this.lastRet=this.cursor=i;
this.checkForComodification$();
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.cursor;
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.cursor - 1;
});
Clazz_newMeth(C$, 'remove$', function () {
if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
try {
this.b$['java.util.ArrayList.SubList'].remove$I.apply(this.b$['java.util.ArrayList.SubList'], [this.lastRet]);
this.cursor=this.lastRet;
this.lastRet=-1;
this.expectedModCount=this.b$['java.util.ArrayList'].modCount;
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
try {
this.b$['java.util.ArrayList'].set$I$TE.apply(this.b$['java.util.ArrayList'], [this.$finals$.offset + this.lastRet, e]);
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.checkForComodification$();
try {
var i=this.cursor;
this.b$['java.util.ArrayList.SubList'].add$I$TE.apply(this.b$['java.util.ArrayList.SubList'], [i, e]);
this.cursor=i + 1;
this.lastRet=-1;
this.expectedModCount=this.b$['java.util.ArrayList'].modCount;
} catch (ex) {
if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
} else {
throw ex;
}
}
});
Clazz_newMeth(C$, 'checkForComodification$', function () {
if (this.expectedModCount != this.b$['java.util.ArrayList'].modCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
})()
), Clazz_new_(P$.ArrayList$SubList$1.$init$, [this, {index: index, offset: offset}]));
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
P$.ArrayList.subListRangeCheck$I$I$I(fromIndex, toIndex, this.size);
return Clazz_new_(C$.c$$java_util_AbstractList$I$I$I, [this, null, this, this.offset, fromIndex, toIndex]);
});
Clazz_newMeth(C$, 'rangeCheck$I', function (index) {
if (index < 0 || index >= this.size ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'rangeCheckForAdd$I', function (index) {
if (index < 0 || index > this.size ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) {
return "Index: " + index + ", Size: " + this.size ;
}, p$1);
Clazz_newMeth(C$, 'checkForComodification', function () {
if (this.b$['java.util.ArrayList'].modCount != this.modCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}, p$1);
Clazz_newMeth(C$, 'spliterator$', function () {
p$1.checkForComodification.apply(this, []);
return Clazz_new_($I$(2).c$$java_util_ArrayList$I$I$I,[this.b$['java.util.ArrayList'], this.offset, this.offset + this.size, this.modCount]);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.ArrayList, "ArrayListSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.list=null;
this.index=0;
this.fence=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_ArrayList$I$I$I', function (list, origin, fence, expectedModCount) {
C$.$init$.apply(this);
this.list=list;
this.index=origin;
this.fence=fence;
this.expectedModCount=expectedModCount;
}, 1);
Clazz_newMeth(C$, 'getFence', function () {
var hi;
var lst;
if ((hi=this.fence) < 0) {
if ((lst=this.list) == null ) hi=this.fence=0;
else {
this.expectedModCount=lst.modCount;
hi=this.fence=lst.size;
}}return hi;
}, p$2);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=p$2.getFence.apply(this, []);
var lo=this.index;
var mid=(lo + hi) >>> 1;
return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_ArrayList$I$I$I,[this.list, lo, this.index=mid, this.expectedModCount]);
});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var hi=p$2.getFence.apply(this, []);
var i=this.index;
if (i < hi) {
this.index=i + 1;
var e=this.list.elementData[i];
action.accept$(e);
if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}return false;
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
var i;
var hi;
var mc;
var lst;
var a;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if ((lst=this.list) != null && (a=lst.elementData) != null ) {
if ((hi=this.fence) < 0) {
mc=lst.modCount;
hi=lst.size;
} else mc=this.expectedModCount;
if ((i=this.index) >= 0 && (this.index=hi) <= a.length ) {
for (; i < hi; ++i) {
var e=a[i];
action.accept$(e);
}
if (lst.modCount == mc) return;
}}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, 'estimateSize$', function () {
return (p$2.getFence.apply(this, []) - this.index);
});
Clazz_newMeth(C$, 'characteristics$', function () {
return 16464;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Objects','java.util.Arrays','java.util.Spliterators','java.util.DualPivotQuicksort','java.util.concurrent.ForkJoinPool',['java.util.ArraysParallelSortHelpers','.FJByte','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJChar','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJShort','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJInt','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJLong','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJFloat','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJDouble','.Sorter'],'java.util.TimSort',['java.util.Arrays','.NaturalOrder'],['java.util.ArraysParallelSortHelpers','.FJObject','.Sorter'],'java.lang.reflect.Array',['java.util.Arrays','.LegacyMergeSort'],'java.util.ComparableTimSort',['java.util.ArrayPrefixHelpers','.CumulateTask'],['java.util.ArrayPrefixHelpers','.LongCumulateTask'],['java.util.ArrayPrefixHelpers','.DoubleCumulateTask'],['java.util.ArrayPrefixHelpers','.IntCumulateTask'],['java.util.Arrays','.ArrayList'],'StringBuilder','java.util.HashSet','java.util.stream.IntStream','java.util.stream.StreamSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Arrays", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'rangeCheck$I$I$I', function (arrayLength, fromIndex, toIndex) {
if (fromIndex > toIndex) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ]);
}if (fromIndex < 0) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[fromIndex]);
}if (toIndex > arrayLength) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[toIndex]);
}}, 1);
Clazz_newMeth(C$, 'sort$IA', function (a) {
$I$(4).sort$IA$I$I$IA$I$I(a, 0, a.length - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$IA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$IA$I$I$IA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$JA', function (a) {
$I$(4).sort$JA$I$I$JA$I$I(a, 0, a.length - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$JA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$JA$I$I$JA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$HA', function (a) {
$I$(4).sort$HA$I$I$HA$I$I(a, 0, a.length - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$HA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$HA$I$I$HA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$CA', function (a) {
$I$(4).sort$CA$I$I$CA$I$I(a, 0, a.length - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$CA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$CA$I$I$CA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$BA', function (a) {
$I$(4).sort$BA$I$I(a, 0, a.length - 1);
}, 1);
Clazz_newMeth(C$, 'sort$BA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$BA$I$I(a, fromIndex, toIndex - 1);
}, 1);
Clazz_newMeth(C$, 'sort$FA', function (a) {
$I$(4).sort$FA$I$I$FA$I$I(a, 0, a.length - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$FA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$FA$I$I$FA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$DA', function (a) {
$I$(4).sort$DA$I$I$DA$I$I(a, 0, a.length - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'sort$DA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
$I$(4).sort$DA$I$I$DA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'parallelSort$BA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$BA$I$I(a, 0, n - 1);
else Clazz_new_($I$(6).c$$java_util_concurrent_CountedCompleter$BA$BA$I$I$I$I,[null, a, Clazz_array(Byte.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$BA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$BA$I$I(a, fromIndex, toIndex - 1);
else Clazz_new_($I$(6).c$$java_util_concurrent_CountedCompleter$BA$BA$I$I$I$I,[null, a, Clazz_array(Byte.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$CA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$CA$I$I$CA$I$I(a, 0, n - 1, null, 0, 0);
else Clazz_new_($I$(7).c$$java_util_concurrent_CountedCompleter$CA$CA$I$I$I$I,[null, a, Clazz_array(Character.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$CA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$CA$I$I$CA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
else Clazz_new_($I$(7).c$$java_util_concurrent_CountedCompleter$CA$CA$I$I$I$I,[null, a, Clazz_array(Character.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$HA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$HA$I$I$HA$I$I(a, 0, n - 1, null, 0, 0);
else Clazz_new_($I$(8).c$$java_util_concurrent_CountedCompleter$HA$HA$I$I$I$I,[null, a, Clazz_array(Short.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$HA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$HA$I$I$HA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
else Clazz_new_($I$(8).c$$java_util_concurrent_CountedCompleter$HA$HA$I$I$I$I,[null, a, Clazz_array(Short.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$IA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$IA$I$I$IA$I$I(a, 0, n - 1, null, 0, 0);
else Clazz_new_($I$(9).c$$java_util_concurrent_CountedCompleter$IA$IA$I$I$I$I,[null, a, Clazz_array(Integer.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$IA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$IA$I$I$IA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
else Clazz_new_($I$(9).c$$java_util_concurrent_CountedCompleter$IA$IA$I$I$I$I,[null, a, Clazz_array(Integer.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$JA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$JA$I$I$JA$I$I(a, 0, n - 1, null, 0, 0);
else Clazz_new_($I$(10).c$$java_util_concurrent_CountedCompleter$JA$JA$I$I$I$I,[null, a, Clazz_array(Long.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$JA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$JA$I$I$JA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
else Clazz_new_($I$(10).c$$java_util_concurrent_CountedCompleter$JA$JA$I$I$I$I,[null, a, Clazz_array(Long.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$FA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$FA$I$I$FA$I$I(a, 0, n - 1, null, 0, 0);
else Clazz_new_($I$(11).c$$java_util_concurrent_CountedCompleter$FA$FA$I$I$I$I,[null, a, Clazz_array(Float.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$FA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$FA$I$I$FA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
else Clazz_new_($I$(11).c$$java_util_concurrent_CountedCompleter$FA$FA$I$I$I$I,[null, a, Clazz_array(Float.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$DA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$DA$I$I$DA$I$I(a, 0, n - 1, null, 0, 0);
else Clazz_new_($I$(12).c$$java_util_concurrent_CountedCompleter$DA$DA$I$I$I$I,[null, a, Clazz_array(Double.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$DA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$DA$I$I$DA$I$I(a, fromIndex, toIndex - 1, null, 0, 0);
else Clazz_new_($I$(12).c$$java_util_concurrent_CountedCompleter$DA$DA$I$I$I$I,[null, a, Clazz_array(Double.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$TTA', function (a) {
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, 0, n, $I$(14).INSTANCE, null, 0, 0);
else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, $I$(14).INSTANCE]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$TTA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, fromIndex, toIndex, $I$(14).INSTANCE, null, 0, 0);
else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, $I$(14).INSTANCE]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$TTA$java_util_Comparator', function (a, cmp) {
if (cmp == null ) cmp=$I$(14).INSTANCE;
var n=a.length;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, 0, n, cmp, null, 0, 0);
else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, cmp]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelSort$TTA$I$I$java_util_Comparator', function (a, fromIndex, toIndex, cmp) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
if (cmp == null ) cmp=$I$(14).INSTANCE;
var n=toIndex - fromIndex;
var p;
var g;
if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, fromIndex, toIndex, cmp, null, 0, 0);
else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, cmp]).invoke$();
}, 1);
Clazz_newMeth(C$, 'sort$OA', function (a) {
if ($I$(17).userRequested) C$.legacyMergeSort$OA(a);
else $I$(18).sort$OA$I$I$OA$I$I(a, 0, a.length, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'legacyMergeSort$OA', function (a) {
var aux=a.clone$();
C$.mergeSort$OA$OA$I$I$I(aux, a, 0, a.length, 0);
}, 1);
Clazz_newMeth(C$, 'sort$OA$I$I', function (a, fromIndex, toIndex) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
if ($I$(17).userRequested) C$.legacyMergeSort$OA$I$I(a, fromIndex, toIndex);
else $I$(18).sort$OA$I$I$OA$I$I(a, fromIndex, toIndex, null, 0, 0);
}, 1);
Clazz_newMeth(C$, 'legacyMergeSort$OA$I$I', function (a, fromIndex, toIndex) {
var aux=C$.copyOfRange$TTA$I$I(a, fromIndex, toIndex);
C$.mergeSort$OA$OA$I$I$I(aux, a, fromIndex, toIndex, -fromIndex);
}, 1);
Clazz_newMeth(C$, 'mergeSort$OA$OA$I$I$I', function (src, dest, low, high, off) {
var length=high - low;
if (length < 7) {
for (var i=low; i < high; i++) for (var j=i; j > low && (dest[j - 1]).compareTo$(dest[j]) > 0 ; j--) C$.swap$OA$I$I(dest, j, j - 1);
return;
}var destLow=low;
var destHigh=high;
low+=off;
high+=off;
var mid=(low + high) >>> 1;
C$.mergeSort$OA$OA$I$I$I(dest, src, low, mid, -off);
C$.mergeSort$OA$OA$I$I$I(dest, src, mid, high, -off);
if ((src[mid - 1]).compareTo$(src[mid]) <= 0) {
System.arraycopy$O$I$O$I$I(src, low, dest, destLow, length);
return;
}for (var i=destLow, p=low, q=mid; i < destHigh; i++) {
if (q >= high || p < mid && (src[p]).compareTo$(src[q]) <= 0 ) dest[i]=src[p++];
else dest[i]=src[q++];
}
}, 1);
Clazz_newMeth(C$, 'swap$OA$I$I', function (x, a, b) {
var t=x[a];
x[a]=x[b];
x[b]=t;
}, 1);
Clazz_newMeth(C$, 'sort$TTA$java_util_Comparator', function (a, c) {
if (c == null ) {
C$.sort$OA(a);
} else {
if ($I$(17).userRequested) C$.legacyMergeSort$TTA$java_util_Comparator(a, c);
else $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, 0, a.length, c, null, 0, 0);
}}, 1);
Clazz_newMeth(C$, 'legacyMergeSort$TTA$java_util_Comparator', function (a, c) {
var aux=a.clone$();
if (c == null ) C$.mergeSort$OA$OA$I$I$I(aux, a, 0, a.length, 0);
else C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(aux, a, 0, a.length, 0, c);
}, 1);
Clazz_newMeth(C$, 'sort$TTA$I$I$java_util_Comparator', function (a, fromIndex, toIndex, c) {
if (c == null ) {
C$.sort$OA$I$I(a, fromIndex, toIndex);
} else {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
if ($I$(17).userRequested) C$.legacyMergeSort$TTA$I$I$java_util_Comparator(a, fromIndex, toIndex, c);
else $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, fromIndex, toIndex, c, null, 0, 0);
}}, 1);
Clazz_newMeth(C$, 'legacyMergeSort$TTA$I$I$java_util_Comparator', function (a, fromIndex, toIndex, c) {
var aux=C$.copyOfRange$TTA$I$I(a, fromIndex, toIndex);
if (c == null ) C$.mergeSort$OA$OA$I$I$I(aux, a, fromIndex, toIndex, -fromIndex);
else C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(aux, a, fromIndex, toIndex, -fromIndex, c);
}, 1);
Clazz_newMeth(C$, 'mergeSort$OA$OA$I$I$I$java_util_Comparator', function (src, dest, low, high, off, c) {
var length=high - low;
if (length < 7) {
for (var i=low; i < high; i++) for (var j=i; j > low && c.compare$(dest[j - 1], dest[j]) > 0 ; j--) C$.swap$OA$I$I(dest, j, j - 1);
return;
}var destLow=low;
var destHigh=high;
low+=off;
high+=off;
var mid=(low + high) >>> 1;
C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(dest, src, low, mid, -off, c);
C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(dest, src, mid, high, -off, c);
if (c.compare$(src[mid - 1], src[mid]) <= 0) {
System.arraycopy$O$I$O$I$I(src, low, dest, destLow, length);
return;
}for (var i=destLow, p=low, q=mid; i < destHigh; i++) {
if (q >= high || p < mid && c.compare$(src[p], src[q]) <= 0 ) dest[i]=src[p++];
else dest[i]=src[q++];
}
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$TTA$java_util_function_BinaryOperator', function (array, op) {
$I$(1).requireNonNull$TT(op);
if (array.length > 0) Clazz_new_($I$(19).c$$java_util_ArrayPrefixHelpers_CumulateTask$java_util_function_BinaryOperator$TTA$I$I,[null, op, array, 0, array.length]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$TTA$I$I$java_util_function_BinaryOperator', function (array, fromIndex, toIndex, op) {
$I$(1).requireNonNull$TT(op);
C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex);
if (fromIndex < toIndex) Clazz_new_($I$(19).c$$java_util_ArrayPrefixHelpers_CumulateTask$java_util_function_BinaryOperator$TTA$I$I,[null, op, array, fromIndex, toIndex]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$JA$java_util_function_LongBinaryOperator', function (array, op) {
$I$(1).requireNonNull$TT(op);
if (array.length > 0) Clazz_new_($I$(20).c$$java_util_ArrayPrefixHelpers_LongCumulateTask$java_util_function_LongBinaryOperator$JA$I$I,[null, op, array, 0, array.length]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$JA$I$I$java_util_function_LongBinaryOperator', function (array, fromIndex, toIndex, op) {
$I$(1).requireNonNull$TT(op);
C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex);
if (fromIndex < toIndex) Clazz_new_($I$(20).c$$java_util_ArrayPrefixHelpers_LongCumulateTask$java_util_function_LongBinaryOperator$JA$I$I,[null, op, array, fromIndex, toIndex]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$DA$java_util_function_DoubleBinaryOperator', function (array, op) {
$I$(1).requireNonNull$TT(op);
if (array.length > 0) Clazz_new_($I$(21).c$$java_util_ArrayPrefixHelpers_DoubleCumulateTask$java_util_function_DoubleBinaryOperator$DA$I$I,[null, op, array, 0, array.length]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$DA$I$I$java_util_function_DoubleBinaryOperator', function (array, fromIndex, toIndex, op) {
$I$(1).requireNonNull$TT(op);
C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex);
if (fromIndex < toIndex) Clazz_new_($I$(21).c$$java_util_ArrayPrefixHelpers_DoubleCumulateTask$java_util_function_DoubleBinaryOperator$DA$I$I,[null, op, array, fromIndex, toIndex]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$IA$java_util_function_IntBinaryOperator', function (array, op) {
$I$(1).requireNonNull$TT(op);
if (array.length > 0) Clazz_new_($I$(22).c$$java_util_ArrayPrefixHelpers_IntCumulateTask$java_util_function_IntBinaryOperator$IA$I$I,[null, op, array, 0, array.length]).invoke$();
}, 1);
Clazz_newMeth(C$, 'parallelPrefix$IA$I$I$java_util_function_IntBinaryOperator', function (array, fromIndex, toIndex, op) {
$I$(1).requireNonNull$TT(op);
C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex);
if (fromIndex < toIndex) Clazz_new_($I$(22).c$$java_util_ArrayPrefixHelpers_IntCumulateTask$java_util_function_IntBinaryOperator$IA$I$I,[null, op, array, fromIndex, toIndex]).invoke$();
}, 1);
Clazz_newMeth(C$, 'binarySearch$JA$J', function (a, key) {
return C$.binarySearch0$JA$I$I$J(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$JA$I$I$J', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$JA$I$I$J(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$JA$I$I$J', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
if (midVal < key) low=mid + 1;
else if (midVal > key) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$IA$I', function (a, key) {
return C$.binarySearch0$IA$I$I$I(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$IA$I$I$I', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$IA$I$I$I(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$IA$I$I$I', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
if (midVal < key) low=mid + 1;
else if (midVal > key) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$HA$H', function (a, key) {
return C$.binarySearch0$HA$I$I$H(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$HA$I$I$H', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$HA$I$I$H(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$HA$I$I$H', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
if (midVal < key) low=mid + 1;
else if (midVal > key) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$CA$C', function (a, key) {
return C$.binarySearch0$CA$I$I$C(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$CA$I$I$C', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$CA$I$I$C(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$CA$I$I$C', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
if (midVal < key) low=mid + 1;
else if (midVal > key) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$BA$B', function (a, key) {
return C$.binarySearch0$BA$I$I$B(a, 0, a.length, ($b$[0] = key, $b$[0]));
}, 1);
Clazz_newMeth(C$, 'binarySearch$BA$I$I$B', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$BA$I$I$B(a, fromIndex, toIndex, ($b$[0] = key, $b$[0]));
}, 1);
Clazz_newMeth(C$, 'binarySearch0$BA$I$I$B', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=($b$[0] = a[mid], $b$[0]);
if (midVal < key) low=mid + 1;
else if (midVal > key) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$DA$D', function (a, key) {
return C$.binarySearch0$DA$I$I$D(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$DA$I$I$D', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$DA$I$I$D(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$DA$I$I$D', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
if (midVal < key ) low=mid + 1;
else if (midVal > key ) high=mid - 1;
else {
var midBits=Double.doubleToLongBits$D(midVal);
var keyBits=Double.doubleToLongBits$D(key);
if (midBits == keyBits) return mid;
else if (midBits < keyBits) low=mid + 1;
else high=mid - 1;
}}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$FA$F', function (a, key) {
return C$.binarySearch0$FA$I$I$F(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$FA$I$I$F', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$FA$I$I$F(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$FA$I$I$F', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
if (midVal < key ) low=mid + 1;
else if (midVal > key ) high=mid - 1;
else {
var midBits=Float.floatToIntBits$F(midVal);
var keyBits=Float.floatToIntBits$F(key);
if (midBits == keyBits) return mid;
else if (midBits < keyBits) low=mid + 1;
else high=mid - 1;
}}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$OA$O', function (a, key) {
return C$.binarySearch0$OA$I$I$O(a, 0, a.length, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch$OA$I$I$O', function (a, fromIndex, toIndex, key) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$OA$I$I$O(a, fromIndex, toIndex, key);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$OA$I$I$O', function (a, fromIndex, toIndex, key) {
var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
var cmp=midVal.compareTo$(key);
if (cmp < 0) low=mid + 1;
else if (cmp > 0) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'binarySearch$TTA$TT$java_util_Comparator', function (a, key, c) {
return C$.binarySearch0$TTA$I$I$TT$java_util_Comparator(a, 0, a.length, key, c);
}, 1);
Clazz_newMeth(C$, 'binarySearch$TTA$I$I$TT$java_util_Comparator', function (a, fromIndex, toIndex, key, c) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
return C$.binarySearch0$TTA$I$I$TT$java_util_Comparator(a, fromIndex, toIndex, key, c);
}, 1);
Clazz_newMeth(C$, 'binarySearch0$TTA$I$I$TT$java_util_Comparator', function (a, fromIndex, toIndex, key, c) {
if (c == null ) {
return C$.binarySearch0$OA$I$I$O(a, fromIndex, toIndex, key);
}var low=fromIndex;
var high=toIndex - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=a[mid];
var cmp=c.compare$(midVal, key);
if (cmp < 0) low=mid + 1;
else if (cmp > 0) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'equals$JA$JA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (a[i] != a2[i]) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$IA$IA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (a[i] != a2[i]) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$HA$HA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (a[i] != a2[i]) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$CA$CA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (a[i] != a2[i]) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$BA$BA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (a[i] != a2[i]) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$ZA$ZA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (a[i] != a2[i] ) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$DA$DA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (Double.doubleToLongBits$D(a[i]) != Double.doubleToLongBits$D(a2[i])) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$FA$FA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) if (Float.floatToIntBits$F(a[i]) != Float.floatToIntBits$F(a2[i])) return false;
return true;
}, 1);
Clazz_newMeth(C$, 'equals$OA$OA', function (a, a2) {
if (a === a2 ) return true;
if (a == null || a2 == null ) return false;
var length=a.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) {
var o1=a[i];
var o2=a2[i];
if (!(o1 == null ? o2 == null : o1.equals$O(o2))) return false;
}
return true;
}, 1);
Clazz_newMeth(C$, 'fill$JA$J', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$JA$I$I$J', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$IA$I', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$IA$I$I$I', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$HA$H', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$HA$I$I$H', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$CA$C', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$CA$I$I$C', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$BA$B', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=(val|0);
}, 1);
Clazz_newMeth(C$, 'fill$BA$I$I$B', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=(val|0);
}, 1);
Clazz_newMeth(C$, 'fill$ZA$Z', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$ZA$I$I$Z', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$DA$D', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$DA$I$I$D', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$FA$F', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$FA$I$I$F', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$OA$O', function (a, val) {
for (var i=0, len=a.length; i < len; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'fill$OA$I$I$O', function (a, fromIndex, toIndex, val) {
C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex);
for (var i=fromIndex; i < toIndex; i++) a[i]=val;
}, 1);
Clazz_newMeth(C$, 'copyOf$TTA$I', function (original, newLength) {
return C$.copyOf$TUA$I$Class(original, newLength, original.getClass$());
}, 1);
Clazz_newMeth(C$, 'copyOf$TUA$I$Class', function (original, newLength, newType) {
var copy=(newType === Clazz_array(java.lang.Object, -1) ) ? Clazz_array(java.lang.Object, [newLength]) : Clazz_array(newType.getComponentType$(), newLength);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$BA$I', function (original, newLength) {
var copy=Clazz_array(Byte.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$HA$I', function (original, newLength) {
var copy=Clazz_array(Short.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$IA$I', function (original, newLength) {
var copy=Clazz_array(Integer.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$JA$I', function (original, newLength) {
var copy=Clazz_array(Long.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$CA$I', function (original, newLength) {
var copy=Clazz_array(Character.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$FA$I', function (original, newLength) {
var copy=Clazz_array(Float.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$DA$I', function (original, newLength) {
var copy=Clazz_array(Double.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOf$ZA$I', function (original, newLength) {
var copy=Clazz_array(Boolean.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$TTA$I$I', function (original, from, to) {
return C$.copyOfRange$TUA$I$I$Class(original, from, to, original.getClass$());
}, 1);
Clazz_newMeth(C$, 'copyOfRange$TUA$I$I$Class', function (original, from, to, newType) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=(newType === Clazz_array(java.lang.Object, -1) ) ? Clazz_array(java.lang.Object, [newLength]) : Clazz_array(newType.getComponentType$(), newLength);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$BA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Byte.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$HA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Short.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$IA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Integer.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$JA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Long.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$CA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Character.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$FA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Float.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$DA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Double.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'copyOfRange$ZA$I$I', function (original, from, to) {
var newLength=to - from;
if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]);
var copy=Clazz_array(Boolean.TYPE, [newLength]);
System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength));
return copy;
}, 1);
Clazz_newMeth(C$, 'asList$TTA', function (a) {
return Clazz_new_($I$(23).c$$TEA,[a]);
}, 1);
Clazz_newMeth(C$, 'hashCode$JA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) {
var elementHash=((element ^ (element >>> 32))|0);
result=31 * result + elementHash;
}
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$IA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element;
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$HA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element;
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$CA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element.$c();
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$BA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element;
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$ZA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + (element ? 1231 : 1237);
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$FA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + Float.floatToIntBits$F(element);
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$DA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) {
var bits=Double.doubleToLongBits$D(element);
result=31 * result + ((bits ^ (bits >>> 32))|0);
}
return result;
}, 1);
Clazz_newMeth(C$, 'hashCode$OA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + (element == null ? 0 : element.hashCode$());
return result;
}, 1);
Clazz_newMeth(C$, 'deepHashCode$OA', function (a) {
if (a == null ) return 0;
var result=1;
for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) {
var elementHash=0;
if (Clazz_instanceOf(element, Clazz_array(java.lang.Object, -1))) elementHash=C$.deepHashCode$OA(element);
else if (Clazz_instanceOf(element, Clazz_array(Byte.TYPE, -1))) elementHash=C$.hashCode$BA(element);
else if (Clazz_instanceOf(element, Clazz_array(Short.TYPE, -1))) elementHash=C$.hashCode$HA(element);
else if (Clazz_instanceOf(element, Clazz_array(Integer.TYPE, -1))) elementHash=C$.hashCode$IA(element);
else if (Clazz_instanceOf(element, Clazz_array(Long.TYPE, -1))) elementHash=C$.hashCode$JA(element);
else if (Clazz_instanceOf(element, Clazz_array(Character.TYPE, -1))) elementHash=C$.hashCode$CA(element);
else if (Clazz_instanceOf(element, Clazz_array(Float.TYPE, -1))) elementHash=C$.hashCode$FA(element);
else if (Clazz_instanceOf(element, Clazz_array(Double.TYPE, -1))) elementHash=C$.hashCode$DA(element);
else if (Clazz_instanceOf(element, Clazz_array(Boolean.TYPE, -1))) elementHash=C$.hashCode$ZA(element);
else if (element != null ) elementHash=element.hashCode$();
result=31 * result + elementHash;
}
return result;
}, 1);
Clazz_newMeth(C$, 'deepEquals$OA$OA', function (a1, a2) {
if (a1 === a2 ) return true;
if (a1 == null || a2 == null ) return false;
var length=a1.length;
if (a2.length != length) return false;
for (var i=0; i < length; i++) {
var e1=a1[i];
var e2=a2[i];
if (e1 === e2 ) continue;
if (e1 == null ) return false;
var eq=C$.deepEquals0$O$O(e1, e2);
if (!eq) return false;
}
return true;
}, 1);
Clazz_newMeth(C$, 'deepEquals0$O$O', function (e1, e2) {
Clazz_assert(C$, this, function(){return e1 != null });
var eq;
if (Clazz_instanceOf(e1, Clazz_array(java.lang.Object, -1)) && Clazz_instanceOf(e2, Clazz_array(java.lang.Object, -1)) ) eq=C$.deepEquals$OA$OA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Byte.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Byte.TYPE, -1)) ) eq=C$.equals$BA$BA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Short.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Short.TYPE, -1)) ) eq=C$.equals$HA$HA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Integer.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Integer.TYPE, -1)) ) eq=C$.equals$IA$IA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Long.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Long.TYPE, -1)) ) eq=C$.equals$JA$JA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Character.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Character.TYPE, -1)) ) eq=C$.equals$CA$CA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Float.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Float.TYPE, -1)) ) eq=C$.equals$FA$FA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Double.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Double.TYPE, -1)) ) eq=C$.equals$DA$DA(e1, e2);
else if (Clazz_instanceOf(e1, Clazz_array(Boolean.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Boolean.TYPE, -1)) ) eq=C$.equals$ZA$ZA(e1, e2);
else eq=e1.equals$O(e2);
return eq;
}, 1);
Clazz_newMeth(C$, 'toString$JA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$J(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$IA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$I(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$HA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$I(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$CA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$C(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$BA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$I(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$ZA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$Z(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$FA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$F(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$DA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$D(a[i]);
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'toString$OA', function (a) {
if (a == null ) return "null";
var iMax=a.length - 1;
if (iMax == -1) return "[]";
var b=Clazz_new_($I$(24));
b.append$C("[");
for (var i=0; ; i++) {
b.append$S(String.valueOf$O(a[i]));
if (i == iMax) return b.append$C("]").toString();
b.append$S(", ");
}
}, 1);
Clazz_newMeth(C$, 'deepToString$OA', function (a) {
if (a == null ) return "null";
var bufLen=20 * a.length;
if (a.length != 0 && bufLen <= 0 ) bufLen=2147483647;
var buf=Clazz_new_($I$(24).c$$I,[bufLen]);
C$.deepToString$OA$StringBuilder$java_util_Set(a, buf, Clazz_new_($I$(25)));
return buf.toString();
}, 1);
Clazz_newMeth(C$, 'deepToString$OA$StringBuilder$java_util_Set', function (a, buf, dejaVu) {
if (a == null ) {
buf.append$S("null");
return;
}var iMax=a.length - 1;
if (iMax == -1) {
buf.append$S("[]");
return;
}dejaVu.add$TE(a);
buf.append$C("[");
for (var i=0; ; i++) {
var element=a[i];
if (element == null ) {
buf.append$S("null");
} else {
var eClass=element.getClass$();
if (eClass.isArray$()) {
if (eClass === Clazz_array(Byte.TYPE, -1) ) buf.append$S(C$.toString$BA(element));
else if (eClass === Clazz_array(Short.TYPE, -1) ) buf.append$S(C$.toString$HA(element));
else if (eClass === Clazz_array(Integer.TYPE, -1) ) buf.append$S(C$.toString$IA(element));
else if (eClass === Clazz_array(Long.TYPE, -1) ) buf.append$S(C$.toString$JA(element));
else if (eClass === Clazz_array(Character.TYPE, -1) ) buf.append$S(C$.toString$CA(element));
else if (eClass === Clazz_array(Float.TYPE, -1) ) buf.append$S(C$.toString$FA(element));
else if (eClass === Clazz_array(Double.TYPE, -1) ) buf.append$S(C$.toString$DA(element));
else if (eClass === Clazz_array(Boolean.TYPE, -1) ) buf.append$S(C$.toString$ZA(element));
else {
if (dejaVu.contains$O(element)) buf.append$S("[...]");
else C$.deepToString$OA$StringBuilder$java_util_Set(element, buf, dejaVu);
}} else {
buf.append$S(element.toString());
}}if (i == iMax) break;
buf.append$S(", ");
}
buf.append$C("]");
dejaVu.remove$O(a);
}, 1);
Clazz_newMeth(C$, 'setAll$TTA$java_util_function_IntFunction', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
for (var i=0; i < array.length; i++) array[i]=generator.apply$(i);
}, 1);
Clazz_newMeth(C$, 'parallelSetAll$TTA$java_util_function_IntFunction', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda1||
(function(){var C$=Clazz_newClass(P$, "Arrays$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'accept$', function (i) {
this.$finals$.array[i]=this.$finals$.generator.apply$(i);
});
})()
), Clazz_new_(P$.Arrays$lambda1.$init$, [this, {array: array, generator: generator}])));
}, 1);
Clazz_newMeth(C$, 'setAll$IA$java_util_function_IntUnaryOperator', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
for (var i=0; i < array.length; i++) array[i]=generator.applyAsInt$(i);
}, 1);
Clazz_newMeth(C$, 'parallelSetAll$IA$java_util_function_IntUnaryOperator', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda2||
(function(){var C$=Clazz_newClass(P$, "Arrays$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'accept$', function (i) {
this.$finals$.array[i]=this.$finals$.generator.applyAsInt$(i);
});
})()
), Clazz_new_(P$.Arrays$lambda2.$init$, [this, {array: array, generator: generator}])));
}, 1);
Clazz_newMeth(C$, 'setAll$JA$java_util_function_IntToLongFunction', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
for (var i=0; i < array.length; i++) array[i]=generator.applyAsLong$(i);
}, 1);
Clazz_newMeth(C$, 'parallelSetAll$JA$java_util_function_IntToLongFunction', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda3||
(function(){var C$=Clazz_newClass(P$, "Arrays$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'accept$', function (i) {
this.$finals$.array[i]=this.$finals$.generator.applyAsLong$(i);
});
})()
), Clazz_new_(P$.Arrays$lambda3.$init$, [this, {array: array, generator: generator}])));
}, 1);
Clazz_newMeth(C$, 'setAll$DA$java_util_function_IntToDoubleFunction', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
for (var i=0; i < array.length; i++) array[i]=generator.applyAsDouble$(i);
}, 1);
Clazz_newMeth(C$, 'parallelSetAll$DA$java_util_function_IntToDoubleFunction', function (array, generator) {
$I$(1).requireNonNull$TT(generator);
$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda4||
(function(){var C$=Clazz_newClass(P$, "Arrays$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'accept$', function (i) {
this.$finals$.array[i]=this.$finals$.generator.applyAsDouble$(i);
});
})()
), Clazz_new_(P$.Arrays$lambda4.$init$, [this, {array: array, generator: generator}])));
}, 1);
Clazz_newMeth(C$, 'spliterator$TTA', function (array) {
return $I$(3).spliterator$OA$I(array, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$TTA$I$I', function (array, startInclusive, endExclusive) {
return $I$(3).spliterator$OA$I$I$I(array, startInclusive, endExclusive, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$IA', function (array) {
return $I$(3).spliterator$IA$I(array, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$IA$I$I', function (array, startInclusive, endExclusive) {
return $I$(3).spliterator$IA$I$I$I(array, startInclusive, endExclusive, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$JA', function (array) {
return $I$(3).spliterator$JA$I(array, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$JA$I$I', function (array, startInclusive, endExclusive) {
return $I$(3).spliterator$JA$I$I$I(array, startInclusive, endExclusive, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$DA', function (array) {
return $I$(3).spliterator$DA$I(array, 1040);
}, 1);
Clazz_newMeth(C$, 'spliterator$DA$I$I', function (array, startInclusive, endExclusive) {
return $I$(3).spliterator$DA$I$I$I(array, startInclusive, endExclusive, 1040);
}, 1);
Clazz_newMeth(C$, 'stream$TTA', function (array) {
return C$.stream$TTA$I$I(array, 0, array.length);
}, 1);
Clazz_newMeth(C$, 'stream$TTA$I$I', function (array, startInclusive, endExclusive) {
return $I$(27).stream$java_util_Spliterator$Z(C$.spliterator$TTA$I$I(array, startInclusive, endExclusive), false);
}, 1);
Clazz_newMeth(C$, 'stream$IA', function (array) {
return C$.stream$IA$I$I(array, 0, array.length);
}, 1);
Clazz_newMeth(C$, 'stream$IA$I$I', function (array, startInclusive, endExclusive) {
return $I$(27).intStream$java_util_Spliterator_OfInt$Z(C$.spliterator$IA$I$I(array, startInclusive, endExclusive), false);
}, 1);
Clazz_newMeth(C$, 'stream$JA', function (array) {
return C$.stream$JA$I$I(array, 0, array.length);
}, 1);
Clazz_newMeth(C$, 'stream$JA$I$I', function (array, startInclusive, endExclusive) {
return $I$(27).longStream$java_util_Spliterator_OfLong$Z(C$.spliterator$JA$I$I(array, startInclusive, endExclusive), false);
}, 1);
Clazz_newMeth(C$, 'stream$DA', function (array) {
return C$.stream$DA$I$I(array, 0, array.length);
}, 1);
Clazz_newMeth(C$, 'stream$DA$I$I', function (array, startInclusive, endExclusive) {
return $I$(27).doubleStream$java_util_Spliterator_OfDouble$Z(C$.spliterator$DA$I$I(array, startInclusive, endExclusive), false);
}, 1);
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
var $b$ = new Int8Array(1);
;
(function(){var C$=Clazz_newClass(P$.Arrays, "NaturalOrder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Comparator');
C$.INSTANCE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.INSTANCE=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['compare$O$O','compare$','compare$TT$TT'], function (first, second) {
return (first).compareTo$(second);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Arrays, "LegacyMergeSort", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.userRequested=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.userRequested=false;
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Arrays, "ArrayList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.a=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$TEA', function (array) {
Clazz_super_(C$, this,1);
this.a=$I$(1).requireNonNull$TT(array);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.a.length;
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.a.clone$();
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var size=this.size$();
if (a.length < size) return $I$(2).copyOf$TUA$I$Class(this.a, size, a.getClass$());
System.arraycopy$O$I$O$I$I(this.a, 0, a, 0, size);
if (a.length > size) a[size]=null;
return a;
});
Clazz_newMeth(C$, 'get$I', function (index) {
return this.a[index];
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
var oldValue=this.a[index];
this.a[index]=element;
return oldValue;
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
var a=this.a;
if (o == null ) {
for (var i=0; i < a.length; i++) if (a[i] == null ) return i;
} else {
for (var i=0; i < a.length; i++) if (o.equals$O(a[i])) return i;
}return -1;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.indexOf$O(o) != -1;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(3).spliterator$OA$I(this.a, 16);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
for (var e, $e = 0, $$e = this.a; $e<$$e.length&&((e=($$e[$e])),1);$e++) {
action.accept$(e);
}
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
$I$(1).requireNonNull$TT(operator);
var a=this.a;
for (var i=0; i < a.length; i++) {
a[i]=operator.apply$(a[i]);
}
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
$I$(2).sort$TTA$java_util_Comparator(this.a, c);
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Objects','java.util.Spliterators','java.util.stream.StreamSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newInterface(P$, "Collection", null, null, 'Iterable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
C$.$defaults$ = function(C$){
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
$I$(1).requireNonNull$TT(filter);
var removed=false;
var each=this.iterator$();
while (each.hasNext$()){
if (filter.test$(each.next$())) {
each.remove$();
removed=true;
}}
return removed;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(2).spliterator$java_util_Collection$I(this, 0);
});
Clazz_newMeth(C$, 'stream$', function () {
return $I$(3).stream$java_util_Spliterator$Z(this.spliterator$(), false);
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return $I$(3).stream$java_util_Spliterator$Z(this.spliterator$(), true);
});
};})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},p$2={},p$3={},p$4={},p$5={},p$6={},p$7={},p$8={},p$9={},p$10={},p$11={},p$12={},p$13={},p$14={},p$15={},p$16={},p$17={},I$=[[0,'java.util.TreeSet',['java.util.Collections','.UnmodifiableNavigableSet'],['java.util.Collections','.UnmodifiableNavigableSet','.EmptyNavigableSet'],['java.util.Collections','.UnmodifiableRandomAccessList'],['java.util.Collections','.UnmodifiableList'],'java.util.Objects',['java.util.Collections','.UnmodifiableMap','.UnmodifiableEntrySet','.UnmodifiableEntry'],['java.util.Collections','.UnmodifiableMap','.UnmodifiableEntrySet','.UnmodifiableEntrySetSpliterator'],'java.util.stream.StreamSupport','java.util.Arrays',['java.util.Collections','.UnmodifiableMap','.UnmodifiableEntrySet'],'java.util.TreeMap',['java.util.Collections','.UnmodifiableNavigableMap'],['java.util.Collections','.UnmodifiableNavigableMap','.EmptyNavigableMap'],['java.util.Collections','.SynchronizedRandomAccessList'],['java.util.Collections','.SynchronizedList'],['java.util.Collections','.SynchronizedSet'],['java.util.Collections','.SynchronizedCollection'],['java.util.Collections','.SynchronizedNavigableSet'],['java.util.AbstractMap','.SimpleImmutableEntry'],['java.util.Collections','.CheckedMap','.CheckedEntrySet','.CheckedEntry'],'java.util.ArrayList',['java.util.Collections','.CheckedMap','.CheckedEntrySet'],'java.util.Spliterators','java.util.Collections','java.lang.reflect.Array','java.util.stream.IntStream','java.util.Comparator','Boolean',['java.util.Collections','.EmptySet'],['java.util.Collections','.EmptyList'],['java.util.Collections','.EmptyMap'],'java.util.Random',['java.util.Collections','.UnmodifiableCollection'],['java.util.Collections','.UnmodifiableSet'],['java.util.Collections','.UnmodifiableSortedSet'],['java.util.Collections','.UnmodifiableMap'],['java.util.Collections','.UnmodifiableSortedMap'],['java.util.Collections','.SynchronizedSortedSet'],['java.util.Collections','.SynchronizedMap'],['java.util.Collections','.SynchronizedSortedMap'],['java.util.Collections','.SynchronizedNavigableMap'],['java.util.Collections','.CheckedCollection'],['java.util.Collections','.CheckedQueue'],['java.util.Collections','.CheckedSet'],['java.util.Collections','.CheckedSortedSet'],['java.util.Collections','.CheckedNavigableSet'],['java.util.Collections','.CheckedRandomAccessList'],['java.util.Collections','.CheckedList'],['java.util.Collections','.CheckedMap'],['java.util.Collections','.CheckedSortedMap'],['java.util.Collections','.CheckedNavigableMap'],['java.util.Collections','.EmptyIterator'],['java.util.Collections','.EmptyListIterator'],['java.util.Collections','.EmptyEnumeration'],['java.util.Collections','.SingletonSet'],['java.util.Collections','.SingletonList'],['java.util.Collections','.SingletonMap'],['java.util.Collections','.CopiesList'],['java.util.Collections','.ReverseComparator'],['java.util.Collections','.ReverseComparator2'],['java.util.Collections','.SetFromMap'],['java.util.Collections','.AsLIFOQueue']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Collections", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.r=null;
C$.EMPTY_SET=null;
C$.EMPTY_LIST=null;
C$.EMPTY_MAP=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_SET=Clazz_new_($I$(30));
C$.EMPTY_LIST=Clazz_new_($I$(31));
C$.EMPTY_MAP=Clazz_new_($I$(32));
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'sort$java_util_List', function (list) {
list.sort$java_util_Comparator(null);
}, 1);
Clazz_newMeth(C$, 'sort$java_util_List$java_util_Comparator', function (list, c) {
list.sort$java_util_Comparator(c);
}, 1);
Clazz_newMeth(C$, 'binarySearch$java_util_List$TT', function (list, key) {
if (Clazz_instanceOf(list, "java.util.RandomAccess") || list.size$() < 5000 ) return C$.indexedBinarySearch$java_util_List$TT(list, key);
else return C$.iteratorBinarySearch$java_util_List$TT(list, key);
}, 1);
Clazz_newMeth(C$, 'indexedBinarySearch$java_util_List$TT', function (list, key) {
var low=0;
var high=list.size$() - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=list.get$I(mid);
var cmp=midVal.compareTo$(key);
if (cmp < 0) low=mid + 1;
else if (cmp > 0) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'iteratorBinarySearch$java_util_List$TT', function (list, key) {
var low=0;
var high=list.size$() - 1;
var i=list.listIterator$();
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=C$.get$java_util_ListIterator$I(i, mid);
var cmp=midVal.compareTo$(key);
if (cmp < 0) low=mid + 1;
else if (cmp > 0) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'get$java_util_ListIterator$I', function (i, index) {
var obj=null;
var pos=i.nextIndex$();
if (pos <= index) {
do {
obj=i.next$();
} while (pos++ < index);
} else {
do {
obj=i.previous$();
} while (--pos > index);
}return obj;
}, 1);
Clazz_newMeth(C$, 'binarySearch$java_util_List$TT$java_util_Comparator', function (list, key, c) {
if (c == null ) return C$.binarySearch$java_util_List$TT(list, key);
if (Clazz_instanceOf(list, "java.util.RandomAccess") || list.size$() < 5000 ) return C$.indexedBinarySearch$java_util_List$TT$java_util_Comparator(list, key, c);
else return C$.iteratorBinarySearch$java_util_List$TT$java_util_Comparator(list, key, c);
}, 1);
Clazz_newMeth(C$, 'indexedBinarySearch$java_util_List$TT$java_util_Comparator', function (l, key, c) {
var low=0;
var high=l.size$() - 1;
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=l.get$I(mid);
var cmp=c.compare$(midVal, key);
if (cmp < 0) low=mid + 1;
else if (cmp > 0) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'iteratorBinarySearch$java_util_List$TT$java_util_Comparator', function (l, key, c) {
var low=0;
var high=l.size$() - 1;
var i=l.listIterator$();
while (low <= high){
var mid=(low + high) >>> 1;
var midVal=C$.get$java_util_ListIterator$I(i, mid);
var cmp=c.compare$(midVal, key);
if (cmp < 0) low=mid + 1;
else if (cmp > 0) high=mid - 1;
else return mid;
}
return -(low + 1);
}, 1);
Clazz_newMeth(C$, 'reverse$java_util_List', function (list) {
var size=list.size$();
if (size < 18 || Clazz_instanceOf(list, "java.util.RandomAccess") ) {
for (var i=0, mid=size >> 1, j=size - 1; i < mid; i++, j--) C$.swap$java_util_List$I$I(list, i, j);
} else {
var fwd=list.listIterator$();
var rev=list.listIterator$I(size);
for (var i=0, mid=list.size$() >> 1; i < mid; i++) {
var tmp=fwd.next$();
fwd.set$TE(rev.previous$());
rev.set$TE(tmp);
}
}}, 1);
Clazz_newMeth(C$, 'shuffle$java_util_List', function (list) {
var rnd=C$.r;
if (rnd == null ) C$.r=rnd=Clazz_new_($I$(33));
C$.shuffle$java_util_List$java_util_Random(list, rnd);
}, 1);
Clazz_newMeth(C$, 'shuffle$java_util_List$java_util_Random', function (list, rnd) {
var size=list.size$();
if (size < 5 || Clazz_instanceOf(list, "java.util.RandomAccess") ) {
for (var i=size; i > 1; i--) C$.swap$java_util_List$I$I(list, i - 1, rnd.nextInt$I(i));
} else {
var arr=list.toArray$();
for (var i=size; i > 1; i--) C$.swap$OA$I$I(arr, i - 1, rnd.nextInt$I(i));
var it=list.listIterator$();
for (var i=0; i < arr.length; i++) {
it.next$();
it.set$TE(arr[i]);
}
}}, 1);
Clazz_newMeth(C$, 'swap$java_util_List$I$I', function (list, i, j) {
var l=list;
l.set$I$TE(i, l.set$I$TE(j, l.get$I(i)));
}, 1);
Clazz_newMeth(C$, 'swap$OA$I$I', function (arr, i, j) {
var tmp=arr[i];
arr[i]=arr[j];
arr[j]=tmp;
}, 1);
Clazz_newMeth(C$, 'fill$java_util_List$TT', function (list, obj) {
var size=list.size$();
if (size < 25 || Clazz_instanceOf(list, "java.util.RandomAccess") ) {
for (var i=0; i < size; i++) list.set$I$TE(i, obj);
} else {
var itr=list.listIterator$();
for (var i=0; i < size; i++) {
itr.next$();
itr.set$TE(obj);
}
}}, 1);
Clazz_newMeth(C$, 'copy$java_util_List$java_util_List', function (dest, src) {
var srcSize=src.size$();
if (srcSize > dest.size$()) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Source does not fit in dest"]);
if (srcSize < 10 || (Clazz_instanceOf(src, "java.util.RandomAccess") && Clazz_instanceOf(dest, "java.util.RandomAccess") ) ) {
for (var i=0; i < srcSize; i++) dest.set$I$TE(i, src.get$I(i));
} else {
var di=dest.listIterator$();
var si=src.listIterator$();
for (var i=0; i < srcSize; i++) {
di.next$();
di.set$TE(si.next$());
}
}}, 1);
Clazz_newMeth(C$, 'min$java_util_Collection', function (coll) {
var i=coll.iterator$();
var candidate=i.next$();
while (i.hasNext$()){
var next=i.next$();
if (next.compareTo$(candidate) < 0) candidate=next;
}
return candidate;
}, 1);
Clazz_newMeth(C$, 'min$java_util_Collection$java_util_Comparator', function (coll, comp) {
if (comp == null ) return C$.min$java_util_Collection(coll);
var i=coll.iterator$();
var candidate=i.next$();
while (i.hasNext$()){
var next=i.next$();
if (comp.compare$(next, candidate) < 0) candidate=next;
}
return candidate;
}, 1);
Clazz_newMeth(C$, 'max$java_util_Collection', function (coll) {
var i=coll.iterator$();
var candidate=i.next$();
while (i.hasNext$()){
var next=i.next$();
if (next.compareTo$(candidate) > 0) candidate=next;
}
return candidate;
}, 1);
Clazz_newMeth(C$, 'max$java_util_Collection$java_util_Comparator', function (coll, comp) {
if (comp == null ) return C$.max$java_util_Collection(coll);
var i=coll.iterator$();
var candidate=i.next$();
while (i.hasNext$()){
var next=i.next$();
if (comp.compare$(next, candidate) > 0) candidate=next;
}
return candidate;
}, 1);
Clazz_newMeth(C$, 'rotate$java_util_List$I', function (list, distance) {
if (Clazz_instanceOf(list, "java.util.RandomAccess") || list.size$() < 100 ) C$.rotate1$java_util_List$I(list, distance);
else C$.rotate2$java_util_List$I(list, distance);
}, 1);
Clazz_newMeth(C$, 'rotate1$java_util_List$I', function (list, distance) {
var size=list.size$();
if (size == 0) return;
distance=distance % size;
if (distance < 0) distance+=size;
if (distance == 0) return;
for (var cycleStart=0, nMoved=0; nMoved != size; cycleStart++) {
var displaced=list.get$I(cycleStart);
var i=cycleStart;
do {
i+=distance;
if (i >= size) i-=size;
displaced=list.set$I$TE(i, displaced);
nMoved++;
} while (i != cycleStart);
}
}, 1);
Clazz_newMeth(C$, 'rotate2$java_util_List$I', function (list, distance) {
var size=list.size$();
if (size == 0) return;
var mid=-distance % size;
if (mid < 0) mid+=size;
if (mid == 0) return;
C$.reverse$java_util_List(list.subList$I$I(0, mid));
C$.reverse$java_util_List(list.subList$I$I(mid, size));
C$.reverse$java_util_List(list);
}, 1);
Clazz_newMeth(C$, 'replaceAll$java_util_List$TT$TT', function (list, oldVal, newVal) {
var result=false;
var size=list.size$();
if (size < 11 || Clazz_instanceOf(list, "java.util.RandomAccess") ) {
if (oldVal == null ) {
for (var i=0; i < size; i++) {
if (list.get$I(i) == null ) {
list.set$I$TE(i, newVal);
result=true;
}}
} else {
for (var i=0; i < size; i++) {
if (oldVal.equals$O(list.get$I(i))) {
list.set$I$TE(i, newVal);
result=true;
}}
}} else {
var itr=list.listIterator$();
if (oldVal == null ) {
for (var i=0; i < size; i++) {
if (itr.next$() == null ) {
itr.set$TE(newVal);
result=true;
}}
} else {
for (var i=0; i < size; i++) {
if (oldVal.equals$O(itr.next$())) {
itr.set$TE(newVal);
result=true;
}}
}}return result;
}, 1);
Clazz_newMeth(C$, 'indexOfSubList$java_util_List$java_util_List', function (source, target) {
var sourceSize=source.size$();
var targetSize=target.size$();
var maxCandidate=sourceSize - targetSize;
if (sourceSize < 35 || (Clazz_instanceOf(source, "java.util.RandomAccess") && Clazz_instanceOf(target, "java.util.RandomAccess") ) ) {
nextCand : for (var candidate=0; candidate <= maxCandidate; candidate++) {
for (var i=0, j=candidate; i < targetSize; i++, j++) if (!C$.eq$O$O(target.get$I(i), source.get$I(j))) continue nextCand;
return candidate;
}
} else {
var si=source.listIterator$();
nextCand : for (var candidate=0; candidate <= maxCandidate; candidate++) {
var ti=target.listIterator$();
for (var i=0; i < targetSize; i++) {
if (!C$.eq$O$O(ti.next$(), si.next$())) {
for (var j=0; j < i; j++) si.previous$();
continue nextCand;
}}
return candidate;
}
}return -1;
}, 1);
Clazz_newMeth(C$, 'lastIndexOfSubList$java_util_List$java_util_List', function (source, target) {
var sourceSize=source.size$();
var targetSize=target.size$();
var maxCandidate=sourceSize - targetSize;
if (sourceSize < 35 || Clazz_instanceOf(source, "java.util.RandomAccess") ) {
nextCand : for (var candidate=maxCandidate; candidate >= 0; candidate--) {
for (var i=0, j=candidate; i < targetSize; i++, j++) if (!C$.eq$O$O(target.get$I(i), source.get$I(j))) continue nextCand;
return candidate;
}
} else {
if (maxCandidate < 0) return -1;
var si=source.listIterator$I(maxCandidate);
nextCand : for (var candidate=maxCandidate; candidate >= 0; candidate--) {
var ti=target.listIterator$();
for (var i=0; i < targetSize; i++) {
if (!C$.eq$O$O(ti.next$(), si.next$())) {
if (candidate != 0) {
for (var j=0; j <= i + 1; j++) si.previous$();
}continue nextCand;
}}
return candidate;
}
}return -1;
}, 1);
Clazz_newMeth(C$, 'unmodifiableCollection$java_util_Collection', function (c) {
return Clazz_new_($I$(34).c$$java_util_Collection,[c]);
}, 1);
Clazz_newMeth(C$, 'unmodifiableSet$java_util_Set', function (s) {
return Clazz_new_($I$(35).c$$java_util_Set,[s]);
}, 1);
Clazz_newMeth(C$, 'unmodifiableSortedSet$java_util_SortedSet', function (s) {
return Clazz_new_($I$(36).c$$java_util_SortedSet,[s]);
}, 1);
Clazz_newMeth(C$, 'unmodifiableNavigableSet$java_util_NavigableSet', function (s) {
return Clazz_new_($I$(2).c$$java_util_NavigableSet,[s]);
}, 1);
Clazz_newMeth(C$, 'unmodifiableList$java_util_List', function (list) {
return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(4).c$$java_util_List,[list]) : Clazz_new_($I$(5).c$$java_util_List,[list]));
}, 1);
Clazz_newMeth(C$, 'unmodifiableMap$java_util_Map', function (m) {
return Clazz_new_($I$(37).c$$java_util_Map,[m]);
}, 1);
Clazz_newMeth(C$, 'unmodifiableSortedMap$java_util_SortedMap', function (m) {
return Clazz_new_($I$(38).c$$java_util_SortedMap,[m]);
}, 1);
Clazz_newMeth(C$, 'unmodifiableNavigableMap$java_util_NavigableMap', function (m) {
return Clazz_new_($I$(13).c$$java_util_NavigableMap,[m]);
}, 1);
Clazz_newMeth(C$, 'synchronizedCollection$java_util_Collection', function (c) {
return Clazz_new_($I$(18).c$$java_util_Collection,[c]);
}, 1);
Clazz_newMeth(C$, 'synchronizedCollection$java_util_Collection$O', function (c, mutex) {
return Clazz_new_($I$(18).c$$java_util_Collection$O,[c, mutex]);
}, 1);
Clazz_newMeth(C$, 'synchronizedSet$java_util_Set', function (s) {
return Clazz_new_($I$(17).c$$java_util_Set,[s]);
}, 1);
Clazz_newMeth(C$, 'synchronizedSet$java_util_Set$O', function (s, mutex) {
return Clazz_new_($I$(17).c$$java_util_Set$O,[s, mutex]);
}, 1);
Clazz_newMeth(C$, 'synchronizedSortedSet$java_util_SortedSet', function (s) {
return Clazz_new_($I$(39).c$$java_util_SortedSet,[s]);
}, 1);
Clazz_newMeth(C$, 'synchronizedNavigableSet$java_util_NavigableSet', function (s) {
return Clazz_new_($I$(19).c$$java_util_NavigableSet,[s]);
}, 1);
Clazz_newMeth(C$, 'synchronizedList$java_util_List', function (list) {
return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(15).c$$java_util_List,[list]) : Clazz_new_($I$(16).c$$java_util_List,[list]));
}, 1);
Clazz_newMeth(C$, 'synchronizedList$java_util_List$O', function (list, mutex) {
return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(15).c$$java_util_List$O,[list, mutex]) : Clazz_new_($I$(16).c$$java_util_List$O,[list, mutex]));
}, 1);
Clazz_newMeth(C$, 'synchronizedMap$java_util_Map', function (m) {
return Clazz_new_($I$(40).c$$java_util_Map,[m]);
}, 1);
Clazz_newMeth(C$, 'synchronizedSortedMap$java_util_SortedMap', function (m) {
return Clazz_new_($I$(41).c$$java_util_SortedMap,[m]);
}, 1);
Clazz_newMeth(C$, 'synchronizedNavigableMap$java_util_NavigableMap', function (m) {
return Clazz_new_($I$(42).c$$java_util_NavigableMap,[m]);
}, 1);
Clazz_newMeth(C$, 'checkedCollection$java_util_Collection$Class', function (c, type) {
return Clazz_new_($I$(43).c$$java_util_Collection$Class,[c, type]);
}, 1);
Clazz_newMeth(C$, 'zeroLengthArray$Class', function (type) {
return Clazz_array(type, 0);
}, 1);
Clazz_newMeth(C$, 'checkedQueue$java_util_Queue$Class', function (queue, type) {
return Clazz_new_($I$(44).c$$java_util_Queue$Class,[queue, type]);
}, 1);
Clazz_newMeth(C$, 'checkedSet$java_util_Set$Class', function (s, type) {
return Clazz_new_($I$(45).c$$java_util_Set$Class,[s, type]);
}, 1);
Clazz_newMeth(C$, 'checkedSortedSet$java_util_SortedSet$Class', function (s, type) {
return Clazz_new_($I$(46).c$$java_util_SortedSet$Class,[s, type]);
}, 1);
Clazz_newMeth(C$, 'checkedNavigableSet$java_util_NavigableSet$Class', function (s, type) {
return Clazz_new_($I$(47).c$$java_util_NavigableSet$Class,[s, type]);
}, 1);
Clazz_newMeth(C$, 'checkedList$java_util_List$Class', function (list, type) {
return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(48).c$$java_util_List$Class,[list, type]) : Clazz_new_($I$(49).c$$java_util_List$Class,[list, type]));
}, 1);
Clazz_newMeth(C$, 'checkedMap$java_util_Map$Class$Class', function (m, keyType, valueType) {
return Clazz_new_($I$(50).c$$java_util_Map$Class$Class,[m, keyType, valueType]);
}, 1);
Clazz_newMeth(C$, 'checkedSortedMap$java_util_SortedMap$Class$Class', function (m, keyType, valueType) {
return Clazz_new_($I$(51).c$$java_util_SortedMap$Class$Class,[m, keyType, valueType]);
}, 1);
Clazz_newMeth(C$, 'checkedNavigableMap$java_util_NavigableMap$Class$Class', function (m, keyType, valueType) {
return Clazz_new_($I$(52).c$$java_util_NavigableMap$Class$Class,[m, keyType, valueType]);
}, 1);
Clazz_newMeth(C$, 'emptyIterator$', function () {
return $I$(53).EMPTY_ITERATOR;
}, 1);
Clazz_newMeth(C$, 'emptyListIterator$', function () {
return $I$(54).$EMPTY_ITERATOR;
}, 1);
Clazz_newMeth(C$, 'emptyEnumeration$', function () {
return $I$(55).EMPTY_ENUMERATION;
}, 1);
Clazz_newMeth(C$, 'emptySet$', function () {
return C$.EMPTY_SET;
}, 1);
Clazz_newMeth(C$, 'emptySortedSet$', function () {
return $I$(2).EMPTY_NAVIGABLE_SET;
}, 1);
Clazz_newMeth(C$, 'emptyNavigableSet$', function () {
return $I$(2).EMPTY_NAVIGABLE_SET;
}, 1);
Clazz_newMeth(C$, 'emptyList$', function () {
return C$.EMPTY_LIST;
}, 1);
Clazz_newMeth(C$, 'emptyMap$', function () {
return C$.EMPTY_MAP;
}, 1);
Clazz_newMeth(C$, 'emptySortedMap$', function () {
return $I$(13).EMPTY_NAVIGABLE_MAP;
}, 1);
Clazz_newMeth(C$, 'emptyNavigableMap$', function () {
return $I$(13).EMPTY_NAVIGABLE_MAP;
}, 1);
Clazz_newMeth(C$, 'singleton$TT', function (o) {
return Clazz_new_($I$(56).c$$TE,[o]);
}, 1);
Clazz_newMeth(C$, 'singletonIterator$TE', function (e) {
return ((P$.Collections$1||
(function(){var C$=Clazz_newClass(P$, "Collections$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.hasNext=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.hasNext=true;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.hasNext;
});
Clazz_newMeth(C$, 'next$', function () {
if (this.hasNext) {
this.hasNext=false;
return this.$finals$.e;
}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
});
Clazz_newMeth(C$, 'remove$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
$I$(6).requireNonNull$TT(action);
if (this.hasNext) {
action.accept$(this.$finals$.e);
this.hasNext=false;
}});
})()
), Clazz_new_(P$.Collections$1.$init$, [this, {e: e}]));
}, 1);
Clazz_newMeth(C$, 'singletonSpliterator$TT', function (element) {
return ((P$.Collections$2||
(function(){var C$=Clazz_newClass(P$, "Collections$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Spliterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.est=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.est=1;
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
return null;
});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (consumer) {
$I$(6).requireNonNull$TT(consumer);
if (this.est > 0) {
this.est--;
consumer.accept$(this.$finals$.element);
return true;
}return false;
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (consumer) {
this.tryAdvance$java_util_function_Consumer(consumer);
});
Clazz_newMeth(C$, 'estimateSize$', function () {
return this.est;
});
Clazz_newMeth(C$, 'characteristics$', function () {
var value=(this.$finals$.element != null ) ? 256 : 0;
return value | 64 | 16384 | 1024 | 1 | 16 ;
});
})()
), Clazz_new_(P$.Collections$2.$init$, [this, {element: element}]));
}, 1);
Clazz_newMeth(C$, 'singletonList$TT', function (o) {
return Clazz_new_($I$(57).c$$TE,[o]);
}, 1);
Clazz_newMeth(C$, 'singletonMap$TK$TV', function (key, value) {
return Clazz_new_($I$(58).c$$TK$TV,[key, value]);
}, 1);
Clazz_newMeth(C$, 'nCopies$I$TT', function (n, o) {
if (n < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["List length = " + n]);
return Clazz_new_($I$(59).c$$I$TE,[n, o]);
}, 1);
Clazz_newMeth(C$, 'reverseOrder$', function () {
return $I$(60).REVERSE_ORDER;
}, 1);
Clazz_newMeth(C$, 'reverseOrder$java_util_Comparator', function (cmp) {
if (cmp == null ) return C$.reverseOrder$();
if (Clazz_instanceOf(cmp, "java.util.Collections.ReverseComparator2")) return (cmp).cmp;
return Clazz_new_($I$(61).c$$java_util_Comparator,[cmp]);
}, 1);
Clazz_newMeth(C$, 'enumeration$java_util_Collection', function (c) {
return ((P$.Collections$3||
(function(){var C$=Clazz_newClass(P$, "Collections$3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.i=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.i=this.$finals$.c.iterator$();
}, 1);
Clazz_newMeth(C$, 'hasMoreElements$', function () {
return this.i.hasNext$();
});
Clazz_newMeth(C$, 'nextElement$', function () {
return this.i.next$();
});
})()
), Clazz_new_(P$.Collections$3.$init$, [this, {c: c}]));
}, 1);
Clazz_newMeth(C$, 'list$java_util_Enumeration', function (e) {
var l=Clazz_new_($I$(22));
while (e.hasMoreElements$())l.add$TE(e.nextElement$());
return l;
}, 1);
Clazz_newMeth(C$, 'eq$O$O', function (o1, o2) {
return o1 == null ? o2 == null : o1.equals$O(o2);
}, 1);
Clazz_newMeth(C$, 'frequency$java_util_Collection$O', function (c, o) {
var result=0;
if (o == null ) {
for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (e == null ) result++;
} else {
for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (o.equals$O(e)) result++;
}return result;
}, 1);
Clazz_newMeth(C$, 'disjoint$java_util_Collection$java_util_Collection', function (c1, c2) {
var contains=c2;
var iterate=c1;
if (Clazz_instanceOf(c1, "java.util.Set")) {
iterate=c2;
contains=c1;
} else if (!(Clazz_instanceOf(c2, "java.util.Set"))) {
var c1size=c1.size$();
var c2size=c2.size$();
if (c1size == 0 || c2size == 0 ) {
return true;
}if (c1size > c2size) {
iterate=c2;
contains=c1;
}}for (var e, $e = iterate.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) {
if (contains.contains$O(e)) {
return false;
}}
return true;
}, 1);
Clazz_newMeth(C$, 'addAll$java_util_Collection$TTA', function (c, elements) {
var result=false;
for (var element, $element = 0, $$element = elements; $element<$$element.length&&((element=($$element[$element])),1);$element++) result|=c.add$TE(element);
return result;
}, 1);
Clazz_newMeth(C$, 'newSetFromMap$java_util_Map', function (map) {
return Clazz_new_($I$(62).c$$java_util_Map,[map]);
}, 1);
Clazz_newMeth(C$, 'asLifoQueue$java_util_Deque', function (deque) {
return Clazz_new_($I$(63).c$$java_util_Deque,[deque]);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableCollection", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Collection', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.c=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) {
C$.$init$.apply(this);
if (c == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
this.c=c;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.c.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.c.isEmpty$();
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.c.contains$O(o);
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.c.toArray$();
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
return this.c.toArray$TTA(a);
});
Clazz_newMeth(C$, 'toString', function () {
return this.c.toString();
});
Clazz_newMeth(C$, 'iterator$', function () {
return ((P$.Collections$UnmodifiableCollection$1||
(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableCollection$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.i=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.i=this.b$['java.util.Collections.UnmodifiableCollection'].c.iterator$();
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.i.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.i.next$();
});
Clazz_newMeth(C$, 'remove$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer','forEachRemaining$'], function (action) {
this.i.forEachRemaining$java_util_function_Consumer(action);
});
})()
), Clazz_new_(P$.Collections$UnmodifiableCollection$1.$init$, [this, null]));
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O', function (o) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) {
return this.c.containsAll$java_util_Collection(coll);
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (coll) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (coll) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (coll) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'clear$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
this.c.forEach$java_util_function_Consumer(action);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'spliterator$', function () {
return this.c.spliterator$();
});
Clazz_newMeth(C$, 'stream$', function () {
return this.c.stream$();
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return this.c.parallelStream$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableCollection'], ['java.util.Set', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Set', function (s) {
C$.superclazz.c$$java_util_Collection.apply(this, [s]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.c.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.c.hashCode$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableSortedSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableSet'], ['java.util.SortedSet', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ss=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_SortedSet', function (s) {
C$.superclazz.c$$java_util_Set.apply(this, [s]);
C$.$init$.apply(this);
this.ss=s;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
return this.ss.comparator$();
});
Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) {
return Clazz_new_(C$.c$$java_util_SortedSet,[this.ss.subSet$TE$TE(fromElement, toElement)]);
});
Clazz_newMeth(C$, ['headSet$TE'], function (toElement) {
return Clazz_new_(C$.c$$java_util_SortedSet,[this.ss.headSet$TE(toElement)]);
});
Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) {
return Clazz_new_(C$.c$$java_util_SortedSet,[this.ss.tailSet$TE(fromElement)]);
});
Clazz_newMeth(C$, 'first$', function () {
return this.ss.first$();
});
Clazz_newMeth(C$, 'last$', function () {
return this.ss.last$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableNavigableSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableSortedSet'], ['java.util.NavigableSet', 'java.io.Serializable']);
C$.EMPTY_NAVIGABLE_SET=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_NAVIGABLE_SET=Clazz_new_($I$(3));
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ns=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_NavigableSet', function (s) {
C$.superclazz.c$$java_util_SortedSet.apply(this, [s]);
C$.$init$.apply(this);
this.ns=s;
}, 1);
Clazz_newMeth(C$, ['lower$TE'], function (e) {
return this.ns.lower$TE(e);
});
Clazz_newMeth(C$, ['floor$TE'], function (e) {
return this.ns.floor$TE(e);
});
Clazz_newMeth(C$, ['ceiling$TE'], function (e) {
return this.ns.ceiling$TE(e);
});
Clazz_newMeth(C$, ['higher$TE'], function (e) {
return this.ns.higher$TE(e);
});
Clazz_newMeth(C$, 'pollFirst$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'pollLast$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'descendingSet$', function () {
return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.descendingSet$()]);
});
Clazz_newMeth(C$, 'descendingIterator$', function () {
return this.descendingSet$().iterator$();
});
Clazz_newMeth(C$, ['subSet$TE$Z$TE$Z'], function (fromElement, fromInclusive, toElement, toInclusive) {
return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.subSet$TE$Z$TE$Z(fromElement, fromInclusive, toElement, toInclusive)]);
});
Clazz_newMeth(C$, ['headSet$TE$Z'], function (toElement, inclusive) {
return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.headSet$TE$Z(toElement, inclusive)]);
});
Clazz_newMeth(C$, ['tailSet$TE$Z'], function (fromElement, inclusive) {
return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.tailSet$TE$Z(fromElement, inclusive)]);
});
;
(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableNavigableSet, "EmptyNavigableSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableNavigableSet'], 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$java_util_NavigableSet.apply(this, [Clazz_new_($I$(1))]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'readResolve', function () {
return $I$(2).EMPTY_NAVIGABLE_SET;
}, p$1);
})()
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableCollection'], 'java.util.List');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.list=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List', function (list) {
C$.superclazz.c$$java_util_Collection.apply(this, [list]);
C$.$init$.apply(this);
this.list=list;
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.list.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.list.hashCode$();
});
Clazz_newMeth(C$, 'get$I', function (index) {
return this.list.get$I(index);
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$I', function (index) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
return this.list.indexOf$O(o);
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
return this.list.lastIndexOf$O(o);
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'listIterator$', function () {
return this.listIterator$I(0);
});
Clazz_newMeth(C$, 'listIterator$I', function (index) {
return ((P$.Collections$UnmodifiableList$1||
(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableList$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.ListIterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.i=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.i=this.b$['java.util.Collections.UnmodifiableList'].list.listIterator$I(this.$finals$.index);
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.i.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.i.next$();
});
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.i.hasPrevious$();
});
Clazz_newMeth(C$, 'previous$', function () {
return this.i.previous$();
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.i.nextIndex$();
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.i.previousIndex$();
});
Clazz_newMeth(C$, 'remove$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
this.i.forEachRemaining$java_util_function_Consumer(action);
});
})()
), Clazz_new_(P$.Collections$UnmodifiableList$1.$init$, [this, {index: index}]));
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
return Clazz_new_(C$.c$$java_util_List,[this.list.subList$I$I(fromIndex, toIndex)]);
});
Clazz_newMeth(C$, 'readResolve', function () {
return (Clazz_instanceOf(this.list, "java.util.RandomAccess") ? Clazz_new_($I$(4).c$$java_util_List,[this.list]) : this);
}, p$2);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableRandomAccessList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableList'], 'java.util.RandomAccess');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List', function (list) {
C$.superclazz.c$$java_util_List.apply(this, [list]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
return Clazz_new_(C$.c$$java_util_List,[this.list.subList$I$I(fromIndex, toIndex)]);
});
Clazz_newMeth(C$, 'writeReplace', function () {
return Clazz_new_($I$(5).c$$java_util_List,[this.list]);
}, p$3);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Map', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.m=null;
this.keySet=null;
this.entrySet=null;
this.values=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (m) {
C$.$init$.apply(this);
if (m == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
this.m=m;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.m.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.m.isEmpty$();
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
return this.m.containsKey$O(key);
});
Clazz_newMeth(C$, 'containsValue$O', function (val) {
return this.m.containsValue$O(val);
});
Clazz_newMeth(C$, 'get$O', function (key) {
return this.m.get$O(key);
});
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O', function (key) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'clear$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'keySet$', function () {
if (this.keySet == null ) this.keySet=P$.Collections.unmodifiableSet$java_util_Set(this.m.keySet$());
return this.keySet;
});
Clazz_newMeth(C$, 'entrySet$', function () {
if (this.entrySet == null ) this.entrySet=Clazz_new_($I$(11).c$$java_util_Set,[this.m.entrySet$()]);
return this.entrySet;
});
Clazz_newMeth(C$, 'values$', function () {
if (this.values == null ) this.values=P$.Collections.unmodifiableCollection$java_util_Collection(this.m.values$());
return this.values;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.m.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.m.hashCode$();
});
Clazz_newMeth(C$, 'toString', function () {
return this.m.toString();
});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (k, defaultValue) {
return (this.m).getOrDefault$O$TV(k, defaultValue);
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
this.m.forEach$java_util_function_BiConsumer(action);
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
;
(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableMap, "UnmodifiableEntrySet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableSet']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Set', function (s) {
C$.superclazz.c$$java_util_Set.apply(this, [s]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['entryConsumer$java_util_function_Consumer'], function (action) {
return ((P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$lambda1||
(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableMap$UnmodifiableEntrySet$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.Consumer', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['accept$'], function (e) { return (this.$finals$.action.accept$(Clazz_new_($I$(7).c$$java_util_Map_Entry,[e])));});
})()
), Clazz_new_(P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$lambda1.$init$, [this, {action: action}]));
}, 1);
Clazz_newMeth(C$, ['forEach$java_util_function_Consumer'], function (action) {
$I$(6).requireNonNull$TT(action);
this.c.forEach$java_util_function_Consumer(C$.entryConsumer$java_util_function_Consumer(action));
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(8).c$$java_util_Spliterator,[this.c.spliterator$()]);
});
Clazz_newMeth(C$, 'stream$', function () {
return $I$(9).stream$java_util_Spliterator$Z(this.spliterator$(), false);
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return $I$(9).stream$java_util_Spliterator$Z(this.spliterator$(), true);
});
Clazz_newMeth(C$, 'iterator$', function () {
return ((P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$1||
(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableMap$UnmodifiableEntrySet$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.i=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.i=this.b$['java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet'].c.iterator$();
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.i.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return Clazz_new_($I$(7).c$$java_util_Map_Entry,[this.i.next$()]);
});
Clazz_newMeth(C$, 'remove$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
})()
), Clazz_new_(P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$1.$init$, [this, null]));
});
Clazz_newMeth(C$, 'toArray$', function () {
var a=this.c.toArray$();
for (var i=0; i < a.length; i++) a[i]=Clazz_new_($I$(7).c$$java_util_Map_Entry,[a[i]]);
return a;
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var arr=this.c.toArray$TTA(a.length == 0 ? a : $I$(10).copyOf$TTA$I(a, 0));
for (var i=0; i < arr.length; i++) arr[i]=Clazz_new_($I$(7).c$$java_util_Map_Entry,[arr[i]]);
if (arr.length > a.length) return arr;
System.arraycopy$O$I$O$I$I(arr, 0, a, 0, arr.length);
if (a.length > arr.length) a[arr.length]=null;
return a;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
return this.c.contains$O(Clazz_new_($I$(7).c$$java_util_Map_Entry,[o]));
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) {
for (var e, $e = coll.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) {
if (!this.contains$O(e)) return false;
}
return true;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.Set"))) return false;
var s=o;
if (s.size$() != this.c.size$()) return false;
return this.containsAll$java_util_Collection(s);
});
;
(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet, "UnmodifiableEntrySetSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.s=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_Spliterator'], function (s) {
C$.$init$.apply(this);
this.s=s;
}, 1);
Clazz_newMeth(C$, ['tryAdvance$java_util_function_Consumer'], function (action) {
$I$(6).requireNonNull$TT(action);
return this.s.tryAdvance$java_util_function_Consumer(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet.entryConsumer$java_util_function_Consumer(action));
});
Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer'], function (action) {
$I$(6).requireNonNull$TT(action);
this.s.forEachRemaining$java_util_function_Consumer(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet.entryConsumer$java_util_function_Consumer(action));
});
Clazz_newMeth(C$, 'trySplit$', function () {
var split=this.s.trySplit$();
return split == null ? null : Clazz_new_(C$.c$$java_util_Spliterator,[split]);
});
Clazz_newMeth(C$, 'estimateSize$', function () {
return this.s.estimateSize$();
});
Clazz_newMeth(C$, 'getExactSizeIfKnown$', function () {
return this.s.getExactSizeIfKnown$();
});
Clazz_newMeth(C$, 'characteristics$', function () {
return this.s.characteristics$();
});
Clazz_newMeth(C$, 'hasCharacteristics$I', function (characteristics) {
return this.s.hasCharacteristics$I(characteristics);
});
Clazz_newMeth(C$, 'getComparator$', function () {
return this.s.getComparator$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet, "UnmodifiableEntry", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.util.Map','java.util.Map.Entry']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.e=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map_Entry', function (e) {
C$.$init$.apply(this);
this.e=$I$(6).requireNonNull$TT(e);
}, 1);
Clazz_newMeth(C$, 'getKey$', function () {
return this.e.getKey$();
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.e.getValue$();
});
Clazz_newMeth(C$, ['setValue$TV'], function (value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.e.hashCode$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (this === o ) return true;
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var t=o;
return P$.Collections.eq$O$O(this.e.getKey$(), t.getKey$()) && P$.Collections.eq$O$O(this.e.getValue$(), t.getValue$()) ;
});
Clazz_newMeth(C$, 'toString', function () {
return this.e.toString();
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableSortedMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableMap'], ['java.util.SortedMap', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.sm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_SortedMap', function (m) {
C$.superclazz.c$$java_util_Map.apply(this, [m]);
C$.$init$.apply(this);
this.sm=m;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
return this.sm.comparator$();
});
Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) {
return Clazz_new_(C$.c$$java_util_SortedMap,[this.sm.subMap$TK$TK(fromKey, toKey)]);
});
Clazz_newMeth(C$, ['headMap$TK'], function (toKey) {
return Clazz_new_(C$.c$$java_util_SortedMap,[this.sm.headMap$TK(toKey)]);
});
Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) {
return Clazz_new_(C$.c$$java_util_SortedMap,[this.sm.tailMap$TK(fromKey)]);
});
Clazz_newMeth(C$, 'firstKey$', function () {
return this.sm.firstKey$();
});
Clazz_newMeth(C$, 'lastKey$', function () {
return this.sm.lastKey$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableNavigableMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableSortedMap'], ['java.util.NavigableMap', 'java.io.Serializable']);
C$.EMPTY_NAVIGABLE_MAP=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_NAVIGABLE_MAP=Clazz_new_($I$(14));
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.nm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_NavigableMap', function (m) {
C$.superclazz.c$$java_util_SortedMap.apply(this, [m]);
C$.$init$.apply(this);
this.nm=m;
}, 1);
Clazz_newMeth(C$, ['lowerKey$TK'], function (key) {
return this.nm.lowerKey$TK(key);
});
Clazz_newMeth(C$, ['floorKey$TK'], function (key) {
return this.nm.floorKey$TK(key);
});
Clazz_newMeth(C$, ['ceilingKey$TK'], function (key) {
return this.nm.ceilingKey$TK(key);
});
Clazz_newMeth(C$, ['higherKey$TK'], function (key) {
return this.nm.higherKey$TK(key);
});
Clazz_newMeth(C$, ['lowerEntry$TK'], function (key) {
var lower=this.nm.lowerEntry$TK(key);
return (null != lower ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[lower]) : null;
});
Clazz_newMeth(C$, ['floorEntry$TK'], function (key) {
var floor=this.nm.floorEntry$TK(key);
return (null != floor ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[floor]) : null;
});
Clazz_newMeth(C$, ['ceilingEntry$TK'], function (key) {
var ceiling=this.nm.ceilingEntry$TK(key);
return (null != ceiling ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[ceiling]) : null;
});
Clazz_newMeth(C$, ['higherEntry$TK'], function (key) {
var higher=this.nm.higherEntry$TK(key);
return (null != higher ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[higher]) : null;
});
Clazz_newMeth(C$, 'firstEntry$', function () {
var first=this.nm.firstEntry$();
return (null != first ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[first]) : null;
});
Clazz_newMeth(C$, 'lastEntry$', function () {
var last=this.nm.lastEntry$();
return (null != last ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[last]) : null;
});
Clazz_newMeth(C$, 'pollFirstEntry$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'pollLastEntry$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'descendingMap$', function () {
return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.descendingMap$());
});
Clazz_newMeth(C$, 'navigableKeySet$', function () {
return P$.Collections.unmodifiableNavigableSet$java_util_NavigableSet(this.nm.navigableKeySet$());
});
Clazz_newMeth(C$, 'descendingKeySet$', function () {
return P$.Collections.unmodifiableNavigableSet$java_util_NavigableSet(this.nm.descendingKeySet$());
});
Clazz_newMeth(C$, ['subMap$TK$Z$TK$Z'], function (fromKey, fromInclusive, toKey, toInclusive) {
return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.subMap$TK$Z$TK$Z(fromKey, fromInclusive, toKey, toInclusive));
});
Clazz_newMeth(C$, ['headMap$TK$Z'], function (toKey, inclusive) {
return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.headMap$TK$Z(toKey, inclusive));
});
Clazz_newMeth(C$, ['tailMap$TK$Z'], function (fromKey, inclusive) {
return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.tailMap$TK$Z(fromKey, inclusive));
});
;
(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableNavigableMap, "EmptyNavigableMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.UnmodifiableNavigableMap'], 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$java_util_NavigableMap.apply(this, [Clazz_new_($I$(12))]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'navigableKeySet$', function () {
return P$.Collections.emptyNavigableSet$();
});
Clazz_newMeth(C$, 'readResolve', function () {
return $I$(13).EMPTY_NAVIGABLE_MAP;
}, p$4);
})()
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedCollection", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Collection', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.c=null;
this.mutex=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) {
C$.$init$.apply(this);
this.c=$I$(6).requireNonNull$TT(c);
this.mutex=this;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection$O', function (c, mutex) {
C$.$init$.apply(this);
this.c=$I$(6).requireNonNull$TT(c);
this.mutex=$I$(6).requireNonNull$TT(mutex);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
{
return this.c.size$();
}});
Clazz_newMeth(C$, 'isEmpty$', function () {
{
return this.c.isEmpty$();
}});
Clazz_newMeth(C$, 'contains$O', function (o) {
{
return this.c.contains$O(o);
}});
Clazz_newMeth(C$, 'toArray$', function () {
{
return this.c.toArray$();
}});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
{
return this.c.toArray$TTA(a);
}});
Clazz_newMeth(C$, 'iterator$', function () {
return this.c.iterator$();
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
{
return this.c.add$TE(e);
}});
Clazz_newMeth(C$, 'remove$O', function (o) {
{
return this.c.remove$O(o);
}});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) {
{
return this.c.containsAll$java_util_Collection(coll);
}});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (coll) {
{
return this.c.addAll$java_util_Collection(coll);
}});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (coll) {
{
return this.c.removeAll$java_util_Collection(coll);
}});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (coll) {
{
return this.c.retainAll$java_util_Collection(coll);
}});
Clazz_newMeth(C$, 'clear$', function () {
{
this.c.clear$();
}});
Clazz_newMeth(C$, 'toString', function () {
{
return this.c.toString();
}});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (consumer) {
{
this.c.forEach$java_util_function_Consumer(consumer);
}});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
{
return this.c.removeIf$java_util_function_Predicate(filter);
}});
Clazz_newMeth(C$, 'spliterator$', function () {
return this.c.spliterator$();
});
Clazz_newMeth(C$, 'stream$', function () {
return this.c.stream$();
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return this.c.parallelStream$();
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
{
s.defaultWriteObject$();
}}, p$5);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedCollection'], 'java.util.Set');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Set', function (s) {
C$.superclazz.c$$java_util_Collection.apply(this, [s]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Set$O', function (s, mutex) {
C$.superclazz.c$$java_util_Collection$O.apply(this, [s, mutex]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
if (this === o ) return true;
{
return this.c.equals$O(o);
}});
Clazz_newMeth(C$, 'hashCode$', function () {
{
return this.c.hashCode$();
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedSortedSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedSet'], 'java.util.SortedSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ss=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_SortedSet', function (s) {
C$.superclazz.c$$java_util_Set.apply(this, [s]);
C$.$init$.apply(this);
this.ss=s;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_SortedSet$O', function (s, mutex) {
C$.superclazz.c$$java_util_Set$O.apply(this, [s, mutex]);
C$.$init$.apply(this);
this.ss=s;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
{
return this.ss.comparator$();
}});
Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) {
{
return Clazz_new_(C$.c$$java_util_SortedSet$O,[this.ss.subSet$TE$TE(fromElement, toElement), this.mutex]);
}});
Clazz_newMeth(C$, ['headSet$TE'], function (toElement) {
{
return Clazz_new_(C$.c$$java_util_SortedSet$O,[this.ss.headSet$TE(toElement), this.mutex]);
}});
Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) {
{
return Clazz_new_(C$.c$$java_util_SortedSet$O,[this.ss.tailSet$TE(fromElement), this.mutex]);
}});
Clazz_newMeth(C$, 'first$', function () {
{
return this.ss.first$();
}});
Clazz_newMeth(C$, 'last$', function () {
{
return this.ss.last$();
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedNavigableSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedSortedSet'], 'java.util.NavigableSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ns=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_NavigableSet', function (s) {
C$.superclazz.c$$java_util_SortedSet.apply(this, [s]);
C$.$init$.apply(this);
this.ns=s;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_NavigableSet$O', function (s, mutex) {
C$.superclazz.c$$java_util_SortedSet$O.apply(this, [s, mutex]);
C$.$init$.apply(this);
this.ns=s;
}, 1);
Clazz_newMeth(C$, ['lower$TE'], function (e) {
{
return this.ns.lower$TE(e);
}});
Clazz_newMeth(C$, ['floor$TE'], function (e) {
{
return this.ns.floor$TE(e);
}});
Clazz_newMeth(C$, ['ceiling$TE'], function (e) {
{
return this.ns.ceiling$TE(e);
}});
Clazz_newMeth(C$, ['higher$TE'], function (e) {
{
return this.ns.higher$TE(e);
}});
Clazz_newMeth(C$, 'pollFirst$', function () {
{
return this.ns.pollFirst$();
}});
Clazz_newMeth(C$, 'pollLast$', function () {
{
return this.ns.pollLast$();
}});
Clazz_newMeth(C$, 'descendingSet$', function () {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.descendingSet$(), this.mutex]);
}});
Clazz_newMeth(C$, 'descendingIterator$', function () {
{
return this.descendingSet$().iterator$();
}});
Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.subSet$TE$Z$TE$Z(fromElement, true, toElement, false), this.mutex]);
}});
Clazz_newMeth(C$, ['headSet$TE'], function (toElement) {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.headSet$TE$Z(toElement, false), this.mutex]);
}});
Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.tailSet$TE$Z(fromElement, true), this.mutex]);
}});
Clazz_newMeth(C$, ['subSet$TE$Z$TE$Z'], function (fromElement, fromInclusive, toElement, toInclusive) {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.subSet$TE$Z$TE$Z(fromElement, fromInclusive, toElement, toInclusive), this.mutex]);
}});
Clazz_newMeth(C$, ['headSet$TE$Z'], function (toElement, inclusive) {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.headSet$TE$Z(toElement, inclusive), this.mutex]);
}});
Clazz_newMeth(C$, ['tailSet$TE$Z'], function (fromElement, inclusive) {
{
return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.tailSet$TE$Z(fromElement, inclusive), this.mutex]);
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedCollection'], 'java.util.List');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.list=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List', function (list) {
C$.superclazz.c$$java_util_Collection.apply(this, [list]);
C$.$init$.apply(this);
this.list=list;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List$O', function (list, mutex) {
C$.superclazz.c$$java_util_Collection$O.apply(this, [list, mutex]);
C$.$init$.apply(this);
this.list=list;
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
if (this === o ) return true;
{
return this.list.equals$O(o);
}});
Clazz_newMeth(C$, 'hashCode$', function () {
{
return this.list.hashCode$();
}});
Clazz_newMeth(C$, 'get$I', function (index) {
{
return this.list.get$I(index);
}});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
{
return this.list.set$I$TE(index, element);
}});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
{
this.list.add$I$TE(index, element);
}});
Clazz_newMeth(C$, 'remove$I', function (index) {
{
return this.list.remove$I(index);
}});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
{
return this.list.indexOf$O(o);
}});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
{
return this.list.lastIndexOf$O(o);
}});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
{
return this.list.addAll$I$java_util_Collection(index, c);
}});
Clazz_newMeth(C$, 'listIterator$', function () {
return this.list.listIterator$();
});
Clazz_newMeth(C$, 'listIterator$I', function (index) {
return this.list.listIterator$I(index);
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
{
return Clazz_new_(C$.c$$java_util_List$O,[this.list.subList$I$I(fromIndex, toIndex), this.mutex]);
}});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
{
this.list.replaceAll$java_util_function_UnaryOperator(operator);
}});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
{
this.list.sort$java_util_Comparator(c);
}});
Clazz_newMeth(C$, 'readResolve', function () {
return (Clazz_instanceOf(this.list, "java.util.RandomAccess") ? Clazz_new_($I$(15).c$$java_util_List,[this.list]) : this);
}, p$6);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedRandomAccessList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedList'], 'java.util.RandomAccess');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List', function (list) {
C$.superclazz.c$$java_util_List.apply(this, [list]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List$O', function (list, mutex) {
C$.superclazz.c$$java_util_List$O.apply(this, [list, mutex]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
{
return Clazz_new_(C$.c$$java_util_List$O,[this.list.subList$I$I(fromIndex, toIndex), this.mutex]);
}});
Clazz_newMeth(C$, 'writeReplace', function () {
return Clazz_new_($I$(16).c$$java_util_List,[this.list]);
}, p$7);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Map', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.m=null;
this.mutex=null;
this.keySet=null;
this.entrySet=null;
this.values=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_Map'], function (m) {
C$.$init$.apply(this);
this.m=$I$(6).requireNonNull$TT(m);
this.mutex=this;
}, 1);
Clazz_newMeth(C$, ['c$$java_util_Map$O'], function (m, mutex) {
C$.$init$.apply(this);
this.m=m;
this.mutex=mutex;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
{
return this.m.size$();
}});
Clazz_newMeth(C$, 'isEmpty$', function () {
{
return this.m.isEmpty$();
}});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
{
return this.m.containsKey$O(key);
}});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
{
return this.m.containsValue$O(value);
}});
Clazz_newMeth(C$, 'get$O', function (key) {
{
return this.m.get$O(key);
}});
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
{
return this.m.put$TK$TV(key, value);
}});
Clazz_newMeth(C$, 'remove$O', function (key) {
{
return this.m.remove$O(key);
}});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (map) {
{
this.m.putAll$java_util_Map(map);
}});
Clazz_newMeth(C$, 'clear$', function () {
{
this.m.clear$();
}});
Clazz_newMeth(C$, 'keySet$', function () {
{
if (this.keySet == null ) this.keySet=Clazz_new_($I$(17).c$$java_util_Set$O,[this.m.keySet$(), this.mutex]);
return this.keySet;
}});
Clazz_newMeth(C$, 'entrySet$', function () {
{
if (this.entrySet == null ) this.entrySet=Clazz_new_($I$(17).c$$java_util_Set$O,[this.m.entrySet$(), this.mutex]);
return this.entrySet;
}});
Clazz_newMeth(C$, 'values$', function () {
{
if (this.values == null ) this.values=Clazz_new_($I$(18).c$$java_util_Collection$O,[this.m.values$(), this.mutex]);
return this.values;
}});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (this === o ) return true;
{
return this.m.equals$O(o);
}});
Clazz_newMeth(C$, 'hashCode$', function () {
{
return this.m.hashCode$();
}});
Clazz_newMeth(C$, 'toString', function () {
{
return this.m.toString();
}});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (k, defaultValue) {
{
return this.m.getOrDefault$O$TV(k, defaultValue);
}});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
{
this.m.forEach$java_util_function_BiConsumer(action);
}});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
{
this.m.replaceAll$java_util_function_BiFunction($function);
}});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
{
return this.m.putIfAbsent$TK$TV(key, value);
}});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
{
return this.m.remove$O$O(key, value);
}});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
{
return this.m.replace$TK$TV$TV(key, oldValue, newValue);
}});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
{
return this.m.replace$TK$TV(key, value);
}});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
{
return this.m.computeIfAbsent$TK$java_util_function_Function(key, mappingFunction);
}});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
{
return this.m.computeIfPresent$TK$java_util_function_BiFunction(key, remappingFunction);
}});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
{
return this.m.compute$TK$java_util_function_BiFunction(key, remappingFunction);
}});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
{
return this.m.merge$TK$TV$java_util_function_BiFunction(key, value, remappingFunction);
}});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
{
s.defaultWriteObject$();
}}, p$8);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedSortedMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedMap'], 'java.util.SortedMap');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.sm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_SortedMap'], function (m) {
C$.superclazz.c$$java_util_Map.apply(this, [m]);
C$.$init$.apply(this);
this.sm=m;
}, 1);
Clazz_newMeth(C$, ['c$$java_util_SortedMap$O'], function (m, mutex) {
C$.superclazz.c$$java_util_Map$O.apply(this, [m, mutex]);
C$.$init$.apply(this);
this.sm=m;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
{
return this.sm.comparator$();
}});
Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) {
{
return Clazz_new_(C$.c$$java_util_SortedMap$O,[this.sm.subMap$TK$TK(fromKey, toKey), this.mutex]);
}});
Clazz_newMeth(C$, ['headMap$TK'], function (toKey) {
{
return Clazz_new_(C$.c$$java_util_SortedMap$O,[this.sm.headMap$TK(toKey), this.mutex]);
}});
Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) {
{
return Clazz_new_(C$.c$$java_util_SortedMap$O,[this.sm.tailMap$TK(fromKey), this.mutex]);
}});
Clazz_newMeth(C$, 'firstKey$', function () {
{
return this.sm.firstKey$();
}});
Clazz_newMeth(C$, 'lastKey$', function () {
{
return this.sm.lastKey$();
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedNavigableMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.SynchronizedSortedMap'], 'java.util.NavigableMap');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.nm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_NavigableMap'], function (m) {
C$.superclazz.c$$java_util_SortedMap.apply(this, [m]);
C$.$init$.apply(this);
this.nm=m;
}, 1);
Clazz_newMeth(C$, ['c$$java_util_NavigableMap$O'], function (m, mutex) {
C$.superclazz.c$$java_util_SortedMap$O.apply(this, [m, mutex]);
C$.$init$.apply(this);
this.nm=m;
}, 1);
Clazz_newMeth(C$, ['lowerEntry$TK'], function (key) {
{
return this.nm.lowerEntry$TK(key);
}});
Clazz_newMeth(C$, ['lowerKey$TK'], function (key) {
{
return this.nm.lowerKey$TK(key);
}});
Clazz_newMeth(C$, ['floorEntry$TK'], function (key) {
{
return this.nm.floorEntry$TK(key);
}});
Clazz_newMeth(C$, ['floorKey$TK'], function (key) {
{
return this.nm.floorKey$TK(key);
}});
Clazz_newMeth(C$, ['ceilingEntry$TK'], function (key) {
{
return this.nm.ceilingEntry$TK(key);
}});
Clazz_newMeth(C$, ['ceilingKey$TK'], function (key) {
{
return this.nm.ceilingKey$TK(key);
}});
Clazz_newMeth(C$, ['higherEntry$TK'], function (key) {
{
return this.nm.higherEntry$TK(key);
}});
Clazz_newMeth(C$, ['higherKey$TK'], function (key) {
{
return this.nm.higherKey$TK(key);
}});
Clazz_newMeth(C$, 'firstEntry$', function () {
{
return this.nm.firstEntry$();
}});
Clazz_newMeth(C$, 'lastEntry$', function () {
{
return this.nm.lastEntry$();
}});
Clazz_newMeth(C$, 'pollFirstEntry$', function () {
{
return this.nm.pollFirstEntry$();
}});
Clazz_newMeth(C$, 'pollLastEntry$', function () {
{
return this.nm.pollLastEntry$();
}});
Clazz_newMeth(C$, 'descendingMap$', function () {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.descendingMap$(), this.mutex]);
}});
Clazz_newMeth(C$, 'keySet$', function () {
return this.navigableKeySet$();
});
Clazz_newMeth(C$, 'navigableKeySet$', function () {
{
return Clazz_new_($I$(19).c$$java_util_NavigableSet$O,[this.nm.navigableKeySet$(), this.mutex]);
}});
Clazz_newMeth(C$, 'descendingKeySet$', function () {
{
return Clazz_new_($I$(19).c$$java_util_NavigableSet$O,[this.nm.descendingKeySet$(), this.mutex]);
}});
Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.subMap$TK$Z$TK$Z(fromKey, true, toKey, false), this.mutex]);
}});
Clazz_newMeth(C$, ['headMap$TK'], function (toKey) {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.headMap$TK$Z(toKey, false), this.mutex]);
}});
Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.tailMap$TK$Z(fromKey, true), this.mutex]);
}});
Clazz_newMeth(C$, ['subMap$TK$Z$TK$Z'], function (fromKey, fromInclusive, toKey, toInclusive) {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.subMap$TK$Z$TK$Z(fromKey, fromInclusive, toKey, toInclusive), this.mutex]);
}});
Clazz_newMeth(C$, ['headMap$TK$Z'], function (toKey, inclusive) {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.headMap$TK$Z(toKey, inclusive), this.mutex]);
}});
Clazz_newMeth(C$, ['tailMap$TK$Z'], function (fromKey, inclusive) {
{
return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.tailMap$TK$Z(fromKey, inclusive), this.mutex]);
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedCollection", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Collection', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.c=null;
this.type=null;
this.zeroLengthElementArray=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'typeCheck$O', function (o) {
if (o != null && !this.type.isInstance$O(o) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$9.badElementMsg$O.apply(this, [o])]);
return o;
});
Clazz_newMeth(C$, 'badElementMsg$O', function (o) {
return "Attempt to insert " + o.getClass$() + " element into collection with element type " + this.type ;
}, p$9);
Clazz_newMeth(C$, 'c$$java_util_Collection$Class', function (c, type) {
C$.$init$.apply(this);
this.c=$I$(6).requireNonNull$TT$S(c, "c");
this.type=$I$(6).requireNonNull$TT$S(type, "type");
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.c.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.c.isEmpty$();
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.c.contains$O(o);
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.c.toArray$();
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
return this.c.toArray$TTA(a);
});
Clazz_newMeth(C$, 'toString', function () {
return this.c.toString();
});
Clazz_newMeth(C$, 'remove$O', function (o) {
return this.c.remove$O(o);
});
Clazz_newMeth(C$, 'clear$', function () {
this.c.clear$();
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) {
return this.c.containsAll$java_util_Collection(coll);
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (coll) {
return this.c.removeAll$java_util_Collection(coll);
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (coll) {
return this.c.retainAll$java_util_Collection(coll);
});
Clazz_newMeth(C$, 'iterator$', function () {
var it=this.c.iterator$();
return ((P$.Collections$CheckedCollection$1||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedCollection$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.$finals$.it.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.$finals$.it.next$();
});
Clazz_newMeth(C$, 'remove$', function () {
this.$finals$.it.remove$();
});
})()
), Clazz_new_(P$.Collections$CheckedCollection$1.$init$, [this, {it: it}]));
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
return this.c.add$TE(this.typeCheck$O(e));
});
Clazz_newMeth(C$, 'zeroLengthElementArray', function () {
return this.zeroLengthElementArray != null ? this.zeroLengthElementArray : (this.zeroLengthElementArray=P$.Collections.zeroLengthArray$Class(this.type));
}, p$9);
Clazz_newMeth(C$, 'checkedCopyOf$java_util_Collection', function (coll) {
var a;
try {
var z=p$9.zeroLengthElementArray.apply(this, []);
a=coll.toArray$TTA(z);
if (a.getClass$() !== z.getClass$() ) a=$I$(10).copyOf$TUA$I$Class(a, a.length, z.getClass$());
} catch (ignore) {
if (Clazz_exceptionOf(ignore,"ArrayStoreException")){
a=coll.toArray$().clone$();
for (var o, $o = 0, $$o = a; $o<$$o.length&&((o=($$o[$o])),1);$o++) this.typeCheck$O(o);
} else {
throw ignore;
}
}
return $I$(10).asList$TTA(a);
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (coll) {
return this.c.addAll$java_util_Collection(this.checkedCopyOf$java_util_Collection(coll));
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
this.c.forEach$java_util_function_Consumer(action);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
return this.c.removeIf$java_util_function_Predicate(filter);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return this.c.spliterator$();
});
Clazz_newMeth(C$, 'stream$', function () {
return this.c.stream$();
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return this.c.parallelStream$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedQueue", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedCollection'], ['java.util.Queue', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.queue=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Queue$Class', function (queue, elementType) {
C$.superclazz.c$$java_util_Collection$Class.apply(this, [queue, elementType]);
C$.$init$.apply(this);
this.queue=queue;
}, 1);
Clazz_newMeth(C$, 'element$', function () {
return this.queue.element$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.c.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.c.hashCode$();
});
Clazz_newMeth(C$, 'peek$', function () {
return this.queue.peek$();
});
Clazz_newMeth(C$, 'poll$', function () {
return this.queue.poll$();
});
Clazz_newMeth(C$, 'remove$', function () {
return this.queue.remove$();
});
Clazz_newMeth(C$, ['offer$TE'], function (e) {
return this.queue.offer$TE(this.typeCheck$O(e));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedCollection'], ['java.util.Set', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Set$Class', function (s, elementType) {
C$.superclazz.c$$java_util_Collection$Class.apply(this, [s, elementType]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.c.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.c.hashCode$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedSortedSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedSet'], ['java.util.SortedSet', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ss=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_SortedSet$Class', function (s, type) {
C$.superclazz.c$$java_util_Set$Class.apply(this, [s, type]);
C$.$init$.apply(this);
this.ss=s;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
return this.ss.comparator$();
});
Clazz_newMeth(C$, 'first$', function () {
return this.ss.first$();
});
Clazz_newMeth(C$, 'last$', function () {
return this.ss.last$();
});
Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) {
return P$.Collections.checkedSortedSet$java_util_SortedSet$Class(this.ss.subSet$TE$TE(fromElement, toElement), this.type);
});
Clazz_newMeth(C$, ['headSet$TE'], function (toElement) {
return P$.Collections.checkedSortedSet$java_util_SortedSet$Class(this.ss.headSet$TE(toElement), this.type);
});
Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) {
return P$.Collections.checkedSortedSet$java_util_SortedSet$Class(this.ss.tailSet$TE(fromElement), this.type);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedNavigableSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedSortedSet'], ['java.util.NavigableSet', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ns=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_NavigableSet$Class', function (s, type) {
C$.superclazz.c$$java_util_SortedSet$Class.apply(this, [s, type]);
C$.$init$.apply(this);
this.ns=s;
}, 1);
Clazz_newMeth(C$, ['lower$TE'], function (e) {
return this.ns.lower$TE(e);
});
Clazz_newMeth(C$, ['floor$TE'], function (e) {
return this.ns.floor$TE(e);
});
Clazz_newMeth(C$, ['ceiling$TE'], function (e) {
return this.ns.ceiling$TE(e);
});
Clazz_newMeth(C$, ['higher$TE'], function (e) {
return this.ns.higher$TE(e);
});
Clazz_newMeth(C$, 'pollFirst$', function () {
return this.ns.pollFirst$();
});
Clazz_newMeth(C$, 'pollLast$', function () {
return this.ns.pollLast$();
});
Clazz_newMeth(C$, 'descendingSet$', function () {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.descendingSet$(), this.type);
});
Clazz_newMeth(C$, 'descendingIterator$', function () {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.descendingSet$(), this.type).iterator$();
});
Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.subSet$TE$Z$TE$Z(fromElement, true, toElement, false), this.type);
});
Clazz_newMeth(C$, ['headSet$TE'], function (toElement) {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.headSet$TE$Z(toElement, false), this.type);
});
Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.tailSet$TE$Z(fromElement, true), this.type);
});
Clazz_newMeth(C$, ['subSet$TE$Z$TE$Z'], function (fromElement, fromInclusive, toElement, toInclusive) {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.subSet$TE$Z$TE$Z(fromElement, fromInclusive, toElement, toInclusive), this.type);
});
Clazz_newMeth(C$, ['headSet$TE$Z'], function (toElement, inclusive) {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.headSet$TE$Z(toElement, inclusive), this.type);
});
Clazz_newMeth(C$, ['tailSet$TE$Z'], function (fromElement, inclusive) {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.tailSet$TE$Z(fromElement, inclusive), this.type);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedCollection'], 'java.util.List');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.list=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List$Class', function (list, type) {
C$.superclazz.c$$java_util_Collection$Class.apply(this, [list, type]);
C$.$init$.apply(this);
this.list=list;
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.list.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.list.hashCode$();
});
Clazz_newMeth(C$, 'get$I', function (index) {
return this.list.get$I(index);
});
Clazz_newMeth(C$, 'remove$I', function (index) {
return this.list.remove$I(index);
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
return this.list.indexOf$O(o);
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
return this.list.lastIndexOf$O(o);
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
return this.list.set$I$TE(index, this.typeCheck$O(element));
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
this.list.add$I$TE(index, this.typeCheck$O(element));
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
return this.list.addAll$I$java_util_Collection(index, this.checkedCopyOf$java_util_Collection(c));
});
Clazz_newMeth(C$, 'listIterator$', function () {
return this.listIterator$I(0);
});
Clazz_newMeth(C$, 'listIterator$I', function (index) {
var i=this.list.listIterator$I(index);
return ((P$.Collections$CheckedList$1||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedList$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.ListIterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.$finals$.i.hasNext$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.$finals$.i.next$();
});
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.$finals$.i.hasPrevious$();
});
Clazz_newMeth(C$, 'previous$', function () {
return this.$finals$.i.previous$();
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.$finals$.i.nextIndex$();
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.$finals$.i.previousIndex$();
});
Clazz_newMeth(C$, 'remove$', function () {
this.$finals$.i.remove$();
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
this.$finals$.i.set$TE(this.b$['java.util.Collections.CheckedCollection'].typeCheck$O.apply(this.b$['java.util.Collections.CheckedCollection'], [e]));
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.$finals$.i.add$TE(this.b$['java.util.Collections.CheckedCollection'].typeCheck$O.apply(this.b$['java.util.Collections.CheckedCollection'], [e]));
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
this.$finals$.i.forEachRemaining$java_util_function_Consumer(action);
});
})()
), Clazz_new_(P$.Collections$CheckedList$1.$init$, [this, {i: i}]));
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
return Clazz_new_(C$.c$$java_util_List$Class,[this.list.subList$I$I(fromIndex, toIndex), this.type]);
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
$I$(6).requireNonNull$TT(operator);
this.list.replaceAll$java_util_function_UnaryOperator(((P$.Collections$CheckedList$lambda1||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedList$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.UnaryOperator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['apply$'], function (e) { return (this.b$['java.util.Collections.CheckedCollection'].typeCheck$O.apply(this.b$['java.util.Collections.CheckedCollection'], [this.$finals$.operator.apply$(e)]));});
})()
), Clazz_new_(P$.Collections$CheckedList$lambda1.$init$, [this, {operator: operator}])));
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
this.list.sort$java_util_Comparator(c);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedRandomAccessList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedList'], 'java.util.RandomAccess');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List$Class', function (list, type) {
C$.superclazz.c$$java_util_List$Class.apply(this, [list, type]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
return Clazz_new_(C$.c$$java_util_List$Class,[this.list.subList$I$I(fromIndex, toIndex), this.type]);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Map', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.m=null;
this.keyType=null;
this.valueType=null;
this.entrySet=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'typeCheck$O$O', function (key, value) {
if (key != null && !this.keyType.isInstance$O(key) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$12.badKeyMsg$O.apply(this, [key])]);
if (value != null && !this.valueType.isInstance$O(value) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$12.badValueMsg$O.apply(this, [value])]);
}, p$12);
Clazz_newMeth(C$, 'typeCheck$java_util_function_BiFunction', function (func) {
$I$(6).requireNonNull$TT(func);
return ((P$.Collections$CheckedMap$lambda1||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.BiFunction', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'apply$', function (k, v) {
var newValue=this.$finals$.func.apply$(k, v);
p$12.typeCheck$O$O.apply(this.b$['java.util.Collections.CheckedMap'], [k, newValue]);
return newValue;
});
})()
), Clazz_new_(P$.Collections$CheckedMap$lambda1.$init$, [this, {func: func}]));
}, p$12);
Clazz_newMeth(C$, 'badKeyMsg$O', function (key) {
return "Attempt to insert " + key.getClass$() + " key into map with key type " + this.keyType ;
}, p$12);
Clazz_newMeth(C$, 'badValueMsg$O', function (value) {
return "Attempt to insert " + value.getClass$() + " value into map with value type " + this.valueType ;
}, p$12);
Clazz_newMeth(C$, ['c$$java_util_Map$Class$Class'], function (m, keyType, valueType) {
C$.$init$.apply(this);
this.m=$I$(6).requireNonNull$TT(m);
this.keyType=$I$(6).requireNonNull$TT(keyType);
this.valueType=$I$(6).requireNonNull$TT(valueType);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.m.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.m.isEmpty$();
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
return this.m.containsKey$O(key);
});
Clazz_newMeth(C$, 'containsValue$O', function (v) {
return this.m.containsValue$O(v);
});
Clazz_newMeth(C$, 'get$O', function (key) {
return this.m.get$O(key);
});
Clazz_newMeth(C$, 'remove$O', function (key) {
return this.m.remove$O(key);
});
Clazz_newMeth(C$, 'clear$', function () {
this.m.clear$();
});
Clazz_newMeth(C$, 'keySet$', function () {
return this.m.keySet$();
});
Clazz_newMeth(C$, 'values$', function () {
return this.m.values$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.m.equals$O(o) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.m.hashCode$();
});
Clazz_newMeth(C$, 'toString', function () {
return this.m.toString();
});
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
p$12.typeCheck$O$O.apply(this, [key, value]);
return this.m.put$TK$TV(key, value);
});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (t) {
var entries=t.entrySet$().toArray$();
var checked=Clazz_new_($I$(22).c$$I,[entries.length]);
for (var o, $o = 0, $$o = entries; $o<$$o.length&&((o=($$o[$o])),1);$o++) {
var e=o;
var k=e.getKey$();
var v=e.getValue$();
p$12.typeCheck$O$O.apply(this, [k, v]);
checked.add$TE(Clazz_new_($I$(20).c$$TK$TV,[k, v]));
}
for (var e, $e = checked.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.m.put$TK$TV(e.getKey$(), e.getValue$());
});
Clazz_newMeth(C$, 'entrySet$', function () {
if (this.entrySet == null ) this.entrySet=Clazz_new_($I$(23).c$$java_util_Set$Class,[this.m.entrySet$(), this.valueType]);
return this.entrySet;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
this.m.forEach$java_util_function_BiConsumer(action);
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
this.m.replaceAll$java_util_function_BiFunction(p$12.typeCheck$java_util_function_BiFunction.apply(this, [$function]));
});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
p$12.typeCheck$O$O.apply(this, [key, value]);
return this.m.putIfAbsent$TK$TV(key, value);
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
return this.m.remove$O$O(key, value);
});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
p$12.typeCheck$O$O.apply(this, [key, newValue]);
return this.m.replace$TK$TV$TV(key, oldValue, newValue);
});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
p$12.typeCheck$O$O.apply(this, [key, value]);
return this.m.replace$TK$TV(key, value);
});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
$I$(6).requireNonNull$TT(mappingFunction);
return this.m.computeIfAbsent$TK$java_util_function_Function(key, ((P$.Collections$CheckedMap$lambda2||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.Function', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'apply$', function (k) {
var value=this.$finals$.mappingFunction.apply$(k);
p$12.typeCheck$O$O.apply(this.b$['java.util.Collections.CheckedMap'], [k, value]);
return value;
});
})()
), Clazz_new_(P$.Collections$CheckedMap$lambda2.$init$, [this, {mappingFunction: mappingFunction}])));
});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
return this.m.computeIfPresent$TK$java_util_function_BiFunction(key, p$12.typeCheck$java_util_function_BiFunction.apply(this, [remappingFunction]));
});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
return this.m.compute$TK$java_util_function_BiFunction(key, p$12.typeCheck$java_util_function_BiFunction.apply(this, [remappingFunction]));
});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
$I$(6).requireNonNull$TT(remappingFunction);
return this.m.merge$TK$TV$java_util_function_BiFunction(key, value, ((P$.Collections$CheckedMap$lambda3||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.BiFunction', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'apply$', function (v1, v2) {
var newValue=this.$finals$.remappingFunction.apply$(v1, v2);
p$12.typeCheck$O$O.apply(this.b$['java.util.Collections.CheckedMap'], [null, newValue]);
return newValue;
});
})()
), Clazz_new_(P$.Collections$CheckedMap$lambda3.$init$, [this, {remappingFunction: remappingFunction}])));
});
;
(function(){var C$=Clazz_newClass(P$.Collections.CheckedMap, "CheckedEntrySet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Set');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.s=null;
this.valueType=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_Set$Class'], function (s, valueType) {
C$.$init$.apply(this);
this.s=s;
this.valueType=valueType;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.s.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.s.isEmpty$();
});
Clazz_newMeth(C$, 'toString', function () {
return this.s.toString();
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.s.hashCode$();
});
Clazz_newMeth(C$, 'clear$', function () {
this.s.clear$();
});
Clazz_newMeth(C$, ['add$java_util_Map_Entry','add$TE'], function (e) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['addAll$java_util_Collection'], function (coll) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'iterator$', function () {
var i=this.s.iterator$();
var valueType=this.valueType;
return ((P$.Collections$CheckedMap$CheckedEntrySet$1||
(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$CheckedEntrySet$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.$finals$.i.hasNext$();
});
Clazz_newMeth(C$, 'remove$', function () {
this.$finals$.i.remove$();
});
Clazz_newMeth(C$, 'next$', function () {
return P$.Collections.CheckedMap.CheckedEntrySet.checkedEntry$java_util_Map_Entry$Class(this.$finals$.i.next$(), this.$finals$.valueType);
});
})()
), Clazz_new_(P$.Collections$CheckedMap$CheckedEntrySet$1.$init$, [this, {i: i, valueType: valueType}]));
});
Clazz_newMeth(C$, 'toArray$', function () {
var source=this.s.toArray$();
var dest=(Clazz_getClass($I$(21)).isInstance$O(source.getClass$().getComponentType$()) ? source : Clazz_array(java.lang.Object, [source.length]));
for (var i=0; i < source.length; i++) dest[i]=C$.checkedEntry$java_util_Map_Entry$Class(source[i], this.valueType);
return dest;
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var arr=this.s.toArray$TTA(a.length == 0 ? a : $I$(10).copyOf$TTA$I(a, 0));
for (var i=0; i < arr.length; i++) arr[i]=C$.checkedEntry$java_util_Map_Entry$Class(arr[i], this.valueType);
if (arr.length > a.length) return arr;
System.arraycopy$O$I$O$I$I(arr, 0, a, 0, arr.length);
if (a.length > arr.length) a[arr.length]=null;
return a;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
return this.s.contains$O((Clazz_instanceOf(e, "java.util.Collections.CheckedMap.CheckedEntrySet.CheckedEntry")) ? e : C$.checkedEntry$java_util_Map_Entry$Class(e, this.valueType));
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
for (var o, $o = c.iterator$(); $o.hasNext$()&&((o=($o.next$())),1);) if (!this.contains$O(o)) return false;
return true;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
return this.s.remove$O(Clazz_new_($I$(20).c$$java_util_Map_Entry,[o]));
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
return p$11.batchRemove$java_util_Collection$Z.apply(this, [c, false]);
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) {
return p$11.batchRemove$java_util_Collection$Z.apply(this, [c, true]);
});
Clazz_newMeth(C$, 'batchRemove$java_util_Collection$Z', function (c, complement) {
$I$(6).requireNonNull$TT(c);
var modified=false;
var it=this.iterator$();
while (it.hasNext$()){
if (c.contains$O(it.next$()) != complement ) {
it.remove$();
modified=true;
}}
return modified;
}, p$11);
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.Set"))) return false;
var that=o;
return that.size$() == this.s.size$() && this.containsAll$java_util_Collection(that) ;
});
Clazz_newMeth(C$, ['checkedEntry$java_util_Map_Entry$Class'], function (e, valueType) {
return Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[e, valueType]);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.Collections.CheckedMap.CheckedEntrySet, "CheckedEntry", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.util.Map','java.util.Map.Entry']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.e=null;
this.valueType=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_Map_Entry$Class'], function (e, valueType) {
C$.$init$.apply(this);
this.e=$I$(6).requireNonNull$TT(e);
this.valueType=$I$(6).requireNonNull$TT(valueType);
}, 1);
Clazz_newMeth(C$, 'getKey$', function () {
return this.e.getKey$();
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.e.getValue$();
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.e.hashCode$();
});
Clazz_newMeth(C$, 'toString', function () {
return this.e.toString();
});
Clazz_newMeth(C$, ['setValue$TV'], function (value) {
if (value != null && !this.valueType.isInstance$O(value) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$10.badValueMsg$O.apply(this, [value])]);
return this.e.setValue$TV(value);
});
Clazz_newMeth(C$, 'badValueMsg$O', function (value) {
return "Attempt to insert " + value.getClass$() + " value into map with value type " + this.valueType ;
}, p$10);
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
return this.e.equals$O(Clazz_new_($I$(20).c$$java_util_Map_Entry,[o]));
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedSortedMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedMap'], ['java.util.SortedMap', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.sm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_SortedMap$Class$Class'], function (m, keyType, valueType) {
C$.superclazz.c$$java_util_Map$Class$Class.apply(this, [m, keyType, valueType]);
C$.$init$.apply(this);
this.sm=m;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
return this.sm.comparator$();
});
Clazz_newMeth(C$, 'firstKey$', function () {
return this.sm.firstKey$();
});
Clazz_newMeth(C$, 'lastKey$', function () {
return this.sm.lastKey$();
});
Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) {
return P$.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.subMap$TK$TK(fromKey, toKey), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['headMap$TK'], function (toKey) {
return P$.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.headMap$TK(toKey), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) {
return P$.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.tailMap$TK(fromKey), this.keyType, this.valueType);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CheckedNavigableMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.CheckedSortedMap'], ['java.util.NavigableMap', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.nm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_NavigableMap$Class$Class'], function (m, keyType, valueType) {
C$.superclazz.c$$java_util_SortedMap$Class$Class.apply(this, [m, keyType, valueType]);
C$.$init$.apply(this);
this.nm=m;
}, 1);
Clazz_newMeth(C$, 'comparator$', function () {
return this.nm.comparator$();
});
Clazz_newMeth(C$, 'firstKey$', function () {
return this.nm.firstKey$();
});
Clazz_newMeth(C$, 'lastKey$', function () {
return this.nm.lastKey$();
});
Clazz_newMeth(C$, ['lowerEntry$TK'], function (key) {
var lower=this.nm.lowerEntry$TK(key);
return (null != lower ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[lower, this.valueType]) : null;
});
Clazz_newMeth(C$, ['lowerKey$TK'], function (key) {
return this.nm.lowerKey$TK(key);
});
Clazz_newMeth(C$, ['floorEntry$TK'], function (key) {
var floor=this.nm.floorEntry$TK(key);
return (null != floor ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[floor, this.valueType]) : null;
});
Clazz_newMeth(C$, ['floorKey$TK'], function (key) {
return this.nm.floorKey$TK(key);
});
Clazz_newMeth(C$, ['ceilingEntry$TK'], function (key) {
var ceiling=this.nm.ceilingEntry$TK(key);
return (null != ceiling ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[ceiling, this.valueType]) : null;
});
Clazz_newMeth(C$, ['ceilingKey$TK'], function (key) {
return this.nm.ceilingKey$TK(key);
});
Clazz_newMeth(C$, ['higherEntry$TK'], function (key) {
var higher=this.nm.higherEntry$TK(key);
return (null != higher ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[higher, this.valueType]) : null;
});
Clazz_newMeth(C$, ['higherKey$TK'], function (key) {
return this.nm.higherKey$TK(key);
});
Clazz_newMeth(C$, 'firstEntry$', function () {
var first=this.nm.firstEntry$();
return (null != first ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[first, this.valueType]) : null;
});
Clazz_newMeth(C$, 'lastEntry$', function () {
var last=this.nm.lastEntry$();
return (null != last ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[last, this.valueType]) : null;
});
Clazz_newMeth(C$, 'pollFirstEntry$', function () {
var entry=this.nm.pollFirstEntry$();
return (null == entry ) ? null : Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[entry, this.valueType]);
});
Clazz_newMeth(C$, 'pollLastEntry$', function () {
var entry=this.nm.pollLastEntry$();
return (null == entry ) ? null : Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[entry, this.valueType]);
});
Clazz_newMeth(C$, 'descendingMap$', function () {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.descendingMap$(), this.keyType, this.valueType);
});
Clazz_newMeth(C$, 'keySet$', function () {
return this.navigableKeySet$();
});
Clazz_newMeth(C$, 'navigableKeySet$', function () {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.nm.navigableKeySet$(), this.keyType);
});
Clazz_newMeth(C$, 'descendingKeySet$', function () {
return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.nm.descendingKeySet$(), this.keyType);
});
Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.subMap$TK$Z$TK$Z(fromKey, true, toKey, false), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['headMap$TK'], function (toKey) {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.headMap$TK$Z(toKey, false), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.tailMap$TK$Z(fromKey, true), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['subMap$TK$Z$TK$Z'], function (fromKey, fromInclusive, toKey, toInclusive) {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.subMap$TK$Z$TK$Z(fromKey, fromInclusive, toKey, toInclusive), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['headMap$TK$Z'], function (toKey, inclusive) {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.headMap$TK$Z(toKey, inclusive), this.keyType, this.valueType);
});
Clazz_newMeth(C$, ['tailMap$TK$Z'], function (fromKey, inclusive) {
return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.tailMap$TK$Z(fromKey, inclusive), this.keyType, this.valueType);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "EmptyIterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Iterator');
C$.EMPTY_ITERATOR=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_ITERATOR=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return false;
});
Clazz_newMeth(C$, 'next$', function () {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
});
Clazz_newMeth(C$, 'remove$', function () {
throw Clazz_new_(Clazz_load('IllegalStateException'));
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
$I$(6).requireNonNull$TT(action);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "EmptyListIterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.Collections','.EmptyIterator'], 'java.util.ListIterator');
C$.$EMPTY_ITERATOR=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.$EMPTY_ITERATOR=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasPrevious$', function () {
return false;
});
Clazz_newMeth(C$, 'previous$', function () {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return 0;
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return -1;
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
throw Clazz_new_(Clazz_load('IllegalStateException'));
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "EmptyEnumeration", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Enumeration');
C$.EMPTY_ENUMERATION=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY_ENUMERATION=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasMoreElements$', function () {
return false;
});
Clazz_newMeth(C$, 'nextElement$', function () {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "EmptySet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractSet', 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return P$.Collections.emptyIterator$();
});
Clazz_newMeth(C$, 'size$', function () {
return 0;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return true;
});
Clazz_newMeth(C$, 'contains$O', function (obj) {
return false;
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
return c.isEmpty$();
});
Clazz_newMeth(C$, 'toArray$', function () {
return Clazz_array(java.lang.Object, [0]);
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
if (a.length > 0) a[0]=null;
return a;
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
$I$(6).requireNonNull$TT(action);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
$I$(6).requireNonNull$TT(filter);
return false;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(24).emptySpliterator$();
});
Clazz_newMeth(C$, 'readResolve', function () {
return $I$(25).EMPTY_SET;
}, p$13);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "EmptyList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return P$.Collections.emptyIterator$();
});
Clazz_newMeth(C$, 'listIterator$', function () {
return P$.Collections.emptyListIterator$();
});
Clazz_newMeth(C$, 'size$', function () {
return 0;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return true;
});
Clazz_newMeth(C$, 'contains$O', function (obj) {
return false;
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
return c.isEmpty$();
});
Clazz_newMeth(C$, 'toArray$', function () {
return Clazz_array(java.lang.Object, [0]);
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
if (a.length > 0) a[0]=null;
return a;
});
Clazz_newMeth(C$, 'get$I', function (index) {
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return (Clazz_instanceOf(o, "java.util.List")) && (o).isEmpty$() ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return 1;
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
$I$(6).requireNonNull$TT(filter);
return false;
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
$I$(6).requireNonNull$TT(operator);
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
$I$(6).requireNonNull$TT(action);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(24).emptySpliterator$();
});
Clazz_newMeth(C$, 'readResolve', function () {
return $I$(25).EMPTY_LIST;
}, p$14);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "EmptyMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractMap', 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return 0;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return true;
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
return false;
});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
return false;
});
Clazz_newMeth(C$, 'get$O', function (key) {
return null;
});
Clazz_newMeth(C$, 'keySet$', function () {
return P$.Collections.emptySet$();
});
Clazz_newMeth(C$, 'values$', function () {
return P$.Collections.emptySet$();
});
Clazz_newMeth(C$, 'entrySet$', function () {
return P$.Collections.emptySet$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return (Clazz_instanceOf(o, "java.util.Map")) && (o).isEmpty$() ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return 0;
});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (k, defaultValue) {
return defaultValue;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
$I$(6).requireNonNull$TT(action);
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
$I$(6).requireNonNull$TT($function);
});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'readResolve', function () {
return $I$(25).EMPTY_MAP;
}, p$15);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SingletonSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractSet', 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.element=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$TE'], function (e) {
Clazz_super_(C$, this,1);
this.element=e;
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return P$.Collections.singletonIterator$TE(this.element);
});
Clazz_newMeth(C$, 'size$', function () {
return 1;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return P$.Collections.eq$O$O(o, this.element);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
action.accept$(this.element);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return P$.Collections.singletonSpliterator$TT(this.element);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SingletonList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.element=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$TE'], function (obj) {
Clazz_super_(C$, this,1);
this.element=obj;
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return P$.Collections.singletonIterator$TE(this.element);
});
Clazz_newMeth(C$, 'size$', function () {
return 1;
});
Clazz_newMeth(C$, 'contains$O', function (obj) {
return P$.Collections.eq$O$O(obj, this.element);
});
Clazz_newMeth(C$, 'get$I', function (index) {
if (index != 0) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index + ", Size: 1" ]);
return this.element;
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
action.accept$(this.element);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
});
Clazz_newMeth(C$, 'spliterator$', function () {
return P$.Collections.singletonSpliterator$TT(this.element);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SingletonMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractMap', 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.k=null;
this.v=null;
this.$keySet=null;
this.entrySet=null;
this.$values=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$TK$TV'], function (key, value) {
Clazz_super_(C$, this,1);
this.k=key;
this.v=value;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return 1;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return false;
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
return P$.Collections.eq$O$O(key, this.k);
});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
return P$.Collections.eq$O$O(value, this.v);
});
Clazz_newMeth(C$, 'get$O', function (key) {
return (P$.Collections.eq$O$O(key, this.k) ? this.v : null);
});
Clazz_newMeth(C$, 'keySet$', function () {
if (this.$keySet == null ) this.$keySet=P$.Collections.singleton$TT(this.k);
return this.$keySet;
});
Clazz_newMeth(C$, 'entrySet$', function () {
if (this.entrySet == null ) this.entrySet=$I$(25).singleton$TT(Clazz_new_($I$(20).c$$TK$TV,[this.k, this.v]));
return this.entrySet;
});
Clazz_newMeth(C$, 'values$', function () {
if (this.$values == null ) this.$values=P$.Collections.singleton$TT(this.v);
return this.$values;
});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) {
return P$.Collections.eq$O$O(key, this.k) ? this.v : defaultValue;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
action.accept$(this.k, this.v);
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "CopiesList", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.n=0;
this.element=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$TE', function (n, e) {
Clazz_super_(C$, this,1);
Clazz_assert(C$, this, function(){return n >= 0});
this.n=n;
this.element=e;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.n;
});
Clazz_newMeth(C$, 'contains$O', function (obj) {
return this.n != 0 && P$.Collections.eq$O$O(obj, this.element) ;
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
return this.contains$O(o) ? 0 : -1;
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
return this.contains$O(o) ? this.n - 1 : -1;
});
Clazz_newMeth(C$, 'get$I', function (index) {
if (index < 0 || index >= this.n ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index + ", Size: " + this.n ]);
return this.element;
});
Clazz_newMeth(C$, 'toArray$', function () {
var a=Clazz_array(java.lang.Object, [this.n]);
if (this.element != null ) $I$(10).fill$OA$I$I$O(a, 0, this.n, this.element);
return a;
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var n=this.n;
if (a.length < n) {
a=Clazz_array(a.getClass$().getComponentType$(), n);
if (this.element != null ) $I$(10).fill$OA$I$I$O(a, 0, n, this.element);
} else {
$I$(10).fill$OA$I$I$O(a, 0, n, this.element);
if (a.length > n) a[n]=null;
}return a;
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
if (fromIndex < 0) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["fromIndex = " + fromIndex]);
if (toIndex > this.n) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["toIndex = " + toIndex]);
if (fromIndex > toIndex) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ]);
return Clazz_new_(C$.c$$I$TE,[toIndex - fromIndex, this.element]);
});
Clazz_newMeth(C$, 'stream$', function () {
return $I$(27).range$I$I(0, this.n).mapToObj$java_util_function_IntFunction(((P$.Collections$CopiesList$lambda1||
(function(){var C$=Clazz_newClass(P$, "Collections$CopiesList$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntFunction', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'apply$', function (i) { return (this.element);});
})()
), Clazz_new_(P$.Collections$CopiesList$lambda1.$init$, [this, null])));
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return $I$(27).range$I$I(0, this.n).parallel$().mapToObj$java_util_function_IntFunction(((P$.Collections$CopiesList$lambda2||
(function(){var C$=Clazz_newClass(P$, "Collections$CopiesList$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntFunction', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, 'apply$', function (i) { return (this.element);});
})()
), Clazz_new_(P$.Collections$CopiesList$lambda2.$init$, [this, null])));
});
Clazz_newMeth(C$, 'spliterator$', function () {
return this.stream$().spliterator$();
});
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "ReverseComparator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Comparator', 'java.io.Serializable']);
C$.REVERSE_ORDER=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.REVERSE_ORDER=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['compare$Comparable$Comparable','compare$','compare$TT$TT'], function (c1, c2) {
return c2.compareTo$(c1);
});
Clazz_newMeth(C$, 'readResolve', function () {
return $I$(25).reverseOrder$();
}, p$16);
Clazz_newMeth(C$, 'reversed$', function () {
return $I$(28).naturalOrder$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "ReverseComparator2", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['java.util.Comparator', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.cmp=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Comparator', function (cmp) {
C$.$init$.apply(this);
Clazz_assert(C$, this, function(){return cmp != null });
this.cmp=cmp;
}, 1);
Clazz_newMeth(C$, ['compare$TT$TT','compare$'], function (t1, t2) {
return this.cmp.compare$(t2, t1);
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return (o === this ) || (Clazz_instanceOf(o, "java.util.Collections.ReverseComparator2") && this.cmp.equals$O((o).cmp) ) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.cmp.hashCode$() ^ -2147483648;
});
Clazz_newMeth(C$, 'reversed$', function () {
return this.cmp;
});
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "SetFromMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractSet', ['java.util.Set', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.m=null;
this.s=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (map) {
Clazz_super_(C$, this,1);
if (!map.isEmpty$()) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Map is non-empty"]);
this.m=map;
this.s=map.keySet$();
}, 1);
Clazz_newMeth(C$, 'clear$', function () {
this.m.clear$();
});
Clazz_newMeth(C$, 'size$', function () {
return this.m.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.m.isEmpty$();
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.m.containsKey$O(o);
});
Clazz_newMeth(C$, 'remove$O', function (o) {
return this.m.remove$O(o) != null ;
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
return this.m.put$TK$TV(e, $I$(29).TRUE) == null ;
});
Clazz_newMeth(C$, 'iterator$', function () {
return this.s.iterator$();
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.s.toArray$();
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
return this.s.toArray$TTA(a);
});
Clazz_newMeth(C$, 'toString', function () {
return this.s.toString();
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.s.hashCode$();
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return o === this || this.s.equals$O(o) ;
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
return this.s.containsAll$java_util_Collection(c);
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
return this.s.removeAll$java_util_Collection(c);
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) {
return this.s.retainAll$java_util_Collection(c);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
this.s.forEach$java_util_function_Consumer(action);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
return this.s.removeIf$java_util_function_Predicate(filter);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return this.s.spliterator$();
});
Clazz_newMeth(C$, 'stream$', function () {
return this.s.stream$();
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return this.s.parallelStream$();
});
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (stream) {
stream.defaultReadObject$();
this.s=this.m.keySet$();
}, p$17);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Collections, "AsLIFOQueue", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'java.util.AbstractQueue', ['java.util.Queue', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.q=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Deque', function (q) {
Clazz_super_(C$, this,1);
this.q=q;
}, 1);
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.q.addFirst$TE(e);
return true;
});
Clazz_newMeth(C$, ['offer$TE'], function (e) {
return this.q.offerFirst$TE(e);
});
Clazz_newMeth(C$, 'poll$', function () {
return this.q.pollFirst$();
});
Clazz_newMeth(C$, 'remove$', function () {
return this.q.removeFirst$();
});
Clazz_newMeth(C$, 'peek$', function () {
return this.q.peekFirst$();
});
Clazz_newMeth(C$, 'element$', function () {
return this.q.getFirst$();
});
Clazz_newMeth(C$, 'clear$', function () {
this.q.clear$();
});
Clazz_newMeth(C$, 'size$', function () {
return this.q.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.q.isEmpty$();
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.q.contains$O(o);
});
Clazz_newMeth(C$, 'remove$O', function (o) {
return this.q.remove$O(o);
});
Clazz_newMeth(C$, 'iterator$', function () {
return this.q.iterator$();
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.q.toArray$();
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
return this.q.toArray$TTA(a);
});
Clazz_newMeth(C$, 'toString', function () {
return this.q.toString();
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
return this.q.containsAll$java_util_Collection(c);
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
return this.q.removeAll$java_util_Collection(c);
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) {
return this.q.retainAll$java_util_Collection(c);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
this.q.forEach$java_util_function_Consumer(action);
});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
return this.q.removeIf$java_util_function_Predicate(filter);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return this.q.spliterator$();
});
Clazz_newMeth(C$, 'stream$', function () {
return this.q.stream$();
});
Clazz_newMeth(C$, 'parallelStream$', function () {
return this.q.parallelStream$();
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newInterface(P$, "Deque", null, null, 'java.util.Queue');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newClass(P$, "Dictionary");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newInterface(P$, "Enumeration");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newInterface(P$, "EventListener");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newClass(P$, "EventObject", null, null, 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.source=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O', function (source) {
C$.$init$.apply(this);
if (source == null ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null source"]);
this.source=source;
}, 1);
Clazz_newMeth(C$, 'getSource$', function () {
return this.source;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[source=" + this.source + "]" ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,'java.util.Objects',['java.util.HashMap','.KeyIterator'],['java.util.HashMap','.KeySpliterator'],['java.util.HashMap','.ValueIterator'],['java.util.HashMap','.ValueSpliterator'],['java.util.HashMap','.EntryIterator'],['java.util.HashMap','.EntrySpliterator'],['java.util.HashMap','.Node'],['java.util.HashMap','.KeySet'],['java.util.HashMap','.Values'],['java.util.HashMap','.EntrySet'],'InternalError',['java.util.HashMap','.TreeNode']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "HashMap", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.AbstractMap', ['java.util.Map', 'Cloneable', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
this.entrySet=null;
this.size=0;
this.modCount=0;
this.threshold=0;
this.loadFactor=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hash$O', function (key) {
var h;
return (key == null ) ? 0 : (h=key.hashCode$()) ^ (h >>> 16);
}, 1);
Clazz_newMeth(C$, 'comparableClassFor$O', function (x) {
if (Clazz_instanceOf(x, "java.lang.Comparable")) {
return x.getClass$();
}return null;
}, 1);
Clazz_newMeth(C$, 'compareComparables$Class$O$O', function (kc, k, x) {
return (x == null || x.getClass$() !== kc ? 0 : (k).compareTo$(x));
}, 1);
Clazz_newMeth(C$, 'tableSizeFor$I', function (cap) {
var n=cap - 1;
n|=n >>> 1;
n|=n >>> 2;
n|=n >>> 4;
n|=n >>> 8;
n|=n >>> 16;
return (n < 0) ? 1 : (n >= 1073741824) ? 1073741824 : n + 1;
}, 1);
Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) {
Clazz_super_(C$, this,1);
if (initialCapacity < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal initial capacity: " + initialCapacity]);
if (initialCapacity > 1073741824) initialCapacity=1073741824;
if (loadFactor <= 0 || Float.isNaN$F(loadFactor) ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal load factor: " + new Float(loadFactor).toString()]);
this.loadFactor=loadFactor;
this.threshold=C$.tableSizeFor$I(initialCapacity);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialCapacity) {
C$.c$$I$F.apply(this, [initialCapacity, 0.75]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.loadFactor=0.75;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (m) {
Clazz_super_(C$, this,1);
this.loadFactor=0.75;
this.putMapEntries$java_util_Map$Z(m, false);
}, 1);
Clazz_newMeth(C$, 'putMapEntries$java_util_Map$Z', function (m, evict) {
var s=m.size$();
if (s > 0) {
if (this.table == null ) {
var ft=(s / this.loadFactor) + 1.0;
var t=((ft < 1.07374182E9 ) ? (ft|0) : 1073741824);
if (t > this.threshold) this.threshold=C$.tableSizeFor$I(t);
} else if (s > this.threshold) this.resize$();
for (var e, $e = m.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) {
var key=e.getKey$();
var value=e.getValue$();
this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, false, evict);
}
}});
Clazz_newMeth(C$, 'size$', function () {
return this.size;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.size == 0;
});
Clazz_newMeth(C$, 'get$O', function (key) {
var e;
return (e=this.getNode$I$O(C$.hash$O(key), key)) == null ? null : e.value;
});
Clazz_newMeth(C$, ['getNode$I$O'], function (hash, key) {
var tab;
var first;
var e;
var n;
var k;
if ((tab=this.table) != null && (n=tab.length) > 0 && (first=tab[(n - 1) & hash]) != null ) {
if (first.hash == hash && ((k=first.key) === key || (key != null && key.equals$O(k) ) ) ) return first;
if ((e=first.next_) != null ) {
if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) return (first).getTreeNode$I$O(hash, key);
do {
if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) return e;
} while ((e=e.next_) != null );
}}return null;
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
return this.getNode$I$O(C$.hash$O(key), key) != null ;
});
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
return this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, false, true);
});
Clazz_newMeth(C$, ['putVal$I$TK$TV$Z$Z'], function (hash, key, value, onlyIfAbsent, evict) {
var tab;
var p;
var n;
var i;
if ((tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length;
if ((p=tab[i=(n - 1) & hash]) == null ) tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, value, null);
else {
var e;
var k;
if (p.hash == hash && ((k=p.key) === key || (key != null && key.equals$O(k) ) ) ) e=p;
else if (Clazz_instanceOf(p, "java.util.HashMap.TreeNode")) e=(p).putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, value);
else {
for (var binCount=0; ; ++binCount) {
if ((e=p.next_) == null ) {
p.next_=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, value, null);
if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash);
break;
}if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) break;
p=e;
}
}if (e != null ) {
var oldValue=e.value;
if (!onlyIfAbsent || oldValue == null ) e.value=value;
this.afterNodeAccess$java_util_HashMap_Node(e);
return oldValue;
}}++this.modCount;
if (++this.size > this.threshold) this.resize$();
this.afterNodeInsertion$Z(evict);
return null;
});
Clazz_newMeth(C$, 'resize$', function () {
var oldTab=this.table;
var oldCap=(oldTab == null ) ? 0 : oldTab.length;
var oldThr=this.threshold;
var newCap;
var newThr=0;
if (oldCap > 0) {
if (oldCap >= 1073741824) {
this.threshold=2147483647;
return oldTab;
} else if ((newCap=oldCap << 1) < 1073741824 && oldCap >= 16 ) newThr=oldThr << 1;
} else if (oldThr > 0) newCap=oldThr;
else {
newCap=16;
newThr=12;
}if (newThr == 0) {
var ft=newCap * this.loadFactor;
newThr=(newCap < 1073741824 && ft < 1.07374182E9 ? (ft|0) : 2147483647);
}this.threshold=newThr;
var newTab=Clazz_array($I$(8), [newCap]);
this.table=newTab;
if (oldTab != null ) {
for (var j=0; j < oldCap; ++j) {
var e;
if ((e=oldTab[j]) != null ) {
oldTab[j]=null;
if (e.next_ == null ) newTab[e.hash & (newCap - 1)]=e;
else if (Clazz_instanceOf(e, "java.util.HashMap.TreeNode")) (e).split$java_util_HashMap$java_util_HashMap_NodeA$I$I(this, newTab, j, oldCap);
else {
var loHead=null;
var loTail=null;
var hiHead=null;
var hiTail=null;
var next;
do {
next=e.next_;
if ((e.hash & oldCap) == 0) {
if (loTail == null ) loHead=e;
else loTail.next_=e;
loTail=e;
} else {
if (hiTail == null ) hiHead=e;
else hiTail.next_=e;
hiTail=e;
}} while ((e=next) != null );
if (loTail != null ) {
loTail.next_=null;
newTab[j]=loHead;
}if (hiTail != null ) {
hiTail.next_=null;
newTab[j + oldCap]=hiHead;
}}}}
}return newTab;
});
Clazz_newMeth(C$, ['treeifyBin$java_util_HashMap_NodeA$I'], function (tab, hash) {
var n;
var index;
var e;
if (tab == null || (n=tab.length) < 64 ) this.resize$();
else if ((e=tab[index=(n - 1) & hash]) != null ) {
var hd=null;
var tl=null;
do {
var p=this.replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node(e, null);
if (tl == null ) hd=p;
else {
p.prev=tl;
tl.next_=p;
}tl=p;
} while ((e=e.next_) != null );
if ((tab[index]=hd) != null ) hd.treeify$java_util_HashMap_NodeA(tab);
}});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) {
this.putMapEntries$java_util_Map$Z(m, true);
});
Clazz_newMeth(C$, 'remove$O', function (key) {
var e;
return (e=this.removeNode$I$O$O$Z$Z(C$.hash$O(key), key, null, false, true)) == null ? null : e.value;
});
Clazz_newMeth(C$, ['removeNode$I$O$O$Z$Z'], function (hash, key, value, matchValue, movable) {
var tab;
var p;
var n;
var index;
if ((tab=this.table) != null && (n=tab.length) > 0 && (p=tab[index=(n - 1) & hash]) != null ) {
var node=null;
var e;
var k;
var v;
if (p.hash == hash && ((k=p.key) === key || (key != null && key.equals$O(k) ) ) ) node=p;
else if ((e=p.next_) != null ) {
if (Clazz_instanceOf(p, "java.util.HashMap.TreeNode")) node=(p).getTreeNode$I$O(hash, key);
else {
do {
if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) {
node=e;
break;
}p=e;
} while ((e=e.next_) != null );
}}if (node != null && (!matchValue || (v=node.value) === value || (value != null && value.equals$O(v) ) ) ) {
if (Clazz_instanceOf(node, "java.util.HashMap.TreeNode")) (node).removeTreeNode$java_util_HashMap$java_util_HashMap_NodeA$Z(this, tab, movable);
else if (node === p ) tab[index]=node.next_;
else p.next_=node.next_;
++this.modCount;
--this.size;
this.afterNodeRemoval$java_util_HashMap_Node(node);
return node;
}}return null;
});
Clazz_newMeth(C$, 'clear$', function () {
var tab;
this.modCount++;
if ((tab=this.table) != null && this.size > 0 ) {
this.size=0;
for (var i=0; i < tab.length; ++i) tab[i]=null;
}});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
var tab;
var v;
if ((tab=this.table) != null && this.size > 0 ) {
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) {
if ((v=e.value) === value || (value != null && value.equals$O(v) ) ) return true;
}
}
}return false;
});
Clazz_newMeth(C$, 'keySet$', function () {
var ks;
return (ks=this.keySet) == null ? (this.keySet=Clazz_new_($I$(9), [this, null])) : ks;
});
Clazz_newMeth(C$, 'values$', function () {
var vs;
return (vs=this.values) == null ? (this.values=Clazz_new_($I$(10), [this, null])) : vs;
});
Clazz_newMeth(C$, 'entrySet$', function () {
var es;
return (es=this.entrySet) == null ? (this.entrySet=Clazz_new_($I$(11), [this, null])) : es;
});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) {
var e;
return (e=this.getNode$I$O(C$.hash$O(key), key)) == null ? defaultValue : e.value;
});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
return this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, true, true);
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
return this.removeNode$I$O$O$Z$Z(C$.hash$O(key), key, value, true, true) != null ;
});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
var e;
var v;
if ((e=this.getNode$I$O(C$.hash$O(key), key)) != null && ((v=e.value) === oldValue || (v != null && v.equals$O(oldValue) ) ) ) {
e.value=newValue;
this.afterNodeAccess$java_util_HashMap_Node(e);
return true;
}return false;
});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
var e;
if ((e=this.getNode$I$O(C$.hash$O(key), key)) != null ) {
var oldValue=e.value;
e.value=value;
this.afterNodeAccess$java_util_HashMap_Node(e);
return oldValue;
}return null;
});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
if (mappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var hash=C$.hash$O(key);
var tab;
var first;
var n;
var i;
var binCount=0;
var t=null;
var old=null;
if (this.size > this.threshold || (tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length;
if ((first=tab[i=(n - 1) & hash]) != null ) {
if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) old=(t=first).getTreeNode$I$O(hash, key);
else {
var e=first;
var k;
do {
if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) {
old=e;
break;
}++binCount;
} while ((e=e.next_) != null );
}var oldValue;
if (old != null && (oldValue=old.value) != null ) {
this.afterNodeAccess$java_util_HashMap_Node(old);
return oldValue;
}}var v=mappingFunction.apply$(key);
if (v == null ) {
return null;
} else if (old != null ) {
old.value=v;
this.afterNodeAccess$java_util_HashMap_Node(old);
return v;
} else if (t != null ) t.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, v);
else {
tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, v, first);
if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash);
}++this.modCount;
++this.size;
this.afterNodeInsertion$Z(true);
return v;
});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
if (remappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var e;
var oldValue;
var hash=C$.hash$O(key);
if ((e=this.getNode$I$O(hash, key)) != null && (oldValue=e.value) != null ) {
var v=remappingFunction.apply$(key, oldValue);
if (v != null ) {
e.value=v;
this.afterNodeAccess$java_util_HashMap_Node(e);
return v;
} else this.removeNode$I$O$O$Z$Z(hash, key, null, false, true);
}return null;
});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
if (remappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var hash=C$.hash$O(key);
var tab;
var first;
var n;
var i;
var binCount=0;
var t=null;
var old=null;
if (this.size > this.threshold || (tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length;
if ((first=tab[i=(n - 1) & hash]) != null ) {
if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) old=(t=first).getTreeNode$I$O(hash, key);
else {
var e=first;
var k;
do {
if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) {
old=e;
break;
}++binCount;
} while ((e=e.next_) != null );
}}var oldValue=(old == null ) ? null : old.value;
var v=remappingFunction.apply$(key, oldValue);
if (old != null ) {
if (v != null ) {
old.value=v;
this.afterNodeAccess$java_util_HashMap_Node(old);
} else this.removeNode$I$O$O$Z$Z(hash, key, null, false, true);
} else if (v != null ) {
if (t != null ) t.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, v);
else {
tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, v, first);
if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash);
}++this.modCount;
++this.size;
this.afterNodeInsertion$Z(true);
}return v;
});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
if (value == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (remappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var hash=C$.hash$O(key);
var tab;
var first;
var n;
var i;
var binCount=0;
var t=null;
var old=null;
if (this.size > this.threshold || (tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length;
if ((first=tab[i=(n - 1) & hash]) != null ) {
if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) old=(t=first).getTreeNode$I$O(hash, key);
else {
var e=first;
var k;
do {
if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) {
old=e;
break;
}++binCount;
} while ((e=e.next_) != null );
}}if (old != null ) {
var v;
if (old.value != null ) v=remappingFunction.apply$(old.value, value);
else v=value;
if (v != null ) {
old.value=v;
this.afterNodeAccess$java_util_HashMap_Node(old);
} else this.removeNode$I$O$O$Z$Z(hash, key, null, false, true);
return v;
}if (value != null ) {
if (t != null ) t.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, value);
else {
tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, value, first);
if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash);
}++this.modCount;
++this.size;
this.afterNodeInsertion$Z(true);
}return value;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
var tab;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (this.size > 0 && (tab=this.table) != null ) {
var mc=this.modCount;
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e.key, e.value);
}
if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
var tab;
if ($function == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (this.size > 0 && (tab=this.table) != null ) {
var mc=this.modCount;
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) {
e.value=$function.apply$(e.key, e.value);
}
}
if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, 'clone$', function () {
var result;
try {
result=C$.superclazz.prototype.clone$.apply(this, []);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(12).c$$Throwable,[e]);
} else {
throw e;
}
}
result.reinitialize$();
result.putMapEntries$java_util_Map$Z(this, false);
return result;
});
Clazz_newMeth(C$, 'loadFactor$', function () {
return this.loadFactor;
});
Clazz_newMeth(C$, 'capacity$', function () {
return (this.table != null ) ? this.table.length : (this.threshold > 0) ? this.threshold : 16;
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
var buckets=this.capacity$();
s.defaultWriteObject$();
s.writeInt$I(buckets);
s.writeInt$I(this.size);
this.internalWriteEntries$java_io_ObjectOutputStream(s);
}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) {
s.defaultReadObject$();
this.reinitialize$();
if (this.loadFactor <= 0 || Float.isNaN$F(this.loadFactor) ) throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal load factor: " + new Float(this.loadFactor).toString()]);
s.readInt$();
var mappings=s.readInt$();
if (mappings < 0) throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal mappings count: " + mappings]);
else if (mappings > 0) {
var lf=Math.min(Math.max(0.25, this.loadFactor), 4.0);
var fc=mappings / lf + 1.0;
var cap=((fc < 16 ) ? 16 : (fc >= 1073741824 ) ? 1073741824 : C$.tableSizeFor$I((fc|0)));
var ft=cap * lf;
this.threshold=((cap < 1073741824 && ft < 1073741824 ) ? (ft|0) : 2147483647);
var tab=Clazz_array($I$(8), [cap]);
this.table=tab;
for (var i=0; i < mappings; i++) {
var key=s.readObject$();
var value=s.readObject$();
this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, false, false);
}
}}, p$1);
Clazz_newMeth(C$, ['newNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) {
return Clazz_new_($I$(8).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, next]);
});
Clazz_newMeth(C$, ['replacementNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) {
return Clazz_new_($I$(8).c$$I$TK$TV$java_util_HashMap_Node,[p.hash, p.key, p.value, next]);
});
Clazz_newMeth(C$, ['newTreeNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) {
return Clazz_new_($I$(13).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, next]);
});
Clazz_newMeth(C$, ['replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) {
return Clazz_new_($I$(13).c$$I$TK$TV$java_util_HashMap_Node,[p.hash, p.key, p.value, next]);
});
Clazz_newMeth(C$, 'reinitialize$', function () {
this.table=null;
this.entrySet=null;
this.keySet=null;
this.values=null;
this.modCount=0;
this.threshold=0;
this.size=0;
});
Clazz_newMeth(C$, ['afterNodeAccess$java_util_HashMap_Node'], function (p) {
});
Clazz_newMeth(C$, 'afterNodeInsertion$Z', function (evict) {
});
Clazz_newMeth(C$, ['afterNodeRemoval$java_util_HashMap_Node'], function (p) {
});
Clazz_newMeth(C$, 'internalWriteEntries$java_io_ObjectOutputStream', function (s) {
var tab;
if (this.size > 0 && (tab=this.table) != null ) {
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) {
s.writeObject$O(e.key);
s.writeObject$O(e.value);
}
}
}});
;
(function(){var C$=Clazz_newClass(P$.HashMap, "Node", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.util.Map','java.util.Map.Entry']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.hash=0;
this.key=null;
this.value=null;
this.next_=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) {
C$.$init$.apply(this);
this.hash=hash;
this.key=key;
this.value=value;
this.next_=next;
}, 1);
Clazz_newMeth(C$, 'getKey$', function () {
return this.key;
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, 'toString', function () {
return this.key + "=" + this.value ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return $I$(1).hashCode$O(this.key) ^ $I$(1).hashCode$O(this.value);
});
Clazz_newMeth(C$, ['setValue$TV'], function (newValue) {
var oldValue=this.value;
this.value=newValue;
return oldValue;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (Clazz_instanceOf(o, "java.util.Map.Entry")) {
var e=o;
if ($I$(1).equals$O$O(this.key, e.getKey$()) && $I$(1).equals$O$O(this.value, e.getValue$()) ) return true;
}return false;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "KeySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.HashMap'].clear$.apply(this.b$['java.util.HashMap'], []);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(2), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.HashMap'].containsKey$O.apply(this.b$['java.util.HashMap'], [o]);
});
Clazz_newMeth(C$, 'remove$O', function (key) {
return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, true]) != null ;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(3).c$$java_util_HashMap$I$I$I$I,[this.b$['java.util.HashMap'], 0, -1, 0, 0]);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
var tab;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (this.this$0.size > 0 && (tab=this.this$0.table) != null ) {
var mc=this.this$0.modCount;
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e.key);
}
if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "Values", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractCollection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.HashMap'].clear$.apply(this.b$['java.util.HashMap'], []);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(4), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.HashMap'].containsValue$O.apply(this.b$['java.util.HashMap'], [o]);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(5).c$$java_util_HashMap$I$I$I$I,[this.b$['java.util.HashMap'], 0, -1, 0, 0]);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
var tab;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (this.this$0.size > 0 && (tab=this.this$0.table) != null ) {
var mc=this.this$0.modCount;
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e.value);
}
if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "EntrySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.HashMap'].clear$.apply(this.b$['java.util.HashMap'], []);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(6), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
var key=e.getKey$();
var candidate=this.b$['java.util.HashMap'].getNode$I$O.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key]);
return candidate != null && candidate.equals$O(e) ;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (Clazz_instanceOf(o, "java.util.Map.Entry")) {
var e=o;
var key=e.getKey$();
var value=e.getValue$();
return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, value, true, true]) != null ;
}return false;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(7).c$$java_util_HashMap$I$I$I$I,[this.b$['java.util.HashMap'], 0, -1, 0, 0]);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
var tab;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (this.this$0.size > 0 && (tab=this.this$0.table) != null ) {
var mc=this.this$0.modCount;
for (var i=0; i < tab.length; ++i) {
for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e);
}
if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "HashIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.next_=null;
this.current=null;
this.expectedModCount=0;
this.index=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.expectedModCount=this.this$0.modCount;
var t=this.this$0.table;
this.current=this.next_=null;
this.index=0;
if (t != null && this.this$0.size > 0 ) {
do {
} while (this.index < t.length && (this.next_=t[this.index++]) == null );
}}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.next_ != null ;
});
Clazz_newMeth(C$, 'nextNode$', function () {
var t;
var e=this.next_;
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
if (e == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
if ((this.next_=(this.current=e).next_) == null && (t=this.this$0.table) != null ) {
do {
} while (this.index < t.length && (this.next_=t[this.index++]) == null );
}return e;
});
Clazz_newMeth(C$, 'remove$', function () {
var p=this.current;
if (p == null ) throw Clazz_new_(Clazz_load('IllegalStateException'));
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.current=null;
var key=p.key;
this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, false]);
this.expectedModCount=this.this$0.modCount;
});
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "KeyIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.HashMap','.HashIterator'], 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.nextNode$().key;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "ValueIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.HashMap','.HashIterator'], 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.nextNode$().value;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "EntryIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.HashMap','.HashIterator'], 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.nextNode$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "HashMapSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.map=null;
this.current=null;
this.index=0;
this.fence=0;
this.est=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_HashMap$I$I$I$I', function (m, origin, fence, est, expectedModCount) {
C$.$init$.apply(this);
this.map=m;
this.index=origin;
this.fence=fence;
this.est=est;
this.expectedModCount=expectedModCount;
}, 1);
Clazz_newMeth(C$, 'getFence$', function () {
var hi;
if ((hi=this.fence) < 0) {
var m=this.map;
this.est=m.size;
this.expectedModCount=m.modCount;
var tab=m.table;
hi=this.fence=(tab == null ) ? 0 : tab.length;
}return hi;
});
Clazz_newMeth(C$, 'estimateSize$', function () {
this.getFence$();
return this.est;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "KeySpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.HashMap','.HashMapSpliterator'], 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_HashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) {
C$.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=this.getFence$();
var lo=this.index;
var mid=(lo + hi) >>> 1;
return (lo >= mid || this.current != null ) ? null : Clazz_new_(C$.c$$java_util_HashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]);
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
var i;
var hi;
var mc;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var m=this.map;
var tab=m.table;
if ((hi=this.fence) < 0) {
mc=this.expectedModCount=m.modCount;
hi=this.fence=(tab == null ) ? 0 : tab.length;
} else mc=this.expectedModCount;
if (tab != null && tab.length >= hi && (i=this.index) >= 0 && (i < (this.index=hi) || this.current != null ) ) {
var p=this.current;
this.current=null;
do {
if (p == null ) p=tab[i++];
else {
action.accept$(p.key);
p=p.next_;
}} while (p != null || i < hi );
if (m.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
var hi;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var tab=this.map.table;
if (tab != null && tab.length >= (hi=this.getFence$()) && this.index >= 0 ) {
while (this.current != null || this.index < hi ){
if (this.current == null ) this.current=tab[this.index++];
else {
var k=this.current.key;
this.current=this.current.next_;
action.accept$(k);
if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}}
}return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "ValueSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.HashMap','.HashMapSpliterator'], 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_HashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) {
C$.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=this.getFence$();
var lo=this.index;
var mid=(lo + hi) >>> 1;
return (lo >= mid || this.current != null ) ? null : Clazz_new_(C$.c$$java_util_HashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]);
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
var i;
var hi;
var mc;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var m=this.map;
var tab=m.table;
if ((hi=this.fence) < 0) {
mc=this.expectedModCount=m.modCount;
hi=this.fence=(tab == null ) ? 0 : tab.length;
} else mc=this.expectedModCount;
if (tab != null && tab.length >= hi && (i=this.index) >= 0 && (i < (this.index=hi) || this.current != null ) ) {
var p=this.current;
this.current=null;
do {
if (p == null ) p=tab[i++];
else {
action.accept$(p.value);
p=p.next_;
}} while (p != null || i < hi );
if (m.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
var hi;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var tab=this.map.table;
if (tab != null && tab.length >= (hi=this.getFence$()) && this.index >= 0 ) {
while (this.current != null || this.index < hi ){
if (this.current == null ) this.current=tab[this.index++];
else {
var v=this.current.value;
this.current=this.current.next_;
action.accept$(v);
if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}}
}return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return (this.fence < 0 || this.est == this.map.size ? 64 : 0);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "EntrySpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.HashMap','.HashMapSpliterator'], 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_HashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) {
C$.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=this.getFence$();
var lo=this.index;
var mid=(lo + hi) >>> 1;
return (lo >= mid || this.current != null ) ? null : Clazz_new_(C$.c$$java_util_HashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]);
});
Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer'], function (action) {
var i;
var hi;
var mc;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var m=this.map;
var tab=m.table;
if ((hi=this.fence) < 0) {
mc=this.expectedModCount=m.modCount;
hi=this.fence=(tab == null ) ? 0 : tab.length;
} else mc=this.expectedModCount;
if (tab != null && tab.length >= hi && (i=this.index) >= 0 && (i < (this.index=hi) || this.current != null ) ) {
var p=this.current;
this.current=null;
do {
if (p == null ) p=tab[i++];
else {
action.accept$(p);
p=p.next_;
}} while (p != null || i < hi );
if (m.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, ['tryAdvance$java_util_function_Consumer'], function (action) {
var hi;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var tab=this.map.table;
if (tab != null && tab.length >= (hi=this.getFence$()) && this.index >= 0 ) {
while (this.current != null || this.index < hi ){
if (this.current == null ) this.current=tab[this.index++];
else {
var e=this.current;
this.current=this.current.next_;
action.accept$(e);
if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}}
}return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.HashMap, "TreeNode", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.LinkedHashMap','.Entry']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.parent=null;
this.left=null;
this.right=null;
this.prev=null;
this.red=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_HashMap_Node'], function (hash, key, val, next) {
C$.superclazz.c$$I$TK$TV$java_util_HashMap_Node.apply(this, [hash, key, val, next]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'root$', function () {
for (var r=this, p; ; ) {
if ((p=r.parent) == null ) return r;
r=p;
}
});
Clazz_newMeth(C$, ['moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode'], function (tab, root) {
var n;
if (root != null && tab != null && (n=tab.length) > 0 ) {
var index=(n - 1) & root.hash;
var first=tab[index];
if (root !== first ) {
var rn;
tab[index]=root;
var rp=root.prev;
if ((rn=root.next_) != null ) (rn).prev=rp;
if (rp != null ) rp.next_=rn;
if (first != null ) first.prev=root;
root.next_=first;
root.prev=null;
}Clazz_assert(C$, this, function(){return C$.checkInvariants$java_util_HashMap_TreeNode(root)});
}}, 1);
Clazz_newMeth(C$, ['find$I$O$Class'], function (h, k, kc) {
var p=this;
do {
var ph;
var dir;
var pk;
var pl=p.left;
var pr=p.right;
var q;
if ((ph=p.hash) > h) p=pl;
else if (ph < h) p=pr;
else if ((pk=p.key) === k || (k != null && k.equals$O(pk) ) ) return p;
else if (pl == null ) p=pr;
else if (pr == null ) p=pl;
else if ((kc != null || (kc=P$.HashMap.comparableClassFor$O(k)) != null ) && (dir=P$.HashMap.compareComparables$Class$O$O(kc, k, pk)) != 0 ) p=(dir < 0) ? pl : pr;
else if ((q=pr.find$I$O$Class(h, k, kc)) != null ) return q;
else p=pl;
} while (p != null );
return null;
});
Clazz_newMeth(C$, ['getTreeNode$I$O'], function (h, k) {
return ((this.parent != null ) ? this.root$() : this).find$I$O$Class(h, k, null);
});
Clazz_newMeth(C$, 'tieBreakOrder$O$O', function (a, b) {
var d;
if (a == null || b == null || (d=a.getClass$().getName$().compareTo$S(b.getClass$().getName$())) == 0 ) d=(System.identityHashCode$O(a) <= System.identityHashCode$O(b) ? -1 : 1);
return d;
}, 1);
Clazz_newMeth(C$, ['treeify$java_util_HashMap_NodeA'], function (tab) {
var root=null;
for (var x=this, next; x != null ; x=next) {
next=x.next_;
x.left=x.right=null;
if (root == null ) {
x.parent=null;
x.red=false;
root=x;
} else {
var k=x.key;
var h=x.hash;
var kc=null;
for (var p=root; ; ) {
var dir;
var ph;
var pk=p.key;
if ((ph=p.hash) > h) dir=-1;
else if (ph < h) dir=1;
else if ((kc == null && (kc=P$.HashMap.comparableClassFor$O(k)) == null ) || (dir=P$.HashMap.compareComparables$Class$O$O(kc, k, pk)) == 0 ) dir=C$.tieBreakOrder$O$O(k, pk);
var xp=p;
if ((p=(dir <= 0) ? p.left : p.right) == null ) {
x.parent=xp;
if (dir <= 0) xp.left=x;
else xp.right=x;
root=C$.balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x);
break;
}}
}}
C$.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(tab, root);
});
Clazz_newMeth(C$, ['untreeify$java_util_HashMap'], function (map) {
var hd=null;
var tl=null;
for (var q=this; q != null ; q=q.next_) {
var p=map.replacementNode$java_util_HashMap_Node$java_util_HashMap_Node(q, null);
if (tl == null ) hd=p;
else tl.next_=p;
tl=p;
}
return hd;
});
Clazz_newMeth(C$, ['putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV'], function (map, tab, h, k, v) {
var kc=null;
var searched=false;
var root=(this.parent != null ) ? this.root$() : this;
for (var p=root; ; ) {
var dir;
var ph;
var pk;
if ((ph=p.hash) > h) dir=-1;
else if (ph < h) dir=1;
else if ((pk=p.key) === k || (k != null && k.equals$O(pk) ) ) return p;
else if ((kc == null && (kc=P$.HashMap.comparableClassFor$O(k)) == null ) || (dir=P$.HashMap.compareComparables$Class$O$O(kc, k, pk)) == 0 ) {
if (!searched) {
var q;
var ch;
searched=true;
if (((ch=p.left) != null && (q=ch.find$I$O$Class(h, k, kc)) != null ) || ((ch=p.right) != null && (q=ch.find$I$O$Class(h, k, kc)) != null ) ) return q;
}dir=C$.tieBreakOrder$O$O(k, pk);
}var xp=p;
if ((p=(dir <= 0) ? p.left : p.right) == null ) {
var xpn=xp.next_;
var x=map.newTreeNode$I$TK$TV$java_util_HashMap_Node(h, k, v, xpn);
if (dir <= 0) xp.left=x;
else xp.right=x;
xp.next_=x;
x.parent=x.prev=xp;
if (xpn != null ) (xpn).prev=x;
C$.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(tab, C$.balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x));
return null;
}}
});
Clazz_newMeth(C$, ['removeTreeNode$java_util_HashMap$java_util_HashMap_NodeA$Z'], function (map, tab, movable) {
var n;
if (tab == null || (n=tab.length) == 0 ) return;
var index=(n - 1) & this.hash;
var first=tab[index];
var root=first;
var rl;
var succ=this.next_;
var pred=this.prev;
if (pred == null ) tab[index]=first=succ;
else pred.next_=succ;
if (succ != null ) succ.prev=pred;
if (first == null ) return;
if (root.parent != null ) root=root.root$();
if (root == null || root.right == null || (rl=root.left) == null || rl.left == null ) {
tab[index]=first.untreeify$java_util_HashMap(map);
return;
}var p=this;
var pl=this.left;
var pr=this.right;
var replacement;
if (pl != null && pr != null ) {
var s=pr;
var sl;
while ((sl=s.left) != null )s=sl;
var c=s.red;
s.red=p.red;
p.red=c;
var sr=s.right;
var pp=p.parent;
if (s === pr ) {
p.parent=s;
s.right=p;
} else {
var sp=s.parent;
if ((p.parent=sp) != null ) {
if (s === sp.left ) sp.left=p;
else sp.right=p;
}if ((s.right=pr) != null ) pr.parent=s;
}p.left=null;
if ((p.right=sr) != null ) sr.parent=p;
if ((s.left=pl) != null ) pl.parent=s;
if ((s.parent=pp) == null ) root=s;
else if (p === pp.left ) pp.left=s;
else pp.right=s;
if (sr != null ) replacement=sr;
else replacement=p;
} else if (pl != null ) replacement=pl;
else if (pr != null ) replacement=pr;
else replacement=p;
if (replacement !== p ) {
var pp=replacement.parent=p.parent;
if (pp == null ) root=replacement;
else if (p === pp.left ) pp.left=replacement;
else pp.right=replacement;
p.left=p.right=p.parent=null;
}var r=p.red ? root : C$.balanceDeletion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, replacement);
if (replacement === p ) {
var pp=p.parent;
p.parent=null;
if (pp != null ) {
if (p === pp.left ) pp.left=null;
else if (p === pp.right ) pp.right=null;
}}if (movable) C$.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(tab, r);
});
Clazz_newMeth(C$, ['split$java_util_HashMap$java_util_HashMap_NodeA$I$I'], function (map, tab, index, bit) {
var b=this;
var loHead=null;
var loTail=null;
var hiHead=null;
var hiTail=null;
var lc=0;
var hc=0;
for (var e=b, next; e != null ; e=next) {
next=e.next_;
e.next_=null;
if ((e.hash & bit) == 0) {
if ((e.prev=loTail) == null ) loHead=e;
else loTail.next_=e;
loTail=e;
++lc;
} else {
if ((e.prev=hiTail) == null ) hiHead=e;
else hiTail.next_=e;
hiTail=e;
++hc;
}}
if (loHead != null ) {
if (lc <= 6) tab[index]=loHead.untreeify$java_util_HashMap(map);
else {
tab[index]=loHead;
if (hiHead != null ) loHead.treeify$java_util_HashMap_NodeA(tab);
}}if (hiHead != null ) {
if (hc <= 6) tab[index + bit]=hiHead.untreeify$java_util_HashMap(map);
else {
tab[index + bit]=hiHead;
if (loHead != null ) hiHead.treeify$java_util_HashMap_NodeA(tab);
}}});
Clazz_newMeth(C$, ['rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, p) {
var r;
var pp;
var rl;
if (p != null && (r=p.right) != null ) {
if ((rl=p.right=r.left) != null ) rl.parent=p;
if ((pp=r.parent=p.parent) == null ) (root=r).red=false;
else if (pp.left === p ) pp.left=r;
else pp.right=r;
r.left=p;
p.parent=r;
}return root;
}, 1);
Clazz_newMeth(C$, ['rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, p) {
var l;
var pp;
var lr;
if (p != null && (l=p.left) != null ) {
if ((lr=p.left=l.right) != null ) lr.parent=p;
if ((pp=l.parent=p.parent) == null ) (root=l).red=false;
else if (pp.right === p ) pp.right=l;
else pp.left=l;
l.right=p;
p.parent=l;
}return root;
}, 1);
Clazz_newMeth(C$, ['balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, x) {
x.red=true;
for (var xp, xpp, xppl, xppr; ; ) {
if ((xp=x.parent) == null ) {
x.red=false;
return x;
} else if (!xp.red || (xpp=xp.parent) == null ) return root;
if (xp === (xppl=xpp.left) ) {
if ((xppr=xpp.right) != null && xppr.red ) {
xppr.red=false;
xp.red=false;
xpp.red=true;
x=xpp;
} else {
if (x === xp.right ) {
root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x=xp);
xpp=(xp=x.parent) == null ? null : xp.parent;
}if (xp != null ) {
xp.red=false;
if (xpp != null ) {
xpp.red=true;
root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpp);
}}}} else {
if (xppl != null && xppl.red ) {
xppl.red=false;
xp.red=false;
xpp.red=true;
x=xpp;
} else {
if (x === xp.left ) {
root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x=xp);
xpp=(xp=x.parent) == null ? null : xp.parent;
}if (xp != null ) {
xp.red=false;
if (xpp != null ) {
xpp.red=true;
root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpp);
}}}}}
}, 1);
Clazz_newMeth(C$, ['balanceDeletion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, x) {
for (var xp, xpl, xpr; ; ) {
if (x == null || x === root ) return root;
else if ((xp=x.parent) == null ) {
x.red=false;
return x;
} else if (x.red) {
x.red=false;
return root;
} else if ((xpl=xp.left) === x ) {
if ((xpr=xp.right) != null && xpr.red ) {
xpr.red=false;
xp.red=true;
root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp);
xpr=(xp=x.parent) == null ? null : xp.right;
}if (xpr == null ) x=xp;
else {
var sl=xpr.left;
var sr=xpr.right;
if ((sr == null || !sr.red ) && (sl == null || !sl.red ) ) {
xpr.red=true;
x=xp;
} else {
if (sr == null || !sr.red ) {
if (sl != null ) sl.red=false;
xpr.red=true;
root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpr);
xpr=(xp=x.parent) == null ? null : xp.right;
}if (xpr != null ) {
xpr.red=(xp == null ) ? false : xp.red;
if ((sr=xpr.right) != null ) sr.red=false;
}if (xp != null ) {
xp.red=false;
root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp);
}x=root;
}}} else {
if (xpl != null && xpl.red ) {
xpl.red=false;
xp.red=true;
root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp);
xpl=(xp=x.parent) == null ? null : xp.left;
}if (xpl == null ) x=xp;
else {
var sl=xpl.left;
var sr=xpl.right;
if ((sl == null || !sl.red ) && (sr == null || !sr.red ) ) {
xpl.red=true;
x=xp;
} else {
if (sl == null || !sl.red ) {
if (sr != null ) sr.red=false;
xpl.red=true;
root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpl);
xpl=(xp=x.parent) == null ? null : xp.left;
}if (xpl != null ) {
xpl.red=(xp == null ) ? false : xp.red;
if ((sl=xpl.left) != null ) sl.red=false;
}if (xp != null ) {
xp.red=false;
root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp);
}x=root;
}}}}
}, 1);
Clazz_newMeth(C$, ['checkInvariants$java_util_HashMap_TreeNode'], function (t) {
var tp=t.parent;
var tl=t.left;
var tr=t.right;
var tb=t.prev;
var tn=t.next_;
if (tb != null && tb.next_ !== t ) return false;
if (tn != null && tn.prev !== t ) return false;
if (tp != null && t !== tp.left && t !== tp.right ) return false;
if (tl != null && (tl.parent !== t || tl.hash > t.hash ) ) return false;
if (tr != null && (tr.parent !== t || tr.hash < t.hash ) ) return false;
if (t.red && tl != null && tl.red && tr != null && tr.red ) return false;
if (tl != null && !C$.checkInvariants$java_util_HashMap_TreeNode(tl) ) return false;
if (tr != null && !C$.checkInvariants$java_util_HashMap_TreeNode(tr) ) return false;
return true;
}, 1);
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,'java.util.HashMap','java.util.LinkedHashMap','InternalError',['java.util.HashMap','.KeySpliterator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "HashSet", null, 'java.util.AbstractSet', ['java.util.Set', 'Cloneable', 'java.io.Serializable']);
C$.PRESENT=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.PRESENT= Clazz_new_();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.map=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.map=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) {
Clazz_super_(C$, this,1);
this.map=Clazz_new_($I$(1).c$$I,[Math.max(((c.size$() / 0.75)|0) + 1, 16)]);
this.addAll$java_util_Collection(c);
}, 1);
Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) {
Clazz_super_(C$, this,1);
this.map=Clazz_new_($I$(1).c$$I$F,[initialCapacity, loadFactor]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialCapacity) {
Clazz_super_(C$, this,1);
this.map=Clazz_new_($I$(1).c$$I,[initialCapacity]);
}, 1);
Clazz_newMeth(C$, 'c$$I$F$Z', function (initialCapacity, loadFactor, dummy) {
Clazz_super_(C$, this,1);
this.map=Clazz_new_($I$(2).c$$I$F,[initialCapacity, loadFactor]);
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return this.map.keySet$().iterator$();
});
Clazz_newMeth(C$, 'size$', function () {
return this.map.size$();
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.map.isEmpty$();
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.map.containsKey$O(o);
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
return this.map.put$TK$TV(e, C$.PRESENT) == null ;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
return this.map.remove$O(o) === C$.PRESENT ;
});
Clazz_newMeth(C$, 'clear$', function () {
this.map.clear$();
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var newSet=Clazz_clone(this);
newSet.map=this.map.clone$();
return newSet;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(3).c$$Throwable,[e]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
s.defaultWriteObject$();
s.writeInt$I(this.map.capacity$());
s.writeFloat$F(this.map.loadFactor$());
s.writeInt$I(this.map.size$());
for (var e, $e = this.map.keySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) s.writeObject$O(e);
}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) {
s.defaultReadObject$();
var capacity=s.readInt$();
if (capacity < 0) {
throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal capacity: " + capacity]);
}var loadFactor=s.readFloat$();
if (loadFactor <= 0 || Float.isNaN$F(loadFactor) ) {
throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal load factor: " + new Float(loadFactor).toString()]);
}var size=s.readInt$();
if (size < 0) {
throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal size: " + size]);
}capacity=(Math.min(size * Math.min(1 / loadFactor, 4.0), 1073741824)|0);
this.map=(Clazz_instanceOf((this), "java.util.LinkedHashSet") ? Clazz_new_($I$(2).c$$I$F,[capacity, loadFactor]) : Clazz_new_($I$(1).c$$I$F,[capacity, loadFactor]));
for (var i=0; i < size; i++) {
var e=s.readObject$();
this.map.put$TK$TV(e, C$.PRESENT);
}
}, p$1);
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(4).c$$java_util_HashMap$I$I$I$I,[this.map, 0, -1, 0, 0]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,'java.util.Objects',['java.util.Hashtable','.Entry'],'InternalError','StringBuilder','java.util.Collections',['java.util.Hashtable','.Enumerator'],['java.util.Hashtable','.KeySet'],['java.util.Hashtable','.EntrySet'],['java.util.Hashtable','.ValueCollection']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Hashtable", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.Dictionary', ['java.util.Map', 'Cloneable', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
this.count=0;
this.threshold=0;
this.loadFactor=0;
this.modCount=0;
this.keySet=null;
this.entrySet=null;
this.values=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.modCount=0;
}, 1);
Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) {
Clazz_super_(C$, this,1);
if (initialCapacity < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Capacity: " + initialCapacity]);
if (loadFactor <= 0 || Float.isNaN$F(loadFactor) ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Load: " + new Float(loadFactor).toString()]);
if (initialCapacity == 0) initialCapacity=1;
this.loadFactor=loadFactor;
this.table=Clazz_array($I$(2), [initialCapacity]);
this.threshold=(Math.min(initialCapacity * loadFactor, 2147483640)|0);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialCapacity) {
C$.c$$I$F.apply(this, [initialCapacity, 0.75]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$F.apply(this, [11, 0.75]);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (t) {
C$.c$$I$F.apply(this, [Math.max(2 * t.size$(), 11), 0.75]);
this.putAll$java_util_Map(t);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.count;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.count == 0;
});
Clazz_newMeth(C$, 'keys$', function () {
return p$1.getEnumeration$I.apply(this, [0]);
});
Clazz_newMeth(C$, 'elements$', function () {
return p$1.getEnumeration$I.apply(this, [1]);
});
Clazz_newMeth(C$, 'contains$O', function (value) {
if (value == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}var tab=this.table;
for (var i=tab.length; i-- > 0; ) {
for (var e=tab[i]; e != null ; e=e.next_) {
if (e.value.equals$O(value)) {
return true;
}}
}
return false;
});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
return this.contains$O(value);
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
for (var e=tab[index]; e != null ; e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) ) {
return true;
}}
return false;
});
Clazz_newMeth(C$, 'get$O', function (key) {
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
for (var e=tab[index]; e != null ; e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) ) {
return e.value;
}}
return null;
});
Clazz_newMeth(C$, 'rehash$', function () {
var oldCapacity=this.table.length;
var oldMap=this.table;
var newCapacity=(oldCapacity << 1) + 1;
if (newCapacity - 2147483639 > 0) {
if (oldCapacity == 2147483639) return;
newCapacity=2147483639;
}var newMap=Clazz_array($I$(2), [newCapacity]);
this.modCount++;
this.threshold=(Math.min(newCapacity * this.loadFactor, 2147483640)|0);
this.table=newMap;
for (var i=oldCapacity; i-- > 0; ) {
for (var old=oldMap[i]; old != null ; ) {
var e=old;
old=old.next_;
var index=(e.hash & 2147483647) % newCapacity;
e.next_=newMap[index];
newMap[index]=e;
}
}
});
Clazz_newMeth(C$, ['addEntry$I$TK$TV$I'], function (hash, key, value, index) {
this.modCount++;
var tab=this.table;
if (this.count >= this.threshold) {
this.rehash$();
tab=this.table;
hash=key.hashCode$();
index=(hash & 2147483647) % tab.length;
}var e=tab[index];
tab[index]=Clazz_new_($I$(2).c$$I$TK$TV$java_util_Hashtable_Entry,[hash, key, value, e]);
this.count++;
}, p$1);
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
if (value == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var entry=tab[index];
for (; entry != null ; entry=entry.next_) {
if ((entry.hash == hash) && entry.key.equals$O(key) ) {
var old=entry.value;
entry.value=value;
return old;
}}
p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, value, index]);
return null;
});
Clazz_newMeth(C$, 'remove$O', function (key) {
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) ) {
this.modCount++;
if (prev != null ) {
prev.next_=e.next_;
} else {
tab[index]=e.next_;
}this.count--;
var oldValue=e.value;
e.value=null;
return oldValue;
}}
return null;
});
Clazz_newMeth(C$, 'putAll$java_util_Map', function (t) {
for (var e, $e = t.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.put$TK$TV(e.getKey$(), e.getValue$());
});
Clazz_newMeth(C$, 'clear$', function () {
var tab=this.table;
this.modCount++;
for (var index=tab.length; --index >= 0; ) tab[index]=null;
this.count=0;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var t=Clazz_clone(this);
t.table=Clazz_array($I$(2), [this.table.length]);
for (var i=this.table.length; i-- > 0; ) {
t.table[i]=(this.table[i] != null ) ? this.table[i].clone$() : null;
}
t.keySet=null;
t.entrySet=null;
t.values=null;
t.modCount=0;
return t;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(3).c$$Throwable,[e]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'toString', function () {
var max=this.size$() - 1;
if (max == -1) return "{}";
var sb=Clazz_new_($I$(4));
var it=this.entrySet$().iterator$();
sb.append$C("{");
for (var i=0; ; i++) {
var e=it.next$();
var key=e.getKey$();
var value=e.getValue$();
sb.append$S(key === this ? "(this Map)" : key.toString());
sb.append$C("=");
sb.append$S(value === this ? "(this Map)" : value.toString());
if (i == max) return sb.append$C("}").toString();
sb.append$S(", ");
}
});
Clazz_newMeth(C$, 'getEnumeration$I', function (type) {
if (this.count == 0) {
return $I$(5).emptyEnumeration$();
} else {
return Clazz_new_($I$(6).c$$I$Z, [this, null, type, false]);
}}, p$1);
Clazz_newMeth(C$, 'getIterator$I', function (type) {
if (this.count == 0) {
return $I$(5).emptyIterator$();
} else {
return Clazz_new_($I$(6).c$$I$Z, [this, null, type, true]);
}}, p$1);
Clazz_newMeth(C$, 'keySet$', function () {
if (this.keySet == null ) this.keySet=$I$(5).synchronizedSet$java_util_Set$O(Clazz_new_($I$(7), [this, null]), this);
return this.keySet;
});
Clazz_newMeth(C$, 'entrySet$', function () {
if (this.entrySet == null ) this.entrySet=$I$(5).synchronizedSet$java_util_Set$O(Clazz_new_($I$(8), [this, null]), this);
return this.entrySet;
});
Clazz_newMeth(C$, 'values$', function () {
if (this.values == null ) this.values=$I$(5).synchronizedCollection$java_util_Collection$O(Clazz_new_($I$(9), [this, null]), this);
return this.values;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) return true;
if (!(Clazz_instanceOf(o, "java.util.Map"))) return false;
var t=o;
if (t.size$() != this.size$()) return false;
try {
var i=this.entrySet$().iterator$();
while (i.hasNext$()){
var e=i.next$();
var key=e.getKey$();
var value=e.getValue$();
if (value == null ) {
if (!(t.get$O(key) == null && t.containsKey$O(key) )) return false;
} else {
if (!value.equals$O(t.get$O(key))) return false;
}}
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"ClassCastException")){
var unused = e$$;
{
return false;
}
} else if (Clazz_exceptionOf(e$$,"NullPointerException")){
var unused = e$$;
{
return false;
}
} else {
throw e$$;
}
}
return true;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var h=0;
if (this.count == 0 || this.loadFactor < 0 ) return h;
this.loadFactor=-this.loadFactor;
var tab=this.table;
for (var entry, $entry = 0, $$entry = tab; $entry<$$entry.length&&((entry=($$entry[$entry])),1);$entry++) {
while (entry != null ){
h+=entry.hashCode$();
entry=entry.next_;
}
}
this.loadFactor=-this.loadFactor;
return h;
});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) {
var result=this.get$O(key);
return (null == result ) ? defaultValue : result;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
$I$(1).requireNonNull$TT(action);
var expectedModCount=this.modCount;
var tab=this.table;
for (var entry, $entry = 0, $$entry = tab; $entry<$$entry.length&&((entry=($$entry[$entry])),1);$entry++) {
while (entry != null ){
action.accept$(entry.key, entry.value);
entry=entry.next_;
if (expectedModCount != this.modCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}}
}
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
$I$(1).requireNonNull$TT($function);
var expectedModCount=this.modCount;
var tab=this.table;
for (var entry, $entry = 0, $$entry = tab; $entry<$$entry.length&&((entry=($$entry[$entry])),1);$entry++) {
while (entry != null ){
entry.value=$I$(1).requireNonNull$TT($function.apply$(entry.key, entry.value));
entry=entry.next_;
if (expectedModCount != this.modCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}}
}
});
Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) {
$I$(1).requireNonNull$TT(value);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var entry=tab[index];
for (; entry != null ; entry=entry.next_) {
if ((entry.hash == hash) && entry.key.equals$O(key) ) {
var old=entry.value;
if (old == null ) {
entry.value=value;
}return old;
}}
p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, value, index]);
return null;
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
$I$(1).requireNonNull$TT(value);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) && e.value.equals$O(value) ) {
this.modCount++;
if (prev != null ) {
prev.next_=e.next_;
} else {
tab[index]=e.next_;
}this.count--;
e.value=null;
return true;
}}
return false;
});
Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) {
$I$(1).requireNonNull$TT(oldValue);
$I$(1).requireNonNull$TT(newValue);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (; e != null ; e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) ) {
if (e.value.equals$O(oldValue)) {
e.value=newValue;
return true;
} else {
return false;
}}}
return false;
});
Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) {
$I$(1).requireNonNull$TT(value);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (; e != null ; e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) ) {
var oldValue=e.value;
e.value=value;
return oldValue;
}}
return null;
});
Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) {
$I$(1).requireNonNull$TT(mappingFunction);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (; e != null ; e=e.next_) {
if (e.hash == hash && e.key.equals$O(key) ) {
return e.value;
}}
var newValue=mappingFunction.apply$(key);
if (newValue != null ) {
p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, newValue, index]);
}return newValue;
});
Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
$I$(1).requireNonNull$TT(remappingFunction);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if (e.hash == hash && e.key.equals$O(key) ) {
var newValue=remappingFunction.apply$(key, e.value);
if (newValue == null ) {
this.modCount++;
if (prev != null ) {
prev.next_=e.next_;
} else {
tab[index]=e.next_;
}this.count--;
} else {
e.value=newValue;
}return newValue;
}}
return null;
});
Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) {
$I$(1).requireNonNull$TT(remappingFunction);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if (e.hash == hash && $I$(1).equals$O$O(e.key, key) ) {
var newValue=remappingFunction.apply$(key, e.value);
if (newValue == null ) {
this.modCount++;
if (prev != null ) {
prev.next_=e.next_;
} else {
tab[index]=e.next_;
}this.count--;
} else {
e.value=newValue;
}return newValue;
}}
var newValue=remappingFunction.apply$(key, null);
if (newValue != null ) {
p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, newValue, index]);
}return newValue;
});
Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) {
$I$(1).requireNonNull$TT(remappingFunction);
var tab=this.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if (e.hash == hash && e.key.equals$O(key) ) {
var newValue=remappingFunction.apply$(e.value, value);
if (newValue == null ) {
this.modCount++;
if (prev != null ) {
prev.next_=e.next_;
} else {
tab[index]=e.next_;
}this.count--;
} else {
e.value=newValue;
}return newValue;
}}
if (value != null ) {
p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, value, index]);
}return value;
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
var entryStack=null;
{
s.defaultWriteObject$();
s.writeInt$I(this.table.length);
s.writeInt$I(this.count);
for (var index=0; index < this.table.length; index++) {
var entry=this.table[index];
while (entry != null ){
entryStack=Clazz_new_($I$(2).c$$I$TK$TV$java_util_Hashtable_Entry,[0, entry.key, entry.value, entryStack]);
entry=entry.next_;
}
}
}while (entryStack != null ){
s.writeObject$O(entryStack.key);
s.writeObject$O(entryStack.value);
entryStack=entryStack.next_;
}
}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) {
s.defaultReadObject$();
var origlength=s.readInt$();
var elements=s.readInt$();
var length=((elements * this.loadFactor)|0) + ((elements/20|0)) + 3 ;
if (length > elements && (length & 1) == 0 ) length--;
if (origlength > 0 && length > origlength ) length=origlength;
this.table=Clazz_array($I$(2), [length]);
this.threshold=(Math.min(length * this.loadFactor, 2147483640)|0);
this.count=0;
for (; elements > 0; elements--) {
var key=s.readObject$();
var value=s.readObject$();
p$1.reconstitutionPut$java_util_Hashtable_EntryA$TK$TV.apply(this, [this.table, key, value]);
}
}, p$1);
Clazz_newMeth(C$, ['reconstitutionPut$java_util_Hashtable_EntryA$TK$TV'], function (tab, key, value) {
if (value == null ) {
throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException'));
}var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
for (var e=tab[index]; e != null ; e=e.next_) {
if ((e.hash == hash) && e.key.equals$O(key) ) {
throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException'));
}}
var e=tab[index];
tab[index]=Clazz_new_($I$(2).c$$I$TK$TV$java_util_Hashtable_Entry,[hash, key, value, e]);
this.count++;
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.Hashtable, "KeySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return p$1.getIterator$I.apply(this.b$['java.util.Hashtable'], [0]);
});
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.count;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.Hashtable'].containsKey$O.apply(this.b$['java.util.Hashtable'], [o]);
});
Clazz_newMeth(C$, 'remove$O', function (o) {
return this.b$['java.util.Hashtable'].remove$O.apply(this.b$['java.util.Hashtable'], [o]) != null ;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.Hashtable'].clear$.apply(this.b$['java.util.Hashtable'], []);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Hashtable, "EntrySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return p$1.getIterator$I.apply(this.b$['java.util.Hashtable'], [2]);
});
Clazz_newMeth(C$, ['add$java_util_Map_Entry','add$TE'], function (o) {
return C$.superclazz.prototype.add$TE.apply(this, [o]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var entry=o;
var key=entry.getKey$();
var tab=this.this$0.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
for (var e=tab[index]; e != null ; e=e.next_) if (e.hash == hash && e.equals$O(entry) ) return true;
return false;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var entry=o;
var key=entry.getKey$();
var tab=this.this$0.table;
var hash=key.hashCode$();
var index=(hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if (e.hash == hash && e.equals$O(entry) ) {
this.this$0.modCount++;
if (prev != null ) prev.next_=e.next_;
else tab[index]=e.next_;
this.this$0.count--;
e.value=null;
return true;
}}
return false;
});
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.count;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.Hashtable'].clear$.apply(this.b$['java.util.Hashtable'], []);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Hashtable, "ValueCollection", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractCollection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return p$1.getIterator$I.apply(this.b$['java.util.Hashtable'], [1]);
});
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.count;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.Hashtable'].containsValue$O.apply(this.b$['java.util.Hashtable'], [o]);
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.Hashtable'].clear$.apply(this.b$['java.util.Hashtable'], []);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Hashtable, "Entry", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['java.util.Map','java.util.Map.Entry']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.hash=0;
this.key=null;
this.value=null;
this.next_=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_Hashtable_Entry'], function (hash, key, value, next) {
C$.$init$.apply(this);
this.hash=hash;
this.key=key;
this.value=value;
this.next_=next;
}, 1);
Clazz_newMeth(C$, 'clone$', function () {
return Clazz_new_(C$.c$$I$TK$TV$java_util_Hashtable_Entry,[this.hash, this.key, this.value, (this.next_ == null ? null : this.next_.clone$())]);
});
Clazz_newMeth(C$, 'getKey$', function () {
return this.key;
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, ['setValue$TV'], function (value) {
if (value == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var oldValue=this.value;
this.value=value;
return oldValue;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
return (this.key == null ? e.getKey$() == null : this.key.equals$O(e.getKey$())) && (this.value == null ? e.getValue$() == null : this.value.equals$O(e.getValue$())) ;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.hash ^ $I$(1).hashCode$O(this.value);
});
Clazz_newMeth(C$, 'toString', function () {
return this.key.toString() + "=" + this.value.toString() ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Hashtable, "Enumerator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['java.util.Enumeration', 'java.util.Iterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
this.index=0;
this.entry=null;
this.lastReturned=null;
this.type=0;
this.iterator=false;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.table=this.b$['java.util.Hashtable'].table;
this.index=this.table.length;
this.expectedModCount=this.this$0.modCount;
}, 1);
Clazz_newMeth(C$, 'c$$I$Z', function (type, iterator) {
C$.$init$.apply(this);
this.type=type;
this.iterator=iterator;
}, 1);
Clazz_newMeth(C$, 'hasMoreElements$', function () {
var e=this.entry;
var i=this.index;
var t=this.table;
while (e == null && i > 0 ){
e=t[--i];
}
this.entry=e;
this.index=i;
return e != null ;
});
Clazz_newMeth(C$, 'nextElement$', function () {
var et=this.entry;
var i=this.index;
var t=this.table;
while (et == null && i > 0 ){
et=t[--i];
}
this.entry=et;
this.index=i;
if (et != null ) {
var e=this.lastReturned=this.entry;
this.entry=e.next_;
return this.type == 0 ? e.key : (this.type == 1 ? e.value : e);
}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["Hashtable Enumerator"]);
});
Clazz_newMeth(C$, 'hasNext$', function () {
return this.hasMoreElements$();
});
Clazz_newMeth(C$, 'next$', function () {
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return this.nextElement$();
});
Clazz_newMeth(C$, 'remove$', function () {
if (!this.iterator) throw Clazz_new_(Clazz_load('UnsupportedOperationException'));
if (this.lastReturned == null ) throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["Hashtable Enumerator"]);
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
{
var tab=this.b$['java.util.Hashtable'].table;
var index=(this.lastReturned.hash & 2147483647) % tab.length;
var e=tab[index];
for (var prev=null; e != null ; prev=e, e=e.next_) {
if (e === this.lastReturned ) {
this.this$0.modCount++;
this.expectedModCount++;
if (prev == null ) tab[index]=e.next_;
else prev.next_=e.next_;
this.this$0.count--;
this.lastReturned=null;
return;
}}
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,['java.util.IdentityHashMap','.EntryIterator','.Entry'],['java.util.IdentityHashMap','.KeyIterator'],'java.util.Objects','java.lang.reflect.Array',['java.util.IdentityHashMap','.KeySpliterator'],['java.util.IdentityHashMap','.ValueIterator'],['java.util.IdentityHashMap','.ValueSpliterator'],['java.util.IdentityHashMap','.EntryIterator'],['java.util.AbstractMap','.SimpleEntry'],['java.util.IdentityHashMap','.EntrySpliterator'],['java.util.AbstractMap','.SimpleImmutableEntry'],'InternalError',['java.util.IdentityHashMap','.KeySet'],['java.util.IdentityHashMap','.Values'],['java.util.IdentityHashMap','.EntrySet']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "IdentityHashMap", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.AbstractMap', ['java.util.Map', 'java.io.Serializable', 'Cloneable']);
C$.NULL_KEY=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.NULL_KEY= Clazz_new_();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
this.size=0;
this.modCount=0;
this.entrySet=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'maskNull$O', function (key) {
return (key == null ? C$.NULL_KEY : key);
}, 1);
Clazz_newMeth(C$, 'unmaskNull$O', function (key) {
return (key === C$.NULL_KEY ? null : key);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
p$1.init$I.apply(this, [32]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (expectedMaxSize) {
Clazz_super_(C$, this,1);
if (expectedMaxSize < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["expectedMaxSize is negative: " + expectedMaxSize]);
p$1.init$I.apply(this, [C$.capacity$I(expectedMaxSize)]);
}, 1);
Clazz_newMeth(C$, 'capacity$I', function (expectedMaxSize) {
return (expectedMaxSize > 178956970) ? 536870912 : (expectedMaxSize <= 2) ? 4 : Integer.highestOneBit$I(expectedMaxSize + (expectedMaxSize << 1));
}, 1);
Clazz_newMeth(C$, 'init$I', function (initCapacity) {
this.table=Clazz_array(java.lang.Object, [2 * initCapacity]);
}, p$1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (m) {
C$.c$$I.apply(this, [(((1 + m.size$()) * 1.1)|0)]);
this.putAll$java_util_Map(m);
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.size;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.size == 0;
});
Clazz_newMeth(C$, 'hash$O$I', function (x, length) {
var h=System.identityHashCode$O(x);
return ((h << 1) - (h << 8)) & (length - 1);
}, 1);
Clazz_newMeth(C$, 'nextKeyIndex$I$I', function (i, len) {
return (i + 2 < len ? i + 2 : 0);
}, 1);
Clazz_newMeth(C$, 'get$O', function (key) {
var k=C$.maskNull$O(key);
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
while (true){
var item=tab[i];
if (item === k ) return tab[i + 1];
if (item == null ) return null;
i=C$.nextKeyIndex$I$I(i, len);
}
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
var k=C$.maskNull$O(key);
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
while (true){
var item=tab[i];
if (item === k ) return true;
if (item == null ) return false;
i=C$.nextKeyIndex$I$I(i, len);
}
});
Clazz_newMeth(C$, 'containsValue$O', function (value) {
var tab=this.table;
for (var i=1; i < tab.length; i+=2) if (tab[i] === value && tab[i - 1] != null ) return true;
return false;
});
Clazz_newMeth(C$, 'containsMapping$O$O', function (key, value) {
var k=C$.maskNull$O(key);
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
while (true){
var item=tab[i];
if (item === k ) return tab[i + 1] === value ;
if (item == null ) return false;
i=C$.nextKeyIndex$I$I(i, len);
}
}, p$1);
Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) {
var k=C$.maskNull$O(key);
retryAfterResize : for (; ; ) {
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
for (var item; (item=tab[i]) != null ; i=C$.nextKeyIndex$I$I(i, len)) {
if (item === k ) {
var oldValue=tab[i + 1];
tab[i + 1]=value;
return oldValue;
}}
var s=this.size + 1;
if (s + (s << 1) > len && p$1.resize$I.apply(this, [len]) ) continue retryAfterResize;
this.modCount++;
tab[i]=k;
tab[i + 1]=value;
this.size=s;
return null;
}
});
Clazz_newMeth(C$, 'resize$I', function (newCapacity) {
var newLength=newCapacity * 2;
var oldTable=this.table;
var oldLength=oldTable.length;
if (oldLength == 1073741824) {
if (this.size == 536870911) throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["Capacity exhausted."]);
return false;
}if (oldLength >= newLength) return false;
var newTable=Clazz_array(java.lang.Object, [newLength]);
for (var j=0; j < oldLength; j+=2) {
var key=oldTable[j];
if (key != null ) {
var value=oldTable[j + 1];
oldTable[j]=null;
oldTable[j + 1]=null;
var i=C$.hash$O$I(key, newLength);
while (newTable[i] != null )i=C$.nextKeyIndex$I$I(i, newLength);
newTable[i]=key;
newTable[i + 1]=value;
}}
this.table=newTable;
return true;
}, p$1);
Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) {
var n=m.size$();
if (n == 0) return;
if (n > this.size) p$1.resize$I.apply(this, [C$.capacity$I(n)]);
for (var e, $e = m.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.put$TK$TV(e.getKey$(), e.getValue$());
});
Clazz_newMeth(C$, 'remove$O', function (key) {
var k=C$.maskNull$O(key);
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
while (true){
var item=tab[i];
if (item === k ) {
this.modCount++;
this.size--;
var oldValue=tab[i + 1];
tab[i + 1]=null;
tab[i]=null;
p$1.closeDeletion$I.apply(this, [i]);
return oldValue;
}if (item == null ) return null;
i=C$.nextKeyIndex$I$I(i, len);
}
});
Clazz_newMeth(C$, 'removeMapping$O$O', function (key, value) {
var k=C$.maskNull$O(key);
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
while (true){
var item=tab[i];
if (item === k ) {
if (tab[i + 1] !== value ) return false;
this.modCount++;
this.size--;
tab[i]=null;
tab[i + 1]=null;
p$1.closeDeletion$I.apply(this, [i]);
return true;
}if (item == null ) return false;
i=C$.nextKeyIndex$I$I(i, len);
}
}, p$1);
Clazz_newMeth(C$, 'closeDeletion$I', function (d) {
var tab=this.table;
var len=tab.length;
var item;
for (var i=C$.nextKeyIndex$I$I(d, len); (item=tab[i]) != null ; i=C$.nextKeyIndex$I$I(i, len)) {
var r=C$.hash$O$I(item, len);
if ((i < r && (r <= d || d <= i ) ) || (r <= d && d <= i ) ) {
tab[d]=item;
tab[d + 1]=tab[i + 1];
tab[i]=null;
tab[i + 1]=null;
d=i;
}}
}, p$1);
Clazz_newMeth(C$, 'clear$', function () {
this.modCount++;
var tab=this.table;
for (var i=0; i < tab.length; i++) tab[i]=null;
this.size=0;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (o === this ) {
return true;
} else if (Clazz_instanceOf(o, "java.util.IdentityHashMap")) {
var m=o;
if (m.size$() != this.size) return false;
var tab=m.table;
for (var i=0; i < tab.length; i+=2) {
var k=tab[i];
if (k != null && !p$1.containsMapping$O$O.apply(this, [k, tab[i + 1]]) ) return false;
}
return true;
} else if (Clazz_instanceOf(o, "java.util.Map")) {
var m=o;
return this.entrySet$().equals$O(m.entrySet$());
} else {
return false;
}});
Clazz_newMeth(C$, 'hashCode$', function () {
var result=0;
var tab=this.table;
for (var i=0; i < tab.length; i+=2) {
var key=tab[i];
if (key != null ) {
var k=C$.unmaskNull$O(key);
result+=System.identityHashCode$O(k) ^ System.identityHashCode$O(tab[i + 1]);
}}
return result;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var m=C$.superclazz.prototype.clone$.apply(this, []);
m.entrySet=null;
m.table=this.table.clone$();
return m;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(12).c$$Throwable,[e]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'keySet$', function () {
var ks=this.keySet;
if (ks != null ) return ks;
else return this.keySet=Clazz_new_($I$(13), [this, null]);
});
Clazz_newMeth(C$, 'values$', function () {
var vs=this.values;
if (vs != null ) return vs;
else return this.values=Clazz_new_($I$(14), [this, null]);
});
Clazz_newMeth(C$, 'entrySet$', function () {
var es=this.entrySet;
if (es != null ) return es;
else return this.entrySet=Clazz_new_($I$(15), [this, null]);
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
s.defaultWriteObject$();
s.writeInt$I(this.size);
var tab=this.table;
for (var i=0; i < tab.length; i+=2) {
var key=tab[i];
if (key != null ) {
s.writeObject$O(C$.unmaskNull$O(key));
s.writeObject$O(tab[i + 1]);
}}
}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) {
s.defaultReadObject$();
var size=s.readInt$();
if (size < 0) throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException').c$$S,["Illegal mappings count: " + size]);
p$1.init$I.apply(this, [C$.capacity$I(size)]);
for (var i=0; i < size; i++) {
var key=s.readObject$();
var value=s.readObject$();
p$1.putForCreate$TK$TV.apply(this, [key, value]);
}
}, p$1);
Clazz_newMeth(C$, ['putForCreate$TK$TV'], function (key, value) {
var k=C$.maskNull$O(key);
var tab=this.table;
var len=tab.length;
var i=C$.hash$O$I(k, len);
var item;
while ((item=tab[i]) != null ){
if (item === k ) throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException'));
i=C$.nextKeyIndex$I$I(i, len);
}
tab[i]=k;
tab[i + 1]=value;
}, p$1);
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
$I$(3).requireNonNull$TT(action);
var expectedModCount=this.modCount;
var t=this.table;
for (var index=0; index < t.length; index+=2) {
var k=t[index];
if (k != null ) {
action.accept$(C$.unmaskNull$O(k), t[index + 1]);
}if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}}
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
$I$(3).requireNonNull$TT($function);
var expectedModCount=this.modCount;
var t=this.table;
for (var index=0; index < t.length; index+=2) {
var k=t[index];
if (k != null ) {
t[index + 1]=$function.apply$(C$.unmaskNull$O(k), t[index + 1]);
}if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}}
});
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "IdentityHashMapIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.index=0;
this.expectedModCount=0;
this.lastReturnedIndex=0;
this.indexValid=false;
this.traversalTable=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.index=(this.this$0.size != 0 ? 0 : this.this$0.table.length);
this.expectedModCount=this.this$0.modCount;
this.lastReturnedIndex=-1;
this.traversalTable=this.this$0.table;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
var tab=this.traversalTable;
for (var i=this.index; i < tab.length; i+=2) {
var key=tab[i];
if (key != null ) {
this.index=i;
return this.indexValid=true;
}}
this.index=tab.length;
return false;
});
Clazz_newMeth(C$, 'nextIndex$', function () {
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
if (!this.indexValid && !this.hasNext$() ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
this.indexValid=false;
this.lastReturnedIndex=this.index;
this.index+=2;
return this.lastReturnedIndex;
});
Clazz_newMeth(C$, 'remove$', function () {
if (this.lastReturnedIndex == -1) throw Clazz_new_(Clazz_load('IllegalStateException'));
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.expectedModCount=++this.this$0.modCount;
var deletedSlot=this.lastReturnedIndex;
this.lastReturnedIndex=-1;
this.index=deletedSlot;
this.indexValid=false;
var tab=this.traversalTable;
var len=tab.length;
var d=deletedSlot;
var key=tab[d];
tab[d]=null;
tab[d + 1]=null;
if (tab !== this.b$['java.util.IdentityHashMap'].table ) {
this.b$['java.util.IdentityHashMap'].remove$O.apply(this.b$['java.util.IdentityHashMap'], [key]);
this.expectedModCount=this.this$0.modCount;
return;
}this.this$0.size--;
var item;
for (var i=P$.IdentityHashMap.nextKeyIndex$I$I(d, len); (item=tab[i]) != null ; i=P$.IdentityHashMap.nextKeyIndex$I$I(i, len)) {
var r=P$.IdentityHashMap.hash$O$I(item, len);
if ((i < r && (r <= d || d <= i ) ) || (r <= d && d <= i ) ) {
if (i < deletedSlot && d >= deletedSlot && this.traversalTable === this.b$['java.util.IdentityHashMap'].table ) {
var remaining=len - deletedSlot;
var newTable=Clazz_array(java.lang.Object, [remaining]);
System.arraycopy$O$I$O$I$I(tab, deletedSlot, newTable, 0, remaining);
this.traversalTable=newTable;
this.index=0;
}tab[d]=item;
tab[d + 1]=tab[i + 1];
tab[i]=null;
tab[i + 1]=null;
d=i;
}}
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "KeyIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.IdentityHashMap','.IdentityHashMapIterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return P$.IdentityHashMap.unmaskNull$O(this.traversalTable[this.nextIndex$()]);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "ValueIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.IdentityHashMap','.IdentityHashMapIterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.traversalTable[this.nextIndex$() + 1];
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "EntryIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.IdentityHashMap','.IdentityHashMapIterator']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.lastReturnedEntry=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
this.lastReturnedEntry=Clazz_new_($I$(1).c$$I, [this, null, this.nextIndex$()]);
return this.lastReturnedEntry;
});
Clazz_newMeth(C$, 'remove$', function () {
this.lastReturnedIndex=((null == this.lastReturnedEntry ) ? -1 : this.lastReturnedEntry.index);
C$.superclazz.prototype.remove$.apply(this, []);
this.lastReturnedEntry.index=this.lastReturnedIndex;
this.lastReturnedEntry=null;
});
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap.EntryIterator, "Entry", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, [['java.util.Map','java.util.Map.Entry']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.index=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (index) {
C$.$init$.apply(this);
this.index=index;
}, 1);
Clazz_newMeth(C$, 'getKey$', function () {
p$1.checkIndexForEntryUse.apply(this, []);
return P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]);
});
Clazz_newMeth(C$, 'getValue$', function () {
p$1.checkIndexForEntryUse.apply(this, []);
return this.this$0.traversalTable[this.index + 1];
});
Clazz_newMeth(C$, ['setValue$TV'], function (value) {
p$1.checkIndexForEntryUse.apply(this, []);
var oldValue=this.this$0.traversalTable[this.index + 1];
this.this$0.traversalTable[this.index + 1]=value;
if (this.this$0.traversalTable !== this.b$['java.util.IdentityHashMap'].table ) this.b$['java.util.IdentityHashMap'].put$TK$TV.apply(this.b$['java.util.IdentityHashMap'], [this.this$0.traversalTable[this.index], value]);
return oldValue;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
if (this.index < 0) return C$.superclazz.prototype.equals$O.apply(this, [o]);
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
return (e.getKey$() === P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]) && e.getValue$() === this.this$0.traversalTable[this.index + 1] );
});
Clazz_newMeth(C$, 'hashCode$', function () {
if (this.this$0.lastReturnedIndex < 0) return C$.superclazz.prototype.hashCode$.apply(this, []);
return (System.identityHashCode$O(P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index])) ^ System.identityHashCode$O(this.this$0.traversalTable[this.index + 1]));
});
Clazz_newMeth(C$, 'toString', function () {
if (this.index < 0) return C$.superclazz.prototype.toString.apply(this, []);
return (P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]) + "=" + this.this$0.traversalTable[this.index + 1] );
});
Clazz_newMeth(C$, 'checkIndexForEntryUse', function () {
if (this.index < 0) throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["Entry was removed"]);
}, p$1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "KeySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(2), [this, null]);
});
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.IdentityHashMap'].containsKey$O.apply(this.b$['java.util.IdentityHashMap'], [o]);
});
Clazz_newMeth(C$, 'remove$O', function (o) {
var oldSize=this.this$0.size;
this.b$['java.util.IdentityHashMap'].remove$O.apply(this.b$['java.util.IdentityHashMap'], [o]);
return this.this$0.size != oldSize;
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
$I$(3).requireNonNull$TT(c);
var modified=false;
for (var i=this.iterator$(); i.hasNext$(); ) {
if (c.contains$O(i.next$())) {
i.remove$();
modified=true;
}}
return modified;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.IdentityHashMap'].clear$.apply(this.b$['java.util.IdentityHashMap'], []);
});
Clazz_newMeth(C$, 'hashCode$', function () {
var result=0;
for (var key, $key = this.iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) result+=System.identityHashCode$O(key);
return result;
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.toArray$TTA(Clazz_array(java.lang.Object, [0]));
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var expectedModCount=this.this$0.modCount;
var size=this.size$();
if (a.length < size) a=Clazz_array(a.getClass$().getComponentType$(), size);
var tab=this.this$0.table;
var ti=0;
for (var si=0; si < tab.length; si+=2) {
var key;
if ((key=tab[si]) != null ) {
if (ti >= size) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}a[ti++]=P$.IdentityHashMap.unmaskNull$O(key);
}}
if (ti < size || expectedModCount != this.this$0.modCount ) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}if (ti < a.length) {
a[ti]=null;
}return a;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(5).c$$java_util_IdentityHashMap$I$I$I$I,[this.b$['java.util.IdentityHashMap'], 0, -1, 0, 0]);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "Values", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractCollection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(6), [this, null]);
});
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.IdentityHashMap'].containsValue$O.apply(this.b$['java.util.IdentityHashMap'], [o]);
});
Clazz_newMeth(C$, 'remove$O', function (o) {
for (var i=this.iterator$(); i.hasNext$(); ) {
if (i.next$() === o ) {
i.remove$();
return true;
}}
return false;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.IdentityHashMap'].clear$.apply(this.b$['java.util.IdentityHashMap'], []);
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.toArray$TTA(Clazz_array(java.lang.Object, [0]));
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var expectedModCount=this.this$0.modCount;
var size=this.size$();
if (a.length < size) a=Clazz_array(a.getClass$().getComponentType$(), size);
var tab=this.this$0.table;
var ti=0;
for (var si=0; si < tab.length; si+=2) {
if (tab[si] != null ) {
if (ti >= size) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}a[ti++]=tab[si + 1];
}}
if (ti < size || expectedModCount != this.this$0.modCount ) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}if (ti < a.length) {
a[ti]=null;
}return a;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(7).c$$java_util_IdentityHashMap$I$I$I$I,[this.b$['java.util.IdentityHashMap'], 0, -1, 0, 0]);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "EntrySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(8), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var entry=o;
return p$1.containsMapping$O$O.apply(this.b$['java.util.IdentityHashMap'], [entry.getKey$(), entry.getValue$()]);
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var entry=o;
return p$1.removeMapping$O$O.apply(this.b$['java.util.IdentityHashMap'], [entry.getKey$(), entry.getValue$()]);
});
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.IdentityHashMap'].clear$.apply(this.b$['java.util.IdentityHashMap'], []);
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
$I$(3).requireNonNull$TT(c);
var modified=false;
for (var i=this.iterator$(); i.hasNext$(); ) {
if (c.contains$O(i.next$())) {
i.remove$();
modified=true;
}}
return modified;
});
Clazz_newMeth(C$, 'toArray$', function () {
return this.toArray$TTA(Clazz_array(java.lang.Object, [0]));
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
var expectedModCount=this.this$0.modCount;
var size=this.size$();
if (a.length < size) a=Clazz_array(a.getClass$().getComponentType$(), size);
var tab=this.this$0.table;
var ti=0;
for (var si=0; si < tab.length; si+=2) {
var key;
if ((key=tab[si]) != null ) {
if (ti >= size) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}a[ti++]=Clazz_new_($I$(9).c$$TK$TV,[P$.IdentityHashMap.unmaskNull$O(key), tab[si + 1]]);
}}
if (ti < size || expectedModCount != this.this$0.modCount ) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}if (ti < a.length) {
a[ti]=null;
}return a;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(10).c$$java_util_IdentityHashMap$I$I$I$I,[this.b$['java.util.IdentityHashMap'], 0, -1, 0, 0]);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "IdentityHashMapSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.map=null;
this.index=0;
this.fence=0;
this.est=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_IdentityHashMap$I$I$I$I', function (map, origin, fence, est, expectedModCount) {
C$.$init$.apply(this);
this.map=map;
this.index=origin;
this.fence=fence;
this.est=est;
this.expectedModCount=expectedModCount;
}, 1);
Clazz_newMeth(C$, 'getFence$', function () {
var hi;
if ((hi=this.fence) < 0) {
this.est=this.map.size;
this.expectedModCount=this.map.modCount;
hi=this.fence=this.map.table.length;
}return hi;
});
Clazz_newMeth(C$, 'estimateSize$', function () {
this.getFence$();
return this.est;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "KeySpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.IdentityHashMap','.IdentityHashMapSpliterator'], 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_IdentityHashMap$I$I$I$I'], function (map, origin, fence, est, expectedModCount) {
C$.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, [map, origin, fence, est, expectedModCount]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=this.getFence$();
var lo=this.index;
var mid=((lo + hi) >>> 1) & ~1;
return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_IdentityHashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]);
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var i;
var hi;
var mc;
var key;
var m;
var a;
if ((m=this.map) != null && (a=m.table) != null && (i=this.index) >= 0 && (this.index=hi=this.getFence$()) <= a.length ) {
for (; i < hi; i+=2) {
if ((key=a[i]) != null ) action.accept$(P$.IdentityHashMap.unmaskNull$O(key));
}
if (m.modCount == this.expectedModCount) return;
}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var a=this.map.table;
var hi=this.getFence$();
while (this.index < hi){
var key=a[this.index];
this.index+=2;
if (key != null ) {
action.accept$(P$.IdentityHashMap.unmaskNull$O(key));
if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}}
return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "ValueSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.IdentityHashMap','.IdentityHashMapSpliterator'], 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_IdentityHashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) {
C$.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=this.getFence$();
var lo=this.index;
var mid=((lo + hi) >>> 1) & ~1;
return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_IdentityHashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]);
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var i;
var hi;
var mc;
var m;
var a;
if ((m=this.map) != null && (a=m.table) != null && (i=this.index) >= 0 && (this.index=hi=this.getFence$()) <= a.length ) {
for (; i < hi; i+=2) {
if (a[i] != null ) {
var v=a[i + 1];
action.accept$(v);
}}
if (m.modCount == this.expectedModCount) return;
}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var a=this.map.table;
var hi=this.getFence$();
while (this.index < hi){
var key=a[this.index];
var v=a[this.index + 1];
this.index+=2;
if (key != null ) {
action.accept$(v);
if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}}
return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return (this.fence < 0 || this.est == this.map.size ? 64 : 0);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "EntrySpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.IdentityHashMap','.IdentityHashMapSpliterator'], 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$java_util_IdentityHashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) {
C$.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=this.getFence$();
var lo=this.index;
var mid=((lo + hi) >>> 1) & ~1;
return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_IdentityHashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]);
});
Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer'], function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var i;
var hi;
var mc;
var m;
var a;
if ((m=this.map) != null && (a=m.table) != null && (i=this.index) >= 0 && (this.index=hi=this.getFence$()) <= a.length ) {
for (; i < hi; i+=2) {
var key=a[i];
if (key != null ) {
var k=P$.IdentityHashMap.unmaskNull$O(key);
var v=a[i + 1];
action.accept$(Clazz_new_($I$(11).c$$TK$TV,[k, v]));
}}
if (m.modCount == this.expectedModCount) return;
}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, ['tryAdvance$java_util_function_Consumer'], function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var a=this.map.table;
var hi=this.getFence$();
while (this.index < hi){
var key=a[this.index];
var v=a[this.index + 1];
this.index+=2;
if (key != null ) {
var k=P$.IdentityHashMap.unmaskNull$O(key);
action.accept$(Clazz_new_($I$(11).c$$TK$TV,[k, v]));
if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}}
return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Objects']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newInterface(P$, "Iterator");
C$.$defaults$ = function(C$){
Clazz_newMeth(C$, 'remove$', function () {
throw Clazz_new_(Clazz_load('UnsupportedOperationException').c$$S,["remove"]);
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
while (this.hasNext$())action.accept$(this.next$());
});
};})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,['java.util.LinkedHashMap','.LinkedKeyIterator'],'java.util.Spliterators',['java.util.LinkedHashMap','.LinkedValueIterator'],['java.util.LinkedHashMap','.LinkedEntryIterator'],['java.util.LinkedHashMap','.Entry'],['java.util.HashMap','.TreeNode'],['java.util.LinkedHashMap','.LinkedKeySet'],['java.util.LinkedHashMap','.LinkedValues'],['java.util.LinkedHashMap','.LinkedEntrySet']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LinkedHashMap", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.HashMap', 'java.util.Map');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.head=null;
this.tail=null;
this.accessOrder=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['linkNodeLast$java_util_LinkedHashMap_Entry'], function (p) {
var last=this.tail;
this.tail=p;
if (last == null ) this.head=p;
else {
p.before=last;
last.after=p;
}}, p$1);
Clazz_newMeth(C$, ['transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry'], function (src, dst) {
var b=dst.before=src.before;
var a=dst.after=src.after;
if (b == null ) this.head=dst;
else b.after=dst;
if (a == null ) this.tail=dst;
else a.before=dst;
}, p$1);
Clazz_newMeth(C$, 'reinitialize$', function () {
C$.superclazz.prototype.reinitialize$.apply(this, []);
this.head=this.tail=null;
});
Clazz_newMeth(C$, ['newNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, e) {
var p=Clazz_new_($I$(5).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, e]);
p$1.linkNodeLast$java_util_LinkedHashMap_Entry.apply(this, [p]);
return p;
});
Clazz_newMeth(C$, ['replacementNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) {
var q=p;
var t=Clazz_new_($I$(5).c$$I$TK$TV$java_util_HashMap_Node,[q.hash, q.key, q.value, next]);
p$1.transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry.apply(this, [q, t]);
return t;
});
Clazz_newMeth(C$, ['newTreeNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) {
var p=Clazz_new_($I$(6).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, next]);
p$1.linkNodeLast$java_util_LinkedHashMap_Entry.apply(this, [p]);
return p;
});
Clazz_newMeth(C$, ['replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) {
var q=p;
var t=Clazz_new_($I$(6).c$$I$TK$TV$java_util_HashMap_Node,[q.hash, q.key, q.value, next]);
p$1.transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry.apply(this, [q, t]);
return t;
});
Clazz_newMeth(C$, ['afterNodeRemoval$java_util_HashMap_Node'], function (e) {
var p=e;
var b=p.before;
var a=p.after;
p.before=p.after=null;
if (b == null ) this.head=a;
else b.after=a;
if (a == null ) this.tail=b;
else a.before=b;
});
Clazz_newMeth(C$, 'afterNodeInsertion$Z', function (evict) {
var first;
if (evict && (first=this.head) != null && this.removeEldestEntry$java_util_Map_Entry(first) ) {
var key=first.key;
this.removeNode$I$O$O$Z$Z(P$.HashMap.hash$O(key), key, null, false, true);
}});
Clazz_newMeth(C$, ['afterNodeAccess$java_util_HashMap_Node'], function (e) {
var last;
if (this.accessOrder && (last=this.tail) !== e ) {
var p=e;
var b=p.before;
var a=p.after;
p.after=null;
if (b == null ) this.head=a;
else b.after=a;
if (a != null ) a.before=b;
else last=b;
if (last == null ) this.head=p;
else {
p.before=last;
last.after=p;
}this.tail=p;
++this.modCount;
}});
Clazz_newMeth(C$, 'internalWriteEntries$java_io_ObjectOutputStream', function (s) {
for (var e=this.head; e != null ; e=e.after) {
s.writeObject$O(e.key);
s.writeObject$O(e.value);
}
});
Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) {
C$.superclazz.c$$I$F.apply(this, [initialCapacity, loadFactor]);
C$.$init$.apply(this);
this.accessOrder=false;
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialCapacity) {
C$.superclazz.c$$I.apply(this, [initialCapacity]);
C$.$init$.apply(this);
this.accessOrder=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.accessOrder=false;
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Map', function (m) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.accessOrder=false;
this.putMapEntries$java_util_Map$Z(m, false);
}, 1);
Clazz_newMeth(C$, 'c$$I$F$Z', function (initialCapacity, loadFactor, accessOrder) {
C$.superclazz.c$$I$F.apply(this, [initialCapacity, loadFactor]);
C$.$init$.apply(this);
this.accessOrder=accessOrder;
}, 1);
Clazz_newMeth(C$, 'containsValue$O', function (value) {
for (var e=this.head; e != null ; e=e.after) {
var v=e.value;
if (v === value || (value != null && value.equals$O(v) ) ) return true;
}
return false;
});
Clazz_newMeth(C$, 'get$O', function (key) {
var e;
if ((e=this.getNode$I$O(P$.HashMap.hash$O(key), key)) == null ) return null;
if (this.accessOrder) this.afterNodeAccess$java_util_HashMap_Node(e);
return e.value;
});
Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) {
var e;
if ((e=this.getNode$I$O(P$.HashMap.hash$O(key), key)) == null ) return defaultValue;
if (this.accessOrder) this.afterNodeAccess$java_util_HashMap_Node(e);
return e.value;
});
Clazz_newMeth(C$, 'clear$', function () {
C$.superclazz.prototype.clear$.apply(this, []);
this.head=this.tail=null;
});
Clazz_newMeth(C$, ['removeEldestEntry$java_util_Map_Entry'], function (eldest) {
return false;
});
Clazz_newMeth(C$, 'keySet$', function () {
var ks;
return (ks=this.keySet) == null ? (this.keySet=Clazz_new_($I$(7), [this, null])) : ks;
});
Clazz_newMeth(C$, 'values$', function () {
var vs;
return (vs=this.values) == null ? (this.values=Clazz_new_($I$(8), [this, null])) : vs;
});
Clazz_newMeth(C$, 'entrySet$', function () {
var es;
return (es=this.entrySet) == null ? (this.entrySet=Clazz_new_($I$(9), [this, null])) : es;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var mc=this.modCount;
for (var e=this.head; e != null ; e=e.after) action.accept$(e.key, e.value);
if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
if ($function == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var mc=this.modCount;
for (var e=this.head; e != null ; e=e.after) e.value=$function.apply$(e.key, e.value);
if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "Entry", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.HashMap','.Node']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.before=null;
this.after=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) {
C$.superclazz.c$$I$TK$TV$java_util_HashMap_Node.apply(this, [hash, key, value, next]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedKeySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.LinkedHashMap'].clear$.apply(this.b$['java.util.LinkedHashMap'], []);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(1), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.HashMap'].containsKey$O.apply(this.b$['java.util.HashMap'], [o]);
});
Clazz_newMeth(C$, 'remove$O', function (key) {
return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, true]) != null ;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(2).spliterator$java_util_Collection$I(this, 81);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var mc=this.this$0.modCount;
for (var e=this.this$0.head; e != null ; e=e.after) action.accept$(e.key);
if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedValues", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractCollection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.LinkedHashMap'].clear$.apply(this.b$['java.util.LinkedHashMap'], []);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(3), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.b$['java.util.LinkedHashMap'].containsValue$O.apply(this.b$['java.util.LinkedHashMap'], [o]);
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(2).spliterator$java_util_Collection$I(this, 80);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var mc=this.this$0.modCount;
for (var e=this.this$0.head; e != null ; e=e.after) action.accept$(e.value);
if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedEntrySet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.util.AbstractSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.this$0.size;
});
Clazz_newMeth(C$, 'clear$', function () {
this.b$['java.util.LinkedHashMap'].clear$.apply(this.b$['java.util.LinkedHashMap'], []);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(4), [this, null]);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false;
var e=o;
var key=e.getKey$();
var candidate=this.b$['java.util.HashMap'].getNode$I$O.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key]);
return candidate != null && candidate.equals$O(e) ;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (Clazz_instanceOf(o, "java.util.Map.Entry")) {
var e=o;
var key=e.getKey$();
var value=e.getValue$();
return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, value, true, true]) != null ;
}return false;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(2).spliterator$java_util_Collection$I(this, 81);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
var mc=this.this$0.modCount;
for (var e=this.this$0.head; e != null ; e=e.after) action.accept$(e);
if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedHashIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.nextItem=null;
this.current=null;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.nextItem=this.this$0.head;
this.expectedModCount=this.this$0.modCount;
this.current=null;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.nextItem != null ;
});
Clazz_newMeth(C$, 'nextNode$', function () {
var e=this.nextItem;
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
if (e == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
this.current=e;
this.nextItem=e.after;
return e;
});
Clazz_newMeth(C$, 'remove$', function () {
var p=this.current;
if (p == null ) throw Clazz_new_(Clazz_load('IllegalStateException'));
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
this.current=null;
var key=p.key;
this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, false]);
this.expectedModCount=this.this$0.modCount;
});
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedKeyIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.LinkedHashMap','.LinkedHashIterator'], 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.nextNode$().getKey$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedValueIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.LinkedHashMap','.LinkedHashIterator'], 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.nextNode$().value;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedEntryIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.LinkedHashMap','.LinkedHashIterator'], 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'next$', function () {
return this.nextNode$();
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,'java.util.Objects',['java.util.LinkedList','.ListItr'],'java.util.Spliterators',['java.util.LinkedList','.Node'],['java.util.LinkedList','.DescendingIterator'],'InternalError','java.lang.reflect.Array',['java.util.LinkedList','.LLSpliterator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LinkedList", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.AbstractSequentialList', ['java.util.List', 'java.util.Deque', 'Cloneable', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.size=0;
this.first=null;
this.last=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.size=0;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) {
C$.c$.apply(this, []);
this.addAll$java_util_Collection(c);
}, 1);
Clazz_newMeth(C$, ['linkFirst$TE'], function (e) {
var f=this.first;
var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[null, e, f]);
this.first=newNode;
if (f == null ) this.last=newNode;
else f.prev=newNode;
this.size++;
this.modCount++;
}, p$1);
Clazz_newMeth(C$, ['linkLast$TE'], function (e) {
var l=this.last;
var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[l, e, null]);
this.last=newNode;
if (l == null ) this.first=newNode;
else l.next_=newNode;
this.size++;
this.modCount++;
});
Clazz_newMeth(C$, ['linkBefore$TE$java_util_LinkedList_Node'], function (e, succ) {
var pred=succ.prev;
var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[pred, e, succ]);
succ.prev=newNode;
if (pred == null ) this.first=newNode;
else pred.next_=newNode;
this.size++;
this.modCount++;
});
Clazz_newMeth(C$, 'unlinkFirst$java_util_LinkedList_Node', function (f) {
var element=f.item;
var next=f.next_;
f.item=null;
f.next_=null;
this.first=next;
if (next == null ) this.last=null;
else next.prev=null;
this.size--;
this.modCount++;
return element;
}, p$1);
Clazz_newMeth(C$, 'unlinkLast$java_util_LinkedList_Node', function (l) {
var element=l.item;
var prev=l.prev;
l.item=null;
l.prev=null;
this.last=prev;
if (prev == null ) this.first=null;
else prev.next_=null;
this.size--;
this.modCount++;
return element;
}, p$1);
Clazz_newMeth(C$, 'unlink$java_util_LinkedList_Node', function (x) {
var element=x.item;
var next=x.next_;
var prev=x.prev;
if (prev == null ) {
this.first=next;
} else {
prev.next_=next;
x.prev=null;
}if (next == null ) {
this.last=prev;
} else {
next.prev=prev;
x.next_=null;
}x.item=null;
this.size--;
this.modCount++;
return element;
});
Clazz_newMeth(C$, 'getFirst$', function () {
var f=this.first;
if (f == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
return f.item;
});
Clazz_newMeth(C$, 'getLast$', function () {
var l=this.last;
if (l == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
return l.item;
});
Clazz_newMeth(C$, 'removeFirst$', function () {
var f=this.first;
if (f == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
return p$1.unlinkFirst$java_util_LinkedList_Node.apply(this, [f]);
});
Clazz_newMeth(C$, 'removeLast$', function () {
var l=this.last;
if (l == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
return p$1.unlinkLast$java_util_LinkedList_Node.apply(this, [l]);
});
Clazz_newMeth(C$, ['addFirst$TE'], function (e) {
p$1.linkFirst$TE.apply(this, [e]);
});
Clazz_newMeth(C$, ['addLast$TE'], function (e) {
this.linkLast$TE(e);
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.indexOf$O(o) != -1;
});
Clazz_newMeth(C$, 'size$', function () {
return this.size;
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.linkLast$TE(e);
return true;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
if (o == null ) {
for (var x=this.first; x != null ; x=x.next_) {
if (x.item == null ) {
this.unlink$java_util_LinkedList_Node(x);
return true;
}}
} else {
for (var x=this.first; x != null ; x=x.next_) {
if (o.equals$O(x.item)) {
this.unlink$java_util_LinkedList_Node(x);
return true;
}}
}return false;
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) {
return this.addAll$I$java_util_Collection(this.size, c);
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
p$1.checkPositionIndex$I.apply(this, [index]);
var a=c.toArray$();
var numNew=a.length;
if (numNew == 0) return false;
var pred;
var succ;
if (index == this.size) {
succ=null;
pred=this.last;
} else {
succ=this.node$I(index);
pred=succ.prev;
}for (var o, $o = 0, $$o = a; $o<$$o.length&&((o=($$o[$o])),1);$o++) {
var e=o;
var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[pred, e, null]);
if (pred == null ) this.first=newNode;
else pred.next_=newNode;
pred=newNode;
}
if (succ == null ) {
this.last=pred;
} else {
pred.next_=succ;
succ.prev=pred;
}this.size+=numNew;
this.modCount++;
return true;
});
Clazz_newMeth(C$, 'clear$', function () {
for (var x=this.first; x != null ; ) {
var next=x.next_;
x.item=null;
x.next_=null;
x.prev=null;
x=next;
}
this.first=this.last=null;
this.size=0;
this.modCount++;
});
Clazz_newMeth(C$, 'get$I', function (index) {
p$1.checkElementIndex$I.apply(this, [index]);
return this.node$I(index).item;
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
p$1.checkElementIndex$I.apply(this, [index]);
var x=this.node$I(index);
var oldVal=x.item;
x.item=element;
return oldVal;
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
p$1.checkPositionIndex$I.apply(this, [index]);
if (index == this.size) this.linkLast$TE(element);
else this.linkBefore$TE$java_util_LinkedList_Node(element, this.node$I(index));
});
Clazz_newMeth(C$, 'remove$I', function (index) {
p$1.checkElementIndex$I.apply(this, [index]);
return this.unlink$java_util_LinkedList_Node(this.node$I(index));
});
Clazz_newMeth(C$, 'isElementIndex$I', function (index) {
return index >= 0 && index < this.size ;
}, p$1);
Clazz_newMeth(C$, 'isPositionIndex$I', function (index) {
return index >= 0 && index <= this.size ;
}, p$1);
Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) {
return "Index: " + index + ", Size: " + this.size ;
}, p$1);
Clazz_newMeth(C$, 'checkElementIndex$I', function (index) {
if (!p$1.isElementIndex$I.apply(this, [index])) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'checkPositionIndex$I', function (index) {
if (!p$1.isPositionIndex$I.apply(this, [index])) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]);
}, p$1);
Clazz_newMeth(C$, 'node$I', function (index) {
if (index < (this.size >> 1)) {
var x=this.first;
for (var i=0; i < index; i++) x=x.next_;
return x;
} else {
var x=this.last;
for (var i=this.size - 1; i > index; i--) x=x.prev;
return x;
}});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
var index=0;
if (o == null ) {
for (var x=this.first; x != null ; x=x.next_) {
if (x.item == null ) return index;
index++;
}
} else {
for (var x=this.first; x != null ; x=x.next_) {
if (o.equals$O(x.item)) return index;
index++;
}
}return -1;
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
var index=this.size;
if (o == null ) {
for (var x=this.last; x != null ; x=x.prev) {
index--;
if (x.item == null ) return index;
}
} else {
for (var x=this.last; x != null ; x=x.prev) {
index--;
if (o.equals$O(x.item)) return index;
}
}return -1;
});
Clazz_newMeth(C$, 'peek$', function () {
var f=this.first;
return (f == null ) ? null : f.item;
});
Clazz_newMeth(C$, 'element$', function () {
return this.getFirst$();
});
Clazz_newMeth(C$, 'poll$', function () {
var f=this.first;
return (f == null ) ? null : p$1.unlinkFirst$java_util_LinkedList_Node.apply(this, [f]);
});
Clazz_newMeth(C$, 'remove$', function () {
return this.removeFirst$();
});
Clazz_newMeth(C$, ['offer$TE'], function (e) {
return this.add$TE(e);
});
Clazz_newMeth(C$, ['offerFirst$TE'], function (e) {
this.addFirst$TE(e);
return true;
});
Clazz_newMeth(C$, ['offerLast$TE'], function (e) {
this.addLast$TE(e);
return true;
});
Clazz_newMeth(C$, 'peekFirst$', function () {
var f=this.first;
return (f == null ) ? null : f.item;
});
Clazz_newMeth(C$, 'peekLast$', function () {
var l=this.last;
return (l == null ) ? null : l.item;
});
Clazz_newMeth(C$, 'pollFirst$', function () {
var f=this.first;
return (f == null ) ? null : p$1.unlinkFirst$java_util_LinkedList_Node.apply(this, [f]);
});
Clazz_newMeth(C$, 'pollLast$', function () {
var l=this.last;
return (l == null ) ? null : p$1.unlinkLast$java_util_LinkedList_Node.apply(this, [l]);
});
Clazz_newMeth(C$, ['push$TE'], function (e) {
this.addFirst$TE(e);
});
Clazz_newMeth(C$, 'pop$', function () {
return this.removeFirst$();
});
Clazz_newMeth(C$, 'removeFirstOccurrence$O', function (o) {
return this.remove$O(o);
});
Clazz_newMeth(C$, 'removeLastOccurrence$O', function (o) {
if (o == null ) {
for (var x=this.last; x != null ; x=x.prev) {
if (x.item == null ) {
this.unlink$java_util_LinkedList_Node(x);
return true;
}}
} else {
for (var x=this.last; x != null ; x=x.prev) {
if (o.equals$O(x.item)) {
this.unlink$java_util_LinkedList_Node(x);
return true;
}}
}return false;
});
Clazz_newMeth(C$, 'listIterator$I', function (index) {
p$1.checkPositionIndex$I.apply(this, [index]);
return Clazz_new_($I$(2).c$$I, [this, null, index]);
});
Clazz_newMeth(C$, 'descendingIterator$', function () {
return Clazz_new_($I$(5), [this, null]);
});
Clazz_newMeth(C$, 'superClone', function () {
try {
return Clazz_clone(this);
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(6).c$$Throwable,[e]);
} else {
throw e;
}
}
}, p$1);
Clazz_newMeth(C$, 'clone$', function () {
var clone=p$1.superClone.apply(this, []);
clone.first=clone.last=null;
clone.size=0;
clone.modCount=0;
for (var x=this.first; x != null ; x=x.next_) clone.add$TE(x.item);
return clone;
});
Clazz_newMeth(C$, 'toArray$', function () {
var result=Clazz_array(java.lang.Object, [this.size]);
var i=0;
for (var x=this.first; x != null ; x=x.next_) result[i++]=x.item;
return result;
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
if (a.length < this.size) a=Clazz_array(a.getClass$().getComponentType$(), this.size);
var i=0;
var result=a;
for (var x=this.first; x != null ; x=x.next_) result[i++]=x.item;
if (a.length > this.size) a[this.size]=null;
return a;
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
s.defaultWriteObject$();
s.writeInt$I(this.size);
for (var x=this.first; x != null ; x=x.next_) s.writeObject$O(x.item);
}, p$1);
Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) {
s.defaultReadObject$();
var size=s.readInt$();
for (var i=0; i < size; i++) this.linkLast$TE(s.readObject$());
}, p$1);
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(8).c$$java_util_LinkedList$I$I,[this, -1, 0]);
});
;
(function(){var C$=Clazz_newClass(P$.LinkedList, "ListItr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.ListIterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.lastReturned=null;
this.next=null;
this.nextIndex=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.expectedModCount=this.this$0.modCount;
}, 1);
Clazz_newMeth(C$, 'c$$I', function (index) {
C$.$init$.apply(this);
this.next=(index == this.this$0.size) ? null : this.b$['java.util.LinkedList'].node$I.apply(this.b$['java.util.LinkedList'], [index]);
this.nextIndex=index;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.nextIndex < this.this$0.size;
});
Clazz_newMeth(C$, 'next$', function () {
this.checkForComodification$();
if (!this.hasNext$()) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
this.lastReturned=this.next;
this.next=this.next.next_;
this.nextIndex++;
return this.lastReturned.item;
});
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.nextIndex > 0;
});
Clazz_newMeth(C$, 'previous$', function () {
this.checkForComodification$();
if (!this.hasPrevious$()) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
this.lastReturned=this.next=(this.next == null ) ? this.this$0.last : this.next.prev;
this.nextIndex--;
return this.lastReturned.item;
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.nextIndex;
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.nextIndex - 1;
});
Clazz_newMeth(C$, 'remove$', function () {
this.checkForComodification$();
if (this.lastReturned == null ) throw Clazz_new_(Clazz_load('IllegalStateException'));
var lastNext=this.lastReturned.next_;
this.b$['java.util.LinkedList'].unlink$java_util_LinkedList_Node.apply(this.b$['java.util.LinkedList'], [this.lastReturned]);
if (this.next === this.lastReturned ) this.next=lastNext;
else this.nextIndex--;
this.lastReturned=null;
this.expectedModCount++;
});
Clazz_newMeth(C$, ['set$TE'], function (e) {
if (this.lastReturned == null ) throw Clazz_new_(Clazz_load('IllegalStateException'));
this.checkForComodification$();
this.lastReturned.item=e;
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.checkForComodification$();
this.lastReturned=null;
if (this.next == null ) this.b$['java.util.LinkedList'].linkLast$TE.apply(this.b$['java.util.LinkedList'], [e]);
else this.b$['java.util.LinkedList'].linkBefore$TE$java_util_LinkedList_Node.apply(this.b$['java.util.LinkedList'], [e, this.next]);
this.nextIndex++;
this.expectedModCount++;
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
while (this.this$0.modCount == this.expectedModCount && this.nextIndex < this.this$0.size ){
action.accept$(this.next.item);
this.lastReturned=this.next;
this.next=this.next.next_;
this.nextIndex++;
}
this.checkForComodification$();
});
Clazz_newMeth(C$, 'checkForComodification$', function () {
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedList, "Node", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.item=null;
this.next_=null;
this.prev=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node', function (prev, element, next) {
C$.$init$.apply(this);
this.item=element;
this.next_=next;
this.prev=prev;
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedList, "DescendingIterator", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.itr=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.itr=Clazz_new_($I$(2).c$$I, [this, null, this.b$['java.util.LinkedList'].size$.apply(this.b$['java.util.LinkedList'], [])]);
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.itr.hasPrevious$();
});
Clazz_newMeth(C$, 'next$', function () {
return this.itr.previous$();
});
Clazz_newMeth(C$, 'remove$', function () {
this.itr.remove$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LinkedList, "LLSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.list=null;
this.current=null;
this.est=0;
this.expectedModCount=0;
this.batch=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_LinkedList$I$I', function (list, est, expectedModCount) {
C$.$init$.apply(this);
this.list=list;
this.est=est;
this.expectedModCount=expectedModCount;
}, 1);
Clazz_newMeth(C$, 'getEst$', function () {
var s;
var lst;
if ((s=this.est) < 0) {
if ((lst=this.list) == null ) s=this.est=0;
else {
this.expectedModCount=lst.modCount;
this.current=lst.first;
s=this.est=lst.size;
}}return s;
});
Clazz_newMeth(C$, 'estimateSize$', function () {
return this.getEst$();
});
Clazz_newMeth(C$, 'trySplit$', function () {
var p;
var s=this.getEst$();
if (s > 1 && (p=this.current) != null ) {
var n=this.batch + 1024;
if (n > s) n=s;
if (n > 33554432) n=33554432;
var a=Clazz_array(java.lang.Object, [n]);
var j=0;
do {
a[j++]=p.item;
} while ((p=p.next_) != null && j < n );
this.current=p;
this.batch=j;
this.est=s - j;
return $I$(3).spliterator$OA$I$I$I(a, 0, j, 16);
}return null;
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
var p;
var n;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if ((n=this.getEst$()) > 0 && (p=this.current) != null ) {
this.current=null;
this.est=0;
do {
var e=p.item;
p=p.next_;
action.accept$(e);
} while (p != null && --n > 0 );
}if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
var p;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (this.getEst$() > 0 && (p=this.current) != null ) {
--this.est;
var e=p.item;
this.current=p.next_;
action.accept$(e);
if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}return false;
});
Clazz_newMeth(C$, 'characteristics$', function () {
return 16464;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Objects','java.util.Arrays','java.util.Spliterators']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newInterface(P$, "List", null, null, 'java.util.Collection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
C$.$defaults$ = function(C$){
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
$I$(1).requireNonNull$TT(operator);
var li=this.listIterator$();
while (li.hasNext$()){
li.set$TE(operator.apply$(li.next$()));
}
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
var a=this.toArray$();
$I$(2).sort$TTA$java_util_Comparator(a, c);
var i=this.listIterator$();
for (var e, $e = 0, $$e = a; $e<$$e.length&&((e=($$e[$e])),1);$e++) {
i.next$();
i.set$TE(e);
}
});
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(3).spliterator$java_util_Collection$I(this, 16);
});
};})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,'sun.util.ResourceBundleEnumeration','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ListResourceBundle", null, 'java.util.ResourceBundle');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.lookup=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.lookup=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'handleGetObject$S', function (key) {
if (this.lookup == null ) {
p$1.loadLookup.apply(this, []);
}if (key == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return this.lookup.get$O(key);
});
Clazz_newMeth(C$, 'getKeys$', function () {
if (this.lookup == null ) {
p$1.loadLookup.apply(this, []);
}var parent=this.parent;
return Clazz_new_($I$(1).c$$java_util_Set$java_util_Enumeration,[this.lookup.keySet$(), (parent != null ) ? parent.getKeys$() : null]);
});
Clazz_newMeth(C$, 'handleKeySet$', function () {
if (this.lookup == null ) {
p$1.loadLookup.apply(this, []);
}return this.lookup.keySet$();
});
Clazz_newMeth(C$, 'loadLookup', function () {
if (this.lookup != null ) return;
var contents=this.getContents$();
var temp=Clazz_new_($I$(2).c$$I,[contents.length]);
for (var i=0; i < contents.length; ++i) {
var key=contents[i][0];
var value=contents[i][1];
if (key == null || value == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}temp.put$TK$TV(key, value);
}
this.lookup=temp;
}, p$1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},I$=[[0,'java.util.HashMap','StringBuilder','InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Locale", null, null, ['Cloneable', 'java.io.Serializable']);
C$.cache=null;
C$.ENGLISH=null;
C$.UK=null;
C$.US=null;
C$.ROOT=null;
C$.defaultLocale=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.cache=Clazz_new_($I$(1).c$$I,[32]);
C$.ENGLISH=C$.createSingleton$S$S$S("en__", "en", "");
C$.UK=C$.createSingleton$S$S$S("en_GB_", "en", "US");
C$.US=C$.createSingleton$S$S$S("en_US_", "en", "US");
C$.ROOT=C$.createSingleton$S$S$S("__", "", "");
C$.defaultLocale=null;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.language=null;
this.country=null;
this.variant=null;
this.hashCodeValue=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.hashCodeValue=0;
}, 1);
Clazz_newMeth(C$, 'c$$S$S$S', function (language, country, variant) {
C$.$init$.apply(this);
this.language=language.toLowerCase$().intern$();
this.country=country.toUpperCase$().intern$();
this.variant=variant.toUpperCase$().intern$();
}, 1);
Clazz_newMeth(C$, 'c$$S$S', function (language, country) {
C$.c$$S$S$S.apply(this, [language, country, ""]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (language) {
C$.c$$S$S$S.apply(this, [language, "", ""]);
}, 1);
Clazz_newMeth(C$, 'c$$S$S$Z', function (language, country, flag) {
C$.$init$.apply(this);
this.language=language;
this.country=country;
this.variant="";
}, 1);
Clazz_newMeth(C$, 'createSingleton$S$S$S', function (key, language, country) {
var locale=Clazz_new_(C$.c$$S$S$Z,[language, country, false]);
C$.cache.put$TK$TV(key, locale);
return locale;
}, 1);
Clazz_newMeth(C$, 'getInstance$S$S$S', function (language, country, variant) {
if (language == null || country == null || variant == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}var sb=Clazz_new_($I$(2));
sb.append$S(language).append$C("_").append$S(country).append$C("_").append$S(variant);
var key=sb.toString();
var locale=C$.cache.get$O(key);
if (locale == null ) {
locale=Clazz_new_(C$.c$$S$S$S,[language, country, variant]);
var l=C$.cache.put$TK$TV(key, locale);
if (l != null ) {
locale=l;
}}return locale;
}, 1);
Clazz_newMeth(C$, 'getDefault$', function () {
if (C$.defaultLocale == null ) {
C$.defaultLocale=Clazz_new_(C$.c$$S$S$S,["en", "US", ""]);
}return C$.defaultLocale;
}, 1);
Clazz_newMeth(C$, 'setDefault$java_util_Locale', function (newLocale) {
if (newLocale == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Can\'t set default locale to NULL"]);
C$.defaultLocale=newLocale;
}, 1);
Clazz_newMeth(C$, 'getLanguage$', function () {
return this.language;
});
Clazz_newMeth(C$, 'getCountry$', function () {
return this.country;
});
Clazz_newMeth(C$, 'getVariant$', function () {
return this.variant;
});
Clazz_newMeth(C$, 'toString', function () {
var l=this.language.length$() != 0;
var c=this.country.length$() != 0;
var v=this.variant.length$() != 0;
var result=Clazz_new_($I$(2).c$$S,[this.language]);
if (c || (l && v ) ) {
result.append$C("_").append$S(this.country);
}if (v && (l || c ) ) {
result.append$C("_").append$S(this.variant);
}return result.toString();
});
Clazz_newMeth(C$, 'getDisplayLanguage$', function () {
return this.getDisplayLanguage$java_util_Locale(C$.getDefault$());
});
Clazz_newMeth(C$, 'getDisplayLanguage$java_util_Locale', function (inLocale) {
return p$1.getDisplayString$S$java_util_Locale$I.apply(this, [this.language, inLocale, 0]);
});
Clazz_newMeth(C$, 'getDisplayCountry$', function () {
return this.getDisplayCountry$java_util_Locale(C$.getDefault$());
});
Clazz_newMeth(C$, 'getDisplayCountry$java_util_Locale', function (inLocale) {
return p$1.getDisplayString$S$java_util_Locale$I.apply(this, [this.country, inLocale, 1]);
});
Clazz_newMeth(C$, 'getDisplayString$S$java_util_Locale$I', function (code, inLocale, type) {
if (code.length$() == 0) {
return "";
}if (inLocale == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return inLocale.toString();
}, p$1);
Clazz_newMeth(C$, 'getDisplayVariant$', function () {
return this.getDisplayVariant$java_util_Locale(C$.getDefault$());
});
Clazz_newMeth(C$, 'getDisplayVariant$java_util_Locale', function (inLocale) {
if (this.variant.length$() == 0) return "";
return this.variant;
});
Clazz_newMeth(C$, 'getDisplayName$', function () {
return this.getDisplayName$java_util_Locale(C$.getDefault$());
});
Clazz_newMeth(C$, 'getDisplayName$java_util_Locale', function (inLocale) {
return inLocale.toString();
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var that=Clazz_clone(this);
return that;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(3));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'hashCode$', function () {
var hc=this.hashCodeValue;
if (hc == 0) {
hc=(this.language.hashCode$() << 8) ^ this.country.hashCode$() ^ (this.variant.hashCode$() << 4) ;
this.hashCodeValue=hc;
}return hc;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (this === obj ) return true;
if (!(Clazz_instanceOf(obj, "java.util.Locale"))) return false;
var other=obj;
return this.language == other.language && this.country == other.country && this.variant == other.variant ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Objects']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newInterface(P$, "Map", function(){
});
C$.$defaults$ = function(C$){
Clazz_newMeth(C$, 'getOrDefault$O$TV', function (key, defaultValue) {
var v;
return (((v=this.get$O(key)) != null ) || this.containsKey$O(key) ) ? v : defaultValue;
});
Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) {
$I$(1).requireNonNull$TT(action);
for (var entry, $entry = this.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) {
var k;
var v;
try {
k=entry.getKey$();
v=entry.getValue$();
} catch (ise) {
if (Clazz_exceptionOf(ise,"IllegalStateException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException').c$$Throwable,[ise]);
} else {
throw ise;
}
}
action.accept$(k, v);
}
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) {
$I$(1).requireNonNull$TT($function);
for (var entry, $entry = this.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) {
var k;
var v;
try {
k=entry.getKey$();
v=entry.getValue$();
} catch (ise) {
if (Clazz_exceptionOf(ise,"IllegalStateException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException').c$$Throwable,[ise]);
} else {
throw ise;
}
}
v=$function.apply$(k, v);
try {
entry.setValue$TV(v);
} catch (ise) {
if (Clazz_exceptionOf(ise,"IllegalStateException")){
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException').c$$Throwable,[ise]);
} else {
throw ise;
}
}
}
});
Clazz_newMeth(C$, 'putIfAbsent$TK$TV', function (key, value) {
var v=this.get$O(key);
if (v == null ) {
v=this.put$TK$TV(key, value);
}return v;
});
Clazz_newMeth(C$, 'remove$O$O', function (key, value) {
var curValue=this.get$O(key);
if (!$I$(1).equals$O$O(curValue, value) || (curValue == null && !this.containsKey$O(key) ) ) {
return false;
}this.remove$O(key);
return true;
});
Clazz_newMeth(C$, 'replace$TK$TV$TV', function (key, oldValue, newValue) {
var curValue=this.get$O(key);
if (!$I$(1).equals$O$O(curValue, oldValue) || (curValue == null && !this.containsKey$O(key) ) ) {
return false;
}this.put$TK$TV(key, newValue);
return true;
});
Clazz_newMeth(C$, 'replace$TK$TV', function (key, value) {
var curValue;
if (((curValue=this.get$O(key)) != null ) || this.containsKey$O(key) ) {
curValue=this.put$TK$TV(key, value);
}return curValue;
});
Clazz_newMeth(C$, 'computeIfAbsent$TK$java_util_function_Function', function (key, mappingFunction) {
$I$(1).requireNonNull$TT(mappingFunction);
var v;
if ((v=this.get$O(key)) == null ) {
var newValue;
if ((newValue=mappingFunction.apply$(key)) != null ) {
this.put$TK$TV(key, newValue);
return newValue;
}}return v;
});
Clazz_newMeth(C$, 'computeIfPresent$TK$java_util_function_BiFunction', function (key, remappingFunction) {
$I$(1).requireNonNull$TT(remappingFunction);
var oldValue;
if ((oldValue=this.get$O(key)) != null ) {
var newValue=remappingFunction.apply$(key, oldValue);
if (newValue != null ) {
this.put$TK$TV(key, newValue);
return newValue;
} else {
this.remove$O(key);
return null;
}} else {
return null;
}});
Clazz_newMeth(C$, 'compute$TK$java_util_function_BiFunction', function (key, remappingFunction) {
$I$(1).requireNonNull$TT(remappingFunction);
var oldValue=this.get$O(key);
var newValue=remappingFunction.apply$(key, oldValue);
if (newValue == null ) {
if (oldValue != null || this.containsKey$O(key) ) {
this.remove$O(key);
return null;
} else {
return null;
}} else {
this.put$TK$TV(key, newValue);
return newValue;
}});
Clazz_newMeth(C$, 'merge$TK$TV$java_util_function_BiFunction', function (key, value, remappingFunction) {
$I$(1).requireNonNull$TT(remappingFunction);
$I$(1).requireNonNull$TT(value);
var oldValue=this.get$O(key);
var newValue=(oldValue == null ) ? value : remappingFunction.apply$(oldValue, value);
if (newValue == null ) {
this.remove$O(key);
} else {
this.put$TK$TV(key, newValue);
}return newValue;
});
};;
(function(){var C$=Clazz_newInterface(P$.Map, "Entry", function(){
});
Clazz_newMeth(C$, 'comparingByKey$', function () {
return ((P$.Map$Entry$lambda1||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getKey$().compareTo$(c2.getKey$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda1.$init$, [this, null]));
}, 1);
Clazz_newMeth(C$, 'comparingByValue$', function () {
return ((P$.Map$Entry$lambda2||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getValue$().compareTo$(c2.getValue$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda2.$init$, [this, null]));
}, 1);
Clazz_newMeth(C$, 'comparingByKey$java_util_Comparator', function (cmp) {
$I$(1).requireNonNull$TT(cmp);
return ((P$.Map$Entry$lambda3||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getKey$(), c2.getKey$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda3.$init$, [this, {cmp: cmp}]));
}, 1);
Clazz_newMeth(C$, 'comparingByValue$java_util_Comparator', function (cmp) {
$I$(1).requireNonNull$TT(cmp);
return ((P$.Map$Entry$lambda4||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getValue$(), c2.getValue$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda4.$init$, [this, {cmp: cmp}]));
}, 1);
})()
;
(function(){var C$=Clazz_newInterface(P$.Map, "Entry", function(){
});
Clazz_newMeth(C$, 'comparingByKey$', function () {
return ((P$.Map$Entry$lambda1||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getKey$().compareTo$(c2.getKey$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda1.$init$, [this, null]));
}, 1);
Clazz_newMeth(C$, 'comparingByValue$', function () {
return ((P$.Map$Entry$lambda2||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getValue$().compareTo$(c2.getValue$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda2.$init$, [this, null]));
}, 1);
Clazz_newMeth(C$, 'comparingByKey$java_util_Comparator', function (cmp) {
$I$(1).requireNonNull$TT(cmp);
return ((P$.Map$Entry$lambda3||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getKey$(), c2.getKey$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda3.$init$, [this, {cmp: cmp}]));
}, 1);
Clazz_newMeth(C$, 'comparingByValue$java_util_Comparator', function (cmp) {
$I$(1).requireNonNull$TT(cmp);
return ((P$.Map$Entry$lambda4||
(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
/*lambda_E*/
Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getValue$(), c2.getValue$()));});
})()
), Clazz_new_(P$.Map$Entry$lambda4.$init$, [this, {cmp: cmp}]));
}, 1);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'AssertionError','java.util.Arrays']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Objects");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
throw Clazz_new_($I$(1).c$$O,["No java.util.Objects instances for you!"]);
}, 1);
Clazz_newMeth(C$, 'equals$O$O', function (a, b) {
return (a === b ) || (a != null && a.equals$O(b) ) ;
}, 1);
Clazz_newMeth(C$, 'deepEquals$O$O', function (a, b) {
if (a === b ) return true;
else if (a == null || b == null ) return false;
else return $I$(2).deepEquals0$O$O(a, b);
}, 1);
Clazz_newMeth(C$, 'hashCode$O', function (o) {
return o != null ? o.hashCode$() : 0;
}, 1);
Clazz_newMeth(C$, 'hash$OA', function (values) {
return $I$(2).hashCode$OA(values);
}, 1);
Clazz_newMeth(C$, 'toString$O', function (o) {
return String.valueOf$O(o);
}, 1);
Clazz_newMeth(C$, 'toString$O$S', function (o, nullDefault) {
return (o != null ) ? o.toString() : nullDefault;
}, 1);
Clazz_newMeth(C$, 'compare$TT$TT$java_util_Comparator', function (a, b, c) {
return (a === b ) ? 0 : c.compare$(a, b);
}, 1);
Clazz_newMeth(C$, 'requireNonNull$TT', function (obj) {
if (obj == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
return obj;
}, 1);
Clazz_newMeth(C$, 'requireNonNull$TT$S', function (obj, message) {
if (obj == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,[message]);
return obj;
}, 1);
Clazz_newMeth(C$, 'isNull$O', function (obj) {
return obj == null ;
}, 1);
Clazz_newMeth(C$, 'nonNull$O', function (obj) {
return obj != null ;
}, 1);
Clazz_newMeth(C$, 'requireNonNull$TT$java_util_function_Supplier', function (obj, messageSupplier) {
if (obj == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,[messageSupplier.get$()]);
return obj;
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:21:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newInterface(P$, "Queue", null, null, 'java.util.Collection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Random", null, null, 'java.io.Serializable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
(function (pool, math, width, chunks, significance, overflow, startdenom) { var copyright = "Copyright 2010 David Bau, all rights reserved. (BSD)" //
// seedrandom()
// This is the seedrandom function described above.
//
math['seedrandom'] = function seedrandom(seed, use_entropy) { var key = [];
var arc4;
// Flatten the seed string or build one from local entropy if needed.
seed = mixkey(flatten( use_entropy ? [seed, pool] : arguments.length ? seed : [new Date().getTime(), pool, window], 3), key);
// Use the seed to initialize an ARC4 generator.
arc4 = new ARC4(key);
// Mix the randomness into accumulated entropy.
mixkey(arc4.S, pool);
// Override Math.random
// This function returns a random double in [0, 1) that contains
// randomness in every bit of the mantissa of the IEEE 754 value.
math['random'] = function random() { // Closure to return a random double:
var n = arc4.g(chunks); // Start with a numerator n < 2 ^ 48
var d = startdenom; // and denominator d = 2 ^ 48.
var x = 0; // and no 'extra last byte'.
while (n < significance) { // Fill up all significant digits by
n = (n + x) * width; // shifting numerator and
d *= width; // denominator and generating a
x = arc4.g(1); // new least-significant-byte.
} while (n >= overflow) { // To avoid rounding up, before adding
n /= 2; // last byte, shift everything
d /= 2; // right using integer math until
x >>>= 1; // we have exactly the desired bits.
} return (n + x) / d; // Form the number within [0, 1).
};
// Return the seed that was used
return seed;
};
//
// ARC4
//
// An ARC4 implementation. The constructor takes a key in the form of
// an array of at most (width) integers that should be 0 <= x < (width).
//
// The g(count) method returns a pseudorandom integer that concatenates
// the next (count) outputs from ARC4. Its return value is a number x
// that is in the range 0 <= x < (width ^ count).
//
function ARC4(key) { var t, u, me = this, keylen = key.length;
var i = 0, j = me.i = me.j = me.m = 0;
me.S = [];
me.c = [];
// The empty key [] is treated as [0].
if (!keylen) { key = [keylen++]; } // Set up S using the standard key scheduling algorithm.
while (i < width) { me.S[i] = i++; } for (i = 0; i < width; i++) { t = me.S[i];
j = lowbits(j + t + key[i % keylen]);
u = me.S[j];
me.S[i] = u;
me.S[j] = t;
} // The "g" method returns the next (count) outputs as one number.
me.g = function getnext(count) { var s = me.S;
var i = lowbits(me.i + 1); var t = s[i];
var j = lowbits(me.j + t); var u = s[j];
s[i] = u;
s[j] = t;
var r = s[lowbits(t + u)];
while (--count) { i = lowbits(i + 1); t = s[i];
j = lowbits(j + t); u = s[j];
s[i] = u;
s[j] = t;
r = r * width + s[lowbits(t + u)];
} me.i = i;
me.j = j;
return r;
};
// For robust unpredictability discard an initial batch of values.
// See http://www.rsa.com/rsalabs/node.asp?id=2009
me.g(width);
} //
// flatten()
// Converts an object tree to nested arrays of strings.
//
function flatten(obj, depth, result, prop) { result = [];
if (depth && typeof(obj) == 'object') { for (prop in obj) { if (prop.indexOf('S') < 5) { // Avoid FF3 bug (local/sessionStorage)
try { result.push(flatten(obj[prop], depth - 1)); } catch (e) {} } } } return result.length ? result : '' + obj;
} //
// mixkey()
// Mixes a string seed into a key that is an array of integers, and
// returns a shortened string seed that is equivalent to the result key.
//
function mixkey(seed, key, smear, j) { seed += ''; // Ensure the seed is a string
smear = 0;
for (j = 0; j < seed.length; j++) { key[lowbits(j)] = lowbits((smear ^= key[lowbits(j)] * 19) + seed.charCodeAt(j));
} seed = '';
for (j in key) { seed += String.fromCharCode(key[j]); } return seed;
} //
// lowbits()
// A quick "n mod width" for width a power of 2.
//
function lowbits(n) { return n & (width - 1); } //
// The following constants are related to IEEE 754 limits.
//
startdenom = math.pow(width, chunks);
significance = math.pow(2, significance);
overflow = significance * 2;
//
// When seedrandom.js is loaded, we immediately mix a few bits
// from the built-in RNG into the entropy pool. Because we do
// not want to intefere with determinstic PRNG state later,
// seedrandom will not call math.random on its own again after
// initialization.
//
mixkey(math.random(), pool);
// End anonymous scope, and pass initial values.
})( [], // pool: entropy pool starts empty
Math, // math: package containing random, pow, and seedrandom
256, // width: each RC4 output is 0 <= x < 256
6, // chunks: at least six RC4 outputs for each double
52 // significance: there are 52 significant digits in a double
);
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.haveNextNextGaussian=false;
this.seed=0;
this.nextNextGaussian=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.haveNextNextGaussian=false;
this.nextNextGaussian=0;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.setSeed$J(System.currentTimeMillis$());
}, 1);
Clazz_newMeth(C$, 'c$$J', function (seed) {
C$.$init$.apply(this);
this.setSeed$J(seed);
}, 1);
Clazz_newMeth(C$, 'next$I', function (bits) {
this.seed=(this.seed * 25214903917 + 11) & (281474976710655);
return ((this.seed >>> (48 - bits))|0);
});
Clazz_newMeth(C$, 'nextBoolean$', function () {
{
return Math.random () > 0.5;
}
});
Clazz_newMeth(C$, 'nextBytes$BA', function (buf) {
{
var rand=0;
var count=0;
var loop=0;
while (count < buf.length){
if (loop == 0) {
rand=this.nextInt$();
loop=3;
} else {
loop--;
}buf[count++]=((rand|0)|0);
rand>>=8;
}
}});
Clazz_newMeth(C$, 'nextDouble$', function () {
{
return Math.random ();
}
});
Clazz_newMeth(C$, 'nextFloat$', function () {
{
return Math.random ();
}
});
Clazz_newMeth(C$, 'nextGaussian$', function () {
if (this.haveNextNextGaussian) {
this.haveNextNextGaussian=false;
return this.nextNextGaussian;
}var v1;
var v2;
var s;
do {
v1=2 * this.nextDouble$() - 1;
v2=2 * this.nextDouble$() - 1;
s=v1 * v1 + v2 * v2;
} while (s >= 1 );
var norm=Math.sqrt(-2 * Math.log(s) / s);
this.nextNextGaussian=v2 * norm;
this.haveNextNextGaussian=true;
return v1 * norm;
});
Clazz_newMeth(C$, 'nextInt$', function () {
{
return Math.random()*0x100000000 | 0;
}
});
Clazz_newMeth(C$, 'nextInt$I', function (n) {
if (n > 0) {
{
return Math.random() * n|0
}
}throw Clazz_new_(Clazz_load('IllegalArgumentException'));
});
Clazz_newMeth(C$, 'nextLong$', function () {
$I$(1).notImplemented$S(null);
return this.nextInt$();
});
Clazz_newMeth(C$, 'setSeed$J', function (seed) {
Math.seedrandom(seed);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[];
var C$=Clazz_newInterface(P$, "RandomAccess");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},p$2={},I$=[[0,'InternalError','java.util.Collections','java.util.Arrays',['java.util.ResourceBundle','.SingleFormatControl'],['java.util.ResourceBundle','.NoFallbackControl'],'java.util.ArrayList','java.util.Locale','swingjs.api.Interface','swingjs.JSUtil','StringBuilder',['java.util.ResourceBundle','.Control'],'java.util.HashMap',['java.util.ResourceBundle','.CacheKey'],'Thread','java.util.HashSet']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ResourceBundle", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.NONEXISTENT_BUNDLE=null;
C$.cacheList=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.NONEXISTENT_BUNDLE=((P$.ResourceBundle$1||
(function(){var C$=Clazz_newClass(P$, "ResourceBundle$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.util.ResourceBundle'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getKeys$', function () {
return null;
});
Clazz_newMeth(C$, 'handleGetObject$S', function (key) {
return null;
});
Clazz_newMeth(C$, 'toString', function () {
return "NONEXISTENT_BUNDLE";
});
})()
), Clazz_new_(C$, [this, null],P$.ResourceBundle$1));
C$.cacheList=Clazz_new_($I$(12).c$$I,[32]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.parent=null;
this.locale=null;
this.expired=false;
this.keySet=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.parent=null;
this.locale=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getString$S', function (key) {
return this.getObject$S(key);
});
Clazz_newMeth(C$, 'getStringArray$S', function (key) {
return this.getObject$S(key);
});
Clazz_newMeth(C$, 'getObject$S', function (key) {
var obj=this.handleGetObject$S(key);
if (obj == null ) {
if (this.parent != null ) {
obj=this.parent.getObject$S(key);
}if (obj == null ) throw Clazz_new_(Clazz_load('java.util.MissingResourceException').c$$S$S$S,["Can't find resource for bundle " + this.getClass$().getName$() + ", key " + key , this.getClass$().getName$(), key]);
}return obj;
});
Clazz_newMeth(C$, 'getLocale$', function () {
return this.locale;
});
Clazz_newMeth(C$, 'setParent$java_util_ResourceBundle', function (parent) {
Clazz_assert(C$, this, function(){return parent !== C$.NONEXISTENT_BUNDLE });
this.parent=parent;
});
Clazz_newMeth(C$, 'getBundle$S', function (baseName) {
return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, $I$(7).getDefault$(), null, $I$(11).INSTANCE);
}, 1);
Clazz_newMeth(C$, 'getBundle$S$java_util_ResourceBundle_Control', function (baseName, control) {
return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, $I$(7).getDefault$(), null, control);
}, 1);
Clazz_newMeth(C$, 'getBundle$S$java_util_Locale', function (baseName, locale) {
return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, locale, null, $I$(11).INSTANCE);
}, 1);
Clazz_newMeth(C$, 'getBundle$S$java_util_Locale$java_util_ResourceBundle_Control', function (baseName, targetLocale, control) {
return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, targetLocale, null, control);
}, 1);
Clazz_newMeth(C$, 'getBundle$S$java_util_Locale$O', function (baseName, locale, loader) {
return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, locale, null, $I$(11).INSTANCE);
}, 1);
Clazz_newMeth(C$, 'getBundle$S$O$O$java_util_ResourceBundle_Control', function (baseName, targetLocale, loader, control) {
if (targetLocale == null ) targetLocale=$I$(7).getDefault$();
if (control == null ) control=$I$(11).getControl$java_util_List($I$(11).FORMAT_PROPERTIES);
return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, targetLocale, loader, control);
}, 1);
Clazz_newMeth(C$, 'getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control', function (baseName, locale, loader, control) {
if (control == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["ResourceBundle locale or control is null"]);
}var cacheKey=Clazz_new_($I$(13).c$$S$java_util_Locale$O,[baseName, locale, loader]);
var bundle=null;
var bundleRef=C$.cacheList.get$O(cacheKey);
if (bundleRef != null ) {
bundle=bundleRef;
bundleRef=null;
}if (C$.isValidBundle$java_util_ResourceBundle(bundle)) {
return bundle;
}var formats=control.getFormats$S(baseName);
var baseBundle=null;
for (var targetLocale=locale; targetLocale != null ; targetLocale=control.getFallbackLocale$S$java_util_Locale(baseName, targetLocale)) {
var candidateLocales=control.getCandidateLocales$S$java_util_Locale(baseName, targetLocale);
bundle=C$.findBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_List$I$java_util_ResourceBundle_Control$java_util_ResourceBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle);
if (C$.isValidBundle$java_util_ResourceBundle(bundle)) {
var isBaseBundle=$I$(7).ROOT.equals$O(bundle.locale);
if (!isBaseBundle || bundle.locale.equals$O(locale) || (candidateLocales.size$() == 1 && bundle.locale.equals$O(candidateLocales.get$I(0)) ) ) {
break;
}if (isBaseBundle && baseBundle == null ) {
baseBundle=bundle;
}}}
if (bundle == null ) {
if (baseBundle == null ) {
C$.throwMissingResourceException$S$java_util_Locale$Throwable(baseName, locale, p$1.getCause.apply(cacheKey, []));
}bundle=baseBundle;
}return bundle;
}, 1);
Clazz_newMeth(C$, 'findBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_List$I$java_util_ResourceBundle_Control$java_util_ResourceBundle', function (cacheKey, candidateLocales, formats, index, control, baseBundle) {
var targetLocale=candidateLocales.get$I(index);
var parent=null;
if (index != candidateLocales.size$() - 1) {
parent=C$.findBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_List$I$java_util_ResourceBundle_Control$java_util_ResourceBundle(cacheKey, candidateLocales, formats, index + 1, control, baseBundle);
} else if (baseBundle != null && $I$(7).ROOT.equals$O(targetLocale) ) {
return baseBundle;
}var expiredBundle=false;
cacheKey.setLocale$java_util_Locale(targetLocale);
var bundle=C$.findBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle_Control(cacheKey, control);
if (C$.isValidBundle$java_util_ResourceBundle(bundle)) {
expiredBundle=bundle.expired;
if (!expiredBundle) {
if (bundle.parent === parent ) {
return bundle;
}var bundleRef=C$.cacheList.get$O(cacheKey);
if (bundleRef != null && bundleRef === bundle ) {
C$.cacheList.remove$O(cacheKey);
}}}if (bundle !== C$.NONEXISTENT_BUNDLE ) {
var constKey=cacheKey.clone$();
try {
try {
bundle=C$.loadBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_ResourceBundle_Control$Z(cacheKey, formats, control, expiredBundle);
if (bundle != null ) {
if (bundle.parent == null ) {
bundle.setParent$java_util_ResourceBundle(parent);
}bundle.locale=targetLocale;
bundle=C$.putBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle$java_util_ResourceBundle_Control(cacheKey, bundle, control);
return bundle;
}C$.putBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle$java_util_ResourceBundle_Control(cacheKey, C$.NONEXISTENT_BUNDLE, control);
} finally {
}
} finally {
if (Clazz_instanceOf(p$1.getCause.apply(constKey, []), "java.lang.InterruptedException")) {
$I$(14).currentThread$().interrupt$();
}}
}return parent;
}, 1);
Clazz_newMeth(C$, 'loadBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_ResourceBundle_Control$Z', function (cacheKey, formats, control, reload) {
var targetLocale=cacheKey.getLocale$();
var bundle=null;
var size=formats.size$();
for (var i=0; i < size; i++) {
var format=formats.get$I(i);
try {
bundle=control.newBundle$S$java_util_Locale$S$O$Z(cacheKey.getName$(), targetLocale, format, null, reload);
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"LinkageError")){
var error = e$$;
{
p$1.setCause$Throwable.apply(cacheKey, [error]);
}
} else if (Clazz_exceptionOf(e$$,"Exception")){
var cause = e$$;
{
p$1.setCause$Throwable.apply(cacheKey, [cause]);
}
} else {
throw e$$;
}
}
if (bundle != null ) {
cacheKey.setFormat$S(format);
bundle.locale=targetLocale;
bundle.expired=false;
break;
}}
return bundle;
}, 1);
Clazz_newMeth(C$, 'isValidBundle$java_util_ResourceBundle', function (bundle) {
return bundle != null && bundle !== C$.NONEXISTENT_BUNDLE ;
}, 1);
Clazz_newMeth(C$, 'throwMissingResourceException$S$java_util_Locale$Throwable', function (baseName, locale, cause) {
if (Clazz_instanceOf(cause, "java.util.MissingResourceException")) {
cause=null;
}throw Clazz_new_(Clazz_load('java.util.MissingResourceException').c$$S$S$S$Throwable,["Can't find bundle for base name " + baseName + ", locale " + locale , baseName + "_" + locale , "", cause]);
}, 1);
Clazz_newMeth(C$, 'findBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle_Control', function (cacheKey, control) {
var bundleRef=C$.cacheList.get$O(cacheKey);
if (bundleRef == null ) {
return null;
}var bundle=bundleRef;
return bundle;
}, 1);
Clazz_newMeth(C$, 'putBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle$java_util_ResourceBundle_Control', function (cacheKey, bundle, control) {
var key=cacheKey.clone$();
C$.cacheList.put$TK$TV(key, bundle);
return bundle;
}, 1);
Clazz_newMeth(C$, 'clearCache$', function () {
C$.cacheList.clear$();
}, 1);
Clazz_newMeth(C$, 'containsKey$S', function (key) {
if (key == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}for (var rb=this; rb != null ; rb=rb.parent) {
if (rb.handleKeySet$().contains$O(key)) {
return true;
}}
return false;
});
Clazz_newMeth(C$, 'keySet$', function () {
var keys=Clazz_new_($I$(15));
for (var rb=this; rb != null ; rb=rb.parent) {
keys.addAll$java_util_Collection(rb.handleKeySet$());
}
return keys;
});
Clazz_newMeth(C$, 'handleKeySet$', function () {
if (this.keySet == null ) {
{
if (this.keySet == null ) {
var keys=Clazz_new_($I$(15));
var enumKeys=this.getKeys$();
while (enumKeys.hasMoreElements$()){
var key=enumKeys.nextElement$();
if (this.handleGetObject$S(key) != null ) {
keys.add$TE(key);
}}
this.keySet=keys;
}}}return this.keySet;
});
C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$);
;
(function(){var C$=Clazz_newClass(P$.ResourceBundle, "CacheKey", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'Cloneable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.name=null;
this.locale=null;
this.format=null;
this.cause=null;
this.hashCodeCache=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$java_util_Locale$O', function (baseName, locale, loader) {
C$.$init$.apply(this);
this.name=baseName;
this.locale=locale;
if (this.name != null ) p$1.calculateHashCode.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getLocale$', function () {
return this.locale;
});
Clazz_newMeth(C$, 'setLocale$java_util_Locale', function (locale) {
if (!this.locale.equals$O(locale)) {
this.locale=locale;
p$1.calculateHashCode.apply(this, []);
}return this;
});
Clazz_newMeth(C$, 'equals$O', function (other) {
if (this === other ) {
return true;
}try {
var otherEntry=other;
if (this.hashCodeCache != otherEntry.hashCodeCache) {
return false;
}if (!this.name.equals$O(otherEntry.name)) {
return false;
}if (!this.locale.equals$O(otherEntry.locale)) {
return false;
}return true;
} catch (e$$) {
if (Clazz_exceptionOf(e$$,"NullPointerException")){
var e = e$$;
{
}
} else if (Clazz_exceptionOf(e$$,"ClassCastException")){
var e = e$$;
{
}
} else {
throw e$$;
}
}
return false;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.hashCodeCache;
});
Clazz_newMeth(C$, 'calculateHashCode', function () {
this.hashCodeCache=this.name.hashCode$() << 3;
this.hashCodeCache^=this.locale.hashCode$();
}, p$1);
Clazz_newMeth(C$, 'clone$', function () {
try {
var clone=Clazz_clone(this);
clone.cause=null;
return clone;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(1));
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'setFormat$S', function (format) {
this.format=format;
});
Clazz_newMeth(C$, 'setCause$Throwable', function (cause) {
if (this.cause == null ) {
this.cause=cause;
} else {
if (Clazz_instanceOf(this.cause, "java.lang.ClassNotFoundException")) {
this.cause=cause;
}}}, p$1);
Clazz_newMeth(C$, 'getCause', function () {
return this.cause;
}, p$1);
Clazz_newMeth(C$, 'toString', function () {
var l=this.locale.toString();
if (l.length$() == 0) {
if (this.locale.getVariant$().length$() != 0) {
l="__" + this.locale.getVariant$();
} else {
l="\"\"";
}}return "CacheKey[" + this.name + ", lc=" + l + "(format=" + this.format + ")]" ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.ResourceBundle, "Control", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.FORMAT_DEFAULT=null;
C$.FORMAT_CLASS=null;
C$.FORMAT_PROPERTIES=null;
C$.INSTANCE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.FORMAT_DEFAULT=$I$(2).unmodifiableList$java_util_List($I$(3).asList$TTA(["java.class", "java.properties"]));
C$.FORMAT_CLASS=$I$(2).unmodifiableList$java_util_List($I$(3).asList$TTA(["java.class"]));
C$.FORMAT_PROPERTIES=$I$(2).unmodifiableList$java_util_List($I$(3).asList$TTA(["java.properties"]));
C$.INSTANCE=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getControl$java_util_List', function (formats) {
if (formats.equals$O(C$.FORMAT_PROPERTIES)) {
return $I$(4).PROPERTIES_ONLY;
}if (formats.equals$O(C$.FORMAT_CLASS)) {
return $I$(4).CLASS_ONLY;
}if (formats.equals$O(C$.FORMAT_DEFAULT)) {
return C$.INSTANCE;
}throw Clazz_new_(Clazz_load('IllegalArgumentException'));
}, 1);
Clazz_newMeth(C$, 'getNoFallbackControl$java_util_List', function (formats) {
if (formats.equals$O(C$.FORMAT_DEFAULT)) {
return $I$(5).NO_FALLBACK;
}if (formats.equals$O(C$.FORMAT_PROPERTIES)) {
return $I$(5).PROPERTIES_ONLY_NO_FALLBACK;
}if (formats.equals$O(C$.FORMAT_CLASS)) {
return $I$(5).CLASS_ONLY_NO_FALLBACK;
}throw Clazz_new_(Clazz_load('IllegalArgumentException'));
}, 1);
Clazz_newMeth(C$, 'getFormats$S', function (baseName) {
if (baseName == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return C$.FORMAT_PROPERTIES;
});
Clazz_newMeth(C$, 'getCandidateLocales$S$java_util_Locale', function (baseName, locale) {
if (baseName == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}var language=locale.getLanguage$();
var country=locale.getCountry$();
var variant=locale.getVariant$();
var locales=Clazz_new_($I$(6).c$$I,[4]);
if (variant.length$() > 0) {
locales.add$TE(locale);
}if (country.length$() > 0) {
locales.add$TE((locales.size$() == 0) ? locale : $I$(7).getInstance$S$S$S(language, country, ""));
}if (language.length$() > 0) {
locales.add$TE((locales.size$() == 0) ? locale : $I$(7).getInstance$S$S$S(language, "", ""));
}locales.add$TE($I$(7).ROOT);
return locales;
});
Clazz_newMeth(C$, 'getFallbackLocale$S$java_util_Locale', function (baseName, locale) {
if (baseName == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}var defaultLocale=$I$(7).getDefault$();
return locale.equals$O(defaultLocale) ? null : defaultLocale;
});
Clazz_newMeth(C$, 'newBundle$S$java_util_Locale$S$O$Z', function (baseName, locale, format, loader, reload) {
var bundleName=this.toBundleName$S$java_util_Locale(baseName, locale);
var bundle=null;
if (format.equals$O("java.class")) {
bundle=$I$(8).getInstance$S$Z(bundleName, true);
} else if (format.equals$O("java.properties")) {
var resourceName=p$2.toResourceName0$S$S.apply(this, [bundleName, "properties"]);
var stream;
if (resourceName == null || (stream=$I$(9).getCachedResourceAsStream$S(resourceName)) == null ) return null;
try {
bundle=p$2.newPropertyBundle$java_io_InputStream.apply(this, [stream]);
} finally {
stream.close$();
}
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["unknown format: " + format]);
}return bundle;
});
Clazz_newMeth(C$, 'getBundle$S', function (baseName) {
return P$.ResourceBundle.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, $I$(7).getDefault$(), null, C$.INSTANCE);
}, 1);
Clazz_newMeth(C$, 'newPropertyBundle$java_io_InputStream', function (stream) {
return ($I$(8).getInstance$S$Z("java.util.PropertyResourceBundle", false)).setStream$java_io_InputStream(stream);
}, p$2);
Clazz_newMeth(C$, 'getTimeToLive$S$java_util_Locale', function (baseName, locale) {
if (baseName == null || locale == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return -2;
});
Clazz_newMeth(C$, 'toBundleName$S$java_util_Locale', function (baseName, locale) {
if (locale === $I$(7).ROOT ) {
return baseName;
}var language=locale.getLanguage$();
var country=locale.getCountry$();
var variant=locale.getVariant$();
if (language == "" && country == "" && variant == "" ) {
return baseName;
}var sb=Clazz_new_($I$(10).c$$S,[baseName]);
sb.append$C("_");
if (variant != "") {
sb.append$S(language).append$C("_").append$S(country).append$C("_").append$S(variant);
} else if (country != "") {
sb.append$S(language).append$C("_").append$S(country);
} else {
sb.append$S(language);
}return sb.toString();
});
Clazz_newMeth(C$, 'toResourceName$S$S', function (bundleName, suffix) {
var sb=Clazz_new_($I$(10).c$$I,[bundleName.length$() + 1 + suffix.length$() ]);
sb.append$S(bundleName.replace$C$C(".", "/")).append$C(".").append$S(suffix);
return sb.toString();
});
Clazz_newMeth(C$, 'toResourceName0$S$S', function (bundleName, suffix) {
if (bundleName.contains$CharSequence("://")) {
return null;
} else {
return this.toResourceName$S$S(bundleName, suffix);
}}, p$2);
})()
;
(function(){var C$=Clazz_newClass(P$.ResourceBundle, "SingleFormatControl", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.ResourceBundle','.Control']);
C$.PROPERTIES_ONLY=null;
C$.CLASS_ONLY=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.PROPERTIES_ONLY=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_PROPERTIES]);
C$.CLASS_ONLY=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_CLASS]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.formats=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List', function (formats) {
Clazz_super_(C$, this,1);
this.formats=formats;
}, 1);
Clazz_newMeth(C$, 'getFormats$S', function (baseName) {
if (baseName == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return this.formats;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.ResourceBundle, "NoFallbackControl", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.ResourceBundle','.SingleFormatControl']);
C$.NO_FALLBACK=null;
C$.PROPERTIES_ONLY_NO_FALLBACK=null;
C$.CLASS_ONLY_NO_FALLBACK=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.NO_FALLBACK=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_DEFAULT]);
C$.PROPERTIES_ONLY_NO_FALLBACK=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_PROPERTIES]);
C$.CLASS_ONLY_NO_FALLBACK=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_CLASS]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_List', function (formats) {
C$.superclazz.c$$java_util_List.apply(this, [formats]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getFallbackLocale$S$java_util_Locale', function (baseName, locale) {
if (baseName == null || locale == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return null;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,I$=[[0,'java.util.Spliterators']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newInterface(P$, "Set", null, null, 'java.util.Collection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
C$.$defaults$ = function(C$){
Clazz_newMeth(C$, 'spliterator$', function () {
return $I$(1).spliterator$java_util_Collection$I(this, 1);
});
};})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=java.util,p$1={},p$2={},I$=[[0,'java.util.Objects','java.util.Arrays','OutOfMemoryError','InternalError','java.util.Collections',['java.util.Vector','.ListItr'],['java.util.Vector','.Itr'],'java.util.BitSet',['java.util.Vector','.VectorSpliterator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Vector", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.AbstractList', ['java.util.List', 'java.util.RandomAccess', 'Cloneable', 'java.io.Serializable']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.elementData=null;
this.elementCount=0;
this.capacityIncrement=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (initialCapacity, capacityIncrement) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
if (initialCapacity < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Capacity: " + initialCapacity]);
this.elementData=Clazz_array(java.lang.Object, [initialCapacity]);
this.capacityIncrement=capacityIncrement;
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialCapacity) {
C$.c$$I$I.apply(this, [initialCapacity, 0]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [10]);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) {
Clazz_super_(C$, this,1);
this.elementData=c.toArray$();
this.elementCount=this.elementData.length;
if (this.elementData.getClass$() !== Clazz_array(java.lang.Object, -1) ) this.elementData=$I$(2).copyOf$TUA$I$Class(this.elementData, this.elementCount, Clazz_array(java.lang.Object, -1));
}, 1);
Clazz_newMeth(C$, 'copyInto$OA', function (anArray) {
System.arraycopy$O$I$O$I$I(this.elementData, 0, anArray, 0, this.elementCount);
});
Clazz_newMeth(C$, 'trimToSize$', function () {
this.modCount++;
var oldCapacity=this.elementData.length;
if (this.elementCount < oldCapacity) {
this.elementData=$I$(2).copyOf$TTA$I(this.elementData, this.elementCount);
}});
Clazz_newMeth(C$, 'ensureCapacity$I', function (minCapacity) {
if (minCapacity > 0) {
this.modCount++;
p$2.ensureCapacityHelper$I.apply(this, [minCapacity]);
}});
Clazz_newMeth(C$, 'ensureCapacityHelper$I', function (minCapacity) {
if (minCapacity - this.elementData.length > 0) p$2.grow$I.apply(this, [minCapacity]);
}, p$2);
Clazz_newMeth(C$, 'grow$I', function (minCapacity) {
var oldCapacity=this.elementData.length;
var newCapacity=oldCapacity + ((this.capacityIncrement > 0) ? this.capacityIncrement : oldCapacity);
if (newCapacity - minCapacity < 0) newCapacity=minCapacity;
if (newCapacity - 2147483639 > 0) newCapacity=C$.hugeCapacity$I(minCapacity);
this.elementData=$I$(2).copyOf$TTA$I(this.elementData, newCapacity);
}, p$2);
Clazz_newMeth(C$, 'hugeCapacity$I', function (minCapacity) {
if (minCapacity < 0) throw Clazz_new_($I$(3));
return (minCapacity > 2147483639) ? 2147483647 : 2147483639;
}, 1);
Clazz_newMeth(C$, 'setSize$I', function (newSize) {
this.modCount++;
if (newSize > this.elementCount) {
p$2.ensureCapacityHelper$I.apply(this, [newSize]);
} else {
for (var i=newSize; i < this.elementCount; i++) {
this.elementData[i]=null;
}
}this.elementCount=newSize;
});
Clazz_newMeth(C$, 'capacity$', function () {
return this.elementData.length;
});
Clazz_newMeth(C$, 'size$', function () {
return this.elementCount;
});
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.elementCount == 0;
});
Clazz_newMeth(C$, 'elements$', function () {
return ((P$.Vector$1||
(function(){var C$=Clazz_newClass(P$, "Vector$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.count=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.count=0;
}, 1);
Clazz_newMeth(C$, 'hasMoreElements$', function () {
return this.count < this.b$['java.util.Vector'].elementCount;
});
Clazz_newMeth(C$, 'nextElement$', function () {
{
if (this.count < this.b$['java.util.Vector'].elementCount) {
return this.b$['java.util.Vector'].elementData$I.apply(this.b$['java.util.Vector'], [this.count++]);
}}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["Vector Enumeration"]);
});
})()
), Clazz_new_(P$.Vector$1.$init$, [this, null]));
});
Clazz_newMeth(C$, 'contains$O', function (o) {
return this.indexOf$O$I(o, 0) >= 0;
});
Clazz_newMeth(C$, 'indexOf$O', function (o) {
return this.indexOf$O$I(o, 0);
});
Clazz_newMeth(C$, 'indexOf$O$I', function (o, index) {
if (o == null ) {
for (var i=index; i < this.elementCount; i++) if (this.elementData[i] == null ) return i;
} else {
for (var i=index; i < this.elementCount; i++) if (o.equals$O(this.elementData[i])) return i;
}return -1;
});
Clazz_newMeth(C$, 'lastIndexOf$O', function (o) {
return this.lastIndexOf$O$I(o, this.elementCount - 1);
});
Clazz_newMeth(C$, 'lastIndexOf$O$I', function (o, index) {
if (index >= this.elementCount) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]);
if (o == null ) {
for (var i=index; i >= 0; i--) if (this.elementData[i] == null ) return i;
} else {
for (var i=index; i >= 0; i--) if (o.equals$O(this.elementData[i])) return i;
}return -1;
});
Clazz_newMeth(C$, 'elementAt$I', function (index) {
if (index >= this.elementCount) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]);
}return this.elementData$I(index);
});
Clazz_newMeth(C$, 'firstElement$', function () {
if (this.elementCount == 0) {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
}return this.elementData$I(0);
});
Clazz_newMeth(C$, 'lastElement$', function () {
if (this.elementCount == 0) {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
}return this.elementData$I(this.elementCount - 1);
});
Clazz_newMeth(C$, ['setElementAt$TE$I'], function (obj, index) {
if (index >= this.elementCount) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]);
}this.elementData[index]=obj;
});
Clazz_newMeth(C$, 'removeElementAt$I', function (index) {
this.modCount++;
if (index >= this.elementCount) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]);
} else if (index < 0) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
}var j=this.elementCount - index - 1 ;
if (j > 0) {
System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, j);
}this.elementCount--;
this.elementData[this.elementCount]=null;
});
Clazz_newMeth(C$, ['insertElementAt$TE$I'], function (obj, index) {
this.modCount++;
if (index > this.elementCount) {
throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " > " + this.elementCount ]);
}p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + 1]);
System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + 1, this.elementCount - index);
this.elementData[index]=obj;
this.elementCount++;
});
Clazz_newMeth(C$, ['addElement$TE'], function (obj) {
this.modCount++;
p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + 1]);
this.elementData[this.elementCount++]=obj;
});
Clazz_newMeth(C$, 'removeElement$O', function (obj) {
this.modCount++;
var i=this.indexOf$O(obj);
if (i >= 0) {
this.removeElementAt$I(i);
return true;
}return false;
});
Clazz_newMeth(C$, 'removeAllElements$', function () {
this.modCount++;
for (var i=0; i < this.elementCount; i++) this.elementData[i]=null;
this.elementCount=0;
});
Clazz_newMeth(C$, 'clone$', function () {
try {
var v=Clazz_clone(this);
v.elementData=$I$(2).copyOf$TTA$I(this.elementData, this.elementCount);
v.modCount=0;
return v;
} catch (e) {
if (Clazz_exceptionOf(e,"CloneNotSupportedException")){
throw Clazz_new_($I$(4).c$$Throwable,[e]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'toArray$', function () {
return $I$(2).copyOf$TTA$I(this.elementData, this.elementCount);
});
Clazz_newMeth(C$, 'toArray$TTA', function (a) {
if (a.length < this.elementCount) return $I$(2).copyOf$TUA$I$Class(this.elementData, this.elementCount, a.getClass$());
System.arraycopy$O$I$O$I$I(this.elementData, 0, a, 0, this.elementCount);
if (a.length > this.elementCount) a[this.elementCount]=null;
return a;
});
Clazz_newMeth(C$, 'elementData$I', function (index) {
return this.elementData[index];
});
Clazz_newMeth(C$, 'get$I', function (index) {
if (index >= this.elementCount) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
return this.elementData$I(index);
});
Clazz_newMeth(C$, 'set$I$TE', function (index, element) {
if (index >= this.elementCount) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
var oldValue=this.elementData$I(index);
this.elementData[index]=element;
return oldValue;
});
Clazz_newMeth(C$, ['add$TE'], function (e) {
this.modCount++;
p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + 1]);
this.elementData[this.elementCount++]=e;
return true;
});
Clazz_newMeth(C$, 'remove$O', function (o) {
return this.removeElement$O(o);
});
Clazz_newMeth(C$, 'add$I$TE', function (index, element) {
this.insertElementAt$TE$I(element, index);
});
Clazz_newMeth(C$, 'remove$I', function (index) {
this.modCount++;
if (index >= this.elementCount) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
var oldValue=this.elementData$I(index);
var numMoved=this.elementCount - index - 1 ;
if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, numMoved);
this.elementData[--this.elementCount]=null;
return oldValue;
});
Clazz_newMeth(C$, 'clear$', function () {
this.removeAllElements$();
});
Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) {
return C$.superclazz.prototype.containsAll$java_util_Collection.apply(this, [c]);
});
Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) {
this.modCount++;
var a=c.toArray$();
var numNew=a.length;
p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + numNew]);
System.arraycopy$O$I$O$I$I(a, 0, this.elementData, this.elementCount, numNew);
this.elementCount+=numNew;
return numNew != 0;
});
Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) {
return C$.superclazz.prototype.removeAll$java_util_Collection.apply(this, [c]);
});
Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) {
return C$.superclazz.prototype.retainAll$java_util_Collection.apply(this, [c]);
});
Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) {
this.modCount++;
if (index < 0 || index > this.elementCount ) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]);
var a=c.toArray$();
var numNew=a.length;
p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + numNew]);
var numMoved=this.elementCount - index;
if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + numNew, numMoved);
System.arraycopy$O$I$O$I$I(a, 0, this.elementData, index, numNew);
this.elementCount+=numNew;
return numNew != 0;
});
Clazz_newMeth(C$, 'equals$O', function (o) {
return C$.superclazz.prototype.equals$O.apply(this, [o]);
});
Clazz_newMeth(C$, 'hashCode$', function () {
return C$.superclazz.prototype.hashCode$.apply(this, []);
});
Clazz_newMeth(C$, 'toString', function () {
return C$.superclazz.prototype.toString.apply(this, []);
});
Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) {
return $I$(5).synchronizedList$java_util_List$O(C$.superclazz.prototype.subList$I$I.apply(this, [fromIndex, toIndex]), this);
});
Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) {
this.modCount++;
var numMoved=this.elementCount - toIndex;
System.arraycopy$O$I$O$I$I(this.elementData, toIndex, this.elementData, fromIndex, numMoved);
var newElementCount=this.elementCount - (toIndex - fromIndex);
while (this.elementCount != newElementCount)this.elementData[--this.elementCount]=null;
});
Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) {
var fields=s.putFields$();
var data;
{
fields.put$S$I("capacityIncrement", this.capacityIncrement);
fields.put$S$I("elementCount", this.elementCount);
data=this.elementData.clone$();
}fields.put$S$O("elementData", data);
s.writeFields$();
}, p$2);
Clazz_newMeth(C$, 'listIterator$I', function (index) {
if (index < 0 || index > this.elementCount ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]);
return Clazz_new_($I$(6).c$$I, [this, null, index]);
});
Clazz_newMeth(C$, 'listIterator$', function () {
return Clazz_new_($I$(6).c$$I, [this, null, 0]);
});
Clazz_newMeth(C$, 'iterator$', function () {
return Clazz_new_($I$(7), [this, null]);
});
Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
var expectedModCount=this.modCount;
var elementData=this.elementData;
var elementCount=this.elementCount;
for (var i=0; this.modCount == expectedModCount && i < elementCount ; i++) {
action.accept$(elementData[i]);
}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}});
Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) {
$I$(1).requireNonNull$TT(filter);
var removeCount=0;
var size=this.elementCount;
var removeSet=Clazz_new_($I$(8).c$$I,[size]);
var expectedModCount=this.modCount;
for (var i=0; this.modCount == expectedModCount && i < size ; i++) {
var element=this.elementData[i];
if (filter.test$(element)) {
removeSet.set$I(i);
removeCount++;
}}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}var anyToRemove=removeCount > 0;
if (anyToRemove) {
var newSize=size - removeCount;
for (var i=0, j=0; (i < size) && (j < newSize) ; i++, j++) {
i=removeSet.nextClearBit$I(i);
this.elementData[j]=this.elementData[i];
}
for (var k=newSize; k < size; k++) {
this.elementData[k]=null;
}
this.elementCount=newSize;
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}this.modCount++;
}return anyToRemove;
});
Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) {
$I$(1).requireNonNull$TT(operator);
var expectedModCount=this.modCount;
var size=this.elementCount;
for (var i=0; this.modCount == expectedModCount && i < size ; i++) {
this.elementData[i]=operator.apply$(this.elementData[i]);
}
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}this.modCount++;
});
Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) {
var expectedModCount=this.modCount;
$I$(2).sort$TTA$I$I$java_util_Comparator(this.elementData, 0, this.elementCount, c);
if (this.modCount != expectedModCount) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}this.modCount++;
});
Clazz_newMeth(C$, 'spliterator$', function () {
return Clazz_new_($I$(9).c$$java_util_Vector$OA$I$I$I,[this, null, 0, -1, 0]);
});
;
(function(){var C$=Clazz_newClass(P$.Vector, "Itr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.Iterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.cursor=0;
this.lastRet=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.lastRet=-1;
this.expectedModCount=this.this$0.modCount;
}, 1);
Clazz_newMeth(C$, 'hasNext$', function () {
return this.cursor != this.this$0.elementCount;
});
Clazz_newMeth(C$, 'next$', function () {
{
this.checkForComodification$();
var i=this.cursor;
if (i >= this.this$0.elementCount) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
this.cursor=i + 1;
return this.b$['java.util.Vector'].elementData$I.apply(this.b$['java.util.Vector'], [this.lastRet=i]);
}});
Clazz_newMeth(C$, 'remove$', function () {
if (this.lastRet == -1) throw Clazz_new_(Clazz_load('IllegalStateException'));
{
this.checkForComodification$();
this.b$['java.util.Vector'].remove$I.apply(this.b$['java.util.Vector'], [this.lastRet]);
this.expectedModCount=this.this$0.modCount;
}this.cursor=this.lastRet;
this.lastRet=-1;
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
$I$(1).requireNonNull$TT(action);
{
var size=this.this$0.elementCount;
var i=this.cursor;
if (i >= size) {
return;
}var elementData=this.b$['java.util.Vector'].elementData;
if (i >= elementData.length) {
throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
}while (i != size && this.this$0.modCount == this.expectedModCount ){
action.accept$(elementData[i++]);
}
this.cursor=i;
this.lastRet=i - 1;
this.checkForComodification$();
}});
Clazz_newMeth(C$, 'checkForComodification$', function () {
if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Vector, "ListItr", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['java.util.Vector','.Itr'], 'java.util.ListIterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (index) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.cursor=index;
}, 1);
Clazz_newMeth(C$, 'hasPrevious$', function () {
return this.cursor != 0;
});
Clazz_newMeth(C$, 'nextIndex$', function () {
return this.cursor;
});
Clazz_newMeth(C$, 'previousIndex$', function () {
return this.cursor - 1;
});
Clazz_newMeth(C$, 'previous$', function () {
{
this.checkForComodification$();
var i=this.cursor - 1;
if (i < 0) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
this.cursor=i;
return this.b$['java.util.Vector'].elementData$I.apply(this.b$['java.util.Vector'], [this.lastRet=i]);
}});
Clazz_newMeth(C$, ['set$TE'], function (e) {
if (this.lastRet == -1) throw Clazz_new_(Clazz_load('IllegalStateException'));
{
this.checkForComodification$();
this.b$['java.util.Vector'].set$I$TE.apply(this.b$['java.util.Vector'], [this.lastRet, e]);
}});
Clazz_newMeth(C$, ['add$TE'], function (e) {
var i=this.cursor;
{
this.checkForComodification$();
this.b$['java.util.Vector'].add$I$TE.apply(this.b$['java.util.Vector'], [i, e]);
this.expectedModCount=this.this$0.modCount;
}this.cursor=i + 1;
this.lastRet=-1;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Vector, "VectorSpliterator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.util.Spliterator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.list=null;
this.array=null;
this.index=0;
this.fence=0;
this.expectedModCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Vector$OA$I$I$I', function (list, array, origin, fence, expectedModCount) {
C$.$init$.apply(this);
this.list=list;
this.array=array;
this.index=origin;
this.fence=fence;
this.expectedModCount=expectedModCount;
}, 1);
Clazz_newMeth(C$, 'getFence', function () {
var hi;
if ((hi=this.fence) < 0) {
{
this.array=this.list.elementData;
this.expectedModCount=this.list.modCount;
hi=this.fence=this.list.elementCount;
}}return hi;
}, p$1);
Clazz_newMeth(C$, 'trySplit$', function () {
var hi=p$1.getFence.apply(this, []);
var lo=this.index;
var mid=(lo + hi) >>> 1;
return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_Vector$OA$I$I$I,[this.list, this.array, lo, this.index=mid, this.expectedModCount]);
});
Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) {
var i;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if (p$1.getFence.apply(this, []) > (i=this.index)) {
this.index=i + 1;
action.accept$(this.array[i]);
if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
return true;
}return false;
});
Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) {
var i;
var hi;
var lst;
var a;
if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException'));
if ((lst=this.list) != null ) {
if ((hi=this.fence) < 0) {
{
this.expectedModCount=lst.modCount;
a=this.array=lst.elementData;
hi=this.fence=lst.elementCount;
}} else a=this.array;
if (a != null && (i=this.index) >= 0 && (this.index=hi) <= a.length ) {
while (i < hi)action.accept$(a[i++]);
if (lst.modCount == this.expectedModCount) return;
}}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException'));
});
Clazz_newMeth(C$, 'estimateSize$', function () {
return (p$1.getFence.apply(this, []) - this.index);
});
Clazz_newMeth(C$, 'characteristics$', function () {
return 16464;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.api"),I$=[];
var C$=Clazz_newInterface(P$, "JSFunction");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util"),p$1={},I$=[[0,'java.util.Hashtable',['javajs.util.AjaxURLConnection','.AjaxHttpsURLConnection'],'java.io.ByteArrayOutputStream','javajs.util.Rdr']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AjaxURLConnection", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.net.HttpURLConnection');
C$.urlCache=null;
C$.NETWORK_ERROR=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.urlCache=Clazz_new_($I$(1));
C$.NETWORK_ERROR=Clazz_array(Integer.TYPE, -1, [78, 101, 116, 119, 111, 114, 107, 69, 114, 114, 111, 114]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.bytesOut=null;
this.postOut=null;
this.streamOut=null;
this.ajax=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.postOut="";
}, 1);
Clazz_newMeth(C$, 'newConnection$java_net_URL', function (url) {
return (url.getProtocol$() == "https" ? Clazz_new_($I$(2).c$$java_net_URL,[url]) : Clazz_new_(C$.c$$java_net_URL,[url]));
}, 1);
Clazz_newMeth(C$, 'c$$java_net_URL', function (url) {
C$.superclazz.c$$java_net_URL.apply(this, [url]);
C$.$init$.apply(this);
this.ajax=url.ajax ||null;
}, 1);
Clazz_newMeth(C$, 'doAjax$Z', function (isBinary) {
if (this.streamOut != null ) {
this.bytesOut=this.streamOut.toByteArray$();
this.streamOut=null;
}var J2S=self.J2S ||null;
var info=null;
info = this.ajax || {};
if (!info.dataType) { info.isBinary = !!isBinary;
}
var result=J2S.doAjax(this.url.toString(), this.postOut, this.bytesOut, info);
var isEmpty=false;
isEmpty = (!result || result.length == 2 && result[0] == 13 && result[1] == 10);
if (isEmpty) result = new Int8Array;
this.responseCode=isEmpty ? 404 : info.xhr.status ||0;
return result;
}, p$1);
Clazz_newMeth(C$, 'connect$', function () {
});
Clazz_newMeth(C$, 'outputBytes$BA', function (bytes) {
this.bytesOut=bytes;
});
Clazz_newMeth(C$, 'outputString$S', function (post) {
this.postOut=post;
});
Clazz_newMeth(C$, 'getOutputStream$', function () {
return this.streamOut=Clazz_new_($I$(3));
});
Clazz_newMeth(C$, 'getInputStream$', function () {
this.responseCode=-1;
var is=p$1.getInputStreamAndResponse$java_net_URL$Z.apply(this, [this.url, false]);
if (is == null ) throw Clazz_new_(Clazz_load('java.io.FileNotFoundException').c$$S,["opening " + this.url]);
return is;
});
Clazz_newMeth(C$, 'getInputStreamAndResponse$java_net_URL$Z', function (url, allowNWError) {
var is=C$.getAttachedStreamData$java_net_URL$Z(url, false);
if (is != null || this.getUseCaches$() && (is=p$1.getCachedStream$java_net_URL$Z.apply(this, [url, allowNWError])) != null ) {
return is;
}is=C$.attachStreamData$java_net_URL$O(url, p$1.doAjax$Z.apply(this, [this.ajax == null ]));
if (this.getUseCaches$() && is != null ) {
p$1.isNetworkError$java_io_BufferedInputStream.apply(this, [is]);
p$1.setCachedStream$java_net_URL.apply(this, [url]);
return is;
}p$1.isNetworkError$java_io_BufferedInputStream.apply(this, [is]);
return is;
}, p$1);
Clazz_newMeth(C$, 'getCachedStream$java_net_URL$Z', function (url, allowNWError) {
var data=C$.urlCache.get$O(url.toString());
if (data == null ) return null;
var isAjax=url.ajax ||false;
var bis=C$.getBIS$O$Z(data, isAjax);
return (!p$1.isNetworkError$java_io_BufferedInputStream.apply(this, [bis]) || allowNWError ? bis : null);
}, p$1);
Clazz_newMeth(C$, 'getBIS$O$Z', function (data, isJSON) {
if (data == null ) return null;
if (!isJSON) return $I$(4).toBIS$O(data);
var bis=$I$(4).toBIS$O("");
bis._jsonData = data;
return bis;
}, 1);
Clazz_newMeth(C$, 'setCachedStream$java_net_URL', function (url) {
var data=url._streamData ||null;
if (data != null ) {
var code=this.responseCode;
data._responseCode = code;
C$.urlCache.put$TK$TV(url.toString(), data);
}}, p$1);
Clazz_newMeth(C$, 'isNetworkError$java_io_BufferedInputStream', function (is) {
if (is != null ) {
this.responseCode=200;
if (is._jsonData ||false) return false;
is.mark$I(15);
var bytes=Clazz_array(Byte.TYPE, [13]);
try {
is.read$BA(bytes);
is.reset$();
for (var i=C$.NETWORK_ERROR.length; --i >= 0; ) if (bytes[i] != C$.NETWORK_ERROR[i]) return false;
} catch (e) {
if (Clazz_exceptionOf(e,"java.io.IOException")){
} else {
throw e;
}
}
}this.responseCode=404;
return true;
}, p$1);
Clazz_newMeth(C$, 'getAttachedStreamData$java_net_URL$Z', function (url, andDelete) {
var data=null;
var isJSON=false;
data = url._streamData; if (andDelete) url._streamData = null;
isJSON = (data && url.ajax && url.ajax.dataType == "json")
return C$.getBIS$O$Z(data, isJSON);
}, 1);
Clazz_newMeth(C$, 'attachStreamData$java_net_URL$O', function (url, o) {
url._streamData = o;
return C$.getBIS$O$Z(o, url.ajax ||false);
}, 1);
Clazz_newMeth(C$, 'getContents$', function () {
return p$1.doAjax$Z.apply(this, [false]);
});
Clazz_newMeth(C$, 'getResponseCode$', function () {
if (this.responseCode == -1) {
try {
p$1.getInputStreamAndResponse$java_net_URL$Z.apply(this, [this.url, true]);
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
} else {
throw e;
}
}
}return this.responseCode;
});
Clazz_newMeth(C$, 'disconnect$', function () {
});
Clazz_newMeth(C$, 'usingProxy$', function () {
return false;
});
Clazz_newMeth(C$, 'getContentLength$', function () {
try {
var is=this.getInputStream$();
return is.available$();
} catch (e) {
if (Clazz_exceptionOf(e,"java.io.IOException")){
return -1;
} else {
throw e;
}
}
});
;
(function(){var C$=Clazz_newClass(P$.AjaxURLConnection, "AjaxHttpsURLConnection", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javajs.util.AjaxURLConnection');
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
C$.implementz = [Clazz_load("javax.net.ssl.HttpsURLConnection")];
};
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_net_URL', function (url) {
C$.superclazz.c$$java_net_URL.apply(this, [url]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util"),I$=[[0,'java.util.Hashtable','javajs.util.AjaxURLStreamHandler']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AjaxURLStreamHandlerFactory", null, null, 'java.net.URLStreamHandlerFactory');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.htFactories=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.htFactories=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['createURLStreamHandler$S','createURLStreamHandler$'], function (protocol) {
var fac=this.htFactories.get$O(protocol);
if (fac == null ) this.htFactories.put$TK$TV(protocol, fac=Clazz_new_($I$(2).c$$S,[protocol]));
return (fac.protocol == null ? null : fac);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util"),I$=[[0,'java.lang.reflect.Array','javajs.util.T3','java.util.Arrays','javajs.util.Lst','java.util.Hashtable']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AU");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'ensureLength$O$I', function (array, minimumLength) {
return (array != null && C$.getLength$O(array) >= minimumLength ? array : C$.arrayCopyObject$O$I(array, minimumLength));
}, 1);
Clazz_newMeth(C$, 'ensureLengthS$SA$I', function (array, minimumLength) {
return (array != null && array.length >= minimumLength ? array : C$.arrayCopyS$SA$I(array, minimumLength));
}, 1);
Clazz_newMeth(C$, 'ensureLengthA$FA$I', function (array, minimumLength) {
return (array != null && array.length >= minimumLength ? array : C$.arrayCopyF$FA$I(array, minimumLength));
}, 1);
Clazz_newMeth(C$, 'ensureLengthI$IA$I', function (array, minimumLength) {
return (array != null && array.length >= minimumLength ? array : C$.arrayCopyI$IA$I(array, minimumLength));
}, 1);
Clazz_newMeth(C$, 'ensureLengthShort$HA$I', function (array, minimumLength) {
return (array != null && array.length >= minimumLength ? array : C$.arrayCopyShort$HA$I(array, minimumLength));
}, 1);
Clazz_newMeth(C$, 'ensureLengthByte$BA$I', function (array, minimumLength) {
return (array != null && array.length >= minimumLength ? array : C$.arrayCopyByte$BA$I(array, minimumLength));
}, 1);
Clazz_newMeth(C$, 'doubleLength$O', function (array) {
return C$.arrayCopyObject$O$I(array, (array == null ? 16 : 2 * C$.getLength$O(array)));
}, 1);
Clazz_newMeth(C$, 'doubleLengthS$SA', function (array) {
return C$.arrayCopyS$SA$I(array, (array == null ? 16 : 2 * array.length));
}, 1);
Clazz_newMeth(C$, 'doubleLengthF$FA', function (array) {
return C$.arrayCopyF$FA$I(array, (array == null ? 16 : 2 * array.length));
}, 1);
Clazz_newMeth(C$, 'doubleLengthI$IA', function (array) {
return C$.arrayCopyI$IA$I(array, (array == null ? 16 : 2 * array.length));
}, 1);
Clazz_newMeth(C$, 'doubleLengthShort$HA', function (array) {
return C$.arrayCopyShort$HA$I(array, (array == null ? 16 : 2 * array.length));
}, 1);
Clazz_newMeth(C$, 'doubleLengthByte$BA', function (array) {
return C$.arrayCopyByte$BA$I(array, (array == null ? 16 : 2 * array.length));
}, 1);
Clazz_newMeth(C$, 'doubleLengthBool$ZA', function (array) {
return C$.arrayCopyBool$ZA$I(array, (array == null ? 16 : 2 * array.length));
}, 1);
Clazz_newMeth(C$, 'deleteElements$O$I$I', function (array, firstElement, nElements) {
if (nElements == 0 || array == null ) return array;
var oldLength=C$.getLength$O(array);
if (firstElement >= oldLength) return array;
var n=oldLength - (firstElement + nElements);
if (n < 0) n=0;
var t=C$.newInstanceO$O$I(array, firstElement + n);
if (firstElement > 0) System.arraycopy$O$I$O$I$I(array, 0, t, 0, firstElement);
if (n > 0) System.arraycopy$O$I$O$I$I(array, firstElement + nElements, t, firstElement, n);
return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyObject$O$I', function (array, newLength) {
var oldLength=(array == null ? -1 : C$.getLength$O(array));
if (newLength < 0) newLength=oldLength;
if (newLength == oldLength) return array;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=C$.newInstanceO$O$I(array, newLength);
if (oldLength > 0) System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
return t;
}, 1);
Clazz_newMeth(C$, 'newInstanceO$O$I', function (array, n) {
return Clazz_array(array.getClass$().getComponentType$(), n);
}, 1);
Clazz_newMeth(C$, 'getLength$O', function (array) {
{
return array.length
}
}, 1);
Clazz_newMeth(C$, 'arrayCopyS$SA$I', function (array, newLength) {
var oldLength=(array == null ? -1 : array.length);
if (newLength < 0) newLength=oldLength;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=Clazz_array(String, [newLength]);
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyII$IAA$I', function (array, newLength) {
var t=C$.newInt2$I(newLength);
if (array != null ) {
var oldLength=array.length;
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyPt$javajs_util_T3A$I', function (array, newLength) {
if (newLength < 0) newLength=array.length;
var t=Clazz_array($I$(2), [newLength]);
if (array != null ) {
var oldLength=array.length;
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyF$FA$I', function (array, newLength) {
var oldLength=(array == null ? -1 : array.length);
if (newLength < 0) newLength=oldLength;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=Clazz_array(Float.TYPE, [newLength]);
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyI$IA$I', function (array, newLength) {
var oldLength=(array == null ? -1 : array.length);
if (newLength < 0) newLength=oldLength;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=Clazz_array(Integer.TYPE, [newLength]);
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyRangeI$IA$I$I', function (array, i0, n) {
if (array == null ) return null;
var oldLength=array.length;
if (n == -1) n=oldLength;
if (n == -2) n=(oldLength/2|0);
{
return Clazz_array(-1, array, i0, n);
}
}, 1);
Clazz_newMeth(C$, 'arrayCopyRangeRevI$IA$I$I', function (array, i0, n) {
if (array == null ) return null;
{
return Clazz_array(-1, array, i0, n).reverse();
}
}, 1);
Clazz_newMeth(C$, 'arrayCopyShort$HA$I', function (array, newLength) {
var oldLength=(array == null ? -1 : array.length);
if (newLength < 0) newLength=oldLength;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=Clazz_array(Short.TYPE, [newLength]);
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyByte$BA$I', function (array, newLength) {
var oldLength=(array == null ? -1 : array.length);
if (newLength < 0) newLength=oldLength;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=Clazz_array(Byte.TYPE, [newLength]);
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'arrayCopyBool$ZA$I', function (array, newLength) {
var oldLength=(array == null ? -1 : array.length);
if (newLength < 0) newLength=oldLength;
{
if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength);
}
var t=Clazz_array(Boolean.TYPE, [newLength]);
if (array != null ) {
System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength);
}return t;
}, 1);
Clazz_newMeth(C$, 'swapInt$IA$I$I', function (array, indexA, indexB) {
var t=array[indexA];
array[indexA]=array[indexB];
array[indexB]=t;
}, 1);
Clazz_newMeth(C$, 'dumpArray$S$FAA$I$I$I$I', function (msg, A, x1, x2, y1, y2) {
var s="dumpArray: " + msg + "\n" ;
for (var x=x1; x <= x2; x++) s += "\t*" + x + "*" ;
for (var y=y2; y >= y1; y--) {
s += "\n*" + y + "*" ;
for (var x=x1; x <= x2; x++) s += "\t" + (new Float(x < A.length && y < A[x].length ? A[x][y] : NaN).toString());
}
return s;
}, 1);
Clazz_newMeth(C$, 'dumpIntArray$IA$I', function (A, n) {
var str="";
for (var i=0; i < n; i++) str += " " + A[i];
return str;
}, 1);
Clazz_newMeth(C$, 'sortedItem$javajs_util_Lst$I', function (v, n) {
if (v.size$() == 0) return null;
if (v.size$() == 1) return v.get$I(0);
var keys=v.toArray$TTA(Clazz_array(String, [v.size$()]));
$I$(3).sort$OA(keys);
return keys[n % keys.length];
}, 1);
Clazz_newMeth(C$, 'createArrayOfArrayList$I', function (size) {
return Clazz_array($I$(4), [size]);
}, 1);
Clazz_newMeth(C$, 'createArrayOfHashtable$I', function (size) {
return Clazz_array($I$(5), [size]);
}, 1);
Clazz_newMeth(C$, 'swap$OA$I$I', function (o, i, j) {
var oi=o[i];
o[i]=o[j];
o[j]=oi;
}, 1);
Clazz_newMeth(C$, 'newFloat2$I', function (n) {
return Clazz_array(Float.TYPE, [n, null]);
}, 1);
Clazz_newMeth(C$, 'newBool2$I', function (n) {
return Clazz_array(Boolean.TYPE, [n, null]);
}, 1);
Clazz_newMeth(C$, 'newInt2$I', function (n) {
return Clazz_array(Integer.TYPE, [n, null]);
}, 1);
Clazz_newMeth(C$, 'newInt3$I$I', function (nx, ny) {
return (ny < 0 ? Clazz_array(Integer.TYPE, [nx, null, null]) : Clazz_array(Integer.TYPE, [nx, ny, null]));
}, 1);
Clazz_newMeth(C$, 'newFloat3$I$I', function (nx, ny) {
return (ny < 0 ? Clazz_array(Float.TYPE, [nx, null, null]) : Clazz_array(Float.TYPE, [nx, ny, null]));
}, 1);
Clazz_newMeth(C$, 'newInt4$I', function (n) {
return Clazz_array(Integer.TYPE, [n, null, null, null]);
}, 1);
Clazz_newMeth(C$, 'newShort2$I', function (n) {
return Clazz_array(Short.TYPE, [n, null]);
}, 1);
Clazz_newMeth(C$, 'newByte2$I', function (n) {
return Clazz_array(Byte.TYPE, [n, null]);
}, 1);
Clazz_newMeth(C$, 'newDouble2$I', function (n) {
return Clazz_array(Double.TYPE, [n, null]);
}, 1);
Clazz_newMeth(C$, 'removeMapKeys$java_util_Map$S', function (map, root) {
var list=Clazz_new_($I$(4));
for (var key, $key = map.keySet$().iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) if (key.startsWith$S(root)) list.addLast$TV(key);
for (var i=list.size$(); --i >= 0; ) map.remove$O(list.get$I(i));
return list.size$();
}, 1);
Clazz_newMeth(C$, 'isAS$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(String, -1));
}, 1);
Clazz_newMeth(C$, 'isASS$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(String, -2));
}, 1);
Clazz_newMeth(C$, 'isAP$O', function (x) {
return Clazz_instanceOf(x, Clazz_array($I$(2), -1));
}, 1);
Clazz_newMeth(C$, 'isAF$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Float.TYPE, -1));
}, 1);
Clazz_newMeth(C$, 'isAFloat$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Float, -1));
}, 1);
Clazz_newMeth(C$, 'isAD$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Double.TYPE, -1));
}, 1);
Clazz_newMeth(C$, 'isADD$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Double.TYPE, -2));
}, 1);
Clazz_newMeth(C$, 'isAB$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Byte.TYPE, -1));
}, 1);
Clazz_newMeth(C$, 'isAI$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Integer.TYPE, -1));
}, 1);
Clazz_newMeth(C$, 'isAII$O', function (x) {
return (Clazz_instanceOf(x, Clazz_array(Integer.TYPE, -2)));
}, 1);
Clazz_newMeth(C$, 'isAFF$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Float.TYPE, -2));
}, 1);
Clazz_newMeth(C$, 'isAFFF$O', function (x) {
return Clazz_instanceOf(x, Clazz_array(Float.TYPE, -3));
}, 1);
Clazz_newMeth(C$, 'ensureSignedBytes$BA', function (b) {
if (b != null ) {
{
for (var i = b.length; --i >= 0;) { var j = b[i] & 0xFF; if (j >= 0x80) j -= 0x100; b[i] = j; }
}
}return b;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util");
var C$=Clazz_newClass(P$, "JSThread", null, 'Thread');
C$.threadCount=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.threadCount=0;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.isJS=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.isJS=true ||false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$ThreadGroup$S.apply(this, [null, "JSThread-" + (++C$.threadCount)]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.c$$ThreadGroup$S.apply(this, [null, name]);
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (group, name) {
C$.superclazz.c$$ThreadGroup$S.apply(this, [group, name]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'run$', function () {
this.run1$I(0);
});
Clazz_newMeth(C$, 'start$', function () {
{
Clazz_load("swingjs.JSToolkit").dispatch$O$I$I(this, 1, 0);
}
});
Clazz_newMeth(C$, 'run1$I', function (state) {
var executeFinally=true;
try {
while (!Thread.interrupted$()){
switch (state) {
case 0:
if (!this.myInit$()) return;
state=1;
continue;
case 1:
if (!this.isLooping$()) {
state=2;
continue;
}if (this.myLoop$() && this.sleepAndReturn$I$I(this.getDelayMillis$(), state) ) {
executeFinally=false;
return;
}continue;
case 2:
this.whenDone$();
return;
}
}
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
this.onException$Exception(e);
state=2;
} else {
throw e;
}
} finally {
if (executeFinally) this.doFinally$();
}
});
Clazz_newMeth(C$, 'sleepAndReturn$I$I', function (delay, state) {
if (!this.isJS) {
Thread.sleep$J(delay);
return false;
}var me=this;
var r=((P$.JSThread$1||
(function(){var C$=Clazz_newClass(P$, "JSThread$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
this.$finals$.me.run1$I(this.$finals$.state);
});
})()
), Clazz_new_(P$.JSThread$1.$init$, [this, {me: me, state: state}]));
{
setTimeout( function() { java.awt.Toolkit.getDefaultToolkit$().getSystemEventQueue$().postEvent$java_awt_AWTEvent( Clazz_new_(java.awt.event.InvocationEvent.c$$O$Runnable,[me, r]))}, delay);
}
return true;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util"),I$=[];
var C$=Clazz_newClass(P$, "Lst", null, 'java.util.ArrayList');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['addLast$TV'], function (v) {
return C$.superclazz.prototype.add$TE.apply(this, [v]);
});
Clazz_newMeth(C$, 'removeItemAt$I', function (location) {
return C$.superclazz.prototype.remove$I.apply(this, [location]);
});
Clazz_newMeth(C$, 'removeObj$O', function (v) {
return C$.superclazz.prototype.remove$O.apply(this, [v]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util"),I$=[[0,'javajs.util.DF','javajs.util.SB','javajs.util.AU','java.lang.reflect.Array']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "PT");
C$.tensScale=null;
C$.decimalScale=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.tensScale=Clazz_array(Float.TYPE, -1, [10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0]);
C$.decimalScale=Clazz_array(Float.TYPE, -1, [0.1, 0.01, 0.001, 1.0E-4, 1.0E-5, 1.0E-6, 1.0E-7, 1.0E-8, 1.0E-9]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'parseInt$S', function (str) {
return C$.parseIntNext$S$IA(str, Clazz_array(Integer.TYPE, -1, [0]));
}, 1);
Clazz_newMeth(C$, 'parseIntNext$S$IA', function (str, next) {
var cch=str.length$();
if (next[0] < 0 || next[0] >= cch ) return -2147483648;
return C$.parseIntChecked$S$I$IA(str, cch, next);
}, 1);
Clazz_newMeth(C$, 'parseIntChecked$S$I$IA', function (str, ichMax, next) {
var digitSeen=false;
var value=0;
var ich=next[0];
if (ich < 0) return -2147483648;
var ch;
while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich;
var negative=false;
if (ich < ichMax && (str.charCodeAt$I(ich)) == 45 ) {
negative=true;
++ich;
}while (ich < ichMax && (ch=str.charAt$I(ich).$c()) >= 48 && ch <= 57 ){
value=value * 10 + (ch - 48);
digitSeen=true;
++ich;
}
if (!digitSeen) value=-2147483648;
else if (negative) value=-value;
next[0]=ich;
return value;
}, 1);
Clazz_newMeth(C$, 'isWhiteSpace$S$I', function (str, ich) {
var ch;
return (ich >= 0 && ((ch=str.charAt$I(ich)) == " " || ch == "\t" || ch == "\n" ) );
}, 1);
Clazz_newMeth(C$, 'parseFloatChecked$S$I$IA$Z', function (str, ichMax, next, isStrict) {
var digitSeen=false;
var ich=next[0];
if (isStrict && str.indexOf$I("\n") != str.lastIndexOf$I("\n") ) return NaN;
while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich;
var negative=false;
if (ich < ichMax && str.charAt$I(ich) == "-" ) {
++ich;
negative=true;
}var ch=0;
var ival=0.0;
var ival2=0.0;
while (ich < ichMax && (ch=str.charAt$I(ich).$c()) >= 48 && ch <= 57 ){
ival=(ival * 10.0) + (ch - 48) * 1.0;
++ich;
digitSeen=true;
}
var isDecimal=false;
var iscale=0;
var nzero=(ival == 0 ? -1 : 0);
if (ch == 46 ) {
isDecimal=true;
while (++ich < ichMax && (ch=str.charAt$I(ich).$c()) >= 48 && ch <= 57 ){
digitSeen=true;
if (nzero < 0) {
if (ch == 48) {
nzero--;
continue;
}nzero=-nzero;
}if (iscale < C$.decimalScale.length) {
ival2=(ival2 * 10.0) + (ch - 48) * 1.0;
iscale++;
}}
}var value;
if (!digitSeen) {
value=NaN;
} else if (ival2 > 0 ) {
value=ival2 * C$.decimalScale[iscale - 1];
if (nzero > 1) {
if (nzero - 2 < C$.decimalScale.length) {
value *= C$.decimalScale[nzero - 2];
} else {
value *= Math.pow(10, 1 - nzero);
}} else {
value += ival;
}} else {
value=ival;
}var isExponent=false;
if (ich < ichMax && (ch == 69 || ch == 101 || ch == 68 ) ) {
isExponent=true;
if (++ich >= ichMax) return NaN;
ch=str.charAt$I(ich).$c();
if ((ch == 43 ) && (++ich >= ichMax) ) return NaN;
next[0]=ich;
var exponent=C$.parseIntChecked$S$I$IA(str, ichMax, next);
if (exponent == -2147483648) return NaN;
if (exponent > 0 && exponent <= C$.tensScale.length ) value *= C$.tensScale[exponent - 1];
else if (exponent < 0 && -exponent <= C$.decimalScale.length ) value *= C$.decimalScale[-exponent - 1];
else if (exponent != 0) value *= Math.pow(10, exponent);
} else {
next[0]=ich;
}if (negative) value=-value;
if (value == Infinity ) value=3.4028235E38;
return (!isStrict || (!isExponent || isDecimal ) && C$.checkTrailingText$S$I$I(str, next[0], ichMax) ? value : NaN);
}, 1);
Clazz_newMeth(C$, 'checkTrailingText$S$I$I', function (str, ich, ichMax) {
var ch;
while (ich < ichMax && (C$.isWhitespace$C(ch=str.charAt$I(ich)) || ch == ";" ) )++ich;
return (ich == ichMax);
}, 1);
Clazz_newMeth(C$, 'parseFloatArray$S', function (str) {
return C$.parseFloatArrayNext$S$IA$FA$S$S(str, Clazz_array(Integer.TYPE, [1]), null, null, null);
}, 1);
Clazz_newMeth(C$, 'parseFloatArrayInfested$SA$FA', function (tokens, data) {
var len=data.length;
var nTokens=tokens.length;
var n=0;
var max=0;
for (var i=0; i >= 0 && i < len && n < nTokens ; i++) {
var f;
while (Float.isNaN$F(f=C$.parseFloat$S(tokens[n++])) && n < nTokens ){
}
if (!Float.isNaN$F(f)) data[(max=i)]=f;
if (n == nTokens) break;
}
return max + 1;
}, 1);
Clazz_newMeth(C$, 'parseFloatArrayNext$S$IA$FA$S$S', function (str, next, f, strStart, strEnd) {
var n=0;
var pt=next[0];
if (pt >= 0) {
if (strStart != null ) {
var p=str.indexOf$S$I(strStart, pt);
if (p >= 0) next[0]=p + strStart.length$();
}str=str.substring$I(next[0]);
pt=(strEnd == null ? -1 : str.indexOf$S(strEnd));
if (pt < 0) pt=str.length$();
else str=str.substring$I$I(0, pt);
next[0]+=pt + 1;
var tokens=C$.getTokens$S(str);
if (f == null ) f=Clazz_array(Float.TYPE, [tokens.length]);
n=C$.parseFloatArrayInfested$SA$FA(tokens, f);
}if (f == null ) return Clazz_array(Float.TYPE, [0]);
for (var i=n; i < f.length; i++) f[i]=NaN;
return f;
}, 1);
Clazz_newMeth(C$, 'parseFloatRange$S$I$IA', function (str, ichMax, next) {
var cch=str.length$();
if (ichMax > cch) ichMax=cch;
if (next[0] < 0 || next[0] >= ichMax ) return NaN;
return C$.parseFloatChecked$S$I$IA$Z(str, ichMax, next, false);
}, 1);
Clazz_newMeth(C$, 'parseFloatNext$S$IA', function (str, next) {
var cch=(str == null ? -1 : str.length$());
return (next[0] < 0 || next[0] >= cch ? NaN : C$.parseFloatChecked$S$I$IA$Z(str, cch, next, false));
}, 1);
Clazz_newMeth(C$, 'parseFloatStrict$S', function (str) {
var cch=str.length$();
if (cch == 0) return NaN;
return C$.parseFloatChecked$S$I$IA$Z(str, cch, Clazz_array(Integer.TYPE, -1, [0]), true);
}, 1);
Clazz_newMeth(C$, 'parseFloat$S', function (str) {
return C$.parseFloatNext$S$IA(str, Clazz_array(Integer.TYPE, -1, [0]));
}, 1);
Clazz_newMeth(C$, 'parseIntRadix$S$I', function (s, i) {
return Integer.parseInt$S$I(s, i);
}, 1);
Clazz_newMeth(C$, 'getTokens$S', function (line) {
return C$.getTokensAt$S$I(line, 0);
}, 1);
Clazz_newMeth(C$, 'parseToken$S', function (str) {
return C$.parseTokenNext$S$IA(str, Clazz_array(Integer.TYPE, -1, [0]));
}, 1);
Clazz_newMeth(C$, 'parseTrimmed$S', function (str) {
return C$.parseTrimmedRange$S$I$I(str, 0, str.length$());
}, 1);
Clazz_newMeth(C$, 'parseTrimmedAt$S$I', function (str, ichStart) {
return C$.parseTrimmedRange$S$I$I(str, ichStart, str.length$());
}, 1);
Clazz_newMeth(C$, 'parseTrimmedRange$S$I$I', function (str, ichStart, ichMax) {
var cch=str.length$();
if (ichMax < cch) cch=ichMax;
if (cch < ichStart) return "";
return C$.parseTrimmedChecked$S$I$I(str, ichStart, cch);
}, 1);
Clazz_newMeth(C$, 'getTokensAt$S$I', function (line, ich) {
if (line == null ) return null;
var cchLine=line.length$();
if (ich < 0 || ich > cchLine ) return null;
var tokenCount=C$.countTokens$S$I(line, ich);
var tokens=Clazz_array(String, [tokenCount]);
var next=Clazz_array(Integer.TYPE, [1]);
next[0]=ich;
for (var i=0; i < tokenCount; ++i) tokens[i]=C$.parseTokenChecked$S$I$IA(line, cchLine, next);
return tokens;
}, 1);
Clazz_newMeth(C$, 'countChar$S$C', function (line, c) {
var n=0;
for (var i=line.lastIndexOf$I(c) + 1; --i >= 0; ) if (line.charAt$I(i) == c) n++;
return n;
}, 1);
Clazz_newMeth(C$, 'countTokens$S$I', function (line, ich) {
var tokenCount=0;
if (line != null ) {
var ichMax=line.length$();
while (true){
while (ich < ichMax && C$.isWhiteSpace$S$I(line, ich) )++ich;
if (ich == ichMax) break;
++tokenCount;
do {
++ich;
} while (ich < ichMax && !C$.isWhiteSpace$S$I(line, ich) );
}
}return tokenCount;
}, 1);
Clazz_newMeth(C$, 'parseTokenNext$S$IA', function (str, next) {
var cch=str.length$();
return (next[0] < 0 || next[0] >= cch ? null : C$.parseTokenChecked$S$I$IA(str, cch, next));
}, 1);
Clazz_newMeth(C$, 'parseTokenRange$S$I$IA', function (str, ichMax, next) {
var cch=str.length$();
if (ichMax > cch) ichMax=cch;
return (next[0] < 0 || next[0] >= ichMax ? null : C$.parseTokenChecked$S$I$IA(str, ichMax, next));
}, 1);
Clazz_newMeth(C$, 'parseTokenChecked$S$I$IA', function (str, ichMax, next) {
var ich=next[0];
while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich;
var ichNonWhite=ich;
while (ich < ichMax && !C$.isWhiteSpace$S$I(str, ich) )++ich;
next[0]=ich;
return (ichNonWhite == ich ? null : str.substring$I$I(ichNonWhite, ich));
}, 1);
Clazz_newMeth(C$, 'parseTrimmedChecked$S$I$I', function (str, ich, ichMax) {
while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich;
var ichLast=ichMax - 1;
while (ichLast >= ich && C$.isWhiteSpace$S$I(str, ichLast) )--ichLast;
return (ichLast < ich ? "" : str.substring$I$I(ich, ichLast + 1));
}, 1);
Clazz_newMeth(C$, 'parseIntRange$S$I$IA', function (str, ichMax, next) {
var cch=str.length$();
if (ichMax > cch) ichMax=cch;
return (next[0] < 0 || next[0] >= ichMax ? -2147483648 : C$.parseIntChecked$S$I$IA(str, ichMax, next));
}, 1);
Clazz_newMeth(C$, 'parseFloatArrayData$SA$FA', function (tokens, data) {
C$.parseFloatArrayDataN$SA$FA$I(tokens, data, data.length);
}, 1);
Clazz_newMeth(C$, 'parseFloatArrayDataN$SA$FA$I', function (tokens, data, nData) {
for (var i=nData; --i >= 0; ) data[i]=(i >= tokens.length ? NaN : C$.parseFloat$S(tokens[i]));
}, 1);
Clazz_newMeth(C$, 'split$S$S', function (text, run) {
if (text.length$() == 0) return Clazz_array(String, [0]);
var n=1;
var i=text.indexOf$S(run);
var lines;
var runLen=run.length$();
if (i < 0 || runLen == 0 ) {
lines=Clazz_array(String, [1]);
lines[0]=text;
return lines;
}var len=text.length$() - runLen;
for (; i >= 0 && i < len ; n++) i=text.indexOf$S$I(run, i + runLen);
lines=Clazz_array(String, [n]);
i=0;
var ipt=0;
var pt=0;
for (; (ipt=text.indexOf$S$I(run, i)) >= 0 && pt + 1 < n ; ) {
lines[pt++]=text.substring$I$I(i, ipt);
i=ipt + runLen;
}
if (text.indexOf$S$I(run, len) != len) len+=runLen;
lines[pt]=text.substring$I$I(i, len);
return lines;
}, 1);
Clazz_newMeth(C$, 'getQuotedStringAt$S$I', function (line, ipt0) {
var next=Clazz_array(Integer.TYPE, -1, [ipt0]);
return C$.getQuotedStringNext$S$IA(line, next);
}, 1);
Clazz_newMeth(C$, 'getQuotedStringNext$S$IA', function (line, next) {
var i=next[0];
if (i < 0 || (i=line.indexOf$S$I("\"", i)) < 0 ) return "";
var pt=i + 1;
var len=line.length$();
while (++i < len && line.charAt$I(i) != "\"" )if (line.charAt$I(i) == "\\") i++;
next[0]=i + 1;
return line.substring$I$I(pt, i);
}, 1);
Clazz_newMeth(C$, 'getQuotedOrUnquotedAttribute$S$S', function (line, key) {
if (line == null || key == null ) return null;
var pt=line.toLowerCase$().indexOf$S(key.toLowerCase$() + "=");
if (pt < 0 || (pt=pt + key.length$() + 1 ) >= line.length$() ) return "";
var c=line.charAt$I(pt);
switch (c.$c()) {
case 39:
case 34:
pt++;
break;
default:
c=" ";
line += " ";
}
var pt1=line.indexOf$I$I(c, pt);
return (pt1 < 0 ? null : line.substring$I$I(pt, pt1));
}, 1);
Clazz_newMeth(C$, 'getCSVString$S$IA', function (line, next) {
var i=next[1];
if (i < 0 || (i=line.indexOf$S$I("\"", i)) < 0 ) return null;
var pt=next[0]=i;
var len=line.length$();
var escaped=false;
var haveEscape=false;
while (++i < len && (line.charAt$I(i) != "\"" || (escaped=(i + 1 < len && line.charAt$I(i + 1) == "\"" )) ) )if (escaped) {
escaped=false;
haveEscape=true;
i++;
}
if (i >= len) {
next[1]=-1;
return null;
}next[1]=i + 1;
var s=line.substring$I$I(pt + 1, i);
return (haveEscape ? C$.rep$S$S$S(C$.rep$S$S$S(s, "\"\"", "\u0000"), "\u0000", "\"") : s);
}, 1);
Clazz_newMeth(C$, 'isOneOf$S$S', function (key, semiList) {
if (semiList.length$() == 0) return false;
if (semiList.charAt$I(0) != ";") semiList=";" + semiList + ";" ;
return key.indexOf$S(";") < 0 && semiList.indexOf$S(';' + key + ';' ) >= 0 ;
}, 1);
Clazz_newMeth(C$, 'getQuotedAttribute$S$S', function (info, name) {
var i=info.indexOf$S(name + "=");
return (i < 0 ? null : C$.getQuotedStringAt$S$I(info, i));
}, 1);
Clazz_newMeth(C$, 'approx$F$F', function (f, n) {
return Math.round(f * n) / n;
}, 1);
Clazz_newMeth(C$, 'rep$S$S$S', function (str, strFrom, strTo) {
if (str == null || strFrom.length$() == 0 || str.indexOf$S(strFrom) < 0 ) return str;
var isOnce=(strTo.indexOf$S(strFrom) >= 0);
do {
str=str.replace$CharSequence$CharSequence(strFrom, strTo);
} while (!isOnce && str.indexOf$S(strFrom) >= 0 );
return str;
}, 1);
Clazz_newMeth(C$, 'formatF$F$I$I$Z$Z', function (value, width, precision, alignLeft, zeroPad) {
return C$.formatS$S$I$I$Z$Z($I$(1).formatDecimal$F$I(value, precision), width, 0, alignLeft, zeroPad);
}, 1);
Clazz_newMeth(C$, 'formatD$D$I$I$Z$Z$Z', function (value, width, precision, alignLeft, zeroPad, allowOverflow) {
return C$.formatS$S$I$I$Z$Z($I$(1).formatDecimal$F$I(value, -1 - precision), width, 0, alignLeft, zeroPad);
}, 1);
Clazz_newMeth(C$, 'formatS$S$I$I$Z$Z', function (value, width, precision, alignLeft, zeroPad) {
if (value == null ) return "";
var len=value.length$();
if (precision != 2147483647 && precision > 0 && precision < len ) value=value.substring$I$I(0, precision);
else if (precision < 0 && len + precision >= 0 ) value=value.substring$I(len + precision + 1 );
var padLength=width - value.length$();
if (padLength <= 0) return value;
var isNeg=(zeroPad && !alignLeft && value.charAt$I(0) == "-" );
var padChar=(zeroPad ? "0" : " ");
var padChar0=(isNeg ? "-" : padChar);
var sb=Clazz_new_($I$(2));
if (alignLeft) sb.append$S(value);
sb.appendC$C(padChar0);
for (var i=padLength; --i > 0; ) sb.appendC$C(padChar);
if (!alignLeft) sb.append$S(isNeg ? padChar + value.substring$I(1) : value);
return sb.toString();
}, 1);
Clazz_newMeth(C$, 'replaceWithCharacter$S$S$C', function (str, strFrom, chTo) {
if (str == null ) return null;
for (var i=strFrom.length$(); --i >= 0; ) str=str.replace$C$C(strFrom.charAt$I(i), chTo);
return str;
}, 1);
Clazz_newMeth(C$, 'replaceAllCharacters$S$S$S', function (str, strFrom, strTo) {
for (var i=strFrom.length$(); --i >= 0; ) {
var chFrom=strFrom.substring$I$I(i, i + 1);
str=C$.rep$S$S$S(str, chFrom, strTo);
}
return str;
}, 1);
Clazz_newMeth(C$, 'trim$S$S', function (str, chars) {
if (str == null || str.length$() == 0 ) return str;
if (chars.length$() == 0) return str.trim$();
var len=str.length$();
var k=0;
while (k < len && chars.indexOf$I(str.charAt$I(k)) >= 0 )k++;
var m=str.length$() - 1;
while (m > k && chars.indexOf$I(str.charAt$I(m)) >= 0 )m--;
return str.substring$I$I(k, m + 1);
}, 1);
Clazz_newMeth(C$, 'trimQuotes$S', function (value) {
return (value != null && value.length$() > 1 && value.startsWith$S("\"") && value.endsWith$S("\"") ? value.substring$I$I(1, value.length$() - 1) : value);
}, 1);
Clazz_newMeth(C$, 'isNonStringPrimitive$O', function (info) {
return Clazz_instanceOf(info, "java.lang.Number") || Clazz_instanceOf(info, "java.lang.Boolean") ;
}, 1);
Clazz_newMeth(C$, 'toJSON$S$O', function (infoType, info) {
if (info == null ) return C$.packageJSON$S$S(infoType, null);
if (C$.isNonStringPrimitive$O(info)) return C$.packageJSON$S$S(infoType, info.toString());
var s=null;
var sb=null;
while (true){
if (Clazz_instanceOf(info, "java.lang.String")) {
s=info;
{
if (typeof s == "undefined") s = "null"
}
if (s.indexOf$S("{\"") != 0) {
s=C$.esc$S(s);
}break;
}if (Clazz_instanceOf(info, "javajs.api.JSONEncodable")) {
if ((s=(info).toJSON$()) == null ) s="null";
break;
}sb=Clazz_new_($I$(2));
if (Clazz_instanceOf(info, "java.util.Map")) {
sb.append$S("{ ");
var sep="";
for (var key, $key = (info).keySet$().iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) {
sb.append$S(sep).append$S(C$.packageJSON$S$S(key, C$.toJSON$S$O(null, (info).get$O(key))));
sep=",";
}
sb.append$S(" }");
break;
}if (Clazz_instanceOf(info, "javajs.util.Lst")) {
sb.append$S("[ ");
var n=(info).size$();
for (var i=0; i < n; i++) {
if (i > 0) sb.appendC$C(",");
sb.append$S(C$.toJSON$S$O(null, (info).get$I(i)));
}
sb.append$S(" ]");
break;
}if (Clazz_instanceOf(info, "javajs.util.M34")) {
var len=(Clazz_instanceOf(info, "javajs.util.M4") ? 4 : 3);
var x=Clazz_array(Float.TYPE, [len]);
var m=info;
sb.appendC$C("[");
for (var i=0; i < len; i++) {
if (i > 0) sb.appendC$C(",");
m.getRow$I$FA(i, x);
sb.append$S(C$.toJSON$S$O(null, x));
}
sb.appendC$C("]");
break;
}s=C$.nonArrayString$O(info);
if (s == null ) {
sb.append$S("[");
var n=$I$(3).getLength$O(info);
for (var i=0; i < n; i++) {
if (i > 0) sb.appendC$C(",");
sb.append$S(C$.toJSON$S$O(null, $I$(4).get$O$I(info, i)));
}
sb.append$S("]");
break;
}info=info.toString();
}
return C$.packageJSON$S$S(infoType, (s == null ? sb.toString() : s));
}, 1);
Clazz_newMeth(C$, 'nonArrayString$O', function (x) {
{
return (x.constructor == Array || x.BYTES_PER_ELEMENT ? null : x.toString());
}
}, 1);
Clazz_newMeth(C$, 'byteArrayToJSON$BA', function (data) {
var sb=Clazz_new_($I$(2));
sb.append$S("[");
var n=data.length;
for (var i=0; i < n; i++) {
if (i > 0) sb.appendC$C(",");
sb.appendI$I(data[i] & 255);
}
sb.append$S("]");
return sb.toString();
}, 1);
Clazz_newMeth(C$, 'packageJSON$S$S', function (infoType, info) {
return (infoType == null ? info : "\"" + infoType + "\": " + info );
}, 1);
Clazz_newMeth(C$, 'escapeUrl$S', function (url) {
url=C$.rep$S$S$S(url, "\n", "");
url=C$.rep$S$S$S(url, "%", "%25");
url=C$.rep$S$S$S(url, "#", "%23");
url=C$.rep$S$S$S(url, "[", "%5B");
url=C$.rep$S$S$S(url, "\\", "%5C");
url=C$.rep$S$S$S(url, "]", "%5D");
url=C$.rep$S$S$S(url, " ", "%20");
return url;
}, 1);
Clazz_newMeth(C$, 'esc$S', function (str) {
if (str == null || str.length$() == 0 ) return "\"\"";
var haveEscape=false;
var i=0;
for (; i < "\\\\\tt\rr\nn\"\"".length$(); i+=2) if (str.indexOf$I("\\\\\tt\rr\nn\"\"".charAt$I(i)) >= 0) {
haveEscape=true;
break;
}
if (haveEscape) while (i < "\\\\\tt\rr\nn\"\"".length$()){
var pt=-1;
var ch="\\\\\tt\rr\nn\"\"".charAt$I(i++);
var ch2="\\\\\tt\rr\nn\"\"".charAt$I(i++);
var sb=Clazz_new_($I$(2));
var pt0=0;
while ((pt=str.indexOf$I$I(ch, pt + 1)) >= 0){
sb.append$S(str.substring$I$I(pt0, pt)).appendC$C("\\").appendC$C(ch2);
pt0=pt + 1;
}
sb.append$S(str.substring$I$I(pt0, str.length$()));
str=sb.toString();
}
return "\"" + C$.escUnicode$S(str) + "\"" ;
}, 1);
Clazz_newMeth(C$, 'escUnicode$S', function (str) {
for (var i=str.length$(); --i >= 0; ) if ((str.charCodeAt$I(i)) > 127 ) {
var s="0000" + Integer.toHexString$I(str.charAt$I(i).$c());
str=str.substring$I$I(0, i) + "\\u" + s.substring$I(s.length$() - 4) + str.substring$I(i + 1) ;
}
return str;
}, 1);
Clazz_newMeth(C$, 'escF$F', function (f) {
var sf="" + new Float(f).toString();
{
if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0 && sf.indexOf("N") < 0 && sf.indexOf("n") < 0) sf += ".0";
}
return sf;
}, 1);
Clazz_newMeth(C$, 'join$SA$C$I', function (s, c, i0) {
if (s.length < i0) return null;
var sb=Clazz_new_($I$(2));
sb.append$S(s[i0++]);
for (var i=i0; i < s.length; i++) sb.appendC$C(c).append$S(s[i]);
return sb.toString();
}, 1);
Clazz_newMeth(C$, 'isLike$S$S', function (a, b) {
var areEqual=a.equals$O(b);
if (areEqual) return true;
var isStart=b.startsWith$S("*");
var isEnd=b.endsWith$S("*");
return (!isStart && !isEnd ) ? areEqual : isStart && isEnd ? b.length$() == 1 || a.contains$CharSequence(b.substring$I$I(1, b.length$() - 1)) : isStart ? a.endsWith$S(b.substring$I(1)) : a.startsWith$S(b.substring$I$I(0, b.length$() - 1));
}, 1);
Clazz_newMeth(C$, 'getMapValueNoCase$java_util_Map$S', function (h, key) {
if ("this".equals$O(key)) return h;
var val=h.get$O(key);
if (val == null ) for (var e, $e = h.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (e.getKey$().equalsIgnoreCase$S(key)) return e.getValue$();
return val;
}, 1);
Clazz_newMeth(C$, 'clean$S', function (s) {
return C$.rep$S$S$S(C$.replaceAllCharacters$S$S$S(s, " \t\n\r", " "), " ", " ").trim$();
}, 1);
Clazz_newMeth(C$, 'fdup$S$I$I', function (f, pt, n) {
var ch;
var count=0;
for (var i=pt; --i >= 1; ) {
if (C$.isDigit$C(ch=f.charAt$I(i))) continue;
switch (ch.$c()) {
case 46:
if (count++ != 0) return f;
continue;
case 45:
if (i != 1 && f.charAt$I(i - 1) != "." ) return f;
continue;
default:
return f;
}
}
var s=f.substring$I$I(0, pt + 1);
var sb=Clazz_new_($I$(2));
for (var i=0; i < n; i++) sb.append$S(s);
sb.append$S(f.substring$I(pt + 1));
return sb.toString();
}, 1);
Clazz_newMeth(C$, 'formatString$S$S$S$F$D$Z', function (strFormat, key, strT, floatT, doubleT, doOne) {
if (strFormat == null ) return null;
if ("".equals$O(strFormat)) return "";
var len=key.length$();
if (strFormat.indexOf$S("%") < 0 || len == 0 || strFormat.indexOf$S(key) < 0 ) return strFormat;
var strLabel="";
var ich;
var ichPercent;
var ichKey;
for (ich=0; (ichPercent=strFormat.indexOf$I$I("%", ich)) >= 0 && (ichKey=strFormat.indexOf$S$I(key, ichPercent + 1)) >= 0 ; ) {
if (ich != ichPercent) strLabel += strFormat.substring$I$I(ich, ichPercent);
ich=ichPercent + 1;
if (ichKey > ichPercent + 6) {
strLabel += "%";
continue;
}try {
var alignLeft=false;
if (strFormat.charAt$I(ich) == "-") {
alignLeft=true;
++ich;
}var zeroPad=false;
if (strFormat.charAt$I(ich) == "0") {
zeroPad=true;
++ich;
}var ch;
var width=0;
while ((ch=strFormat.charAt$I(ich)) >= "0" && (ch <= "9") ){
width=(10 * width) + (ch.$c() - 48);
++ich;
}
var precision=2147483647;
var isExponential=false;
if (strFormat.charAt$I(ich) == ".") {
++ich;
if ((ch=strFormat.charAt$I(ich)) == "-") {
isExponential=(strT == null );
++ich;
}if ((ch=strFormat.charAt$I(ich)) >= "0" && ch <= "9" ) {
precision=ch.$c() - 48;
++ich;
}if (isExponential) precision=-precision;
}var st=strFormat.substring$I$I(ich, ich + len);
if (!st.equals$O(key)) {
ich=ichPercent + 1;
strLabel += "%";
continue;
}ich+=len;
if (!Float.isNaN$F(floatT)) strLabel += C$.formatF$F$I$I$Z$Z(floatT, width, precision, alignLeft, zeroPad);
else if (strT != null ) strLabel += C$.formatS$S$I$I$Z$Z(strT, width, precision, alignLeft, zeroPad);
else if (!Double.isNaN$D(doubleT)) strLabel += C$.formatD$D$I$I$Z$Z$Z(doubleT, width, precision - 1, alignLeft, zeroPad, true);
if (doOne) break;
} catch (ioobe) {
if (Clazz_exceptionOf(ioobe,"IndexOutOfBoundsException")){
ich=ichPercent;
break;
} else {
throw ioobe;
}
}
}
strLabel += strFormat.substring$I(ich);
return strLabel;
}, 1);
Clazz_newMeth(C$, 'formatStringS$S$S$S', function (strFormat, key, strT) {
return C$.formatString$S$S$S$F$D$Z(strFormat, key, strT, NaN, NaN, false);
}, 1);
Clazz_newMeth(C$, 'formatStringF$S$S$F', function (strFormat, key, floatT) {
return C$.formatString$S$S$S$F$D$Z(strFormat, key, null, floatT, NaN, false);
}, 1);
Clazz_newMeth(C$, 'formatStringI$S$S$I', function (strFormat, key, intT) {
return C$.formatString$S$S$S$F$D$Z(strFormat, key, "" + intT, NaN, NaN, false);
}, 1);
Clazz_newMeth(C$, 'sprintf$S$S$OA', function (strFormat, list, values) {
if (values == null ) return strFormat;
var n=list.length$();
if (n == values.length) try {
for (var o=0; o < n; o++) {
if (values[o] == null ) continue;
switch ((list.charCodeAt$I(o))) {
case 115:
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "s", values[o], NaN, NaN, true);
break;
case 102:
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "f", null, (values[o]).floatValue$(), NaN, true);
break;
case 105:
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "d", "" + values[o], NaN, NaN, true);
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "i", "" + values[o], NaN, NaN, true);
break;
case 100:
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "e", null, NaN, (values[o]).doubleValue$(), true);
break;
case 112:
var pVal=values[o];
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "p", null, pVal.x, NaN, true);
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "p", null, pVal.y, NaN, true);
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "p", null, pVal.z, NaN, true);
break;
case 113:
var qVal=values[o];
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.x, NaN, true);
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.y, NaN, true);
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.z, NaN, true);
strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.w, NaN, true);
break;
case 83:
var sVal=values[o];
for (var i=0; i < sVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "s", sVal[i], NaN, NaN, true);
break;
case 70:
var fVal=values[o];
for (var i=0; i < fVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "f", null, fVal[i], NaN, true);
break;
case 73:
var iVal=values[o];
for (var i=0; i < iVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "d", "" + iVal[i], NaN, NaN, true);
for (var i=0; i < iVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "i", "" + iVal[i], NaN, NaN, true);
break;
case 68:
var dVal=values[o];
for (var i=0; i < dVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "e", null, NaN, dVal[i], true);
}
}
return C$.rep$S$S$S(strFormat, "%%", "%");
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
} else {
throw e;
}
}
System.out.println$S("TextFormat.sprintf error " + list + " " + strFormat );
return C$.rep$S$S$S(strFormat, "%", "?");
}, 1);
Clazz_newMeth(C$, 'formatCheck$S', function (strFormat) {
if (strFormat == null || strFormat.indexOf$I("p") < 0 && strFormat.indexOf$I("q") < 0 ) return strFormat;
strFormat=C$.rep$S$S$S(strFormat, "%%", "\u0001");
strFormat=C$.rep$S$S$S(strFormat, "%p", "%6.2p");
strFormat=C$.rep$S$S$S(strFormat, "%q", "%6.2q");
var format=C$.split$S$S(strFormat, "%");
var sb=Clazz_new_($I$(2));
sb.append$S(format[0]);
for (var i=1; i < format.length; i++) {
var f="%" + format[i];
var pt;
if (f.length$() >= 3) {
if ((pt=f.indexOf$I("p")) >= 0) f=C$.fdup$S$I$I(f, pt, 3);
if ((pt=f.indexOf$I("q")) >= 0) f=C$.fdup$S$I$I(f, pt, 4);
}sb.append$S(f);
}
return sb.toString().replace$C$C("\u0001", "%");
}, 1);
Clazz_newMeth(C$, 'leftJustify$javajs_util_SB$S$S', function (s, s1, s2) {
s.append$S(s2);
var n=s1.length$() - s2.length$();
if (n > 0) s.append$S(s1.substring$I$I(0, n));
}, 1);
Clazz_newMeth(C$, 'rightJustify$javajs_util_SB$S$S', function (s, s1, s2) {
var n=s1.length$() - s2.length$();
if (n > 0) s.append$S(s1.substring$I$I(0, n));
s.append$S(s2);
}, 1);
Clazz_newMeth(C$, 'safeTruncate$F$I', function (f, n) {
if (f > -0.001 && f < 0.001 ) f=0;
return (new Float(f).toString() + " ").substring$I$I(0, n);
}, 1);
Clazz_newMeth(C$, 'isWild$S', function (s) {
return s != null && (s.indexOf$S("*") >= 0 || s.indexOf$S("?") >= 0 ) ;
}, 1);
Clazz_newMeth(C$, 'isMatch$S$S$Z$Z', function (search, match, checkStar, allowInitialStar) {
if (search.equals$O(match)) return true;
var mLen=match.length$();
if (mLen == 0) return false;
var isStar0=(checkStar && allowInitialStar ? match.charAt$I(0) == "*" : false);
if (mLen == 1 && isStar0 ) return true;
var isStar1=(checkStar && match.endsWith$S("*") );
var haveQ=(match.indexOf$I("?") >= 0);
if (!haveQ) {
if (isStar0) return (isStar1 ? (mLen < 3 || search.indexOf$S(match.substring$I$I(1, mLen - 1)) >= 0 ) : search.endsWith$S(match.substring$I(1)));
else if (isStar1) return search.startsWith$S(match.substring$I$I(0, mLen - 1));
}var sLen=search.length$();
var qqqq="????";
var nq=4;
while (nq < sLen){
qqqq += qqqq;
nq+=4;
}
if (checkStar) {
if (isStar0) {
match=qqqq + match.substring$I(1);
mLen+=nq - 1;
}if (isStar1) {
match=match.substring$I$I(0, mLen - 1) + qqqq;
mLen+=nq - 1;
}}if (mLen < sLen) return false;
var ich=0;
while (mLen > sLen){
if (allowInitialStar && match.charAt$I(ich) == "?" ) {
++ich;
} else if (match.charAt$I(ich + mLen - 1) != "?") {
return false;
}--mLen;
}
for (var i=sLen; --i >= 0; ) {
var chm=match.charAt$I(ich + i);
if (chm == "?") continue;
var chs=search.charAt$I(i);
if (chm != chs && (chm != "\u0001" || chs != "?" ) ) return false;
}
return true;
}, 1);
Clazz_newMeth(C$, 'replaceQuotedStrings$S$javajs_util_Lst$javajs_util_Lst', function (s, list, newList) {
var n=list.size$();
for (var i=0; i < n; i++) {
var name=list.get$I(i);
var newName=newList.get$I(i);
if (!newName.equals$O(name)) s=C$.rep$S$S$S(s, "\"" + name + "\"" , "\"" + newName + "\"" );
}
return s;
}, 1);
Clazz_newMeth(C$, 'replaceStrings$S$javajs_util_Lst$javajs_util_Lst', function (s, list, newList) {
var n=list.size$();
for (var i=0; i < n; i++) {
var name=list.get$I(i);
var newName=newList.get$I(i);
if (!newName.equals$O(name)) s=C$.rep$S$S$S(s, name, newName);
}
return s;
}, 1);
Clazz_newMeth(C$, 'isDigit$C', function (ch) {
var c=ch.$c();
return (48 <= c && c <= 57 );
}, 1);
Clazz_newMeth(C$, 'isUpperCase$C', function (ch) {
var c=ch.$c();
return (65 <= c && c <= 90 );
}, 1);
Clazz_newMeth(C$, 'isLowerCase$C', function (ch) {
var c=ch.$c();
return (97 <= c && c <= 122 );
}, 1);
Clazz_newMeth(C$, 'isLetter$C', function (ch) {
var c=ch.$c();
return (65 <= c && c <= 90 || 97 <= c && c <= 122 );
}, 1);
Clazz_newMeth(C$, 'isLetterOrDigit$C', function (ch) {
var c=ch.$c();
return (65 <= c && c <= 90 || 97 <= c && c <= 122 || 48 <= c && c <= 57 );
}, 1);
Clazz_newMeth(C$, 'isWhitespace$C', function (ch) {
var c=ch.$c();
return (c >= 28 && c <= 32 || c >= 9 && c <= 13 );
}, 1);
Clazz_newMeth(C$, 'fixPtFloats$javajs_util_T3$F', function (pt, f) {
pt.x=Math.round(pt.x * f) / f;
pt.y=Math.round(pt.y * f) / f;
pt.z=Math.round(pt.z * f) / f;
}, 1);
Clazz_newMeth(C$, 'fixDouble$D$D', function (d, f) {
return Math.round(d * f) / f;
}, 1);
Clazz_newMeth(C$, 'parseFloatFraction$S', function (s) {
var pt=s.indexOf$S("/");
return (pt < 0 ? C$.parseFloat$S(s) : C$.parseFloat$S(s.substring$I$I(0, pt)) / C$.parseFloat$S(s.substring$I(pt + 1)));
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javajs.util"),I$=[];
var C$=Clazz_newClass(P$, "SB");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.sb=null;
this.s=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
{
this.s = "";
}
}, 1);
Clazz_newMeth(C$, 'newN$I', function (n) {
{
return new javajs.util.SB();
}
}, 1);
Clazz_newMeth(C$, 'newS$S', function (s) {
{
var sb = new javajs.util.SB();
sb.s = s;
return sb;
}
}, 1);
Clazz_newMeth(C$, 'append$S', function (s) {
{
this.s += s
}
return this;
});
Clazz_newMeth(C$, 'appendC$C', function (c) {
{
this.s += c;
}
return this;
});
Clazz_newMeth(C$, 'appendI$I', function (i) {
{
this.s += i
}
return this;
});
Clazz_newMeth(C$, 'appendB$Z', function (b) {
{
this.s += b
}
return this;
});
Clazz_newMeth(C$, 'appendF$F', function (f) {
{
var sf = "" + f;
if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0) sf += ".0" ;
this.s += sf;
}
return this;
});
Clazz_newMeth(C$, 'appendD$D', function (d) {
{
var sf = "" + d;
if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0) sf += ".0" ;
this.s += sf;
}
return this;
});
Clazz_newMeth(C$, 'appendSB$javajs_util_SB', function (buf) {
{
this.s += buf.s;
}
return this;
});
Clazz_newMeth(C$, 'appendO$O', function (data) {
if (data != null ) {
{
this.s += data.toString();
}
}return this;
});
Clazz_newMeth(C$, 'appendCB$CA$I$I', function (cb, off, len) {
{
this.s += cb.slice(off,off+len).join("");
}
});
Clazz_newMeth(C$, 'toString', function () {
{
return this.s;
}
});
Clazz_newMeth(C$, 'length$', function () {
{
return this.s.length;
}
});
Clazz_newMeth(C$, 'indexOf$S', function (s) {
{
return this.s.indexOf(s);
}
});
Clazz_newMeth(C$, 'charAt$I', function (i) {
{
return this.s.charAt(i);
}
});
Clazz_newMeth(C$, 'charCodeAt$I', function (i) {
{
return this.s.charCodeAt(i);
}
});
Clazz_newMeth(C$, 'setLength$I', function (n) {
{
this.s = this.s.substring(0, n);
}
});
Clazz_newMeth(C$, 'lastIndexOf$S', function (s) {
{
return this.s.lastIndexOf(s);
}
});
Clazz_newMeth(C$, 'indexOf2$S$I', function (s, i) {
{
return this.s.indexOf(s, i);
}
});
Clazz_newMeth(C$, 'substring$I', function (i) {
{
return this.s.substring(i);
}
});
Clazz_newMeth(C$, 'substring2$I$I', function (i, j) {
{
return this.s.substring(i, j);
}
});
Clazz_newMeth(C$, 'toBytes$I$I', function (off, len) {
if (len == 0) return Clazz_array(Byte.TYPE, [0]);
var cs;
{
cs = "UTF-8";
}
return (len > 0 ? this.substring2$I$I(off, off + len) : off == 0 ? this.toString() : this.substring2$I$I(off, this.length$() - off)).getBytes$java_nio_charset_Charset(cs);
});
Clazz_newMeth(C$, 'replace$I$I$S', function (start, end, str) {
{
this.s = this.s.substring(0, start) + str + this.s.substring(end);
}
});
Clazz_newMeth(C$, 'insert$I$S', function (offset, str) {
this.replace$I$I$S(offset, offset, str);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:12 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.net.ssl"),I$=[];
var C$=Clazz_newInterface(P$, "HttpsURLConnection");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:12 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'Boolean','javax.swing.ArrayTable','javax.swing.event.SwingPropertyChangeSupport','java.beans.PropertyChangeListener']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractAction", null, null, ['javax.swing.Action', 'Cloneable']);
C$.RECONFIGURE_ON_NULL=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.enabled=false;
this.arrayTable=null;
this.changeSupport=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.enabled=true;
}, 1);
Clazz_newMeth(C$, 'shouldReconfigure$java_beans_PropertyChangeEvent', function (e) {
if (e.getPropertyName$() == null ) {
C$.RECONFIGURE_ON_NULL=new Boolean(false);
}return false;
}, 1);
Clazz_newMeth(C$, 'setEnabledFromAction$javax_swing_JComponent$javax_swing_Action', function (c, a) {
c.setEnabled$Z((a != null ) ? a.isEnabled$() : true);
}, 1);
Clazz_newMeth(C$, 'setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action', function (c, a) {
c.setToolTipText$S(a != null ? a.getValue$S("ShortDescription") : null);
}, 1);
Clazz_newMeth(C$, 'hasSelectedKey$javax_swing_Action', function (a) {
return (a != null && a.getValue$S("SwingSelectedKey") != null );
}, 1);
Clazz_newMeth(C$, 'isSelected$javax_swing_Action', function (a) {
return $I$(1).TRUE.equals$O(a.getValue$S("SwingSelectedKey"));
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.$init$.apply(this);
this.putValue$S$O("Name", name);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (name, icon) {
C$.c$$S.apply(this, [name]);
this.putValue$S$O("SmallIcon", icon);
}, 1);
Clazz_newMeth(C$, 'getValue$S', function (key) {
if (key == "enabled") {
return new Boolean(this.enabled);
}if (this.arrayTable == null ) {
return null;
}return this.arrayTable.get$O(key);
});
Clazz_newMeth(C$, 'putValue$S$O', function (key, newValue) {
var oldValue=null;
if (key == "enabled") {
if (newValue == null || !(Clazz_instanceOf(newValue, "java.lang.Boolean")) ) {
newValue=new Boolean(false);
}oldValue=new Boolean(this.enabled);
this.enabled=(newValue).booleanValue$();
} else {
if (this.arrayTable == null ) {
this.arrayTable=Clazz_new_($I$(2));
}if (this.arrayTable.containsKey$O(key)) oldValue=this.arrayTable.get$O(key);
if (newValue == null ) {
this.arrayTable.remove$O(key);
} else {
this.arrayTable.put$O$O(key, newValue);
}}this.firePropertyChange$S$O$O(key, oldValue, newValue);
});
Clazz_newMeth(C$, 'isEnabled$', function () {
return this.enabled;
});
Clazz_newMeth(C$, 'setEnabled$Z', function (newValue) {
var oldValue=this.enabled;
if (oldValue != newValue ) {
this.enabled=newValue;
this.firePropertyChange$S$O$O("enabled", $I$(1).valueOf$Z(oldValue), $I$(1).valueOf$Z(newValue));
}});
Clazz_newMeth(C$, 'getKeys$', function () {
if (this.arrayTable == null ) {
return null;
}var keys=Clazz_array(java.lang.Object, [this.arrayTable.size$()]);
this.arrayTable.getKeys$OA(keys);
return keys;
});
Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) {
if (this.changeSupport == null || (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) ) {
return;
}this.changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue);
});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(3).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener);
});
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (this.changeSupport == null ) {
return;
}this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
if (this.changeSupport == null ) {
return Clazz_array($I$(4), [0]);
}return this.changeSupport.getPropertyChangeListeners$();
});
Clazz_newMeth(C$, 'clone$', function () {
var newAction=Clazz_clone(this);
{
if (this.arrayTable != null ) {
newAction.arrayTable=this.arrayTable.clone$();
}}return newAction;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.AbstractAction','javax.swing.UIManager','java.awt.event.ActionListener',['javax.swing.AbstractButton','.ButtonActionPropertyChangeListener'],'javax.swing.SwingUtilities','javax.swing.OverlayLayout','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent','java.awt.event.ActionEvent','java.awt.event.ItemListener','java.awt.event.ItemEvent',['javax.swing.AbstractButton','.Handler']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractButton", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', ['java.awt.ItemSelectable', 'javax.swing.SwingConstants']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.model=null;
this.text=null;
this.margin=null;
this.defaultMargin=null;
this.defaultIcon=null;
this.pressedIcon=null;
this.disabledIcon=null;
this.selectedIcon=null;
this.disabledSelectedIcon=null;
this.rolloverIcon=null;
this.rolloverSelectedIcon=null;
this.paintBorder=false;
this.paintFocus=false;
this.rolloverEnabled=false;
this.contentAreaFilled=false;
this.verticalAlignment=0;
this.horizontalAlignment=0;
this.verticalTextPosition=0;
this.horizontalTextPosition=0;
this.iconTextGap=0;
this.mnemonic=0;
this.mnemonicIndex=0;
this.multiClickThreshhold=0;
this.borderPaintedSet=false;
this.rolloverEnabledSet=false;
this.iconTextGapSet=false;
this.contentAreaFilledSet=false;
this.setLayout=false;
this.defaultCapable=false;
this.handler=null;
this.changeListener=null;
this.actionListener=null;
this.itemListener=null;
this.changeEvent=null;
this.hideActionText=false;
this.action=null;
this.actionPropertyChangeListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.model=null;
this.text="";
this.margin=null;
this.defaultMargin=null;
this.defaultIcon=null;
this.pressedIcon=null;
this.disabledIcon=null;
this.selectedIcon=null;
this.disabledSelectedIcon=null;
this.rolloverIcon=null;
this.rolloverSelectedIcon=null;
this.paintBorder=true;
this.paintFocus=true;
this.rolloverEnabled=false;
this.contentAreaFilled=true;
this.verticalAlignment=0;
this.horizontalAlignment=0;
this.verticalTextPosition=0;
this.horizontalTextPosition=11;
this.iconTextGap=4;
this.mnemonicIndex=-1;
this.multiClickThreshhold=0;
this.borderPaintedSet=false;
this.rolloverEnabledSet=false;
this.iconTextGapSet=false;
this.contentAreaFilledSet=false;
this.setLayout=false;
this.defaultCapable=true;
this.changeListener=null;
this.actionListener=null;
this.itemListener=null;
this.hideActionText=false;
}, 1);
Clazz_newMeth(C$, 'setHideActionText$Z', function (hideActionText) {
if (hideActionText != this.hideActionText ) {
this.hideActionText=hideActionText;
if (this.getAction$() != null ) {
p$1.setTextFromAction$javax_swing_Action$Z.apply(this, [this.getAction$(), false]);
}this.firePropertyChange$S$Z$Z("hideActionText", !hideActionText, hideActionText);
}});
Clazz_newMeth(C$, 'getHideActionText$', function () {
return this.hideActionText;
});
Clazz_newMeth(C$, 'getText$', function () {
return this.text;
});
Clazz_newMeth(C$, 'setText$S', function (text) {
var oldValue=this.text;
this.text=text;
this.firePropertyChange$S$O$O("text", oldValue, text);
p$1.updateDisplayedMnemonicIndex$S$I.apply(this, [text, this.getMnemonic$()]);
if (text == null || oldValue == null || !text.equals$O(oldValue) ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'isSelected$', function () {
return this.model.isSelected$();
});
Clazz_newMeth(C$, 'setSelected$Z', function (b) {
this.model.setSelected$Z(b);
});
Clazz_newMeth(C$, 'doClick$', function () {
this.doClick$I(68);
});
Clazz_newMeth(C$, 'doClick$I', function (pressTime) {
(this.ui).abstractButtonFocusHack$();
this.model.setArmed$Z(true);
this.model.setPressed$Z(true);
this.model.setPressed$Z(false);
this.model.setArmed$Z(false);
});
Clazz_newMeth(C$, 'setMargin$java_awt_Insets', function (m) {
if (Clazz_instanceOf(m, "javax.swing.plaf.UIResource")) {
this.defaultMargin=m;
} else if (Clazz_instanceOf(this.margin, "javax.swing.plaf.UIResource")) {
this.defaultMargin=this.margin;
}if (m == null && this.defaultMargin != null ) {
m=this.defaultMargin;
}var old=this.margin;
this.margin=m;
this.firePropertyChange$S$O$O("margin", old, m);
if (old == null || !old.equals$O(m) ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getMargin$', function () {
return (this.margin == null ) ? null : this.margin.clone$();
});
Clazz_newMeth(C$, 'getIcon$', function () {
return this.defaultIcon;
});
Clazz_newMeth(C$, 'setIcon$javax_swing_Icon', function (defaultIcon) {
var oldValue=this.defaultIcon;
this.defaultIcon=defaultIcon;
if (defaultIcon !== oldValue && (Clazz_instanceOf(this.disabledIcon, "javax.swing.plaf.UIResource")) ) {
this.disabledIcon=null;
}this.firePropertyChange$S$O$O("icon", oldValue, defaultIcon);
if (defaultIcon !== oldValue ) {
if (defaultIcon == null || oldValue == null || defaultIcon.getIconWidth$() != oldValue.getIconWidth$() || defaultIcon.getIconHeight$() != oldValue.getIconHeight$() ) {
this.revalidate$();
}this.repaint$();
}});
Clazz_newMeth(C$, 'getPressedIcon$', function () {
return this.pressedIcon;
});
Clazz_newMeth(C$, 'setPressedIcon$javax_swing_Icon', function (pressedIcon) {
var oldValue=this.pressedIcon;
this.pressedIcon=pressedIcon;
this.firePropertyChange$S$O$O("pressedIcon", oldValue, pressedIcon);
if (pressedIcon !== oldValue ) {
if (this.getModel$().isPressed$()) {
this.repaint$();
}}});
Clazz_newMeth(C$, 'getSelectedIcon$', function () {
return this.selectedIcon;
});
Clazz_newMeth(C$, 'setSelectedIcon$javax_swing_Icon', function (selectedIcon) {
var oldValue=this.selectedIcon;
this.selectedIcon=selectedIcon;
if (selectedIcon !== oldValue && Clazz_instanceOf(this.disabledSelectedIcon, "javax.swing.plaf.UIResource") ) {
this.disabledSelectedIcon=null;
}this.firePropertyChange$S$O$O("selectedIcon", oldValue, selectedIcon);
if (selectedIcon !== oldValue ) {
if (this.isSelected$()) {
this.repaint$();
}}});
Clazz_newMeth(C$, 'getRolloverIcon$', function () {
return this.rolloverIcon;
});
Clazz_newMeth(C$, 'setRolloverIcon$javax_swing_Icon', function (rolloverIcon) {
var oldValue=this.rolloverIcon;
this.rolloverIcon=rolloverIcon;
this.firePropertyChange$S$O$O("rolloverIcon", oldValue, rolloverIcon);
this.setRolloverEnabled$Z(true);
if (rolloverIcon !== oldValue ) {
this.repaint$();
}});
Clazz_newMeth(C$, 'getRolloverSelectedIcon$', function () {
return this.rolloverSelectedIcon;
});
Clazz_newMeth(C$, 'setRolloverSelectedIcon$javax_swing_Icon', function (rolloverSelectedIcon) {
var oldValue=this.rolloverSelectedIcon;
this.rolloverSelectedIcon=rolloverSelectedIcon;
this.firePropertyChange$S$O$O("rolloverSelectedIcon", oldValue, rolloverSelectedIcon);
this.setRolloverEnabled$Z(true);
if (rolloverSelectedIcon !== oldValue ) {
if (this.isSelected$()) {
this.repaint$();
}}});
Clazz_newMeth(C$, 'getDisabledIcon$', function () {
if (this.disabledIcon == null ) {
this.disabledIcon=$I$(2).getLookAndFeel$().getDisabledIcon$javax_swing_JComponent$javax_swing_Icon(this, this.getIcon$());
if (this.disabledIcon != null ) {
this.firePropertyChange$S$O$O("disabledIcon", null, this.disabledIcon);
}}return this.disabledIcon;
});
Clazz_newMeth(C$, 'setDisabledIcon$javax_swing_Icon', function (disabledIcon) {
var oldValue=this.disabledIcon;
this.disabledIcon=disabledIcon;
this.firePropertyChange$S$O$O("disabledIcon", oldValue, disabledIcon);
if (disabledIcon !== oldValue ) {
if (!this.isEnabled$()) {
this.repaint$();
}}});
Clazz_newMeth(C$, 'getDisabledSelectedIcon$', function () {
if (this.disabledSelectedIcon == null ) {
if (this.selectedIcon != null ) {
this.disabledSelectedIcon=$I$(2).getLookAndFeel$().getDisabledSelectedIcon$javax_swing_JComponent$javax_swing_Icon(this, this.getSelectedIcon$());
} else {
return this.getDisabledIcon$();
}}return this.disabledSelectedIcon;
});
Clazz_newMeth(C$, 'setDisabledSelectedIcon$javax_swing_Icon', function (disabledSelectedIcon) {
var oldValue=this.disabledSelectedIcon;
this.disabledSelectedIcon=disabledSelectedIcon;
this.firePropertyChange$S$O$O("disabledSelectedIcon", oldValue, disabledSelectedIcon);
if (disabledSelectedIcon !== oldValue ) {
if (disabledSelectedIcon == null || oldValue == null || disabledSelectedIcon.getIconWidth$() != oldValue.getIconWidth$() || disabledSelectedIcon.getIconHeight$() != oldValue.getIconHeight$() ) {
this.revalidate$();
}if (!this.isEnabled$() && this.isSelected$() ) {
this.repaint$();
}}});
Clazz_newMeth(C$, 'getVerticalAlignment$', function () {
return this.verticalAlignment;
});
Clazz_newMeth(C$, 'setVerticalAlignment$I', function (alignment) {
if (alignment == this.verticalAlignment) return;
var oldValue=this.verticalAlignment;
this.verticalAlignment=this.checkVerticalKey$I$S(alignment, "verticalAlignment");
this.firePropertyChange$S$I$I("verticalAlignment", oldValue, this.verticalAlignment);
this.repaint$();
});
Clazz_newMeth(C$, 'getHorizontalAlignment$', function () {
return this.horizontalAlignment;
});
Clazz_newMeth(C$, 'setHorizontalAlignment$I', function (alignment) {
if (alignment == this.horizontalAlignment) return;
var oldValue=this.horizontalAlignment;
this.horizontalAlignment=this.checkHorizontalKey$I$S(alignment, "horizontalAlignment");
this.firePropertyChange$S$I$I("horizontalAlignment", oldValue, this.horizontalAlignment);
this.repaint$();
});
Clazz_newMeth(C$, 'getVerticalTextPosition$', function () {
return this.verticalTextPosition;
});
Clazz_newMeth(C$, 'setVerticalTextPosition$I', function (textPosition) {
if (textPosition == this.verticalTextPosition) return;
var oldValue=this.verticalTextPosition;
this.verticalTextPosition=this.checkVerticalKey$I$S(textPosition, "verticalTextPosition");
this.firePropertyChange$S$I$I("verticalTextPosition", oldValue, this.verticalTextPosition);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getHorizontalTextPosition$', function () {
return this.horizontalTextPosition;
});
Clazz_newMeth(C$, 'setHorizontalTextPosition$I', function (textPosition) {
if (textPosition == this.horizontalTextPosition) return;
var oldValue=this.horizontalTextPosition;
this.horizontalTextPosition=this.checkHorizontalKey$I$S(textPosition, "horizontalTextPosition");
this.firePropertyChange$S$I$I("horizontalTextPosition", oldValue, this.horizontalTextPosition);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getIconTextGap$', function () {
return this.iconTextGap;
});
Clazz_newMeth(C$, 'setIconTextGap$I', function (iconTextGap) {
var oldValue=this.iconTextGap;
this.iconTextGap=iconTextGap;
this.iconTextGapSet=true;
this.firePropertyChange$S$I$I("iconTextGap", oldValue, iconTextGap);
if (iconTextGap != oldValue) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'checkHorizontalKey$I$S', function (key, exception) {
if ((key == 2) || (key == 0) || (key == 4) || (key == 10) || (key == 11) ) {
return key;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[exception]);
}});
Clazz_newMeth(C$, 'checkVerticalKey$I$S', function (key, exception) {
if ((key == 1) || (key == 0) || (key == 3) ) {
return key;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[exception]);
}});
Clazz_newMeth(C$, 'removeNotify$', function () {
C$.superclazz.prototype.removeNotify$.apply(this, []);
if (this.isRolloverEnabled$()) {
this.getModel$().setRollover$Z(false);
}});
Clazz_newMeth(C$, 'setActionCommand$S', function (actionCommand) {
this.getModel$().setActionCommand$S(actionCommand);
});
Clazz_newMeth(C$, 'getActionCommand$', function () {
var ac=this.getModel$().getActionCommand$();
if (ac == null ) {
ac=this.getText$();
}return ac;
});
Clazz_newMeth(C$, 'setAction$javax_swing_Action', function (a) {
var oldValue=this.getAction$();
if (this.action == null || !this.action.equals$O(a) ) {
this.action=a;
if (oldValue != null ) {
this.removeActionListener$java_awt_event_ActionListener(oldValue);
oldValue.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener);
this.actionPropertyChangeListener=null;
}this.configurePropertiesFromAction$javax_swing_Action(this.action);
if (this.action != null ) {
if (!p$1.isListener$Class$java_awt_event_ActionListener.apply(this, [Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']), this.action])) {
this.addActionListener$java_awt_event_ActionListener(this.action);
}this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action);
this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener);
}this.firePropertyChange$S$O$O("action", oldValue, this.action);
}});
Clazz_newMeth(C$, 'isListener$Class$java_awt_event_ActionListener', function (c, a) {
var isListener=false;
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === c && listeners[i + 1] === a ) {
isListener=true;
}}
return isListener;
}, p$1);
Clazz_newMeth(C$, 'getAction$', function () {
return this.action;
});
Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) {
p$1.setMnemonicFromAction$javax_swing_Action.apply(this, [a]);
p$1.setTextFromAction$javax_swing_Action$Z.apply(this, [a, false]);
$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, a);
this.setIconFromAction$javax_swing_Action(a);
p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [a]);
$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, a);
if ($I$(1).hasSelectedKey$javax_swing_Action(a) && this.shouldUpdateSelectedStateFromAction$() ) {
p$1.setSelectedFromAction$javax_swing_Action.apply(this, [a]);
}p$1.setDisplayedMnemonicIndexFromAction$javax_swing_Action$Z.apply(this, [a, false]);
});
Clazz_newMeth(C$, 'clientPropertyChanged$O$O$O', function (key, oldValue, newValue) {
if (key === "hideActionText" ) {
var current=(Clazz_instanceOf(newValue, "java.lang.Boolean")) ? (newValue).booleanValue$() : false;
if (this.getHideActionText$() != current ) {
this.setHideActionText$Z(current);
}}});
Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () {
return false;
});
Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) {
if (propertyName == "Name") {
p$1.setTextFromAction$javax_swing_Action$Z.apply(this, [action, true]);
} else if (propertyName == "enabled") {
$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, action);
} else if (propertyName == "ShortDescription") {
$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, action);
} else if (propertyName == "SmallIcon") {
this.smallIconChanged$javax_swing_Action(action);
} else if (propertyName == "MnemonicKey") {
p$1.setMnemonicFromAction$javax_swing_Action.apply(this, [action]);
} else if (propertyName == "ActionCommandKey") {
p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [action]);
} else if (propertyName == "SwingSelectedKey" && $I$(1).hasSelectedKey$javax_swing_Action(action) && this.shouldUpdateSelectedStateFromAction$() ) {
p$1.setSelectedFromAction$javax_swing_Action.apply(this, [action]);
} else if (propertyName == "SwingDisplayedMnemonicIndexKey") {
p$1.setDisplayedMnemonicIndexFromAction$javax_swing_Action$Z.apply(this, [action, true]);
} else if (propertyName == "SwingLargeIconKey") {
this.largeIconChanged$javax_swing_Action(action);
}});
Clazz_newMeth(C$, 'setDisplayedMnemonicIndexFromAction$javax_swing_Action$Z', function (a, fromPropertyChange) {
var iValue=(a == null ) ? null : a.getValue$S("SwingDisplayedMnemonicIndexKey");
if (fromPropertyChange || iValue != null ) {
var value;
if (iValue == null ) {
value=-1;
} else {
value=(iValue).intValue$();
var text=this.getText$();
if (text == null || value >= text.length$() ) {
value=-1;
}}this.setDisplayedMnemonicIndex$I(value);
}}, p$1);
Clazz_newMeth(C$, 'setMnemonicFromAction$javax_swing_Action', function (a) {
var n=(a == null ) ? null : a.getValue$S("MnemonicKey");
this.setMnemonic$I((n == null ) ? "\u0000".$c() : (n).intValue$());
}, p$1);
Clazz_newMeth(C$, 'setTextFromAction$javax_swing_Action$Z', function (a, propertyChange) {
var hideText=this.getHideActionText$();
if (!propertyChange) {
this.setText$S((a != null && !hideText ) ? a.getValue$S("Name") : null);
} else if (!hideText) {
this.setText$S(a.getValue$S("Name"));
}}, p$1);
Clazz_newMeth(C$, 'setIconFromAction$javax_swing_Action', function (a) {
var icon=null;
if (a != null ) {
icon=a.getValue$S("SwingLargeIconKey");
if (icon == null ) {
icon=a.getValue$S("SmallIcon");
}}this.setIcon$javax_swing_Icon(icon);
});
Clazz_newMeth(C$, 'smallIconChanged$javax_swing_Action', function (a) {
if (a.getValue$S("SwingLargeIconKey") == null ) {
this.setIconFromAction$javax_swing_Action(a);
}});
Clazz_newMeth(C$, 'largeIconChanged$javax_swing_Action', function (a) {
this.setIconFromAction$javax_swing_Action(a);
});
Clazz_newMeth(C$, 'setActionCommandFromAction$javax_swing_Action', function (a) {
this.setActionCommand$S((a != null ) ? a.getValue$S("ActionCommandKey") : null);
}, p$1);
Clazz_newMeth(C$, 'setSelectedFromAction$javax_swing_Action', function (a) {
var selected=false;
if (a != null ) {
selected=$I$(1).isSelected$javax_swing_Action(a);
}if (selected != this.isSelected$() ) {
this.setSelected$Z(selected);
if (!selected && this.isSelected$() ) {
if (Clazz_instanceOf(this.getModel$(), "javax.swing.DefaultButtonModel")) {
var group=(this.getModel$()).getGroup$();
if (group != null ) {
group.clearSelection$();
}}}}}, p$1);
Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) {
return this.createActionPropertyChangeListener0$javax_swing_Action(a);
});
Clazz_newMeth(C$, 'createActionPropertyChangeListener0$javax_swing_Action', function (a) {
return Clazz_new_($I$(4).c$$javax_swing_AbstractButton$javax_swing_Action,[this, a]);
});
Clazz_newMeth(C$, 'isBorderPainted$', function () {
return this.paintBorder;
});
Clazz_newMeth(C$, 'setBorderPainted$Z', function (b) {
var oldValue=this.paintBorder;
this.paintBorder=b;
this.borderPaintedSet=true;
this.firePropertyChange$S$Z$Z("borderPainted", oldValue, this.paintBorder);
if (b != oldValue ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) {
if (this.isBorderPainted$()) {
C$.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this, [g]);
}});
Clazz_newMeth(C$, 'isFocusPainted$', function () {
return this.paintFocus;
});
Clazz_newMeth(C$, 'setFocusPainted$Z', function (b) {
var oldValue=this.paintFocus;
this.paintFocus=b;
this.firePropertyChange$S$Z$Z("focusPainted", oldValue, this.paintFocus);
if (b != oldValue && this.isFocusOwner$() ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'isContentAreaFilled$', function () {
return this.contentAreaFilled;
});
Clazz_newMeth(C$, 'setContentAreaFilled$Z', function (b) {
var oldValue=this.contentAreaFilled;
this.contentAreaFilled=b;
this.contentAreaFilledSet=true;
this.firePropertyChange$S$Z$Z("contentAreaFilled", oldValue, this.contentAreaFilled);
if (b != oldValue ) {
this.repaint$();
}});
Clazz_newMeth(C$, 'isRolloverEnabled$', function () {
return this.rolloverEnabled;
});
Clazz_newMeth(C$, 'setRolloverEnabled$Z', function (b) {
var oldValue=this.rolloverEnabled;
this.rolloverEnabled=b;
this.rolloverEnabledSet=true;
this.firePropertyChange$S$Z$Z("rolloverEnabled", oldValue, this.rolloverEnabled);
if (b != oldValue ) {
this.repaint$();
}});
Clazz_newMeth(C$, 'getMnemonic$', function () {
return this.mnemonic;
});
Clazz_newMeth(C$, 'setMnemonic$I', function (mnemonic) {
this.model.setMnemonic$I(mnemonic);
p$1.updateMnemonicProperties.apply(this, []);
});
Clazz_newMeth(C$, 'setMnemonic$C', function (mnemonic) {
var vk=mnemonic.$c();
if (vk >= 97 && vk <= 122 ) vk-=(32);
this.setMnemonic$I(vk);
});
Clazz_newMeth(C$, 'setDisplayedMnemonicIndex$I', function (index) {
var oldValue=this.mnemonicIndex;
if (index == -1) {
this.mnemonicIndex=-1;
} else {
var text=this.getText$();
var textLength=(text == null ) ? 0 : text.length$();
if (index < -1 || index >= textLength ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index == " + index]);
}}this.mnemonicIndex=index;
this.firePropertyChange$S$I$I("displayedMnemonicIndex", oldValue, index);
if (index != oldValue) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getDisplayedMnemonicIndex$', function () {
return this.mnemonicIndex;
});
Clazz_newMeth(C$, 'updateDisplayedMnemonicIndex$S$I', function (text, mnemonic) {
this.setDisplayedMnemonicIndex$I($I$(5).findDisplayedMnemonicIndex$S$I(text, mnemonic));
}, p$1);
Clazz_newMeth(C$, 'updateMnemonicProperties', function () {
var newMnemonic=this.model.getMnemonic$();
if (this.mnemonic != newMnemonic) {
var oldValue=this.mnemonic;
this.mnemonic=newMnemonic;
this.firePropertyChange$S$I$I("mnemonic", oldValue, this.mnemonic);
p$1.updateDisplayedMnemonicIndex$S$I.apply(this, [this.getText$(), this.mnemonic]);
this.revalidate$();
this.repaint$();
}}, p$1);
Clazz_newMeth(C$, 'setMultiClickThreshhold$J', function (threshhold) {
if (threshhold < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["threshhold must be >= 0"]);
}this.multiClickThreshhold=threshhold;
});
Clazz_newMeth(C$, 'getMultiClickThreshhold$', function () {
return this.multiClickThreshhold;
});
Clazz_newMeth(C$, 'getModel$', function () {
return this.model;
});
Clazz_newMeth(C$, 'setModel$javax_swing_ButtonModel', function (newModel) {
var oldModel=this.getModel$();
if (oldModel != null ) {
oldModel.removeChangeListener$javax_swing_event_ChangeListener(this.changeListener);
oldModel.removeActionListener$java_awt_event_ActionListener(this.actionListener);
oldModel.removeItemListener$java_awt_event_ItemListener(this.itemListener);
this.changeListener=null;
this.actionListener=null;
this.itemListener=null;
}this.model=newModel;
if (newModel != null ) {
this.model.isAWT$ = !!this.isAWT$
this.changeListener=this.createChangeListener$();
this.actionListener=this.createActionListener$();
this.itemListener=this.createItemListener$();
newModel.addChangeListener$javax_swing_event_ChangeListener(this.changeListener);
newModel.addActionListener$java_awt_event_ActionListener(this.actionListener);
newModel.addItemListener$java_awt_event_ItemListener(this.itemListener);
p$1.updateMnemonicProperties.apply(this, []);
C$.superclazz.prototype.setEnabled$Z.apply(this, [newModel.isEnabled$()]);
} else {
this.mnemonic="\u0000".$c();
}p$1.updateDisplayedMnemonicIndex$S$I.apply(this, [this.getText$(), this.mnemonic]);
this.firePropertyChange$S$O$O("model", oldModel, newModel);
if (newModel !== oldModel ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getUI$', function () {
return this.ui;
});
Clazz_newMeth(C$, 'setUI$javax_swing_plaf_ButtonUI', function (ui) {
C$.superclazz.prototype.setUI$javax_swing_plaf_ComponentUI.apply(this, [ui]);
if (Clazz_instanceOf(this.disabledIcon, "javax.swing.plaf.UIResource")) {
this.setDisabledIcon$javax_swing_Icon(null);
}if (Clazz_instanceOf(this.disabledSelectedIcon, "javax.swing.plaf.UIResource")) {
this.setDisabledSelectedIcon$javax_swing_Icon(null);
}});
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) {
if (!this.setLayout) {
this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(6).c$$java_awt_Container,[this]));
}this.addImplCont$java_awt_Component$O$I(comp, constraints, index);
});
Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (mgr) {
this.setLayout=true;
C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [mgr]);
});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return (this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent'])));
});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(8).c$$O,[this]);
(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']), l);
});
Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) {
if ((l != null ) && (this.getAction$() === l ) ) {
this.setAction$javax_swing_Action(null);
} else {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']), l);
}});
Clazz_newMeth(C$, 'getActionListeners$', function () {
return (this.listenerList.getListeners$Class(Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent'])));
});
Clazz_newMeth(C$, 'createChangeListener$', function () {
return p$1.getHandler.apply(this, []);
});
Clazz_newMeth(C$, 'fireActionPerformed$java_awt_event_ActionEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']) ) {
if (e == null ) {
var actionCommand=event.getActionCommand$();
if (actionCommand == null ) {
actionCommand=this.getActionCommand$();
}e=Clazz_new_($I$(9).c$$O$I$S$J$I,[this, 1001, actionCommand, event.getWhen$(), event.getModifiers$()]);
}(listeners[i + 1]).actionPerformed$(e);
}}
});
Clazz_newMeth(C$, 'fireItemStateChanged$java_awt_event_ItemEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']) ) {
if (e == null ) {
e=Clazz_new_($I$(11).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this, event.getStateChange$()]);
}(listeners[i + 1]).itemStateChanged$(e);
}}
});
Clazz_newMeth(C$, 'createActionListener$', function () {
return p$1.getHandler.apply(this, []);
});
Clazz_newMeth(C$, 'createItemListener$', function () {
return p$1.getHandler.apply(this, []);
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
if (!b && this.model.isRollover$() ) {
this.model.setRollover$Z(false);
}C$.superclazz.prototype.setEnabled$Z.apply(this, [b]);
this.model.setEnabled$Z(b);
});
Clazz_newMeth(C$, 'getLabel$', function () {
return this.getText$();
});
Clazz_newMeth(C$, 'setLabel$S', function (label) {
this.setText$S(label);
});
Clazz_newMeth(C$, 'addItemListener$java_awt_event_ItemListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']), l);
});
Clazz_newMeth(C$, 'removeItemListener$java_awt_event_ItemListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']), l);
});
Clazz_newMeth(C$, 'getItemListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']));
});
Clazz_newMeth(C$, 'getSelectedObjects$', function () {
if (this.isSelected$() == false ) {
return null;
}var selectedObjects=Clazz_array(java.lang.Object, [1]);
selectedObjects[0]=this.getText$();
return selectedObjects;
});
Clazz_newMeth(C$, 'init$S$javax_swing_Icon', function (text, icon) {
if (text != null ) {
this.setText$S(text);
}if (icon != null ) {
this.setIcon$javax_swing_Icon(icon);
}this.updateUI$();
this.setAlignmentX$F(0.0);
this.setAlignmentY$F(0.5);
});
Clazz_newMeth(C$, ['imageUpdate$java_awt_Image$I$I$I$I$I','imageUpdate$'], function (img, infoflags, x, y, w, h) {
var iconDisplayed=this.getIcon$();
if (iconDisplayed == null ) {
return false;
}if (!this.model.isEnabled$()) {
if (this.model.isSelected$()) {
iconDisplayed=this.getDisabledSelectedIcon$();
} else {
iconDisplayed=this.getDisabledIcon$();
}} else if (this.model.isPressed$() && this.model.isArmed$() ) {
iconDisplayed=this.getPressedIcon$();
} else if (this.isRolloverEnabled$() && this.model.isRollover$() ) {
if (this.model.isSelected$()) {
iconDisplayed=this.getRolloverSelectedIcon$();
} else {
iconDisplayed=this.getRolloverIcon$();
}} else if (this.model.isSelected$()) {
iconDisplayed=this.getSelectedIcon$();
}if (!$I$(5).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(iconDisplayed, img)) {
return false;
}return C$.superclazz.prototype.imageUpdate$java_awt_Image$I$I$I$I$I.apply(this, [img, infoflags, x, y, w, h]);
});
Clazz_newMeth(C$, 'setUIProperty$S$O', function (propertyName, value) {
if (propertyName == "borderPainted") {
if (!this.borderPaintedSet) {
this.setBorderPainted$Z((value).booleanValue$());
this.borderPaintedSet=false;
}} else if (propertyName == "rolloverEnabled") {
if (!this.rolloverEnabledSet) {
this.setRolloverEnabled$Z((value).booleanValue$());
this.rolloverEnabledSet=false;
}} else if (propertyName == "iconTextGap") {
if (!this.iconTextGapSet) {
this.setIconTextGap$I((value).intValue$());
this.iconTextGapSet=false;
}} else if (propertyName == "contentAreaFilled") {
if (!this.contentAreaFilledSet) {
this.setContentAreaFilled$Z((value).booleanValue$());
this.contentAreaFilledSet=false;
}} else {
C$.superclazz.prototype.setUIProperty$S$O.apply(this, [propertyName, value]);
}});
Clazz_newMeth(C$, 'paramString$', function () {
var defaultIconString=((this.defaultIcon != null ) && (this.defaultIcon !== this ) ? this.defaultIcon.toString() : "");
var pressedIconString=((this.pressedIcon != null ) && (this.pressedIcon !== this ) ? this.pressedIcon.toString() : "");
var disabledIconString=((this.disabledIcon != null ) && (this.disabledIcon !== this ) ? this.disabledIcon.toString() : "");
var selectedIconString=((this.selectedIcon != null ) && (this.selectedIcon !== this ) ? this.selectedIcon.toString() : "");
var disabledSelectedIconString=((this.disabledSelectedIcon != null ) && (this.disabledSelectedIcon !== this ) ? this.disabledSelectedIcon.toString() : "");
var rolloverIconString=((this.rolloverIcon != null ) && (this.rolloverIcon !== this ) ? this.rolloverIcon.toString() : "");
var rolloverSelectedIconString=((this.rolloverSelectedIcon != null ) && (this.rolloverSelectedIcon !== this ) ? this.rolloverSelectedIcon.toString() : "");
var paintBorderString=(this.paintBorder ? "true" : "false");
var paintFocusString=(this.paintFocus ? "true" : "false");
var rolloverEnabledString=(this.rolloverEnabled ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultIcon=" + defaultIconString + ",disabledIcon=" + disabledIconString + ",disabledSelectedIcon=" + disabledSelectedIconString + ",margin=" + this.margin + ",paintBorder=" + paintBorderString + ",paintFocus=" + paintFocusString + ",pressedIcon=" + pressedIconString + ",rolloverEnabled=" + rolloverEnabledString + ",rolloverIcon=" + rolloverIconString + ",rolloverSelectedIcon=" + rolloverSelectedIconString + ",selectedIcon=" + selectedIconString + ",text=" + this.text ;
});
Clazz_newMeth(C$, 'getHandler', function () {
if (this.handler == null ) {
this.handler=Clazz_new_($I$(12), [this, null]);
}return this.handler;
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.AbstractButton, "ButtonActionPropertyChangeListener", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.ActionPropertyChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_AbstractButton$javax_swing_Action', function (b, a) {
C$.superclazz.c$$TT$javax_swing_Action.apply(this, [b, a]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPropertyChanged$javax_swing_AbstractButton$javax_swing_Action$java_beans_PropertyChangeEvent','actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent'], function (button, action, e) {
if ($I$(1).shouldReconfigure$java_beans_PropertyChangeEvent(e)) {
button.configurePropertiesFromAction$javax_swing_Action(action);
} else {
button.actionPropertyChanged$javax_swing_Action$S(action, e.getPropertyName$());
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractButton, "ButtonChangeListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
p$1.getHandler.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e);
});
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractButton, "Handler", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['java.awt.event.ActionListener', 'javax.swing.event.ChangeListener', 'java.awt.event.ItemListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
p$1.updateMnemonicProperties.apply(this.this$0, []);
if (this.b$['java.awt.Component'].isEnabled$.apply(this.b$['java.awt.Component'], []) != this.this$0.model.isEnabled$() ) {
this.this$0.setEnabled$Z.apply(this.this$0, [this.this$0.model.isEnabled$()]);
}this.this$0.fireStateChanged$.apply(this.this$0, []);
this.b$['java.awt.Component'].repaint$.apply(this.b$['java.awt.Component'], []);
});
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (event) {
this.this$0.fireActionPerformed$java_awt_event_ActionEvent.apply(this.this$0, [event]);
});
Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (event) {
this.this$0.fireItemStateChanged$java_awt_event_ItemEvent.apply(this.this$0, [event]);
if (this.this$0.shouldUpdateSelectedStateFromAction$.apply(this.this$0, [])) {
var action=this.this$0.getAction$.apply(this.this$0, []);
if (action != null && $I$(1).hasSelectedKey$javax_swing_Action(action) ) {
var selected=this.this$0.isSelected$.apply(this.this$0, []);
var isActionSelected=$I$(1).isSelected$javax_swing_Action(action);
if (isActionSelected != selected ) {
action.putValue$S$O("SwingSelectedKey", new Boolean(selected));
}}}});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.ListDataListener','javax.swing.event.ListDataEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractListModel", null, null, 'javax.swing.ListModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.listenerList=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.listenerList=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'addListDataListener$javax_swing_event_ListDataListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']), l);
});
Clazz_newMeth(C$, 'removeListDataListener$javax_swing_event_ListDataListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']), l);
});
Clazz_newMeth(C$, 'getListDataListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']));
});
Clazz_newMeth(C$, 'fireContentsChanged$O$I$I', function (source, index0, index1) {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']) ) {
if (e == null ) {
e=Clazz_new_($I$(3).c$$O$I$I$I,[source, 0, index0, index1]);
}(listeners[i + 1]).contentsChanged$javax_swing_event_ListDataEvent(e);
}}
});
Clazz_newMeth(C$, 'fireIntervalAdded$O$I$I', function (source, index0, index1) {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']) ) {
if (e == null ) {
e=Clazz_new_($I$(3).c$$O$I$I$I,[source, 1, index0, index1]);
}(listeners[i + 1]).intervalAdded$javax_swing_event_ListDataEvent(e);
}}
});
Clazz_newMeth(C$, 'fireIntervalRemoved$O$I$I', function (source, index0, index1) {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']) ) {
if (e == null ) {
e=Clazz_new_($I$(3).c$$O$I$I$I,[source, 2, index0, index1]);
}(listeners[i + 1]).intervalRemoved$javax_swing_event_ListDataEvent(e);
}}
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "Action", null, null, 'java.awt.event.ActionListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.ArrayTable','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ActionMap");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.arrayTable=null;
this.parent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setParent$javax_swing_ActionMap', function (map) {
this.parent=map;
});
Clazz_newMeth(C$, 'getParent$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'put$O$javax_swing_Action', function (key, action) {
if (key == null ) {
return;
}if (action == null ) {
this.remove$O(key);
} else {
if (this.arrayTable == null ) {
this.arrayTable=Clazz_new_($I$(1));
}this.arrayTable.put$O$O(key, action);
}});
Clazz_newMeth(C$, 'get$O', function (key) {
var value=(this.arrayTable == null ) ? null : this.arrayTable.get$O(key);
if (value == null ) {
var parent=this.getParent$();
if (parent != null ) {
return parent.get$O(key);
}}return value;
});
Clazz_newMeth(C$, 'remove$O', function (key) {
if (this.arrayTable != null ) {
this.arrayTable.remove$O(key);
}});
Clazz_newMeth(C$, 'clear$', function () {
if (this.arrayTable != null ) {
this.arrayTable.clear$();
}});
Clazz_newMeth(C$, 'keys$', function () {
if (this.arrayTable == null ) {
return null;
}return this.arrayTable.getKeys$OA(null);
});
Clazz_newMeth(C$, 'size$', function () {
if (this.arrayTable == null ) {
return 0;
}return this.arrayTable.size$();
});
Clazz_newMeth(C$, 'allKeys$', function () {
var count=this.size$();
var parent=this.getParent$();
if (count == 0) {
if (parent != null ) {
return parent.allKeys$();
}return this.keys$();
}if (parent == null ) {
return this.keys$();
}var keys=this.keys$();
var pKeys=parent.allKeys$();
if (pKeys == null ) {
return keys;
}if (keys == null ) {
return pKeys;
}var keyMap=Clazz_new_($I$(2));
var counter;
for (counter=keys.length - 1; counter >= 0; counter--) {
keyMap.put$TK$TV(keys[counter], keys[counter]);
}
for (counter=pKeys.length - 1; counter >= 0; counter--) {
keyMap.put$TK$TV(pKeys[counter], pKeys[counter]);
}
return keyMap.keySet$().toArray$();
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.AncestorListener','javax.swing.event.AncestorEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AncestorNotifier", null, null, ['java.awt.event.ComponentListener', 'java.beans.PropertyChangeListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.firstInvisibleAncestor=null;
this.listenerList=null;
this.root=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.listenerList=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_JComponent', function (root) {
C$.$init$.apply(this);
this.root=root;
this.addListeners$java_awt_Component$Z(root, true);
}, 1);
Clazz_newMeth(C$, 'addAncestorListener$javax_swing_event_AncestorListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']), l);
});
Clazz_newMeth(C$, 'removeAncestorListener$javax_swing_event_AncestorListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']), l);
});
Clazz_newMeth(C$, 'getAncestorListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']));
});
Clazz_newMeth(C$, 'fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) {
var ancestorEvent=Clazz_new_($I$(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[source, id, ancestor, ancestorParent]);
(listeners[i + 1]).ancestorAdded$javax_swing_event_AncestorEvent(ancestorEvent);
}}
});
Clazz_newMeth(C$, 'fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) {
var ancestorEvent=Clazz_new_($I$(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[source, id, ancestor, ancestorParent]);
(listeners[i + 1]).ancestorRemoved$javax_swing_event_AncestorEvent(ancestorEvent);
}}
});
Clazz_newMeth(C$, 'fireAncestorMoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) {
var ancestorEvent=Clazz_new_($I$(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[source, id, ancestor, ancestorParent]);
(listeners[i + 1]).ancestorMoved$javax_swing_event_AncestorEvent(ancestorEvent);
}}
});
Clazz_newMeth(C$, 'removeAllListeners$', function () {
this.removeListeners$java_awt_Component(this.root);
});
Clazz_newMeth(C$, 'addListeners$java_awt_Component$Z', function (ancestor, addToFirst) {
var a;
this.firstInvisibleAncestor=null;
for (a=ancestor; this.firstInvisibleAncestor == null ; a=a.getParent$()) {
if (addToFirst || a !== ancestor ) {
a.addComponentListener$java_awt_event_ComponentListener(this);
if (Clazz_instanceOf(a, "javax.swing.JComponent")) {
var jAncestor=a;
jAncestor.addPropertyChangeListener$java_beans_PropertyChangeListener(this);
}}if (!a.isVisible$() || a.getParent$() == null || a.isWindowOrJSApplet$() ) {
this.firstInvisibleAncestor=a;
}}
if (this.firstInvisibleAncestor != null && this.firstInvisibleAncestor.isWindowOrJSApplet$() && this.firstInvisibleAncestor.isVisible$() ) {
this.firstInvisibleAncestor=null;
}});
Clazz_newMeth(C$, 'removeListeners$java_awt_Component', function (ancestor) {
var a;
for (a=ancestor; a != null ; a=a.getParent$()) {
a.removeComponentListener$java_awt_event_ComponentListener(this);
if (Clazz_instanceOf(a, "javax.swing.JComponent")) {
var jAncestor=a;
jAncestor.removePropertyChangeListener$java_beans_PropertyChangeListener(this);
}if (a === this.firstInvisibleAncestor || a.isWindowOrJSApplet$() ) {
break;
}}
});
Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) {
});
Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) {
var source=e.getComponent$();
this.fireAncestorMoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 3, source, source.getParent$());
});
Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) {
var ancestor=e.getComponent$();
if (ancestor === this.firstInvisibleAncestor ) {
this.addListeners$java_awt_Component$Z(ancestor, false);
if (this.firstInvisibleAncestor == null ) {
this.fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 1, ancestor, ancestor.getParent$());
}}});
Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) {
var ancestor=e.getComponent$();
var needsNotify=this.firstInvisibleAncestor == null ;
if (!ancestor.isWindowOrJSApplet$()) {
this.removeListeners$java_awt_Component(ancestor.getParent$());
}this.firstInvisibleAncestor=ancestor;
if (needsNotify) {
this.fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 2, ancestor, ancestor.getParent$());
}});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (evt) {
var s=evt.getPropertyName$();
if (s != null && (s.equals$O("parent") || s.equals$O("ancestor") ) ) {
var component=evt.getSource$();
if (evt.getNewValue$() != null ) {
if (component === this.firstInvisibleAncestor ) {
this.addListeners$java_awt_Component$Z(component, false);
if (this.firstInvisibleAncestor == null ) {
this.fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 1, component, component.getParent$());
}}} else {
var needsNotify=this.firstInvisibleAncestor == null ;
var oldParent=evt.getOldValue$();
this.removeListeners$java_awt_Component(oldParent);
this.firstInvisibleAncestor=component;
if (needsNotify) {
this.fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 2, component, oldParent);
}}}});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.util.Hashtable']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ArrayTable", null, null, 'Cloneable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.table=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'put$O$O', function (key, value) {
if (this.table == null ) {
this.table=Clazz_array(java.lang.Object, -1, [key, value]);
} else {
var size=this.size$();
if (size < 8) {
if (this.containsKey$O(key)) {
var tmp=this.table;
for (var i=0; i < tmp.length - 1; i+=2) {
if (tmp[i].equals$O(key)) {
tmp[i + 1]=value;
break;
}}
} else {
var array=this.table;
var i=array.length;
var tmp=Clazz_array(java.lang.Object, [i + 2]);
System.arraycopy$O$I$O$I$I(array, 0, tmp, 0, i);
tmp[i]=key;
tmp[i + 1]=value;
this.table=tmp;
}} else {
if ((size == 8) && p$1.isArray.apply(this, []) ) {
p$1.grow.apply(this, []);
}(this.table).put$TK$TV(key, value);
}}});
Clazz_newMeth(C$, 'get$O', function (key) {
var value=null;
if (this.table != null ) {
if (p$1.isArray.apply(this, [])) {
var array=this.table;
for (var i=0; i < array.length - 1; i+=2) {
if (array[i].equals$O(key)) {
value=array[i + 1];
break;
}}
} else {
value=(this.table).get$O(key);
}}return value;
});
Clazz_newMeth(C$, 'size$', function () {
var size;
if (this.table == null ) return 0;
if (p$1.isArray.apply(this, [])) {
size=((this.table).length/2|0);
} else {
size=(this.table).size$();
}return size;
});
Clazz_newMeth(C$, 'containsKey$O', function (key) {
var contains=false;
if (this.table != null ) {
if (p$1.isArray.apply(this, [])) {
var array=this.table;
for (var i=0; i < array.length - 1; i+=2) {
if (array[i].equals$O(key)) {
contains=true;
break;
}}
} else {
contains=(this.table).containsKey$O(key);
}}return contains;
});
Clazz_newMeth(C$, 'remove$O', function (key) {
var value=null;
if (key == null ) {
return null;
}if (this.table != null ) {
if (p$1.isArray.apply(this, [])) {
var index=-1;
var array=this.table;
for (var i=array.length - 2; i >= 0; i-=2) {
if (array[i].equals$O(key)) {
index=i;
value=array[i + 1];
break;
}}
if (index != -1) {
var tmp=Clazz_array(java.lang.Object, [array.length - 2]);
System.arraycopy$O$I$O$I$I(array, 0, tmp, 0, index);
if (index < tmp.length) System.arraycopy$O$I$O$I$I(array, index + 2, tmp, index, tmp.length - index);
this.table=(tmp.length == 0) ? null : tmp;
}} else {
value=(this.table).remove$O(key);
}if (this.size$() == 7 && !p$1.isArray.apply(this, []) ) {
p$1.shrink.apply(this, []);
}}return value;
});
Clazz_newMeth(C$, 'clear$', function () {
this.table=null;
});
Clazz_newMeth(C$, 'clone$', function () {
var newArrayTable=Clazz_new_(C$);
if (p$1.isArray.apply(this, [])) {
var array=this.table;
for (var i=0; i < array.length - 1; i+=2) {
newArrayTable.put$O$O(array[i], array[i + 1]);
}
} else {
var tmp=this.table;
var keys=tmp.keys$();
while (keys.hasMoreElements$()){
var o=keys.nextElement$();
newArrayTable.put$O$O(o, tmp.get$O(o));
}
}return newArrayTable;
});
Clazz_newMeth(C$, 'getKeys$OA', function (keys) {
if (this.table == null ) {
return null;
}if (p$1.isArray.apply(this, [])) {
var array=this.table;
if (keys == null ) {
keys=Clazz_array(java.lang.Object, [(array.length/2|0)]);
}for (var i=0, index=0; i < array.length - 1; i+=2, index++) {
keys[index]=array[i];
}
} else {
var tmp=this.table;
var enum_=tmp.keys$();
var counter=tmp.size$();
if (keys == null ) {
keys=Clazz_array(java.lang.Object, [counter]);
}while (counter > 0){
keys[--counter]=enum_.nextElement$();
}
}return keys;
});
Clazz_newMeth(C$, 'isArray', function () {
return (Clazz_instanceOf(this.table, Clazz_array(java.lang.Object, -1)));
}, p$1);
Clazz_newMeth(C$, 'grow', function () {
var array=this.table;
var tmp=Clazz_new_($I$(1).c$$I,[(array.length/2|0)]);
for (var i=0; i < array.length; i+=2) {
tmp.put$TK$TV(array[i], array[i + 1]);
}
this.table=tmp;
}, p$1);
Clazz_newMeth(C$, 'shrink', function () {
var tmp=this.table;
var array=Clazz_array(java.lang.Object, [tmp.size$() * 2]);
var keys=tmp.keys$();
var j=0;
while (keys.hasMoreElements$()){
var o=keys.nextElement$();
array[j]=o;
array[j + 1]=tmp.get$O(o);
j+=2;
}
this.table=array;
}, p$1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets','java.awt.Rectangle',['java.awt.Component','.BaselineResizeBehavior']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractBorder", null, null, 'javax.swing.border.Border');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
insets.left=insets.top=insets.right=insets.bottom=0;
return insets;
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return false;
});
Clazz_newMeth(C$, 'getInteriorRectangle$java_awt_Component$I$I$I$I', function (c, x, y, width, height) {
return C$.getInteriorRectangle$java_awt_Component$javax_swing_border_Border$I$I$I$I(c, this, x, y, width, height);
});
Clazz_newMeth(C$, 'getInteriorRectangle$java_awt_Component$javax_swing_border_Border$I$I$I$I', function (c, b, x, y, width, height) {
var insets;
if (b != null ) insets=b.getBorderInsets$java_awt_Component(c);
else insets=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]);
return Clazz_new_($I$(2).c$$I$I$I$I,[x + insets.left, y + insets.top, width - insets.right - insets.left , height - insets.top - insets.bottom ]);
}, 1);
Clazz_newMeth(C$, 'getBaseline$java_awt_Component$I$I', function (c, width, height) {
if (width < 0 || height < 0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Width and height must be >= 0"]);
}return -1;
});
Clazz_newMeth(C$, 'getBaselineResizeBehavior$java_awt_Component', function (c) {
if (c == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Component must be non-null"]);
}return $I$(3).OTHER;
});
Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) {
return c.getComponentOrientation$().isLeftToRight$();
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BevelBorder", null, 'javax.swing.border.AbstractBorder');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.bevelType=0;
this.highlightOuter=null;
this.highlightInner=null;
this.shadowInner=null;
this.shadowOuter=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (bevelType) {
Clazz_super_(C$, this,1);
this.bevelType=bevelType;
}, 1);
Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (bevelType, highlight, shadow) {
C$.c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [bevelType, highlight.brighter$(), highlight, shadow, shadow.brighter$()]);
}, 1);
Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (bevelType, highlightOuterColor, highlightInnerColor, shadowOuterColor, shadowInnerColor) {
C$.c$$I.apply(this, [bevelType]);
this.highlightOuter=highlightOuterColor;
this.highlightInner=highlightInnerColor;
this.shadowOuter=shadowOuterColor;
this.shadowInner=shadowInnerColor;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
if (this.bevelType == 0) {
this.paintRaisedBevel$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, x, y, width, height);
} else if (this.bevelType == 1) {
this.paintLoweredBevel$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, x, y, width, height);
}});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return Clazz_new_($I$(1).c$$I$I$I$I,[2, 2, 2, 2]);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
insets.left=insets.top=insets.right=insets.bottom=2;
return insets;
});
Clazz_newMeth(C$, 'getHighlightOuterColor$java_awt_Component', function (c) {
var highlight=this.getHighlightOuterColor$();
return highlight != null ? highlight : c.getBackground$().brighter$().brighter$();
});
Clazz_newMeth(C$, 'getHighlightInnerColor$java_awt_Component', function (c) {
var highlight=this.getHighlightInnerColor$();
return highlight != null ? highlight : c.getBackground$().brighter$();
});
Clazz_newMeth(C$, 'getShadowInnerColor$java_awt_Component', function (c) {
var shadow=this.getShadowInnerColor$();
return shadow != null ? shadow : c.getBackground$().darker$();
});
Clazz_newMeth(C$, 'getShadowOuterColor$java_awt_Component', function (c) {
var shadow=this.getShadowOuterColor$();
return shadow != null ? shadow : c.getBackground$().darker$().darker$();
});
Clazz_newMeth(C$, 'getHighlightOuterColor$', function () {
return this.highlightOuter;
});
Clazz_newMeth(C$, 'getHighlightInnerColor$', function () {
return this.highlightInner;
});
Clazz_newMeth(C$, 'getShadowInnerColor$', function () {
return this.shadowInner;
});
Clazz_newMeth(C$, 'getShadowOuterColor$', function () {
return this.shadowOuter;
});
Clazz_newMeth(C$, 'getBevelType$', function () {
return this.bevelType;
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return true;
});
Clazz_newMeth(C$, 'paintRaisedBevel$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
var oldColor=g.getColor$();
var h=height;
var w=width;
g.translate$I$I(x, y);
g.setColor$java_awt_Color(this.getHighlightOuterColor$java_awt_Component(c));
g.drawLine$I$I$I$I(0, 0, 0, h - 2);
g.drawLine$I$I$I$I(1, 0, w - 2, 0);
g.setColor$java_awt_Color(this.getHighlightInnerColor$java_awt_Component(c));
g.drawLine$I$I$I$I(1, 1, 1, h - 3);
g.drawLine$I$I$I$I(2, 1, w - 3, 1);
g.setColor$java_awt_Color(this.getShadowOuterColor$java_awt_Component(c));
g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1);
g.drawLine$I$I$I$I(w - 1, 0, w - 1, h - 2);
g.setColor$java_awt_Color(this.getShadowInnerColor$java_awt_Component(c));
g.drawLine$I$I$I$I(1, h - 2, w - 2, h - 2);
g.drawLine$I$I$I$I(w - 2, 1, w - 2, h - 3);
g.translate$I$I(-x, -y);
g.setColor$java_awt_Color(oldColor);
});
Clazz_newMeth(C$, 'paintLoweredBevel$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
var oldColor=g.getColor$();
var h=height;
var w=width;
g.translate$I$I(x, y);
g.setColor$java_awt_Color(this.getShadowInnerColor$java_awt_Component(c));
g.drawLine$I$I$I$I(0, 0, 0, h - 1);
g.drawLine$I$I$I$I(1, 0, w - 1, 0);
g.setColor$java_awt_Color(this.getShadowOuterColor$java_awt_Component(c));
g.drawLine$I$I$I$I(1, 1, 1, h - 2);
g.drawLine$I$I$I$I(2, 1, w - 2, 1);
g.setColor$java_awt_Color(this.getHighlightOuterColor$java_awt_Component(c));
g.drawLine$I$I$I$I(1, h - 1, w - 1, h - 1);
g.drawLine$I$I$I$I(w - 1, 1, w - 1, h - 2);
g.setColor$java_awt_Color(this.getHighlightInnerColor$java_awt_Component(c));
g.drawLine$I$I$I$I(2, h - 2, w - 2, h - 2);
g.drawLine$I$I$I$I(w - 2, 2, w - 2, h - 3);
g.translate$I$I(-x, -y);
g.setColor$java_awt_Color(oldColor);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[];
var C$=Clazz_newInterface(P$, "Border");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "CompoundBorder", null, 'javax.swing.border.AbstractBorder');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.outsideBorder=null;
this.insideBorder=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.outsideBorder=null;
this.insideBorder=null;
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border$javax_swing_border_Border', function (outsideBorder, insideBorder) {
Clazz_super_(C$, this,1);
this.outsideBorder=outsideBorder;
this.insideBorder=insideBorder;
}, 1);
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return (this.outsideBorder == null || this.outsideBorder.isBorderOpaque$() ) && (this.insideBorder == null || this.insideBorder.isBorderOpaque$() ) ;
});
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
var nextInsets;
var px;
var py;
var pw;
var ph;
px=x;
py=y;
pw=width;
ph=height;
if (this.outsideBorder != null ) {
this.outsideBorder.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, px, py, pw, ph);
nextInsets=this.outsideBorder.getBorderInsets$java_awt_Component(c);
px+=nextInsets.left;
py+=nextInsets.top;
pw=pw - nextInsets.right - nextInsets.left ;
ph=ph - nextInsets.bottom - nextInsets.top ;
}if (this.insideBorder != null ) this.insideBorder.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, px, py, pw, ph);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
var nextInsets;
insets.top=insets.left=insets.right=insets.bottom=0;
if (this.outsideBorder != null ) {
nextInsets=this.outsideBorder.getBorderInsets$java_awt_Component(c);
insets.top+=nextInsets.top;
insets.left+=nextInsets.left;
insets.right+=nextInsets.right;
insets.bottom+=nextInsets.bottom;
}if (this.insideBorder != null ) {
nextInsets=this.insideBorder.getBorderInsets$java_awt_Component(c);
insets.top+=nextInsets.top;
insets.left+=nextInsets.left;
insets.right+=nextInsets.right;
insets.bottom+=nextInsets.bottom;
}return insets;
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]));
});
Clazz_newMeth(C$, 'getOutsideBorder$', function () {
return this.outsideBorder;
});
Clazz_newMeth(C$, 'getInsideBorder$', function () {
return this.insideBorder;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "EmptyBorder", null, 'javax.swing.border.AbstractBorder');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.left=0;
this.right=0;
this.top=0;
this.bottom=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) {
Clazz_super_(C$, this,1);
this.top=top;
this.right=right;
this.bottom=bottom;
this.left=left;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Insets', function (borderInsets) {
Clazz_super_(C$, this,1);
this.top=borderInsets.top;
this.right=borderInsets.right;
this.bottom=borderInsets.bottom;
this.left=borderInsets.left;
}, 1);
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.getBorderInsets$();
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
insets.left=this.left;
insets.top=this.top;
insets.right=this.right;
insets.bottom=this.bottom;
return insets;
});
Clazz_newMeth(C$, 'getBorderInsets$', function () {
return Clazz_new_($I$(1).c$$I$I$I$I,[this.top, this.left, this.bottom, this.right]);
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return false;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "EtchedBorder", null, 'javax.swing.border.AbstractBorder');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.etchType=0;
this.highlight=null;
this.shadow=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [1]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (etchType) {
C$.c$$I$java_awt_Color$java_awt_Color.apply(this, [etchType, null, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (highlight, shadow) {
C$.c$$I$java_awt_Color$java_awt_Color.apply(this, [1, highlight, shadow]);
}, 1);
Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (etchType, highlight, shadow) {
Clazz_super_(C$, this,1);
this.etchType=etchType;
this.highlight=highlight;
this.shadow=shadow;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
var w=width;
var h=height;
g.translate$I$I(x, y);
g.setColor$java_awt_Color(this.etchType == 1 ? this.getShadowColor$java_awt_Component(c) : this.getHighlightColor$java_awt_Component(c));
g.drawRect$I$I$I$I(0, 0, w - 2, h - 2);
g.setColor$java_awt_Color(this.etchType == 1 ? this.getHighlightColor$java_awt_Component(c) : this.getShadowColor$java_awt_Component(c));
g.drawLine$I$I$I$I(1, h - 3, 1, 1);
g.drawLine$I$I$I$I(1, 1, w - 3, 1);
g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1);
g.drawLine$I$I$I$I(w - 1, h - 1, w - 1, 0);
g.translate$I$I(-x, -y);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return Clazz_new_($I$(1).c$$I$I$I$I,[2, 2, 2, 2]);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
insets.left=insets.top=insets.right=insets.bottom=2;
return insets;
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return true;
});
Clazz_newMeth(C$, 'getEtchType$', function () {
return this.etchType;
});
Clazz_newMeth(C$, 'getHighlightColor$java_awt_Component', function (c) {
return this.highlight != null ? this.highlight : c.getBackground$().brighter$();
});
Clazz_newMeth(C$, 'getHighlightColor$', function () {
return this.highlight;
});
Clazz_newMeth(C$, 'getShadowColor$java_awt_Component', function (c) {
return this.shadow != null ? this.shadow : c.getBackground$().darker$();
});
Clazz_newMeth(C$, 'getShadowColor$', function () {
return this.shadow;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Color',['java.awt.geom.RoundRectangle2D','.Float'],['java.awt.geom.Rectangle2D','.Float'],['java.awt.geom.Path2D','.Float'],'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LineBorder", null, 'javax.swing.border.AbstractBorder');
C$.blackLine=null;
C$.grayLine=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.thickness=0;
this.lineColor=null;
this.roundedCorners=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'createBlackLineBorder$', function () {
if (C$.blackLine == null ) {
C$.blackLine=Clazz_new_(C$.c$$java_awt_Color$I,[$I$(1).black, 1]);
}return C$.blackLine;
}, 1);
Clazz_newMeth(C$, 'createGrayLineBorder$', function () {
if (C$.grayLine == null ) {
C$.grayLine=Clazz_new_(C$.c$$java_awt_Color$I,[$I$(1).gray, 1]);
}return C$.grayLine;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color', function (color) {
C$.c$$java_awt_Color$I$Z.apply(this, [color, 1, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$I', function (color, thickness) {
C$.c$$java_awt_Color$I$Z.apply(this, [color, thickness, false]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$I$Z', function (color, thickness, roundedCorners) {
Clazz_super_(C$, this,1);
this.lineColor=color;
this.thickness=thickness;
this.roundedCorners=roundedCorners;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
if ((this.thickness > 0)) {
var g2d=g;
var oldColor=g2d.getColor$();
g2d.setColor$java_awt_Color(this.lineColor);
var outer;
var inner;
var offs=this.thickness;
var size=offs + offs;
if (this.roundedCorners) {
var arc=offs + size;
outer=Clazz_new_($I$(2).c$$F$F$F$F$F$F,[x, y, width, height, arc, arc]);
inner=Clazz_new_($I$(2).c$$F$F$F$F$F$F,[x + offs, y + offs, width - size, height - size, arc, arc]);
} else {
outer=Clazz_new_($I$(3).c$$F$F$F$F,[x - 0.5, y - 0.5, width + 1, height + 1]);
inner=Clazz_new_($I$(3).c$$F$F$F$F,[x + offs - 0.5, y + offs - 0.5, width - size + 1, height - size + 1]);
}var path=Clazz_new_($I$(4).c$$I,[0]);
path.append$java_awt_Shape$Z(outer, false);
path.append$java_awt_Shape$Z(inner, false);
g2d.fill$java_awt_Shape(path);
g2d.setColor$java_awt_Color(oldColor);
}});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return Clazz_new_($I$(5).c$$I$I$I$I,[this.thickness, this.thickness, this.thickness, this.thickness]);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
insets.left=insets.top=insets.right=insets.bottom=this.thickness;
return insets;
});
Clazz_newMeth(C$, 'getLineColor$', function () {
return this.lineColor;
});
Clazz_newMeth(C$, 'getThickness$', function () {
return this.thickness;
});
Clazz_newMeth(C$, 'getRoundedCorners$', function () {
return this.roundedCorners;
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return !this.roundedCorners;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.border.BevelBorder','javax.swing.border.EtchedBorder','javax.swing.border.EmptyBorder','javax.swing.border.LineBorder','javax.swing.border.TitledBorder','javax.swing.border.CompoundBorder','javax.swing.border.MatteBorder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BorderFactory");
C$.sharedRaisedBevel=null;
C$.sharedLoweredBevel=null;
C$.sharedEtchedBorder=null;
C$.sharedRaisedEtchedBorder=null;
C$.emptyBorder=null;
C$.html5Border=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.sharedRaisedBevel=Clazz_new_($I$(1).c$$I,[0]);
C$.sharedLoweredBevel=Clazz_new_($I$(1).c$$I,[1]);
C$.sharedEtchedBorder=Clazz_new_($I$(2));
C$.emptyBorder=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
C$.html5Border=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'createLineBorder$java_awt_Color', function (color) {
return Clazz_new_($I$(4).c$$java_awt_Color$I,[color, 1]);
}, 1);
Clazz_newMeth(C$, 'createLineBorder$java_awt_Color$I', function (color, thickness) {
return Clazz_new_($I$(4).c$$java_awt_Color$I,[color, thickness]);
}, 1);
Clazz_newMeth(C$, 'createRaisedBevelBorder$', function () {
return C$.createSharedBevel$I(0);
}, 1);
Clazz_newMeth(C$, 'createLoweredBevelBorder$', function () {
return C$.createSharedBevel$I(1);
}, 1);
Clazz_newMeth(C$, 'createBevelBorder$I', function (type) {
return C$.createSharedBevel$I(type);
}, 1);
Clazz_newMeth(C$, 'createBevelBorder$I$java_awt_Color$java_awt_Color', function (type, highlight, shadow) {
return Clazz_new_($I$(1).c$$I$java_awt_Color$java_awt_Color,[type, highlight, shadow]);
}, 1);
Clazz_newMeth(C$, 'createBevelBorder$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (type, highlightOuter, highlightInner, shadowOuter, shadowInner) {
return Clazz_new_($I$(1).c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[type, highlightOuter, highlightInner, shadowOuter, shadowInner]);
}, 1);
Clazz_newMeth(C$, 'createSharedBevel$I', function (type) {
if (type == 0) {
return C$.sharedRaisedBevel;
} else if (type == 1) {
return C$.sharedLoweredBevel;
}return null;
}, 1);
Clazz_newMeth(C$, 'createEtchedBorder$', function () {
return C$.sharedEtchedBorder;
}, 1);
Clazz_newMeth(C$, 'createEtchedBorder$java_awt_Color$java_awt_Color', function (highlight, shadow) {
return Clazz_new_($I$(2).c$$java_awt_Color$java_awt_Color,[highlight, shadow]);
}, 1);
Clazz_newMeth(C$, 'createEtchedBorder$I', function (type) {
switch (type) {
case 0:
if (C$.sharedRaisedEtchedBorder == null ) {
C$.sharedRaisedEtchedBorder=Clazz_new_($I$(2).c$$I,[0]);
}return C$.sharedRaisedEtchedBorder;
case 1:
return C$.sharedEtchedBorder;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["type must be one of EtchedBorder.RAISED or EtchedBorder.LOWERED"]);
}
}, 1);
Clazz_newMeth(C$, 'createEtchedBorder$I$java_awt_Color$java_awt_Color', function (type, highlight, shadow) {
return Clazz_new_($I$(2).c$$I$java_awt_Color$java_awt_Color,[type, highlight, shadow]);
}, 1);
Clazz_newMeth(C$, 'createTitledBorder$S', function (title) {
return Clazz_new_($I$(5).c$$S,[title]);
}, 1);
Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border', function (border) {
return Clazz_new_($I$(5).c$$javax_swing_border_Border,[border]);
}, 1);
Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S', function (border, title) {
return Clazz_new_($I$(5).c$$javax_swing_border_Border$S,[border, title]);
}, 1);
Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S$I$I', function (border, title, titleJustification, titlePosition) {
return Clazz_new_($I$(5).c$$javax_swing_border_Border$S$I$I,[border, title, titleJustification, titlePosition]);
}, 1);
Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S$I$I$java_awt_Font', function (border, title, titleJustification, titlePosition, titleFont) {
return Clazz_new_($I$(5).c$$javax_swing_border_Border$S$I$I$java_awt_Font,[border, title, titleJustification, titlePosition, titleFont]);
}, 1);
Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color', function (border, title, titleJustification, titlePosition, titleFont, titleColor) {
return Clazz_new_($I$(5).c$$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color,[border, title, titleJustification, titlePosition, titleFont, titleColor]);
}, 1);
Clazz_newMeth(C$, 'createEmptyBorder$', function () {
return C$.emptyBorder;
}, 1);
Clazz_newMeth(C$, 'createHTML5Border$', function () {
return C$.html5Border;
}, 1);
Clazz_newMeth(C$, 'createEmptyBorder$I$I$I$I', function (top, left, bottom, right) {
return Clazz_new_($I$(3).c$$I$I$I$I,[top, left, bottom, right]);
}, 1);
Clazz_newMeth(C$, 'createCompoundBorder$', function () {
return Clazz_new_($I$(6));
}, 1);
Clazz_newMeth(C$, 'createCompoundBorder$javax_swing_border_Border$javax_swing_border_Border', function (outsideBorder, insideBorder) {
return Clazz_new_($I$(6).c$$javax_swing_border_Border$javax_swing_border_Border,[outsideBorder, insideBorder]);
}, 1);
Clazz_newMeth(C$, 'createMatteBorder$I$I$I$I$java_awt_Color', function (top, left, bottom, right, color) {
return Clazz_new_($I$(7).c$$I$I$I$I$java_awt_Color,[top, left, bottom, right, color]);
}, 1);
Clazz_newMeth(C$, 'createMatteBorder$I$I$I$I$javax_swing_Icon', function (top, left, bottom, right, tileIcon) {
return Clazz_new_($I$(7).c$$I$I$I$I$javax_swing_Icon,[top, left, bottom, right, tileIcon]);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "BoundedRangeModel");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.AWTError','java.awt.Dimension','javax.swing.SizeRequirements']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BoxLayout", null, null, 'java.awt.LayoutManager2');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.axis=0;
this.target=null;
this.xChildren=null;
this.yChildren=null;
this.xTotal=null;
this.yTotal=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Container$I$java_io_PrintStream', function (target, axis, dbg) {
C$.c$$java_awt_Container$I.apply(this, [target, axis]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Container$I', function (target, axis) {
C$.$init$.apply(this);
if (axis != 0 && axis != 1 && axis != 2 && axis != 3 ) {
throw Clazz_new_($I$(1).c$$S,["Invalid axis"]);
}this.axis=axis;
this.target=target;
}, 1);
Clazz_newMeth(C$, 'getTarget$', function () {
return this.target;
});
Clazz_newMeth(C$, 'getAxis$', function () {
return this.axis;
});
Clazz_newMeth(C$, 'invalidateLayout$java_awt_Container', function (target) {
this.checkContainer$java_awt_Container(target);
this.xChildren=null;
this.yChildren=null;
this.xTotal=null;
this.yTotal=null;
});
Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) {
this.invalidateLayout$java_awt_Container(comp.getParent$());
});
Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) {
this.invalidateLayout$java_awt_Container(comp.getParent$());
});
Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) {
this.invalidateLayout$java_awt_Container(comp.getParent$());
});
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) {
var size;
{
this.checkContainer$java_awt_Container(target);
this.checkRequests$();
size=Clazz_new_($I$(2).c$$I$I,[this.xTotal.preferred, this.yTotal.preferred]);
}var insets=target.getInsets$();
size.width=(Math.min(size.width + insets.left + insets.right , 2147483647)|0);
size.height=(Math.min(size.height + insets.top + insets.bottom , 2147483647)|0);
return size;
});
Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (target) {
var size;
{
this.checkContainer$java_awt_Container(target);
this.checkRequests$();
size=Clazz_new_($I$(2).c$$I$I,[this.xTotal.minimum, this.yTotal.minimum]);
}var insets=target.getInsets$();
size.width=(Math.min(size.width + insets.left + insets.right , 2147483647)|0);
size.height=(Math.min(size.height + insets.top + insets.bottom , 2147483647)|0);
return size;
});
Clazz_newMeth(C$, 'maximumLayoutSize$java_awt_Container', function (target) {
var size;
{
this.checkContainer$java_awt_Container(target);
this.checkRequests$();
size=Clazz_new_($I$(2).c$$I$I,[this.xTotal.maximum, this.yTotal.maximum]);
}var insets=target.getInsets$();
size.width=(Math.min(size.width + insets.left + insets.right , 2147483647)|0);
size.height=(Math.min(size.height + insets.top + insets.bottom , 2147483647)|0);
return size;
});
Clazz_newMeth(C$, 'getLayoutAlignmentX$java_awt_Container', function (target) {
this.checkContainer$java_awt_Container(target);
this.checkRequests$();
return this.xTotal.alignment;
});
Clazz_newMeth(C$, 'getLayoutAlignmentY$java_awt_Container', function (target) {
this.checkContainer$java_awt_Container(target);
this.checkRequests$();
return this.yTotal.alignment;
});
Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (target) {
this.checkContainer$java_awt_Container(target);
var nChildren=target.getComponentCount$();
var xOffsets=Clazz_array(Integer.TYPE, [nChildren]);
var xSpans=Clazz_array(Integer.TYPE, [nChildren]);
var yOffsets=Clazz_array(Integer.TYPE, [nChildren]);
var ySpans=Clazz_array(Integer.TYPE, [nChildren]);
var alloc=target.getSize$();
var $in=target.getInsets$();
alloc.width-=$in.left + $in.right;
alloc.height-=$in.top + $in.bottom;
var o=target.getComponentOrientation$();
var absoluteAxis=p$1.resolveAxis$I$java_awt_ComponentOrientation.apply(this, [this.axis, o]);
var ltr=(absoluteAxis != this.axis) ? o.isLeftToRight$() : true;
{
this.checkRequests$();
if (absoluteAxis == 0) {
$I$(3).calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.width, this.xTotal, this.xChildren, xOffsets, xSpans, ltr);
$I$(3).calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.height, this.yTotal, this.yChildren, yOffsets, ySpans, true);
} else {
$I$(3).calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.width, this.xTotal, this.xChildren, xOffsets, xSpans, ltr);
$I$(3).calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.height, this.yTotal, this.yChildren, yOffsets, ySpans, true);
}}for (var i=0; i < nChildren; i++) {
var c=target.getComponent$I(i);
c.setBounds$I$I$I$I((Math.min($in.left + xOffsets[i], 2147483647)|0), (Math.min($in.top + yOffsets[i], 2147483647)|0), xSpans[i], ySpans[i]);
}
});
Clazz_newMeth(C$, 'checkContainer$java_awt_Container', function (target) {
if (this.target !== target ) {
throw Clazz_new_($I$(1).c$$S,["BoxLayout can\'t be shared"]);
}});
Clazz_newMeth(C$, 'checkRequests$', function () {
if (this.xChildren == null || this.yChildren == null ) {
var n=this.target.getComponentCount$();
this.xChildren=Clazz_array($I$(3), [n]);
this.yChildren=Clazz_array($I$(3), [n]);
for (var i=0; i < n; i++) {
var c=this.target.getComponent$I(i);
if (!c.isVisible$()) {
this.xChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[0, 0, 0, c.getAlignmentX$()]);
this.yChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[0, 0, 0, c.getAlignmentY$()]);
continue;
}var min=c.getMinimumSize$();
var typ=c.getPreferredSize$();
var max=c.getMaximumSize$();
this.xChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[min.width, typ.width, max.width, c.getAlignmentX$()]);
this.yChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[min.height, typ.height, max.height, c.getAlignmentY$()]);
}
var absoluteAxis=p$1.resolveAxis$I$java_awt_ComponentOrientation.apply(this, [this.axis, this.target.getComponentOrientation$()]);
if (absoluteAxis == 0) {
this.xTotal=$I$(3).getTiledSizeRequirements$javax_swing_SizeRequirementsA(this.xChildren);
this.yTotal=$I$(3).getAlignedSizeRequirements$javax_swing_SizeRequirementsA(this.yChildren);
} else {
this.xTotal=$I$(3).getAlignedSizeRequirements$javax_swing_SizeRequirementsA(this.xChildren);
this.yTotal=$I$(3).getTiledSizeRequirements$javax_swing_SizeRequirementsA(this.yChildren);
}}});
Clazz_newMeth(C$, 'resolveAxis$I$java_awt_ComponentOrientation', function (axis, o) {
var absoluteAxis;
if (axis == 2) {
absoluteAxis=o.isHorizontal$() ? 0 : 1;
} else if (axis == 3) {
absoluteAxis=o.isHorizontal$() ? 1 : 0;
} else {
absoluteAxis=axis;
}return absoluteAxis;
}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ButtonGroup");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.buttons=null;
this.selection=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.buttons=Clazz_new_($I$(1));
this.selection=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'add$javax_swing_AbstractButton', function (b) {
if (b == null ) {
return;
}this.buttons.addElement$TE(b);
if (b.isSelected$()) {
if (this.selection == null ) {
this.selection=b.getModel$();
} else {
b.setSelected$Z(false);
}}b.getModel$().setGroup$javax_swing_ButtonGroup(this);
});
Clazz_newMeth(C$, 'remove$javax_swing_AbstractButton', function (b) {
if (b == null ) {
return;
}this.buttons.removeElement$O(b);
if (b.getModel$() === this.selection ) {
this.selection=null;
}b.getModel$().setGroup$javax_swing_ButtonGroup(null);
});
Clazz_newMeth(C$, 'clearSelection$', function () {
if (this.selection != null ) {
var oldSelection=this.selection;
this.selection=null;
oldSelection.setSelected$Z(false);
}});
Clazz_newMeth(C$, 'getElements$', function () {
return this.buttons.elements$();
});
Clazz_newMeth(C$, 'getSelection$', function () {
return this.selection;
});
Clazz_newMeth(C$, 'setSelected$javax_swing_ButtonModel$Z', function (m, b) {
if (b && m != null && m !== this.selection ) {
var oldSelection=this.selection;
this.selection=m;
if (oldSelection != null ) {
oldSelection.setSelected$Z(false);
}m.setSelected$Z(true);
}});
Clazz_newMeth(C$, 'isSelected$javax_swing_ButtonModel', function (m) {
return (m === this.selection );
});
Clazz_newMeth(C$, 'getButtonCount$', function () {
if (this.buttons == null ) {
return 0;
} else {
return this.buttons.size$();
}});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "ButtonModel", null, null, 'java.awt.ItemSelectable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newClass(P$, "ClientPropertyKey", null, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$$Z, "JComponent_INPUT_VERIFIER", 0, [true]);
Clazz_newEnumConst($vals, C$.c$$Z, "JComponent_TRANSFER_HANDLER", 1, [true]);
Clazz_newEnumConst($vals, C$.c$$Z, "JComponent_ANCESTOR_NOTIFIER", 2, [true]);
Clazz_newEnumConst($vals, C$.c$$Z, "PopupFactory_FORCE_HEAVYWEIGHT_POPUP", 3, [true]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.reportValueNotSerializable=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getJComponent_TRANSFER_HANDLER$', function () {
return C$.JComponent_TRANSFER_HANDLER;
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$Z.apply(this, [false]);
}, 1);
Clazz_newMeth(C$, 'c$$Z', function (reportValueNotSerializable) {
C$.$init$.apply(this);
this.reportValueNotSerializable=reportValueNotSerializable;
}, 1);
Clazz_newMeth(C$, 'getReportValueNotSerializable$', function () {
return this.reportValueNotSerializable;
});
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "ComboBoxModel", null, null, 'javax.swing.ListModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultBoundedRangeModel", null, null, 'javax.swing.BoundedRangeModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.changeEvent=null;
this.listenerList=null;
this.value=0;
this.extent=0;
this.min=0;
this.max=0;
this.isAdjusting=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.changeEvent=null;
this.listenerList=Clazz_new_($I$(1));
this.value=0;
this.extent=0;
this.min=0;
this.max=100;
this.isAdjusting=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (value, extent, min, max) {
C$.$init$.apply(this);
if ((max >= min) && (value >= min) && ((value + extent) >= value) && ((value + extent) <= max) ) {
this.value=value;
this.extent=extent;
this.min=min;
this.max=max;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid range properties"]);
}}, 1);
Clazz_newMeth(C$, 'getValue$', function () {
return this.value;
});
Clazz_newMeth(C$, 'getExtent$', function () {
return this.extent;
});
Clazz_newMeth(C$, 'getMinimum$', function () {
return this.min;
});
Clazz_newMeth(C$, 'getMaximum$', function () {
return this.max;
});
Clazz_newMeth(C$, 'setValue$I', function (n) {
n=Math.min(n, 2147483647 - this.extent);
var newValue=Math.max(n, this.min);
if (newValue + this.extent > this.max) {
newValue=this.max - this.extent;
}this.setRangeProperties$I$I$I$I$Z(newValue, this.extent, this.min, this.max, this.isAdjusting);
});
Clazz_newMeth(C$, 'setExtent$I', function (n) {
var newExtent=Math.max(0, n);
if (this.value + newExtent > this.max) {
newExtent=this.max - this.value;
}this.setRangeProperties$I$I$I$I$Z(this.value, newExtent, this.min, this.max, this.isAdjusting);
});
Clazz_newMeth(C$, 'setMinimum$I', function (n) {
var newMax=Math.max(n, this.max);
var newValue=Math.max(n, this.value);
var newExtent=Math.min(newMax - newValue, this.extent);
this.setRangeProperties$I$I$I$I$Z(newValue, newExtent, n, newMax, this.isAdjusting);
});
Clazz_newMeth(C$, 'setMaximum$I', function (n) {
var newMin=Math.min(n, this.min);
var newExtent=Math.min(n - newMin, this.extent);
var newValue=Math.min(n - newExtent, this.value);
this.setRangeProperties$I$I$I$I$Z(newValue, newExtent, newMin, n, this.isAdjusting);
});
Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) {
this.setRangeProperties$I$I$I$I$Z(this.value, this.extent, this.min, this.max, b);
});
Clazz_newMeth(C$, 'getValueIsAdjusting$', function () {
return this.isAdjusting;
});
Clazz_newMeth(C$, 'setRangeProperties$I$I$I$I$Z', function (newValue, newExtent, newMin, newMax, adjusting) {
if (newMin > newMax) {
newMin=newMax;
}if (newValue > newMax) {
newMax=newValue;
}if (newValue < newMin) {
newMin=newValue;
}if ((newExtent + newValue) > newMax) {
newExtent=newMax - newValue;
}if (newExtent < 0) {
newExtent=0;
}var isChange=(newValue != this.value) || (newExtent != this.extent) || (newMin != this.min) || (newMax != this.max) || (adjusting != this.isAdjusting ) ;
if (isChange) {
this.value=newValue;
this.extent=newExtent;
this.min=newMin;
this.max=newMax;
this.isAdjusting=adjusting;
this.fireStateChanged$();
}});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']));
});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) {
this.changeEvent=Clazz_new_($I$(3).c$$O,[this]);
}(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'toString', function () {
var modelString="value=" + this.getValue$() + ", " + "extent=" + this.getExtent$() + ", " + "min=" + this.getMinimum$() + ", " + "max=" + this.getMaximum$() + ", " + "adj=" + this.getValueIsAdjusting$() ;
return this.getClass$().getName$() + "[" + modelString + "]" ;
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.UIManager','java.awt.event.ItemEvent','java.awt.EventQueue','java.awt.event.ActionEvent','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent','java.awt.event.ActionListener','java.awt.event.ItemListener']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultButtonModel", null, null, 'javax.swing.ButtonModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.stateMask=0;
this.actionCommand=null;
this.group=null;
this.mnemonic=0;
this.changeEvent=null;
this.listenerList=null;
this.menuItem=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.stateMask=0;
this.actionCommand=null;
this.group=null;
this.mnemonic=0;
this.changeEvent=null;
this.listenerList=Clazz_new_($I$(1));
this.menuItem=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.stateMask=0;
this.setEnabled$Z(true);
}, 1);
Clazz_newMeth(C$, 'setActionCommand$S', function (actionCommand) {
this.actionCommand=actionCommand;
});
Clazz_newMeth(C$, 'getActionCommand$', function () {
return this.actionCommand;
});
Clazz_newMeth(C$, 'isArmed$', function () {
return (this.stateMask & 1) != 0;
});
Clazz_newMeth(C$, 'isSelected$', function () {
return (this.stateMask & 2) != 0;
});
Clazz_newMeth(C$, 'isEnabled$', function () {
return (this.stateMask & 8) != 0;
});
Clazz_newMeth(C$, 'isPressed$', function () {
return (this.stateMask & 4) != 0;
});
Clazz_newMeth(C$, 'isRollover$', function () {
return (this.stateMask & 16) != 0;
});
Clazz_newMeth(C$, 'setArmed$Z', function (b) {
if (this.isMenuItem$() && $I$(2).getBoolean$O("MenuItem.disabledAreNavigable") ) {
if ((this.isArmed$() == b )) {
return;
}} else {
if ((this.isArmed$() == b ) || !this.isEnabled$() ) {
return;
}}if (b) {
this.stateMask|=1;
} else {
this.stateMask&=~1;
}this.fireStateChanged$();
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
if (this.isEnabled$() == b ) {
return;
}if (b) {
this.stateMask|=8;
} else {
this.stateMask&=~8;
this.stateMask&=~1;
this.stateMask&=~4;
}this.fireStateChanged$();
});
Clazz_newMeth(C$, 'setSelected$Z', function (b) {
if (!this.setStateNoFire$Z(b)) return;
this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(3).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this, b ? 1 : 2]));
this.fireStateChanged$();
});
Clazz_newMeth(C$, 'setStateNoFire$Z', function (b) {
if (this.isSelected$() == b ) {
return false;
}if (b) {
this.stateMask|=2;
} else {
this.stateMask&=~2;
}return true;
});
Clazz_newMeth(C$, 'setPressed$Z', function (b) {
if ((this.isPressed$() == b ) || !this.isEnabled$() ) {
return;
}if (b) {
this.stateMask|=4;
} else {
this.stateMask&=~4;
}if (!this.isPressed$() && this.isArmed$() ) {
var modifiers=0;
var currentEvent=$I$(4).getCurrentEvent$();
if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) {
modifiers=(currentEvent).getModifiers$();
} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) {
modifiers=(currentEvent).getModifiers$();
}this.fireActionPerformed$java_awt_event_ActionEvent(Clazz_new_($I$(5).c$$O$I$S$J$I,[this, 1001, this.getActionCommand$(), $I$(4).getMostRecentEventTime$(), modifiers]));
}this.fireStateChanged$();
});
Clazz_newMeth(C$, 'setRollover$Z', function (b) {
if ((this.isRollover$() == b ) || !this.isEnabled$() ) {
return;
}if (b) {
this.stateMask|=16;
} else {
this.stateMask&=~16;
}this.fireStateChanged$();
});
Clazz_newMeth(C$, 'setMnemonic$I', function (key) {
this.mnemonic=key;
this.fireStateChanged$();
});
Clazz_newMeth(C$, 'getMnemonic$', function () {
return this.mnemonic;
});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']));
});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(7).c$$O,[this]);
(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']), l);
});
Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']), l);
});
Clazz_newMeth(C$, 'getActionListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']));
});
Clazz_newMeth(C$, 'fireActionPerformed$java_awt_event_ActionEvent', function (e) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']) ) {
(listeners[i + 1]).actionPerformed$(e);
}}
});
Clazz_newMeth(C$, 'addItemListener$java_awt_event_ItemListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']), l);
});
Clazz_newMeth(C$, 'removeItemListener$java_awt_event_ItemListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']), l);
});
Clazz_newMeth(C$, 'getItemListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']));
});
Clazz_newMeth(C$, 'fireItemStateChanged$java_awt_event_ItemEvent', function (e) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']) ) {
(listeners[i + 1]).itemStateChanged$(e);
}}
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
Clazz_newMeth(C$, 'getSelectedObjects$', function () {
return null;
});
Clazz_newMeth(C$, 'setGroup$javax_swing_ButtonGroup', function (group) {
this.group=group;
});
Clazz_newMeth(C$, 'getGroup$', function () {
return this.group;
});
Clazz_newMeth(C$, 'isMenuItem$', function () {
return this.menuItem;
});
Clazz_newMeth(C$, 'setMenuItem$Z', function (menuItem) {
this.menuItem=menuItem;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultComboBoxModel", null, 'javax.swing.AbstractListModel', 'javax.swing.MutableComboBoxModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.objects=null;
this.selectedObject=null;
this.秘isQuiet=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.objects=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'c$$TEA', function (items) {
Clazz_super_(C$, this,1);
this.objects=Clazz_new_($I$(1));
this.objects.ensureCapacity$I(items.length);
var i;
var c;
for (i=0, c=items.length; i < c; i++) this.objects.addElement$TE(items[i]);
if (this.getSize$() > 0) {
this.selectedObject=this.getElementAt$I(0);
}}, 1);
Clazz_newMeth(C$, 'c$$java_util_Vector', function (v) {
Clazz_super_(C$, this,1);
this.objects=v;
if (this.getSize$() > 0) {
this.selectedObject=this.getElementAt$I(0);
}}, 1);
Clazz_newMeth(C$, 'setSelectedItem$O', function (anObject) {
if ((this.selectedObject != null && !this.selectedObject.equals$O(anObject) ) || this.selectedObject == null && anObject != null ) {
this.selectedObject=anObject;
if (this.秘isQuiet) {
} else {
this.fireContentsChanged$O$I$I(this, -1, -1);
}}});
Clazz_newMeth(C$, 'getSelectedItem$', function () {
return this.selectedObject;
});
Clazz_newMeth(C$, 'getSize$', function () {
return this.objects.size$();
});
Clazz_newMeth(C$, 'getElementAt$I', function (index) {
if (index >= 0 && index < this.objects.size$() ) return this.objects.elementAt$I(index);
else return null;
});
Clazz_newMeth(C$, 'getIndexOf$O', function (anObject) {
return this.objects.indexOf$O(anObject);
});
Clazz_newMeth(C$, ['addElement$TE'], function (anObject) {
this.objects.addElement$TE(anObject);
this.fireIntervalAdded$O$I$I(this, this.objects.size$() - 1, this.objects.size$() - 1);
if (this.objects.size$() == 1 && this.selectedObject == null && anObject != null ) {
this.秘setSelectedItemQuiet$O(anObject);
}});
Clazz_newMeth(C$, ['insertElementAt$TE$I'], function (anObject, index) {
this.objects.insertElementAt$TE$I(anObject, index);
this.fireIntervalAdded$O$I$I(this, index, index);
});
Clazz_newMeth(C$, 'removeElementAt$I', function (index) {
if (this.getElementAt$I(index) === this.selectedObject ) this.秘setSelectedItemQuiet$O(index > 0 ? this.getElementAt$I(index - 1) : this.getSize$() == 1 ? null : this.getElementAt$I(index + 1));
this.objects.removeElementAt$I(index);
this.fireIntervalRemoved$O$I$I(this, index, index);
});
Clazz_newMeth(C$, 'removeElement$O', function (anObject) {
var index=this.objects.indexOf$O(anObject);
if (index != -1) {
this.removeElementAt$I(index);
}});
Clazz_newMeth(C$, 'removeAllElements$', function () {
if (this.objects.size$() > 0) {
var firstIndex=0;
var lastIndex=this.objects.size$() - 1;
this.objects.removeAllElements$();
this.selectedObject=null;
this.fireIntervalRemoved$O$I$I(this, firstIndex, lastIndex);
} else {
this.selectedObject=null;
}});
Clazz_newMeth(C$, '秘setSelectedItemQuiet$O', function (o) {
this.秘isQuiet=(!!this.isAWT$ ||false);
this.setSelectedItem$O(o);
this.秘isQuiet=false;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultSingleSelectionModel", null, null, 'javax.swing.SingleSelectionModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.changeEvent=null;
this.listenerList=null;
this.index=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.changeEvent=null;
this.listenerList=Clazz_new_($I$(1));
this.index=-1;
}, 1);
Clazz_newMeth(C$, 'getSelectedIndex$', function () {
return this.index;
});
Clazz_newMeth(C$, 'setSelectedIndex$I', function (index) {
if (this.index != index) {
this.index=index;
this.fireStateChanged$();
}});
Clazz_newMeth(C$, 'clearSelection$', function () {
this.setSelectedIndex$I(-1);
});
Clazz_newMeth(C$, 'isSelected$', function () {
var ret=false;
if (this.getSelectedIndex$() != -1) {
ret=true;
}return ret;
});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']));
});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(3).c$$O,[this]);
(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newClass(P$, "DropMode", null, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "USE_SELECTION", 0, []);
Clazz_newEnumConst($vals, C$.c$, "ON", 1, []);
Clazz_newEnumConst($vals, C$.c$, "INSERT", 2, []);
Clazz_newEnumConst($vals, C$.c$, "INSERT_ROWS", 3, []);
Clazz_newEnumConst($vals, C$.c$, "INSERT_COLS", 4, []);
Clazz_newEnumConst($vals, C$.c$, "ON_OR_INSERT", 5, []);
Clazz_newEnumConst($vals, C$.c$, "ON_OR_INSERT_ROWS", 6, []);
Clazz_newEnumConst($vals, C$.c$, "ON_OR_INSERT_COLS", 7, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newClass(P$, "AncestorEvent", null, 'java.awt.AWTEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ancestor=null;
this.ancestorParent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) {
C$.superclazz.c$$O$I.apply(this, [source, id]);
C$.$init$.apply(this);
this.ancestor=ancestor;
this.ancestorParent=ancestorParent;
}, 1);
Clazz_newMeth(C$, 'getAncestor$', function () {
return this.ancestor;
});
Clazz_newMeth(C$, 'getAncestorParent$', function () {
return this.ancestorParent;
});
Clazz_newMeth(C$, 'getComponent$', function () {
return this.getSource$();
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "AncestorListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newClass(P$, "CaretEvent", null, 'java.util.EventObject');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O', function (source) {
C$.superclazz.c$$O.apply(this, [source]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "CaretListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newClass(P$, "ChangeEvent", null, 'java.util.EventObject');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O', function (source) {
C$.superclazz.c$$O.apply(this, [source]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "ChangeListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "DocumentEvent", function(){
});
;
(function(){var C$=Clazz_newClass(P$.DocumentEvent, "EventType", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.INSERT=null;
C$.REMOVE=null;
C$.CHANGE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.INSERT=Clazz_new_(C$.c$$S,["INSERT"]);
C$.REMOVE=Clazz_new_(C$.c$$S,["REMOVE"]);
C$.CHANGE=Clazz_new_(C$.c$$S,["CHANGE"]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.typeString=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (s) {
C$.$init$.apply(this);
this.typeString=s;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.typeString;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newInterface(P$.DocumentEvent, "ElementChange", function(){
});
})()
;
(function(){var C$=Clazz_newClass(P$.DocumentEvent, "EventType", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.INSERT=null;
C$.REMOVE=null;
C$.CHANGE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.INSERT=Clazz_new_(C$.c$$S,["INSERT"]);
C$.REMOVE=Clazz_new_(C$.c$$S,["REMOVE"]);
C$.CHANGE=Clazz_new_(C$.c$$S,["CHANGE"]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.typeString=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (s) {
C$.$init$.apply(this);
this.typeString=s;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.typeString;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newInterface(P$.DocumentEvent, "ElementChange", function(){
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "DocumentListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),p$1={},I$=[[0,'java.lang.reflect.Array']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "EventListenerList");
C$.NULL_ARRAY=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.NULL_ARRAY=Clazz_array(java.lang.Object, [0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.listenerList=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.listenerList=C$.NULL_ARRAY;
}, 1);
Clazz_newMeth(C$, 'getListenerList$', function () {
return this.listenerList;
});
Clazz_newMeth(C$, 'getListeners$Class', function (t) {
var lList=this.listenerList;
var n=p$1.getListenerCount$OA$Class.apply(this, [lList, t]);
var result=Clazz_array(t, n);
var j=0;
for (var i=lList.length - 2; i >= 0; i-=2) {
if (lList[i] === t ) {
result[j++]=lList[i + 1];
}}
return result;
});
Clazz_newMeth(C$, 'getListenerCount$', function () {
return (this.listenerList.length/2|0);
});
Clazz_newMeth(C$, 'getListenerCount$Class', function (t) {
var lList=this.listenerList;
return p$1.getListenerCount$OA$Class.apply(this, [lList, t]);
});
Clazz_newMeth(C$, 'getListenerCount$OA$Class', function (list, t) {
var count=0;
for (var i=0; i < list.length; i+=2) {
if (t === list[i] ) count++;
}
return count;
}, p$1);
Clazz_newMeth(C$, 'add$Class$TT', function (t, l) {
if (l == null ) {
return;
}if (this.listenerList === C$.NULL_ARRAY ) {
this.listenerList=Clazz_array(java.lang.Object, -1, [t, l]);
} else {
var i=this.listenerList.length;
var tmp=Clazz_array(java.lang.Object, [i + 2]);
System.arraycopy$O$I$O$I$I(this.listenerList, 0, tmp, 0, i);
tmp[i]=t;
tmp[i + 1]=l;
this.listenerList=tmp;
}});
Clazz_newMeth(C$, 'remove$Class$TT', function (t, l) {
if (l == null ) {
return;
}var index=-1;
for (var i=this.listenerList.length - 2; i >= 0; i-=2) {
if ((this.listenerList[i] === t ) && (this.listenerList[i + 1].equals$O(l) == true ) ) {
index=i;
break;
}}
if (index != -1) {
var tmp=Clazz_array(java.lang.Object, [this.listenerList.length - 2]);
System.arraycopy$O$I$O$I$I(this.listenerList, 0, tmp, 0, index);
if (index < tmp.length) System.arraycopy$O$I$O$I$I(this.listenerList, index + 2, tmp, index, tmp.length - index);
this.listenerList=(tmp.length == 0) ? C$.NULL_ARRAY : tmp;
}});
Clazz_newMeth(C$, 'toString', function () {
var lList=this.listenerList;
var s="EventListenerList: ";
s += (lList.length/2|0) + " listeners: ";
for (var i=0; i <= lList.length - 2; i+=2) {
s += " type " + (lList[i]).getName$();
s += " listener " + lList[i + 1];
}
return s;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newClass(P$, "ListDataEvent", null, 'java.util.EventObject');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.type=0;
this.index0=0;
this.index1=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getType$', function () {
return this.type;
});
Clazz_newMeth(C$, 'getIndex0$', function () {
return this.index0;
});
Clazz_newMeth(C$, 'getIndex1$', function () {
return this.index1;
});
Clazz_newMeth(C$, 'c$$O$I$I$I', function (source, type, index0, index1) {
C$.superclazz.c$$O.apply(this, [source]);
C$.$init$.apply(this);
this.type=type;
this.index0=Math.min(index0, index1);
this.index1=Math.max(index0, index1);
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[type=" + this.type + ",index0=" + this.index0 + ",index1=" + this.index1 + "]" ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "ListDataListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newClass(P$, "UndoableEditEvent", null, 'java.util.EventObject');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.myEdit=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O$javax_swing_undo_UndoableEdit', function (source, edit) {
C$.superclazz.c$$O.apply(this, [source]);
C$.$init$.apply(this);
this.myEdit=edit;
}, 1);
Clazz_newMeth(C$, 'getEdit$', function () {
return this.myEdit;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[];
var C$=Clazz_newInterface(P$, "UndoableEditListener", null, null, 'java.util.EventListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.ArrayTable','javax.swing.KeyStroke','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "InputMap");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.arrayTable=null;
this.parent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setParent$javax_swing_InputMap', function (map) {
this.parent=map;
});
Clazz_newMeth(C$, 'getParent$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'put$javax_swing_KeyStroke$O', function (keyStroke, actionMapKey) {
if (keyStroke == null ) {
return;
}if (actionMapKey == null ) {
this.remove$javax_swing_KeyStroke(keyStroke);
} else {
if (this.arrayTable == null ) {
this.arrayTable=Clazz_new_($I$(1));
}this.arrayTable.put$O$O(keyStroke, actionMapKey);
}});
Clazz_newMeth(C$, 'get$javax_swing_KeyStroke', function (keyStroke) {
if (this.arrayTable == null ) {
var parent=this.getParent$();
if (parent != null ) {
return parent.get$javax_swing_KeyStroke(keyStroke);
}return null;
}var value=this.arrayTable.get$O(keyStroke);
if (value == null ) {
var parent=this.getParent$();
if (parent != null ) {
return parent.get$javax_swing_KeyStroke(keyStroke);
}}return value;
});
Clazz_newMeth(C$, 'remove$javax_swing_KeyStroke', function (key) {
if (this.arrayTable != null ) {
this.arrayTable.remove$O(key);
}});
Clazz_newMeth(C$, 'clear$', function () {
if (this.arrayTable != null ) {
this.arrayTable.clear$();
}});
Clazz_newMeth(C$, 'keys$', function () {
if (this.arrayTable == null ) {
return null;
}var keys=Clazz_array($I$(2), [this.arrayTable.size$()]);
this.arrayTable.getKeys$OA(keys);
return keys;
});
Clazz_newMeth(C$, 'size$', function () {
if (this.arrayTable == null ) {
return 0;
}return this.arrayTable.size$();
});
Clazz_newMeth(C$, 'allKeys$', function () {
var count=this.size$();
var parent=this.getParent$();
if (count == 0) {
if (parent != null ) {
return parent.allKeys$();
}return this.keys$();
}if (parent == null ) {
return this.keys$();
}var keys=this.keys$();
var pKeys=parent.allKeys$();
if (pKeys == null ) {
return keys;
}if (keys == null ) {
return pKeys;
}var keyMap=Clazz_new_($I$(3));
var counter;
for (counter=keys.length - 1; counter >= 0; counter--) {
keyMap.put$TK$TV(keys[counter], keys[counter]);
}
for (counter=pKeys.length - 1; counter >= 0; counter--) {
keyMap.put$TK$TV(pKeys[counter], pKeys[counter]);
}
var allKeys=Clazz_array($I$(2), [keyMap.size$()]);
return keyMap.keySet$().toArray$TTA(allKeys);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.Color','javax.swing.JComponent','java.awt.BorderLayout','javax.swing.JRootPane','javax.swing.SwingUtilities','javax.swing.RepaintManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JApplet", null, 'java.applet.JSApplet', 'javax.swing.RootPaneContainer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.rootPane=null;
this.rootPaneCheckingEnabled=false;
this.transferHandler=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.rootPaneCheckingEnabled=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setFrameViewer$swingjs_JSFrameViewer(this.秘appletViewer);
p$1.setJApplet.apply(this, []);
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "AppletUI";
});
Clazz_newMeth(C$, 'setPanelUIClassID$', function () {
});
Clazz_newMeth(C$, 'setJApplet', function () {
this.setRootPane$javax_swing_JRootPane(this.createRootPane$());
this.rootPane.setFrameViewer$swingjs_JSFrameViewer(this.秘appletViewer);
this.setForeground$java_awt_Color($I$(1).black);
this.setBackground$java_awt_Color($I$(1).white);
this.setLocale$java_util_Locale($I$(2).getDefaultLocale$());
this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(3)));
this.setRootPaneCheckingEnabled$Z(true);
this.setFocusTraversalPolicyProvider$Z(true);
this.enableEvents$J(8);
}, p$1);
Clazz_newMeth(C$, 'createRootPane$', function () {
var rp=Clazz_new_($I$(4).c$$S$Z$java_awt_Container,["", true, this]);
rp.setOpaque$Z(true);
return rp;
});
Clazz_newMeth(C$, 'setTransferHandler$javax_swing_TransferHandler', function (newHandler) {
var oldHandler=this.transferHandler;
this.transferHandler=newHandler;
$I$(5).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this, this.transferHandler);
this.firePropertyChange$S$O$O("transferHandler", oldHandler, newHandler);
});
Clazz_newMeth(C$, 'getTransferHandler$', function () {
return this.transferHandler;
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
(g).setBackground$java_awt_Color(this.getBackground$());
(g).setColor$java_awt_Color(this.getForeground$());
this.rootPane.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) {
this.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'setJMenuBar$javax_swing_JMenuBar', function (menuBar) {
this.getRootPane$().setMenuBar$javax_swing_JMenuBar(menuBar);
});
Clazz_newMeth(C$, 'getJMenuBar$', function () {
return this.getRootPane$().getMenuBar$();
});
Clazz_newMeth(C$, 'isRootPaneCheckingEnabled$', function () {
return this.rootPaneCheckingEnabled;
});
Clazz_newMeth(C$, 'setRootPaneCheckingEnabled$Z', function (enabled) {
this.rootPaneCheckingEnabled=enabled;
});
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) {
if (this.isRootPaneCheckingEnabled$()) {
this.getContentPane$().add$java_awt_Component$O$I(comp, constraints, index);
return;
}this.addImplCont$java_awt_Component$O$I(comp, constraints, index);
});
Clazz_newMeth(C$, 'remove$java_awt_Component', function (comp) {
if (comp === this.rootPane ) {
C$.superclazz.prototype.remove$java_awt_Component.apply(this, [comp]);
} else {
this.getContentPane$().remove$java_awt_Component(comp);
}});
Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (manager) {
if (this.isRootPaneCheckingEnabled$()) {
this.getContentPane$().setLayout$java_awt_LayoutManager(manager);
} else {
C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [manager]);
}});
Clazz_newMeth(C$, 'getRootPane$', function () {
return this.rootPane;
});
Clazz_newMeth(C$, 'setRootPane$javax_swing_JRootPane', function (root) {
if (this.rootPane != null ) {
this.remove$java_awt_Component(this.rootPane);
}this.rootPane=root;
if (this.rootPane != null ) {
var checkingEnabled=this.isRootPaneCheckingEnabled$();
try {
this.setRootPaneCheckingEnabled$Z(false);
this.add$java_awt_Component$O(this.rootPane, "Center");
} finally {
this.setRootPaneCheckingEnabled$Z(checkingEnabled);
}
}});
Clazz_newMeth(C$, 'getContentPane$', function () {
return this.getRootPane$().getContentPane$();
});
Clazz_newMeth(C$, 'setContentPane$java_awt_Container', function (contentPane) {
this.getRootPane$().setContentPane$java_awt_Container(contentPane);
});
Clazz_newMeth(C$, 'getLayeredPane$', function () {
return this.getRootPane$().getLayeredPane$();
});
Clazz_newMeth(C$, 'setLayeredPane$javax_swing_JLayeredPane', function (layeredPane) {
this.getRootPane$().setLayeredPane$javax_swing_JLayeredPane(layeredPane);
});
Clazz_newMeth(C$, 'getGlassPane$', function () {
return this.getRootPane$().getGlassPane$();
});
Clazz_newMeth(C$, 'setGlassPane$java_awt_Component', function (glassPane) {
this.getRootPane$().setGlassPane$java_awt_Component(glassPane);
});
Clazz_newMeth(C$, 'getGraphics$', function () {
$I$(2).getGraphicsInvoked$java_awt_Component(this);
return C$.superclazz.prototype.getGraphics$.apply(this, []);
});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (time, x, y, width, height) {
if ($I$(6).HANDLE_TOP_LEVEL_PAINT) {
$I$(6).currentManager$java_awt_Component(this).addDirtyRegion$java_applet_JSApplet$I$I$I$I(this, x, y, width, height);
} else {
C$.superclazz.prototype.repaint$J$I$I$I$I.apply(this, [time, x, y, width, height]);
}});
Clazz_newMeth(C$, 'repaintNow$', function () {
this.repaint$J$I$I$I$I(100, 0, 0, this.getWidth$(), this.getHeight$());
});
Clazz_newMeth(C$, 'paramString$', function () {
var rootPaneString=(this.rootPane != null ? this.rootPane.toString() : "");
var rootPaneCheckingEnabledString=(this.rootPaneCheckingEnabled ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",rootPane=" + rootPaneString + ",rootPaneCheckingEnabled=" + rootPaneCheckingEnabledString ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.DefaultButtonModel','javax.swing.SwingUtilities']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JButton", null, 'javax.swing.AbstractButton');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon.apply(this, [null, null]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) {
C$.c$$S$javax_swing_Icon.apply(this, [null, icon]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon.apply(this, [text, null]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) {
Clazz_super_(C$, this,1);
this.setModel$();
this.init$S$javax_swing_Icon(text, icon);
this.setOpaque$Z(true);
}, 1);
Clazz_newMeth(C$, 'setModel$', function () {
this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1)));
});
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "ButtonUI";
});
Clazz_newMeth(C$, 'isDefaultButton$', function () {
var root=$I$(2).getRootPane$java_awt_Component(this);
if (root != null ) {
return root.getDefaultButton$() === this ;
}return false;
});
Clazz_newMeth(C$, 'isDefaultCapable$', function () {
return this.defaultCapable;
});
Clazz_newMeth(C$, 'setDefaultCapable$Z', function (defaultCapable) {
var oldDefaultCapable=this.defaultCapable;
this.defaultCapable=defaultCapable;
this.firePropertyChange$S$Z$Z("defaultCapable", oldDefaultCapable, defaultCapable);
});
Clazz_newMeth(C$, 'removeNotify$', function () {
var root=$I$(2).getRootPane$java_awt_Component(this);
if (root != null && root.getDefaultButton$() === this ) {
root.setDefaultButton$javax_swing_JButton(null);
}C$.superclazz.prototype.removeNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'paramString$', function () {
var defaultCapableString=(this.defaultCapable ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultCapable=" + defaultCapableString ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JCheckBox", null, 'javax.swing.JToggleButton');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.flat=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.flat=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon$Z', function (icon, selected) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, selected]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (text, selected) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, selected]);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, selected) {
C$.superclazz.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, selected]);
C$.$init$.apply(this);
this.setUIProperty$S$O("borderPainted", $I$(1).FALSE);
this.setHorizontalAlignment$I(10);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "CheckBoxUI";
});
Clazz_newMeth(C$, 'setBorderPaintedFlat$Z', function (b) {
var oldValue=this.flat;
this.flat=b;
this.firePropertyChange$S$Z$Z("borderPaintedFlat", oldValue, this.flat);
if (b != oldValue ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'isBorderPaintedFlat$', function () {
return this.flat;
});
Clazz_newMeth(C$, 'setIconFromAction$javax_swing_Action', function (a) {
});
Clazz_newMeth(C$, 'paramString$', function () {
return C$.superclazz.prototype.paramString$.apply(this, []);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,['javax.swing.JToggleButton','.ToggleButtonModel']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JCheckBoxMenuItem", null, 'javax.swing.JMenuItem', 'javax.swing.SwingConstants');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (text, b) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, b]);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, b) {
C$.superclazz.c$$S$javax_swing_Icon.apply(this, [text, icon]);
C$.$init$.apply(this);
this.setSelected$Z(b);
this.setFocusable$Z(false);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "CheckBoxMenuItemUI";
});
Clazz_newMeth(C$, 'setModel$', function () {
this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1)));
});
Clazz_newMeth(C$, 'getState$', function () {
return this.isSelected$();
});
Clazz_newMeth(C$, 'setState$Z', function (b) {
this.setSelected$Z(b);
});
Clazz_newMeth(C$, 'getSelectedObjects$', function () {
if (this.isSelected$() == false ) return null;
var selectedObjects=Clazz_array(java.lang.Object, [1]);
selectedObjects[0]=this.getText$();
return selectedObjects;
});
Clazz_newMeth(C$, 'paramString$', function () {
return C$.superclazz.prototype.paramString$.apply(this, []);
});
Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () {
return true;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.AbstractAction','javax.swing.JPopupMenu','javax.swing.DefaultComboBoxModel','javax.swing.SwingUtilities','java.awt.event.ItemListener','java.awt.event.ActionListener','javax.swing.event.PopupMenuListener','javax.swing.event.PopupMenuEvent',['javax.swing.JComboBox','.ComboBoxActionPropertyChangeListener'],'java.awt.EventQueue','java.awt.event.ActionEvent','java.awt.event.ItemEvent',['javax.swing.JComboBox','.DefaultKeySelectionManager']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JComboBox", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', ['java.awt.ItemSelectable', 'javax.swing.event.ListDataListener', 'java.awt.event.ActionListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
this.c$$TEA = C$.c$$OA;
this.prototype.setPrototypeDisplayValue$TE = this.prototype.setPrototypeDisplayValue$O;
this.prototype.addItem$TE = this.prototype.addItem$O;
this.prototype.insertItemAt$TE$I = this.prototype.insertItemAt$O$I;
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.dataModel=null;
this.renderer=null;
this.editor=null;
this.maximumRowCount=0;
this.isEditable=false;
this.keySelectionManager=null;
this.actionCommand=null;
this.lightWeightPopupEnabled=false;
this.selectedItemReminder=null;
this.prototypeDisplayValue=null;
this.firingActionEvent=false;
this.selectingItem=false;
this.action=null;
this.actionPropertyChangeListener=null;
this._trigger=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.maximumRowCount=8;
this.isEditable=false;
this.keySelectionManager=null;
this.actionCommand="comboBoxChanged";
this.lightWeightPopupEnabled=$I$(2).getDefaultLightWeightPopupEnabled$();
this.selectedItemReminder=null;
this.firingActionEvent=false;
this.selectingItem=false;
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_ComboBoxModel', function (aModel) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setModel$javax_swing_ComboBoxModel(aModel);
p$1.initComboBox.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'c$$OA', function (items) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setModel$javax_swing_ComboBoxModel(Clazz_new_($I$(3).c$$TEA,[items]));
p$1.initComboBox.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Vector', function (items) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setModel$javax_swing_ComboBoxModel(Clazz_new_($I$(3).c$$java_util_Vector,[items]));
p$1.initComboBox.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setModel$javax_swing_ComboBoxModel(Clazz_new_($I$(3)));
p$1.initComboBox.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'initComboBox', function () {
this.installAncestorListener$();
this.setUIProperty$S$O("opaque", new Boolean(true));
this.updateUI$();
}, p$1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "ComboBoxUI";
});
Clazz_newMeth(C$, 'installAncestorListener$', function () {
this.addAncestorListener$javax_swing_event_AncestorListener(((P$.JComboBox$1||
(function(){var C$=Clazz_newClass(P$, "JComboBox$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'javax.swing.event.AncestorListener', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'ancestorAdded$javax_swing_event_AncestorEvent', function (event) {
this.b$['javax.swing.JComboBox'].hidePopup$.apply(this.b$['javax.swing.JComboBox'], []);
});
Clazz_newMeth(C$, 'ancestorRemoved$javax_swing_event_AncestorEvent', function (event) {
this.b$['javax.swing.JComboBox'].hidePopup$.apply(this.b$['javax.swing.JComboBox'], []);
});
Clazz_newMeth(C$, 'ancestorMoved$javax_swing_event_AncestorEvent', function (event) {
if (event.getSource$() !== this.b$['javax.swing.JComboBox'] ) this.b$['javax.swing.JComboBox'].hidePopup$.apply(this.b$['javax.swing.JComboBox'], []);
});
})()
), Clazz_new_(P$.JComboBox$1.$init$, [this, null])));
});
Clazz_newMeth(C$, 'updateUI$', function () {
C$.superclazz.prototype.updateUI$.apply(this, []);
var renderer=this.getRenderer$();
if (Clazz_instanceOf(renderer, "java.awt.Component")) {
$I$(4).updateComponentTreeUI$java_awt_Component(renderer);
}});
Clazz_newMeth(C$, 'setModel$javax_swing_ComboBoxModel', function (aModel) {
var oldModel=this.dataModel;
if (oldModel != null ) {
oldModel.removeListDataListener$javax_swing_event_ListDataListener(this);
}this.dataModel=aModel;
this.dataModel.addListDataListener$javax_swing_event_ListDataListener(this);
aModel.isAWT$ = this.isAWT$
this.selectedItemReminder=this.dataModel.getSelectedItem$();
this.firePropertyChange$S$O$O("model", oldModel, this.dataModel);
});
Clazz_newMeth(C$, 'getModel$', function () {
return this.dataModel;
});
Clazz_newMeth(C$, 'setLightWeightPopupEnabled$Z', function (aFlag) {
var oldFlag=this.lightWeightPopupEnabled;
this.lightWeightPopupEnabled=aFlag;
this.firePropertyChange$S$Z$Z("lightWeightPopupEnabled", oldFlag, this.lightWeightPopupEnabled);
});
Clazz_newMeth(C$, 'isLightWeightPopupEnabled$', function () {
return this.lightWeightPopupEnabled;
});
Clazz_newMeth(C$, 'setEditable$Z', function (aFlag) {
var oldFlag=this.isEditable;
this.isEditable=aFlag;
this.firePropertyChange$S$Z$Z("editable", oldFlag, this.isEditable);
});
Clazz_newMeth(C$, 'isEditable$', function () {
return this.isEditable;
});
Clazz_newMeth(C$, 'setMaximumRowCount$I', function (count) {
var oldCount=this.maximumRowCount;
this.maximumRowCount=count;
this.firePropertyChange$S$I$I("maximumRowCount", oldCount, this.maximumRowCount);
});
Clazz_newMeth(C$, 'getMaximumRowCount$', function () {
return this.maximumRowCount;
});
Clazz_newMeth(C$, 'setRenderer$javax_swing_ListCellRenderer', function (aRenderer) {
var oldRenderer=this.renderer;
this.renderer=aRenderer;
this.firePropertyChange$S$O$O("renderer", oldRenderer, this.renderer);
this.invalidate$();
});
Clazz_newMeth(C$, 'getRenderer$', function () {
return this.renderer;
});
Clazz_newMeth(C$, 'setEditor$javax_swing_ComboBoxEditor', function (anEditor) {
var oldEditor=this.editor;
if (this.editor != null ) {
this.editor.removeActionListener$java_awt_event_ActionListener(this);
}this.editor=anEditor;
if (this.editor != null ) {
this.editor.addActionListener$java_awt_event_ActionListener(this);
}this.firePropertyChange$S$O$O("editor", oldEditor, this.editor);
});
Clazz_newMeth(C$, 'getEditor$', function () {
return this.editor;
});
Clazz_newMeth(C$, 'setSelectedItem$O', function (anObject) {
var oldSelection=this.selectedItemReminder;
var objectToSelect=anObject;
if (oldSelection == null || !oldSelection.equals$O(anObject) ) {
if (anObject != null && !this.isEditable$() ) {
var found=false;
for (var i=0; i < this.dataModel.getSize$(); i++) {
var element=this.dataModel.getElementAt$I(i);
if (anObject.equals$O(element)) {
found=true;
objectToSelect=element;
break;
}}
if (!found) {
return;
}}this.selectingItem=true;
if (this._trigger || (!this.isAWT$ &&true) ) {
this.dataModel.setSelectedItem$O(objectToSelect);
} else {
(this.dataModel).秘setSelectedItemQuiet$O(objectToSelect);
}this.selectingItem=false;
if (this.selectedItemReminder !== this.dataModel.getSelectedItem$() ) {
this.selectedItemChanged$();
}}this.fireActionEvent$();
});
Clazz_newMeth(C$, 'getSelectedItem$', function () {
return this.dataModel.getSelectedItem$();
});
Clazz_newMeth(C$, 'setSelectedIndex$I', function (anIndex) {
var size=this.dataModel.getSize$();
if (anIndex == -1) {
this.setSelectedItem$O(null);
} else if (anIndex < -1 || anIndex >= size ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["setSelectedIndex: " + anIndex + " out of bounds" ]);
} else {
this.setSelectedItem$O(this.dataModel.getElementAt$I(anIndex));
}});
Clazz_newMeth(C$, 'getSelectedIndex$', function () {
var sObject=this.dataModel.getSelectedItem$();
var i;
var c;
var obj;
for (i=0, c=this.dataModel.getSize$(); i < c; i++) {
obj=this.dataModel.getElementAt$I(i);
if (obj != null && obj.equals$O(sObject) ) return i;
}
return -1;
});
Clazz_newMeth(C$, 'getPrototypeDisplayValue$', function () {
return this.prototypeDisplayValue;
});
Clazz_newMeth(C$, 'setPrototypeDisplayValue$O', function (prototypeDisplayValue) {
var oldValue=this.prototypeDisplayValue;
this.prototypeDisplayValue=prototypeDisplayValue;
this.firePropertyChange$S$O$O("prototypeDisplayValue", oldValue, prototypeDisplayValue);
});
Clazz_newMeth(C$, 'addItem$O', function (anObject) {
this.checkMutableComboBoxModel$();
(this.dataModel).addElement$TE(anObject);
});
Clazz_newMeth(C$, 'insertItemAt$O$I', function (anObject, index) {
this.checkMutableComboBoxModel$();
(this.dataModel).insertElementAt$TE$I(anObject, index);
});
Clazz_newMeth(C$, 'removeItem$O', function (anObject) {
this.checkMutableComboBoxModel$();
(this.dataModel).removeElement$O(anObject);
});
Clazz_newMeth(C$, 'removeItemAt$I', function (anIndex) {
this.checkMutableComboBoxModel$();
(this.dataModel).removeElementAt$I(anIndex);
});
Clazz_newMeth(C$, 'removeAllItems$', function () {
this.checkMutableComboBoxModel$();
var model=this.dataModel;
var size=model.getSize$();
if (Clazz_instanceOf(model, "javax.swing.DefaultComboBoxModel")) {
(model).removeAllElements$();
} else {
for (var i=0; i < size; ++i) {
var element=model.getElementAt$I(0);
model.removeElement$O(element);
}
}this.selectedItemReminder=null;
if (this.isEditable$()) {
this.editor.setItem$O(null);
}});
Clazz_newMeth(C$, 'checkMutableComboBoxModel$', function () {
if (!(Clazz_instanceOf(this.dataModel, "javax.swing.MutableComboBoxModel"))) throw Clazz_new_(Clazz_load('RuntimeException').c$$S,["Cannot use this method with a non-Mutable data model."]);
});
Clazz_newMeth(C$, 'showPopup$', function () {
this.setPopupVisible$Z(true);
});
Clazz_newMeth(C$, 'hidePopup$', function () {
this.setPopupVisible$Z(false);
});
Clazz_newMeth(C$, 'setPopupVisible$Z', function (v) {
(this.getUI$()).setPopupVisible$javax_swing_JComboBox$Z(this, v);
});
Clazz_newMeth(C$, 'isPopupVisible$', function () {
return (this.getUI$()).isPopupVisible$javax_swing_JComboBox(this);
});
Clazz_newMeth(C$, 'addItemListener$java_awt_event_ItemListener', function (aListener) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']), aListener);
});
Clazz_newMeth(C$, 'removeItemListener$java_awt_event_ItemListener', function (aListener) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']), aListener);
});
Clazz_newMeth(C$, 'getItemListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']));
});
Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l);
});
Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) {
if ((l != null ) && (this.getAction$() === l ) ) {
this.setAction$javax_swing_Action(null);
} else {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l);
}});
Clazz_newMeth(C$, 'getActionListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']));
});
Clazz_newMeth(C$, 'addPopupMenuListener$javax_swing_event_PopupMenuListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l);
});
Clazz_newMeth(C$, 'removePopupMenuListener$javax_swing_event_PopupMenuListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l);
});
Clazz_newMeth(C$, 'getPopupMenuListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']));
});
Clazz_newMeth(C$, 'firePopupMenuWillBecomeVisible$', function () {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) {
if (e == null ) e=Clazz_new_($I$(8).c$$O,[this]);
(listeners[i + 1]).popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent(e);
}}
});
Clazz_newMeth(C$, 'firePopupMenuWillBecomeInvisible$', function () {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) {
if (e == null ) e=Clazz_new_($I$(8).c$$O,[this]);
(listeners[i + 1]).popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent(e);
}}
});
Clazz_newMeth(C$, 'firePopupMenuCanceled$', function () {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) {
if (e == null ) e=Clazz_new_($I$(8).c$$O,[this]);
(listeners[i + 1]).popupMenuCanceled$javax_swing_event_PopupMenuEvent(e);
}}
});
Clazz_newMeth(C$, 'setActionCommand$S', function (aCommand) {
this.actionCommand=aCommand;
});
Clazz_newMeth(C$, 'getActionCommand$', function () {
return this.actionCommand;
});
Clazz_newMeth(C$, 'setAction$javax_swing_Action', function (a) {
var oldValue=this.getAction$();
if (this.action == null || !this.action.equals$O(a) ) {
this.action=a;
if (oldValue != null ) {
this.removeActionListener$java_awt_event_ActionListener(oldValue);
oldValue.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener);
this.actionPropertyChangeListener=null;
}this.configurePropertiesFromAction$javax_swing_Action(this.action);
if (this.action != null ) {
if (!p$1.isListener$Class$java_awt_event_ActionListener.apply(this, [Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), this.action])) {
this.addActionListener$java_awt_event_ActionListener(this.action);
}this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action);
this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener);
}this.firePropertyChange$S$O$O("action", oldValue, this.action);
}});
Clazz_newMeth(C$, 'isListener$Class$java_awt_event_ActionListener', function (c, a) {
var isListener=false;
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === c && listeners[i + 1] === a ) {
isListener=true;
}}
return isListener;
}, p$1);
Clazz_newMeth(C$, 'getAction$', function () {
return this.action;
});
Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) {
$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, a);
$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, a);
p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [a]);
});
Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) {
return Clazz_new_($I$(9).c$$javax_swing_JComboBox$javax_swing_Action,[this, a]);
});
Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) {
if (propertyName == "ActionCommandKey") {
p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [action]);
} else if (propertyName == "enabled") {
$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, action);
} else if ("ShortDescription" == propertyName) {
$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, action);
}});
Clazz_newMeth(C$, 'setActionCommandFromAction$javax_swing_Action', function (a) {
this.setActionCommand$S((a != null ) ? a.getValue$S("ActionCommandKey") : null);
}, p$1);
Clazz_newMeth(C$, 'fireItemStateChanged$java_awt_event_ItemEvent', function (e) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']) ) {
(listeners[i + 1]).itemStateChanged$(e);
}}
});
Clazz_newMeth(C$, 'fireActionEvent$', function () {
if (!this.firingActionEvent) {
this.firingActionEvent=true;
var e=null;
var listeners=this.listenerList.getListenerList$();
var mostRecentEventTime=$I$(10).getMostRecentEventTime$();
var modifiers=0;
var currentEvent=$I$(10).getCurrentEvent$();
if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) {
modifiers=(currentEvent).getModifiers$();
} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) {
modifiers=(currentEvent).getModifiers$();
}for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']) ) {
if (e == null ) e=Clazz_new_($I$(11).c$$O$I$S$J$I,[this, 1001, this.getActionCommand$(), mostRecentEventTime, modifiers]);
(listeners[i + 1]).actionPerformed$(e);
}}
this.firingActionEvent=false;
}});
Clazz_newMeth(C$, 'selectedItemChanged$', function () {
if (this.selectedItemReminder != null ) {
if (!this.isAWT$ &&true) {
this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(12).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this.selectedItemReminder, 2]));
} else {
this.firePropertyChange$S$O$O("updateSwingJS", this.selectedItemReminder, this.getSelectedItem$());
}}this.selectedItemReminder=this.dataModel.getSelectedItem$();
if (this.selectedItemReminder != null ) {
this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(12).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this.selectedItemReminder, 1]));
}});
Clazz_newMeth(C$, 'getSelectedObjects$', function () {
var selectedObject=this.getSelectedItem$();
if (selectedObject == null ) return Clazz_array(java.lang.Object, [0]);
else {
var result=Clazz_array(java.lang.Object, [1]);
result[0]=selectedObject;
return result;
}});
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var newItem=this.getEditor$().getItem$();
this.setPopupVisible$Z(false);
this.getModel$().setSelectedItem$O(newItem);
var oldCommand=this.getActionCommand$();
this.setActionCommand$S("comboBoxEdited");
this.fireActionEvent$();
this.setActionCommand$S(oldCommand);
});
Clazz_newMeth(C$, 'contentsChanged$javax_swing_event_ListDataEvent', function (e) {
var oldSelection=this.selectedItemReminder;
var newSelection=this.dataModel.getSelectedItem$();
if (oldSelection == null || !oldSelection.equals$O(newSelection) ) {
this.selectedItemChanged$();
if (!this.selectingItem) {
this.fireActionEvent$();
}}});
Clazz_newMeth(C$, 'intervalAdded$javax_swing_event_ListDataEvent', function (e) {
if (this.selectedItemReminder !== this.dataModel.getSelectedItem$() ) {
this.selectedItemChanged$();
}});
Clazz_newMeth(C$, 'intervalRemoved$javax_swing_event_ListDataEvent', function (e) {
this.contentsChanged$javax_swing_event_ListDataEvent(e);
});
Clazz_newMeth(C$, 'selectWithKeyChar$C', function (keyChar) {
var index;
if (this.keySelectionManager == null ) this.keySelectionManager=this.createDefaultKeySelectionManager$();
index=this.keySelectionManager.selectionForKey$(keyChar, this.getModel$());
if (index != -1) {
this.setSelectedIndex$I(index);
return true;
} else return false;
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
C$.superclazz.prototype.setEnabled$Z.apply(this, [b]);
this.firePropertyChange$S$Z$Z("enabled", !this.isEnabled$(), this.isEnabled$());
});
Clazz_newMeth(C$, 'configureEditor$javax_swing_ComboBoxEditor$O', function (anEditor, anItem) {
anEditor.setItem$O(anItem);
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (e) {
if (e.getKeyCode$() == 9) {
this.hidePopup$();
}C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'setKeySelectionManager$javax_swing_JComboBox_KeySelectionManager', function (aManager) {
this.keySelectionManager=aManager;
});
Clazz_newMeth(C$, 'getKeySelectionManager$', function () {
return this.keySelectionManager;
});
Clazz_newMeth(C$, 'getItemCount$', function () {
return this.dataModel.getSize$();
});
Clazz_newMeth(C$, 'getItemAt$I', function (index) {
return this.dataModel.getElementAt$I(index);
});
Clazz_newMeth(C$, 'createDefaultKeySelectionManager$', function () {
return Clazz_new_($I$(13), [this, null]);
});
Clazz_newMeth(C$, 'paramString$', function () {
var selectedItemReminderString=(this.selectedItemReminder != null ? this.selectedItemReminder.toString() : "");
var isEditableString=(this.isEditable ? "true" : "false");
var lightWeightPopupEnabledString=(this.lightWeightPopupEnabled ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",isEditable=" + isEditableString + ",lightWeightPopupEnabled=" + lightWeightPopupEnabledString + ",maximumRowCount=" + this.maximumRowCount + ",selectedItemReminder=" + selectedItemReminderString ;
});
Clazz_newMeth(C$, '_setTrigger$Z', function (b) {
this._trigger=b;
});
;
(function(){var C$=Clazz_newClass(P$.JComboBox, "ComboBoxActionPropertyChangeListener", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.ActionPropertyChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_JComboBox$javax_swing_Action', function (b, a) {
C$.superclazz.c$$TT$javax_swing_Action.apply(this, [b, a]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPropertyChanged$javax_swing_JComboBox$javax_swing_Action$java_beans_PropertyChangeEvent','actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent'], function (cb, action, e) {
if ($I$(1).shouldReconfigure$java_beans_PropertyChangeEvent(e)) {
cb.configurePropertiesFromAction$javax_swing_Action(action);
} else {
cb.actionPropertyChanged$javax_swing_Action$S(action, e.getPropertyName$());
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newInterface(P$.JComboBox, "KeySelectionManager", function(){
});
})()
;
(function(){var C$=Clazz_newClass(P$.JComboBox, "DefaultKeySelectionManager", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, [['javax.swing.JComboBox','javax.swing.JComboBox.KeySelectionManager']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['selectionForKey$C$javax_swing_ComboBoxModel','selectionForKey$'], function (aKey, aModel) {
var i;
var c;
var currentSelection=-1;
var selectedItem=aModel.getSelectedItem$();
var v;
var pattern;
if (selectedItem != null ) {
for (i=0, c=aModel.getSize$(); i < c; i++) {
if (selectedItem === aModel.getElementAt$I(i) ) {
currentSelection=i;
break;
}}
}pattern=("" + aKey).toLowerCase$();
aKey=pattern.charAt$I(0);
for (i=++currentSelection, c=aModel.getSize$(); i < c; i++) {
var elem=aModel.getElementAt$I(i);
if (elem != null && elem.toString() != null ) {
v=elem.toString().toLowerCase$();
if (v.length$() > 0 && v.charAt$I(0) == aKey ) return i;
}}
for (i=0; i < currentSelection; i++) {
var elem=aModel.getElementAt$I(i);
if (elem != null && elem.toString() != null ) {
v=elem.toString().toLowerCase$();
if (v.length$() > 0 && v.charAt$I(0) == aKey ) return i;
}}
return -1;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.SwingUtilities',['javax.swing.JComponent','.IntVector'],'javajs.util.Lst','javax.swing.JComponent','javax.swing.event.EventListenerList','java.util.HashSet','javax.swing.KeyStroke','java.awt.Rectangle','javax.swing.RepaintManager','sun.font.FontDesignMetrics','java.awt.Insets','javax.swing.ClientPropertyKey',['javax.swing.JComponent','.ActionStandin'],'java.util.Hashtable','javax.swing.KeyboardManager','javax.swing.InputMap','javax.swing.ComponentInputMap','javax.swing.ActionMap',['java.awt.Component','.BaselineResizeBehavior'],'java.util.Locale',['javax.swing.JComponent','.KeyboardState'],'javax.swing.Popup','javax.swing.ToolTipManager','javax.swing.JToolTip','javax.swing.Autoscroller','javax.swing.ArrayTable','swingjs.JSUtil','javax.swing.AncestorNotifier','javax.swing.event.AncestorListener','java.beans.PropertyChangeListener','java.util.ArrayList','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JComponent", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.Container');
C$.managingFocusForwardTraversalKeys=null;
C$.managingFocusBackwardTraversalKeys=null;
C$.DEBUG_GRAPHICS_LOADED=false;
C$.INPUT_VERIFIER_SOURCE_KEY=null;
C$._tempRect=null;
C$.componentObtainingGraphicsFrom=null;
C$.focusController=null;
C$.JComponent_TRANSFER_HANDLER=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.INPUT_VERIFIER_SOURCE_KEY= Clazz_new_();
C$._tempRect=Clazz_new_($I$(3));
C$.focusController=((P$.JComponent$1||
(function(){var C$=Clazz_newClass(P$, "JComponent$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'sun.awt.RequestFocusController', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['acceptRequestFocus$java_awt_Component$java_awt_Component$Z$Z$sun_awt_CausedFocusEvent_Cause','acceptRequestFocus$'], function (from, to, temporary, focusedWindowChangeAllowed, cause) {
if ((to == null ) || !(Clazz_instanceOf(to, "javax.swing.JComponent")) ) {
return true;
}if ((from == null ) || !(Clazz_instanceOf(from, "javax.swing.JComponent")) ) {
return true;
}var target=to;
if (!target.getVerifyInputWhenFocusTarget$()) {
return true;
}var jFocusOwner=from;
var iv=jFocusOwner.getInputVerifier$();
if (iv == null ) {
return true;
} else {
var currentSource=$I$(1).appContextGet$O($I$(4).INPUT_VERIFIER_SOURCE_KEY);
if (currentSource === jFocusOwner ) {
return true;
}$I$(1).appContextPut$O$O($I$(4).INPUT_VERIFIER_SOURCE_KEY, jFocusOwner);
try {
return iv.shouldYieldFocus$javax_swing_JComponent(jFocusOwner);
} finally {
if (currentSource != null ) {
$I$(1).appContextPut$O$O($I$(4).INPUT_VERIFIER_SOURCE_KEY, currentSource);
} else {
$I$(1).appContextRemove$O($I$(4).INPUT_VERIFIER_SOURCE_KEY);
}}
}});
})()
), Clazz_new_(P$.JComponent$1.$init$, [this, null]));
C$.JComponent_TRANSFER_HANDLER="transfer_handler";
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.秘isAlignmentXSet=false;
this.秘alignmentX=0;
this.秘isAlignmentYSet=false;
this.秘alignmentY=0;
this.listenerList=null;
this.clientProperties=null;
this.autoscrolls=false;
this.flags=0;
this.verifyInputWhenFocusTarget=false;
this.paintingChild=null;
this.秘popupMenu=null;
this.focusInputMap=null;
this.ancestorInputMap=null;
this.windowInputMap=null;
this.actionMap=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.listenerList=Clazz_new_($I$(5));
this.verifyInputWhenFocusTarget=true;
}, 1);
Clazz_newMeth(C$, 'safelyGetGraphics$java_awt_Component$java_awt_Component', function (c, root) {
C$.componentObtainingGraphicsFrom=root;
var g=c.getGraphics$();
C$.componentObtainingGraphicsFrom=null;
return g;
}, 1);
Clazz_newMeth(C$, 'getGraphicsInvoked$java_awt_Component', function (root) {
if (!C$.isComponentObtainingGraphicsFrom$java_awt_Component(root)) {
var rootPane=(root).getRootPane$();
if (rootPane != null ) {
rootPane.disableTrueDoubleBuffering$();
}}}, 1);
Clazz_newMeth(C$, 'isComponentObtainingGraphicsFrom$java_awt_Component', function (c) {
return (c == null && C$.componentObtainingGraphicsFrom != null || C$.componentObtainingGraphicsFrom === c );
}, 1);
Clazz_newMeth(C$, 'getManagingFocusForwardTraversalKeys$', function () {
{
if (C$.managingFocusForwardTraversalKeys == null ) {
C$.managingFocusForwardTraversalKeys=Clazz_new_($I$(6).c$$I,[1]);
C$.managingFocusForwardTraversalKeys.add$TE($I$(7).getKeyStroke$I$I(9, 2));
}}return C$.managingFocusForwardTraversalKeys;
}, 1);
Clazz_newMeth(C$, 'getManagingFocusBackwardTraversalKeys$', function () {
{
if (C$.managingFocusBackwardTraversalKeys == null ) {
C$.managingFocusBackwardTraversalKeys=Clazz_new_($I$(6).c$$I,[1]);
C$.managingFocusBackwardTraversalKeys.add$TE($I$(7).getKeyStroke$I$I(9, 3));
}}return C$.managingFocusBackwardTraversalKeys;
}, 1);
Clazz_newMeth(C$, 'fetchRectangle$', function () {
{
var rect;
var size=C$._tempRect.size$();
if (size > 0) {
rect=C$._tempRect.removeItemAt$I(size - 1);
} else {
rect=Clazz_new_($I$(8).c$$I$I$I$I,[0, 0, 0, 0]);
}return rect;
}}, 1);
Clazz_newMeth(C$, 'recycleRectangle$java_awt_Rectangle', function (rect) {
{
C$._tempRect.addLast$TV(rect);
}}, 1);
Clazz_newMeth(C$, 'setInheritsPopupMenu$Z', function (value) {
var oldValue=p$1.getFlag$I.apply(this, [23]);
p$1.setFlag$I$Z.apply(this, [23, value]);
this.firePropertyChange$S$Z$Z("inheritsPopupMenu", oldValue, value);
});
Clazz_newMeth(C$, 'getInheritsPopupMenu$', function () {
return p$1.getFlag$I.apply(this, [23]);
});
Clazz_newMeth(C$, 'setComponentPopupMenu$javax_swing_JPopupMenu', function (popup) {
if (popup != null ) {
this.enableEvents$J(16);
}var oldPopup=this.秘popupMenu;
this.秘popupMenu=popup;
this.firePropertyChange$S$O$O("componentPopupMenu", oldPopup, popup);
});
Clazz_newMeth(C$, 'getComponentPopupMenu$', function () {
if (!this.getInheritsPopupMenu$()) {
return this.秘popupMenu;
}if (this.秘popupMenu == null ) {
var parent=this.getParent$();
while (parent != null ){
if (Clazz_instanceOf(parent, "javax.swing.JComponent")) {
return (parent).getComponentPopupMenu$();
}if (parent.isWindowOrJSApplet$()) {
break;
}parent=parent.getParent$();
}
return null;
}return this.秘popupMenu;
});
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.enableEvents$J(8);
C$.superclazz.prototype.setLocale$java_util_Locale.apply(this, [C$.getDefaultLocale$()]);
}, 1);
Clazz_newMeth(C$, 'getComponentGraphics$java_awt_Graphics', function (g) {
var componentGraphics=g;
componentGraphics.setColor$java_awt_Color(this.getForeground$());
componentGraphics.setFont$java_awt_Font(this.getFont$());
return componentGraphics;
});
Clazz_newMeth(C$, 'paintComponent$java_awt_Graphics', function (g) {
if (this.ui != null && g != null ) {
var scratchGraphics=g.create$();
try {
this.ui.update$java_awt_Graphics$javax_swing_JComponent(scratchGraphics, this);
} finally {
scratchGraphics.dispose$();
}
}});
Clazz_newMeth(C$, 'paintChildren$java_awt_Graphics', function (g) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var i=this.getComponentCount$() - 1;
if (i < 0) {
return;
}if (this.paintingChild != null && (Clazz_instanceOf(this.paintingChild, "javax.swing.JComponent")) ) {
for (; i >= 0; i--) {
if (this.getComponent$I(i) === this.paintingChild ) {
break;
}}
}var tmpRect=C$.fetchRectangle$();
var tmpRect2=C$.fetchRectangle$();
for (; i >= 0; i--) {
var jc=this.getComponent$I(i);
if (jc != null && jc.isVisible$() ) {
jc.getBounds$java_awt_Rectangle(tmpRect);
var isContentPane=jc.getRootPane$().getContentPane$() === jc ;
var vr=(Clazz_instanceOf(jc, "javax.swing.JTable") ? jc.getVisibleRect$() : tmpRect);
var jsg=g.create$I$I$I$I(tmpRect.x, (isContentPane ? 0 : tmpRect.y), vr.width, vr.height);
jsg.setColor$java_awt_Color(jc.getForeground$());
jsg.setFont$java_awt_Font(jc.getFont$());
var shouldSetFlagBack=false;
try {
jc.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jsg, true);
jc.paint$java_awt_Graphics(jsg);
jc.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(this.秘getJSGraphic2D$java_awt_Graphics(jsg), false);
} finally {
jsg.dispose$();
if (shouldSetFlagBack) {
p$1.setFlag$I$Z.apply((jc), [1, false]);
p$1.setFlag$I$Z.apply((jc), [2, false]);
}}
}}
C$.recycleRectangle$java_awt_Rectangle(tmpRect2);
C$.recycleRectangle$java_awt_Rectangle(tmpRect);
}});
Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) {
var border=this.getBorder$();
if (border != null ) {
border.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(this, g, 0, 0, this.getWidth$(), this.getHeight$());
}});
Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) {
this.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
var shouldClearPaintFlags=false;
if ((this.getWidth$() <= 0) || (this.getHeight$() <= 0) ) {
return;
}var componentGraphics=this.getComponentGraphics$java_awt_Graphics(g);
var cg=componentGraphics.create$();
try {
if (this.getParent$() != null && !(Clazz_instanceOf(this.getParent$(), "javax.swing.JComponent")) ) {
p$1.adjustPaintFlags.apply(this, []);
shouldClearPaintFlags=true;
}var printing=p$1.getFlag$I.apply(this, [11]);
if (!printing) {
p$1.paintComponentSafely$java_awt_Graphics.apply(this, [cg]);
p$1.paintBorderSafely$java_awt_Graphics.apply(this, [cg]);
} else {
p$1.printComponentSafely$java_awt_Graphics.apply(this, [cg]);
p$1.printBorderSafely$java_awt_Graphics.apply(this, [cg]);
}if (!printing) {
this.paintChildren$java_awt_Graphics(cg);
} else {
this.printChildren$java_awt_Graphics(cg);
}} finally {
cg.dispose$();
if (shouldClearPaintFlags) {
p$1.setFlag$I$Z.apply(this, [1, false]);
p$1.setFlag$I$Z.apply(this, [2, false]);
p$1.setFlag$I$Z.apply(this, [11, false]);
p$1.setFlag$I$Z.apply(this, [12, false]);
}}
});
Clazz_newMeth(C$, 'paintForceDoubleBuffered$java_awt_Graphics', function (g) {
var rm=$I$(9).currentManager$javax_swing_JComponent(this);
var clip=g.getClipBounds$();
rm.beginPaint$();
p$1.setFlag$I$Z.apply(this, [13, true]);
try {
rm.paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I(this, this, g, clip.x, clip.y, clip.width, clip.height);
} finally {
rm.endPaint$();
p$1.setFlag$I$Z.apply(this, [13, false]);
}
});
Clazz_newMeth(C$, 'isPainting$', function () {
var component=this;
while (component != null ){
if (Clazz_instanceOf(component, "javax.swing.JComponent") && p$1.getFlag$I.apply((component), [1]) ) {
return true;
}component=component.getParent$();
}
return false;
});
Clazz_newMeth(C$, 'adjustPaintFlags', function () {
var jparent=null;
var parent;
for (parent=this.getParent$(); parent != null ; parent=parent.getParent$()) {
if (Clazz_instanceOf(parent, "javax.swing.JComponent")) {
jparent=parent;
if (p$1.getFlag$I.apply(jparent, [1])) p$1.setFlag$I$Z.apply(this, [1, true]);
if (p$1.getFlag$I.apply(jparent, [2])) p$1.setFlag$I$Z.apply(this, [2, true]);
if (p$1.getFlag$I.apply(jparent, [11])) p$1.setFlag$I$Z.apply(this, [11, true]);
if (p$1.getFlag$I.apply(jparent, [12])) p$1.setFlag$I$Z.apply(this, [12, true]);
break;
}}
}, p$1);
Clazz_newMeth(C$, 'printAll$java_awt_Graphics', function (g) {
p$1.setFlag$I$Z.apply(this, [12, true]);
try {
this.print$java_awt_Graphics(g);
} finally {
p$1.setFlag$I$Z.apply(this, [12, false]);
}
});
Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) {
p$1.setFlag$I$Z.apply(this, [11, true]);
this.firePropertyChange$S$Z$Z("paintingForPrint", false, true);
try {
this.paint$java_awt_Graphics(g);
} finally {
p$1.setFlag$I$Z.apply(this, [11, false]);
this.firePropertyChange$S$Z$Z("paintingForPrint", true, false);
}
});
Clazz_newMeth(C$, 'printComponent$java_awt_Graphics', function (g) {
this.paintComponent$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'printChildren$java_awt_Graphics', function (g) {
this.paintChildren$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'printBorder$java_awt_Graphics', function (g) {
this.paintBorder$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'isPaintingTile$', function () {
return p$1.getFlag$I.apply(this, [2]);
});
Clazz_newMeth(C$, 'isPaintingForPrint$', function () {
return p$1.getFlag$I.apply(this, [11]);
});
Clazz_newMeth(C$, 'isManagingFocus$', function () {
return false;
});
Clazz_newMeth(C$, 'registerNextFocusableComponent', function () {
p$1.registerNextFocusableComponent$java_awt_Component.apply(this, [this.getNextFocusableComponent$()]);
}, p$1);
Clazz_newMeth(C$, 'registerNextFocusableComponent$java_awt_Component', function (nextFocusableComponent) {
if (nextFocusableComponent == null ) {
return;
}}, p$1);
Clazz_newMeth(C$, 'deregisterNextFocusableComponent', function () {
var nextFocusableComponent=this.getNextFocusableComponent$();
if (nextFocusableComponent == null ) {
return;
}var nearestRoot=(this.isFocusCycleRoot$()) ? this : this.getFocusCycleRootAncestor$();
if (nearestRoot == null ) {
return;
}}, p$1);
Clazz_newMeth(C$, 'setNextFocusableComponent$java_awt_Component', function (aComponent) {
var displayable=this.isDisplayable$();
if (displayable) {
p$1.deregisterNextFocusableComponent.apply(this, []);
}this.putClientProperty$O$O("nextFocus", aComponent);
if (displayable) {
p$1.registerNextFocusableComponent$java_awt_Component.apply(this, [aComponent]);
}});
Clazz_newMeth(C$, 'getNextFocusableComponent$', function () {
return this.getClientProperty$O("nextFocus");
});
Clazz_newMeth(C$, 'setRequestFocusEnabled$Z', function (requestFocusEnabled) {
p$1.setFlag$I$Z.apply(this, [22, !requestFocusEnabled]);
});
Clazz_newMeth(C$, 'isRequestFocusEnabled$', function () {
return !p$1.getFlag$I.apply(this, [22]);
});
Clazz_newMeth(C$, 'requestFocus$', function () {
C$.superclazz.prototype.requestFocus$.apply(this, []);
});
Clazz_newMeth(C$, 'requestFocus$Z', function (temporary) {
C$.superclazz.prototype.requestFocus$.apply(this, []);
return true;
});
Clazz_newMeth(C$, 'requestFocusInWindow$', function () {
return C$.superclazz.prototype.requestFocusInWindow$.apply(this, []);
});
Clazz_newMeth(C$, 'requestFocusInWindow$Z', function (temporary) {
return C$.superclazz.prototype.requestFocusInWindow$.apply(this, []);
});
Clazz_newMeth(C$, 'grabFocus$', function () {
this.requestFocus$();
});
Clazz_newMeth(C$, 'setVerifyInputWhenFocusTarget$Z', function (verifyInputWhenFocusTarget) {
var oldVerifyInputWhenFocusTarget=this.verifyInputWhenFocusTarget;
this.verifyInputWhenFocusTarget=verifyInputWhenFocusTarget;
this.firePropertyChange$S$Z$Z("verifyInputWhenFocusTarget", oldVerifyInputWhenFocusTarget, verifyInputWhenFocusTarget);
});
Clazz_newMeth(C$, 'getVerifyInputWhenFocusTarget$', function () {
return this.verifyInputWhenFocusTarget;
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
return $I$(10).getMetrics$java_awt_Font(font);
});
Clazz_newMeth(C$, 'setPreferredSize$java_awt_Dimension', function (preferredSize) {
C$.superclazz.prototype.setPreferredSize$java_awt_Dimension.apply(this, [preferredSize]);
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.getPrefSizeJComp$();
});
Clazz_newMeth(C$, 'getPrefSizeJComp$', function () {
var size=(!this.isPreferredSizeSet$() && this.ui != null ? this.ui.getPreferredSize$javax_swing_JComponent(this) : null);
return (size == null ? this.preferredSize$() : size);
});
Clazz_newMeth(C$, 'setMaximumSize$java_awt_Dimension', function (maximumSize) {
C$.superclazz.prototype.setMaximumSize$java_awt_Dimension.apply(this, [maximumSize]);
});
Clazz_newMeth(C$, 'getMaximumSize$', function () {
if (this.isMaximumSizeSet$()) {
return C$.superclazz.prototype.getMaximumSize$.apply(this, []);
}var size=null;
if (this.ui != null ) {
size=this.ui.getMaximumSize$javax_swing_JComponent(this);
}return (size != null ) ? size : C$.superclazz.prototype.getMaximumSize$.apply(this, []);
});
Clazz_newMeth(C$, 'setMinimumSize$java_awt_Dimension', function (minimumSize) {
C$.superclazz.prototype.setMinimumSize$java_awt_Dimension.apply(this, [minimumSize]);
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
if (this.isMinimumSizeSet$()) {
return C$.superclazz.prototype.getMinimumSize$.apply(this, []);
}var size=null;
if (this.ui != null ) {
size=this.ui.getMinimumSize$javax_swing_JComponent(this);
}return (size != null ) ? size : C$.superclazz.prototype.getMinimumSize$.apply(this, []);
});
Clazz_newMeth(C$, 'contains$I$I', function (x, y) {
return (this.ui != null ) ? this.ui.contains$javax_swing_JComponent$I$I(this, x, y) : this.inside$I$I(x, y);
});
Clazz_newMeth(C$, 'setBorder$javax_swing_border_Border', function (border) {
var oldBorder=this.秘border;
this.秘border=border;
this.firePropertyChange$S$O$O("border", oldBorder, border);
if (border !== oldBorder ) {
if (border == null || oldBorder == null || !(border.getBorderInsets$java_awt_Component(this).equals$O(oldBorder.getBorderInsets$java_awt_Component(this))) ) {
this.revalidate$();
}this.repaint$();
}});
Clazz_newMeth(C$, 'getBorder$', function () {
return this.秘border;
});
Clazz_newMeth(C$, 'getInsets$', function () {
if (this.秘border != null ) {
return this.秘border.getBorderInsets$java_awt_Component(this);
}return C$.superclazz.prototype.getInsets$.apply(this, []);
});
Clazz_newMeth(C$, 'getInsets$java_awt_Insets', function (insets) {
var $in=null;
if (insets == null ) {
insets=Clazz_new_($I$(11).c$$I$I$I$I,[0, 0, 0, 0]);
}if (this.isAWT || this.isAWTContainer ||false) {
$in=this.getInsets$();
} else {
if (this.秘border == null ) {
insets.left=insets.top=insets.right=insets.bottom=0;
} else {
if (Clazz_instanceOf(this.秘border, "javax.swing.border.AbstractBorder")) {
$in=(this.秘border).getBorderInsets$java_awt_Component$java_awt_Insets(this, insets);
}$in=this.秘border.getBorderInsets$java_awt_Component(this);
}}if ($in != null ) {
insets.left=$in.left;
insets.right=$in.right;
insets.top=$in.top;
insets.bottom=$in.bottom;
}return insets;
});
Clazz_newMeth(C$, 'getAlignmentY$', function () {
if (this.秘isAlignmentYSet) {
return this.秘alignmentY;
}return C$.superclazz.prototype.getAlignmentY$.apply(this, []);
});
Clazz_newMeth(C$, 'setAlignmentY$F', function (alignmentY) {
this.秘alignmentY=alignmentY > 1.0 ? 1.0 : alignmentY < 0.0 ? 0.0 : alignmentY;
this.秘isAlignmentYSet=true;
});
Clazz_newMeth(C$, 'getAlignmentX$', function () {
if (this.秘isAlignmentXSet) {
return this.秘alignmentX;
}return C$.superclazz.prototype.getAlignmentX$.apply(this, []);
});
Clazz_newMeth(C$, 'setAlignmentX$F', function (alignmentX) {
this.秘alignmentX=alignmentX > 1.0 ? 1.0 : alignmentX < 0.0 ? 0.0 : alignmentX;
this.秘isAlignmentXSet=true;
});
Clazz_newMeth(C$, 'setInputVerifier$javax_swing_InputVerifier', function (inputVerifier) {
var oldInputVerifier=this.getClientProperty$O($I$(12).JComponent_INPUT_VERIFIER);
this.putClientProperty$O$O($I$(12).JComponent_INPUT_VERIFIER, inputVerifier);
this.firePropertyChange$S$O$O("inputVerifier", oldInputVerifier, inputVerifier);
});
Clazz_newMeth(C$, 'getInputVerifier$', function () {
return this.getClientProperty$O($I$(12).JComponent_INPUT_VERIFIER);
});
Clazz_newMeth(C$, 'getGraphics$', function () {
return C$.superclazz.prototype.getGraphics$.apply(this, []);
});
Clazz_newMeth(C$, 'registerKeyboardAction$java_awt_event_ActionListener$S$javax_swing_KeyStroke$I', function (anAction, aCommand, aKeyStroke, aCondition) {
var inputMap=this.getInputMap$I$Z(aCondition, true);
if (inputMap != null ) {
var actionMap=this.getActionMap$Z(true);
var action=Clazz_new_($I$(13).c$$java_awt_event_ActionListener$S, [this, null, anAction, aCommand]);
inputMap.put$javax_swing_KeyStroke$O(aKeyStroke, action);
if (actionMap != null ) {
actionMap.put$O$javax_swing_Action(action, action);
}}});
Clazz_newMeth(C$, 'registerWithKM$', function () {
p$1.registerWithKeyboardManager$Z.apply(this, [false]);
});
Clazz_newMeth(C$, 'registerWithKeyboardManager$Z', function (onlyIfNew) {
if (java.awt.JSComponent.秘getTopInvokableAncestor$java_awt_Component$Z(this, true) == null ) return;
var inputMap=this.getInputMap$I$Z(2, false);
var strokes;
var registered=this.getClientProperty$O("_WhenInFocusedWindow");
if (inputMap != null ) {
strokes=inputMap.allKeys$();
if (strokes != null ) {
for (var counter=strokes.length - 1; counter >= 0; counter--) {
if (!onlyIfNew || registered == null || registered.get$O(strokes[counter]) == null ) {
p$1.registerWithKeyboardManager$javax_swing_KeyStroke.apply(this, [strokes[counter]]);
}if (registered != null ) {
registered.remove$O(strokes[counter]);
}}
}} else {
strokes=null;
}if (registered != null && registered.size$() > 0 ) {
var keys=registered.keys$();
while (keys.hasMoreElements$()){
var ks=keys.nextElement$();
p$1.unregisterWithKeyboardManager$javax_swing_KeyStroke.apply(this, [ks]);
}
registered.clear$();
}if (strokes != null && strokes.length > 0 ) {
if (registered == null ) {
registered=Clazz_new_($I$(14).c$$I,[strokes.length]);
this.putClientProperty$O$O("_WhenInFocusedWindow", registered);
}for (var counter=strokes.length - 1; counter >= 0; counter--) {
registered.put$TK$TV(strokes[counter], strokes[counter]);
}
} else {
this.putClientProperty$O$O("_WhenInFocusedWindow", null);
}}, p$1);
Clazz_newMeth(C$, 'unregisterWithKeyboardManager', function () {
var registered=this.getClientProperty$O("_WhenInFocusedWindow");
if (registered != null && registered.size$() > 0 ) {
var keys=registered.keys$();
while (keys.hasMoreElements$()){
var ks=keys.nextElement$();
p$1.unregisterWithKeyboardManager$javax_swing_KeyStroke.apply(this, [ks]);
}
}this.putClientProperty$O$O("_WhenInFocusedWindow", null);
}, p$1);
Clazz_newMeth(C$, 'componentInputMapChanged$javax_swing_ComponentInputMap', function (inputMap) {
var km=this.getInputMap$I$Z(2, false);
while (km !== inputMap && km != null ){
km=km.getParent$();
}
if (km != null ) {
p$1.registerWithKeyboardManager$Z.apply(this, [false]);
}});
Clazz_newMeth(C$, 'registerWithKeyboardManager$javax_swing_KeyStroke', function (aKeyStroke) {
$I$(15).getCurrentManager$().registerKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent(aKeyStroke, this);
}, p$1);
Clazz_newMeth(C$, 'unregisterWithKeyboardManager$javax_swing_KeyStroke', function (aKeyStroke) {
$I$(15).getCurrentManager$().unregisterKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent(aKeyStroke, this);
}, p$1);
Clazz_newMeth(C$, 'registerKeyboardAction$java_awt_event_ActionListener$javax_swing_KeyStroke$I', function (anAction, aKeyStroke, aCondition) {
this.registerKeyboardAction$java_awt_event_ActionListener$S$javax_swing_KeyStroke$I(anAction, null, aKeyStroke, aCondition);
});
Clazz_newMeth(C$, 'unregisterKeyboardAction$javax_swing_KeyStroke', function (aKeyStroke) {
var am=this.getActionMap$Z(false);
for (var counter=0; counter < 3; counter++) {
var km=this.getInputMap$I$Z(counter, false);
if (km != null ) {
var actionID=km.get$javax_swing_KeyStroke(aKeyStroke);
if (am != null && actionID != null ) {
am.remove$O(actionID);
}km.remove$javax_swing_KeyStroke(aKeyStroke);
}}
});
Clazz_newMeth(C$, 'getRegisteredKeyStrokes$', function () {
var counts=Clazz_array(Integer.TYPE, [3]);
var strokes=Clazz_array($I$(7), [3, null]);
for (var counter=0; counter < 3; counter++) {
var km=this.getInputMap$I$Z(counter, false);
strokes[counter]=(km != null ) ? km.allKeys$() : null;
counts[counter]=(strokes[counter] != null ) ? strokes[counter].length : 0;
}
var retValue=Clazz_array($I$(7), [counts[0] + counts[1] + counts[2] ]);
for (var counter=0, last=0; counter < 3; counter++) {
if (counts[counter] > 0) {
System.arraycopy$O$I$O$I$I(strokes[counter], 0, retValue, last, counts[counter]);
last+=counts[counter];
}}
return retValue;
});
Clazz_newMeth(C$, 'getConditionForKeyStroke$javax_swing_KeyStroke', function (aKeyStroke) {
for (var counter=0; counter < 3; counter++) {
var inputMap=this.getInputMap$I$Z(counter, false);
if (inputMap != null && inputMap.get$javax_swing_KeyStroke(aKeyStroke) != null ) {
return counter;
}}
return -1;
});
Clazz_newMeth(C$, 'getActionForKeyStroke$javax_swing_KeyStroke', function (aKeyStroke) {
var am=this.getActionMap$Z(false);
if (am == null ) {
return null;
}for (var counter=0; counter < 3; counter++) {
var inputMap=this.getInputMap$I$Z(counter, false);
if (inputMap != null ) {
var actionBinding=inputMap.get$javax_swing_KeyStroke(aKeyStroke);
if (actionBinding != null ) {
var action=am.get$O(actionBinding);
if (Clazz_instanceOf(action, "javax.swing.JComponent.ActionStandin")) {
return (action).actionListener;
}return action;
}}}
return null;
});
Clazz_newMeth(C$, 'resetKeyboardActions$', function () {
for (var counter=0; counter < 3; counter++) {
var inputMap=this.getInputMap$I$Z(counter, false);
if (inputMap != null ) {
inputMap.clear$();
}}
var am=this.getActionMap$Z(false);
if (am != null ) {
am.clear$();
}});
Clazz_newMeth(C$, 'setInputMap$I$javax_swing_InputMap', function (condition, map) {
switch (condition) {
case 2:
if (map != null && !(Clazz_instanceOf(map, "javax.swing.ComponentInputMap")) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["WHEN_IN_FOCUSED_WINDOW InputMaps must be of type ComponentInputMap"]);
}this.windowInputMap=map;
p$1.setFlag$I$Z.apply(this, [7, true]);
p$1.registerWithKeyboardManager$Z.apply(this, [false]);
break;
case 1:
this.ancestorInputMap=map;
p$1.setFlag$I$Z.apply(this, [6, true]);
break;
case 0:
this.focusInputMap=map;
p$1.setFlag$I$Z.apply(this, [5, true]);
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT"]);
}
});
Clazz_newMeth(C$, 'getInputMap$I', function (condition) {
return this.getInputMap$I$Z(condition, true);
});
Clazz_newMeth(C$, 'getInputMap$', function () {
return this.getInputMap$I$Z(0, true);
});
Clazz_newMeth(C$, 'setActionMap$javax_swing_ActionMap', function (am) {
this.actionMap=am;
p$1.setFlag$I$Z.apply(this, [8, true]);
});
Clazz_newMeth(C$, 'getActionMap$', function () {
return this.getActionMap$Z(true);
});
Clazz_newMeth(C$, 'getInputMap$I$Z', function (condition, create) {
switch (condition) {
case 0:
if (p$1.getFlag$I.apply(this, [5])) {
return this.focusInputMap;
}if (create) {
var km=Clazz_new_($I$(16));
this.setInputMap$I$javax_swing_InputMap(condition, km);
this.秘jsInputMapSet$();
return km;
}break;
case 1:
if (p$1.getFlag$I.apply(this, [6])) {
return this.ancestorInputMap;
}if (create) {
var km=Clazz_new_($I$(16));
this.setInputMap$I$javax_swing_InputMap(condition, km);
return km;
}break;
case 2:
if (p$1.getFlag$I.apply(this, [7])) {
return this.windowInputMap;
}if (create) {
var km=Clazz_new_($I$(17).c$$javax_swing_JComponent,[this]);
this.setInputMap$I$javax_swing_InputMap(condition, km);
return km;
}break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT"]);
}
return null;
});
Clazz_newMeth(C$, 'getActionMap$Z', function (create) {
if (p$1.getFlag$I.apply(this, [8])) {
return this.actionMap;
}if (create) {
var am=Clazz_new_($I$(18));
this.setActionMap$javax_swing_ActionMap(am);
return am;
}return null;
});
Clazz_newMeth(C$, 'getBaseline$I$I', function (width, height) {
C$.superclazz.prototype.getBaseline$I$I.apply(this, [width, height]);
if (this.ui != null ) {
return this.ui.getBaseline$javax_swing_JComponent$I$I(this, width, height);
}return -1;
});
Clazz_newMeth(C$, 'getBaselineResizeBehavior$', function () {
if (this.ui != null ) {
return this.ui.getBaselineResizeBehavior$javax_swing_JComponent(this);
}return $I$(19).OTHER;
});
Clazz_newMeth(C$, 'requestDefaultFocus$', function () {
var nearestRoot=(this.isFocusCycleRoot$()) ? this : this.getFocusCycleRootAncestor$();
if (nearestRoot == null ) {
return false;
}return false;
});
Clazz_newMeth(C$, 'setVisible$Z', function (aFlag) {
if (aFlag != this.isVisible$() ) {
C$.superclazz.prototype.setVisible$Z.apply(this, [aFlag]);
var parent=this.getParent$();
if (parent != null ) {
var r=this.getBounds$();
parent.repaint$I$I$I$I(r.x, r.y, r.width, r.height);
}this.revalidate$();
}});
Clazz_newMeth(C$, 'setEnabled$Z', function (enabled) {
var oldEnabled=this.isEnabled$();
C$.superclazz.prototype.setEnabled$Z.apply(this, [enabled]);
this.firePropertyChange$S$Z$Z("enabled", oldEnabled, enabled);
if (enabled != oldEnabled ) {
this.repaint$();
}});
Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (fg) {
var oldFg=this.getForeground$();
C$.superclazz.prototype.setForeground$java_awt_Color.apply(this, [fg]);
if ((oldFg != null ) ? !oldFg.equals$O(fg) : ((fg != null ) && !fg.equals$O(oldFg) )) {
this.repaint$();
}});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (bg) {
var oldBg=this.getBackground$();
C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [bg]);
if ((oldBg != null ) ? !oldBg.equals$O(bg) : ((bg != null ) && !bg.equals$O(oldBg) )) {
this.repaint$();
}});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (font) {
var oldFont=this.getFont$();
C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [font]);
if (font !== oldFont ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getDefaultLocale$', function () {
var l=$I$(1).appContextGet$O("JComponent.defaultLocale");
if (l == null ) {
l=$I$(20).getDefault$();
C$.setDefaultLocale$java_util_Locale(l);
}return l;
}, 1);
Clazz_newMeth(C$, 'setDefaultLocale$java_util_Locale', function (l) {
$I$(1).appContextPut$O$O("JComponent.defaultLocale", l);
}, 1);
Clazz_newMeth(C$, 'processComponentKeyEvent$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (e) {
var shouldProcessKey;
C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [e]);
if (!e.isConsumed$()) {
this.processComponentKeyEvent$java_awt_event_KeyEvent(e);
}shouldProcessKey=$I$(21).shouldProcess$java_awt_event_KeyEvent(e);
if (e.isConsumed$()) {
return;
}if (shouldProcessKey && this.processKeyBindings$java_awt_event_KeyEvent$Z(e, e.getID$() == 401) ) {
e.consume$();
}});
Clazz_newMeth(C$, 'processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z', function (ks, e, condition, pressed) {
var map=this.getInputMap$I$Z(condition, false);
var am=this.getActionMap$Z(false);
if (map != null && am != null && this.isEnabled$() ) {
var binding=map.get$javax_swing_KeyStroke(ks);
var action=(binding == null ) ? null : am.get$O(binding);
if (action != null ) {
return $I$(1).notifyAction$javax_swing_Action$javax_swing_KeyStroke$java_awt_event_KeyEvent$O$I(action, ks, e, this, e.getModifiers$());
}}return false;
});
Clazz_newMeth(C$, 'processKeyBindings$java_awt_event_KeyEvent$Z', function (e, pressed) {
if (!$I$(1).isValidKeyEventForKeyBindings$java_awt_event_KeyEvent(e)) {
return false;
}var ks;
if (e.getID$() == 400) {
ks=$I$(7).getKeyStroke$C(e.getKeyChar$());
} else {
ks=$I$(7).getKeyStroke$I$I$Z(e.getKeyCode$(), e.getModifiers$(), (pressed ? false : true));
}if (this.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, 0, pressed)) return true;
var parent=this;
while (parent != null && !parent.isWindowOrJSApplet$() ){
if (Clazz_instanceOf(parent, "javax.swing.JComponent")) {
if ((parent).processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, 1, pressed)) return true;
}parent=parent.getParent$();
}
if (parent != null ) {
return C$.processKeyBindingsForAllComponents$java_awt_event_KeyEvent$java_awt_Container$Z(e, parent, pressed);
}return false;
});
Clazz_newMeth(C$, 'processKeyBindingsForAllComponents$java_awt_event_KeyEvent$java_awt_Container$Z', function (e, container, pressed) {
while (true){
if ($I$(15).getCurrentManager$().fireKeyboardAction$java_awt_event_KeyEvent$Z$java_awt_Container(e, pressed, container)) {
return true;
}if ($I$(22).isHeavyWeight$java_awt_Container(container)) {
container=(container).getOwner$();
} else {
return false;
}}
}, 1);
Clazz_newMeth(C$, 'setToolTipText$S', function (text) {
var oldText=this.getToolTipText$();
this.putClientProperty$O$O("ToolTipText", text);
var toolTipManager=$I$(23).sharedInstance$();
if (text != null ) {
if (oldText == null ) {
toolTipManager.registerComponent$javax_swing_JComponent(this);
}} else {
toolTipManager.unregisterComponent$javax_swing_JComponent(this);
}});
Clazz_newMeth(C$, 'getToolTipText$', function () {
return this.getClientProperty$O("ToolTipText");
});
Clazz_newMeth(C$, 'getToolTipText$java_awt_event_MouseEvent', function (event) {
return this.getToolTipText$();
});
Clazz_newMeth(C$, 'getToolTipLocation$java_awt_event_MouseEvent', function (event) {
return null;
});
Clazz_newMeth(C$, 'getPopupLocation$java_awt_event_MouseEvent', function (event) {
return null;
});
Clazz_newMeth(C$, 'createToolTip$', function () {
var tip=Clazz_new_($I$(24));
tip.setComponent$javax_swing_JComponent(this);
return tip;
});
Clazz_newMeth(C$, 'scrollRectToVisible$java_awt_Rectangle', function (aRect) {
var parent;
var dx=this.getX$();
var dy=this.getY$();
for (parent=this.getParent$(); !(parent == null ) && !(Clazz_instanceOf(parent, "javax.swing.JComponent")) && !(Clazz_instanceOf(parent, "javax.swing.CellRendererPane")) ; parent=parent.getParent$()) {
var bounds=parent.getBounds$();
dx+=bounds.x;
dy+=bounds.y;
}
if (!(parent == null ) && !(Clazz_instanceOf(parent, "javax.swing.CellRendererPane")) ) {
aRect.x+=dx;
aRect.y+=dy;
(parent).scrollRectToVisible$java_awt_Rectangle(aRect);
aRect.x-=dx;
aRect.y-=dy;
}});
Clazz_newMeth(C$, 'setAutoscrolls$Z', function (autoscrolls) {
p$1.setFlag$I$Z.apply(this, [25, true]);
if (this.autoscrolls != autoscrolls ) {
this.autoscrolls=autoscrolls;
if (autoscrolls) {
this.enableEvents$J(16);
this.enableEvents$J(32);
} else {
$I$(25).stop$javax_swing_JComponent(this);
}}});
Clazz_newMeth(C$, 'getAutoscrolls$', function () {
return this.autoscrolls;
});
Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent', function (e) {
if (this.autoscrolls && e.getID$() == 502 ) {
$I$(25).stop$javax_swing_JComponent(this);
}C$.superclazz.prototype.processMouseEvent$java_awt_event_MouseEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'processMouseMotionEvent$java_awt_event_MouseEvent', function (e) {
var dispatch=true;
if (this.autoscrolls && e.getID$() == 506 ) {
dispatch=!$I$(25).isRunning$javax_swing_JComponent(this);
$I$(25).processMouseDragged$java_awt_event_MouseEvent(e);
}if (dispatch) {
C$.superclazz.prototype.processMouseMotionEvent$java_awt_event_MouseEvent.apply(this, [e]);
}});
Clazz_newMeth(C$, 'superProcessMouseMotionEvent$java_awt_event_MouseEvent', function (e) {
C$.superclazz.prototype.processMouseMotionEvent$java_awt_event_MouseEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'setCreatedDoubleBuffer$Z', function (newValue) {
p$1.setFlag$I$Z.apply(this, [9, newValue]);
});
Clazz_newMeth(C$, 'getCreatedDoubleBuffer$', function () {
return p$1.getFlag$I.apply(this, [9]);
});
Clazz_newMeth(C$, 'getTitledBorderText$', function () {
var border=this.getBorder$();
if (Clazz_instanceOf(border, "javax.swing.border.TitledBorder")) {
return (border).getTitle$();
} else {
return null;
}});
Clazz_newMeth(C$, 'getClientProperties', function () {
if (this.clientProperties == null ) {
this.clientProperties=Clazz_new_($I$(26));
}return this.clientProperties;
}, p$1);
Clazz_newMeth(C$, 'getClientProperty$O', function (key) {
return (this.clientProperties == null ? null : this.clientProperties.get$O(key));
});
Clazz_newMeth(C$, 'putClientProperty$O$O', function (key, value) {
if (value == null && this.clientProperties == null ) {
return;
}var clientProperties=p$1.getClientProperties.apply(this, []);
var oldValue;
{
oldValue=clientProperties.get$O(key);
if (value != null ) {
clientProperties.put$O$O(key, value);
} else if (oldValue != null ) {
clientProperties.remove$O(key);
} else {
return;
}}this.clientPropertyChanged$O$O$O(key, oldValue, value);
this.firePropertyChange$S$O$O(key.toString(), oldValue, value);
});
Clazz_newMeth(C$, 'clientPropertyChanged$O$O$O', function (key, oldValue, newValue) {
});
Clazz_newMeth(C$, 'setUI$javax_swing_plaf_ComponentUI', function (newUI) {
var oldUI=this.ui;
p$1.uninstallUIAndProperties.apply(this, []);
this.ui=newUI;
if (oldUI != null ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'uninstallUIAndProperties', function () {
if (this.ui != null ) {
(this.ui).reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this, null);
}}, p$1);
Clazz_newMeth(C$, 'setUIProperty$S$O', function (propertyName, value) {
if (propertyName == "opaque") {
if (!p$1.getFlag$I.apply(this, [24])) {
this.setOpaque$Z((value).booleanValue$());
p$1.setFlag$I$Z.apply(this, [24, false]);
}} else if (propertyName == "autoscrolls") {
if (!p$1.getFlag$I.apply(this, [25])) {
this.setAutoscrolls$Z((value).booleanValue$());
p$1.setFlag$I$Z.apply(this, [25, false]);
}} else if (propertyName == "focusTraversalKeysForward") {
} else if (propertyName == "focusTraversalKeysBackward") {
} else {
System.out.println$S(this.getClass$().getName$() + " property \"" + propertyName + "\" cannot be set using this method" + $I$(27).getStackTrace$I(5) );
}});
Clazz_newMeth(C$, 'setFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) {
C$.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this, [id, keystrokes]);
});
Clazz_newMeth(C$, 'isLightweightComponent$java_awt_Component', function (c) {
{
return(!c.rootPane);
}
}, 1);
Clazz_newMeth(C$, 'isOpaque$', function () {
return p$1.getFlag$I.apply(this, [3]);
});
Clazz_newMeth(C$, 'setOpaque$Z', function (isOpaque) {
var oldValue=p$1.getFlag$I.apply(this, [3]);
p$1.setFlag$I$Z.apply(this, [3, isOpaque]);
p$1.setFlag$I$Z.apply(this, [24, true]);
this.firePropertyChange$S$Z$Z("opaque", oldValue, isOpaque);
});
Clazz_newMeth(C$, 'rectangleIsObscured$I$I$I$I', function (x, y, width, height) {
var numChildren=this.getComponentCount$();
for (var i=0; i < numChildren; i++) {
var child=this.getComponent$I(i);
var cx;
var cy;
var cw;
var ch;
cx=child.getX$();
cy=child.getY$();
cw=child.getWidth$();
ch=child.getHeight$();
if (x >= cx && (x + width) <= (cx + cw) && y >= cy && (y + height) <= (cy + ch) && child.isVisible$() ) {
if (Clazz_instanceOf(child, "javax.swing.JComponent")) {
return (child).isOpaque$();
} else {
return false;
}}}
return false;
});
Clazz_newMeth(C$, 'computeVisibleRect$java_awt_Component$java_awt_Rectangle', function (c, visibleRect) {
var p=c.getParent$();
var bounds=c.getBounds$();
if (p == null || p.isWindowOrJSApplet$() ) {
visibleRect.setBounds$I$I$I$I(0, 0, bounds.width, bounds.height);
} else {
C$.computeVisibleRect$java_awt_Component$java_awt_Rectangle(p, visibleRect);
visibleRect.x-=bounds.x;
visibleRect.y-=bounds.y;
$I$(1).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, bounds.width, bounds.height, visibleRect);
}}, 1);
Clazz_newMeth(C$, 'computeVisibleRect$java_awt_Rectangle', function (visibleRect) {
C$.computeVisibleRect$java_awt_Component$java_awt_Rectangle(this, visibleRect);
});
Clazz_newMeth(C$, 'getVisibleRect$', function () {
var visibleRect=Clazz_new_($I$(8));
this.computeVisibleRect$java_awt_Rectangle(visibleRect);
return visibleRect;
});
Clazz_newMeth(C$, 'getTopLevelAncestor$', function () {
for (var p=this; p != null ; p=p.getParent$()) {
if (p.isWindowOrJSApplet$()) {
return p;
}}
return null;
});
Clazz_newMeth(C$, 'getAncestorNotifier', function () {
return this.getClientProperty$O($I$(12).JComponent_ANCESTOR_NOTIFIER);
}, p$1);
Clazz_newMeth(C$, 'addAncestorListener$javax_swing_event_AncestorListener', function (listener) {
var ancestorNotifier=p$1.getAncestorNotifier.apply(this, []);
if (ancestorNotifier == null ) {
ancestorNotifier=Clazz_new_($I$(28).c$$javax_swing_JComponent,[this]);
this.putClientProperty$O$O($I$(12).JComponent_ANCESTOR_NOTIFIER, ancestorNotifier);
}ancestorNotifier.addAncestorListener$javax_swing_event_AncestorListener(listener);
});
Clazz_newMeth(C$, 'removeAncestorListener$javax_swing_event_AncestorListener', function (listener) {
var ancestorNotifier=p$1.getAncestorNotifier.apply(this, []);
if (ancestorNotifier == null ) {
return;
}ancestorNotifier.removeAncestorListener$javax_swing_event_AncestorListener(listener);
if (ancestorNotifier.listenerList.getListenerList$().length == 0) {
ancestorNotifier.removeAllListeners$();
this.putClientProperty$O$O($I$(12).JComponent_ANCESTOR_NOTIFIER, null);
}});
Clazz_newMeth(C$, 'getAncestorListeners$', function () {
var ancestorNotifier=p$1.getAncestorNotifier.apply(this, []);
if (ancestorNotifier == null ) {
return Clazz_array($I$(29), [0]);
}return ancestorNotifier.getAncestorListeners$();
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
var result;
if (listenerType === Clazz_getClass($I$(29),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) {
result=this.getAncestorListeners$();
} else if (listenerType === Clazz_getClass($I$(30),['propertyChange$java_beans_PropertyChangeEvent']) ) {
result=this.getPropertyChangeListeners$();
} else {
result=this.listenerList.getListeners$Class(listenerType);
}if (result.length == 0) {
return C$.superclazz.prototype.getListeners$Class.apply(this, [listenerType]);
}return result;
});
Clazz_newMeth(C$, 'addNotify$', function () {
C$.superclazz.prototype.addNotify$.apply(this, []);
this.firePropertyChange$S$O$O("ancestor", null, this.getParent$());
p$1.registerWithKeyboardManager$Z.apply(this, [false]);
p$1.registerNextFocusableComponent.apply(this, []);
});
Clazz_newMeth(C$, 'removeNotify$', function () {
C$.superclazz.prototype.removeNotify$.apply(this, []);
this.firePropertyChange$S$O$O("ancestor", this.getParent$(), null);
p$1.unregisterWithKeyboardManager.apply(this, []);
p$1.deregisterNextFocusableComponent.apply(this, []);
if (this.getCreatedDoubleBuffer$()) {
$I$(9).currentManager$javax_swing_JComponent(this).resetDoubleBuffer$();
this.setCreatedDoubleBuffer$Z(false);
}if (this.autoscrolls) {
$I$(25).stop$javax_swing_JComponent(this);
}});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) {
$I$(9).currentManager$javax_swing_JComponent(this).addDirtyRegion$javax_swing_JComponent$I$I$I$I(this, x, y, width, height);
});
Clazz_newMeth(C$, 'repaint$java_awt_Rectangle', function (r) {
this.repaint$J$I$I$I$I(0, r.x, r.y, r.width, r.height);
});
Clazz_newMeth(C$, 'revalidate$', function () {
if (this.ui != null ) (this.ui).setTainted$();
if (this.getParent$() == null ) {
return;
}if ($I$(1).isEventDispatchThread$()) {
this.invalidate$();
$I$(9).currentManager$javax_swing_JComponent(this).addInvalidComponent$javax_swing_JComponent(this);
} else {
if (p$1.getFlag$I.apply(this, [28])) {
return;
}p$1.setFlag$I$Z.apply(this, [28, true]);
var callRevalidate=((P$.JComponent$2||
(function(){var C$=Clazz_newClass(P$, "JComponent$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
p$1.setFlag$I$Z.apply(this.b$['javax.swing.JComponent'], [28, false]);
this.b$['javax.swing.JComponent'].revalidate$.apply(this.b$['javax.swing.JComponent'], []);
});
})()
), Clazz_new_(P$.JComponent$2.$init$, [this, null]));
$I$(1).invokeLater$Runnable(callRevalidate);
}});
Clazz_newMeth(C$, 'isValidateRoot$', function () {
return false;
});
Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () {
return true;
});
Clazz_newMeth(C$, 'isPaintingOrigin$', function () {
return false;
});
Clazz_newMeth(C$, 'paintImmediately$I$I$I$I', function (x, y, w, h) {
var c=this;
var parent;
if (!this.isShowing$()) {
return;
}while (!this.isOpaque$() && (c).秘paintsSelf$() ){
parent=c.getParent$();
if (parent != null ) {
x+=c.getX$();
y+=c.getY$();
c=parent;
} else {
break;
}if (!(Clazz_instanceOf(c, "javax.swing.JComponent"))) {
break;
}}
if (Clazz_instanceOf(c, "javax.swing.JComponent")) {
(c)._paintImmediately$I$I$I$I(x, y, w, h);
} else {
c.repaint$I$I$I$I(x, y, w, h);
}});
Clazz_newMeth(C$, 'paintImmediately$java_awt_Rectangle', function (r) {
this.paintImmediately$I$I$I$I(r.x, r.y, r.width, r.height);
});
Clazz_newMeth(C$, 'alwaysOnTop$', function () {
return false;
});
Clazz_newMeth(C$, 'setPaintingChild$java_awt_Component', function (paintingChild) {
this.paintingChild=paintingChild;
});
Clazz_newMeth(C$, '_paintImmediately$I$I$I$I', function (x, y, w, h) {
var g;
var c;
var tmpX;
var tmpY;
var tmpWidth;
var tmpHeight;
var offsetX=0;
var offsetY=0;
var hasBuffer=false;
var bufferedComponent=null;
var paintingComponent=this;
var path=Clazz_new_($I$(31).c$$I,[7]);
var pIndex=-1;
var pCount=0;
tmpX=tmpY=tmpWidth=tmpHeight=0;
var paintImmediatelyClip=C$.fetchRectangle$();
paintImmediatelyClip.x=x;
paintImmediatelyClip.y=y;
paintImmediatelyClip.width=w;
paintImmediatelyClip.height=h;
var ontop=this.alwaysOnTop$() && this.isOpaque$() ;
if (ontop) {
$I$(1).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, this.getWidth$(), this.getHeight$(), paintImmediatelyClip);
if (paintImmediatelyClip.width == 0) {
C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip);
return;
}}var child;
for (c=this, child=null; c != null && !c.isWindowOrJSApplet$() ; child=c, c=c.getParent$()) {
var jc=(Clazz_instanceOf(c, "javax.swing.JComponent")) ? c : null;
path.add$TE(c);
if (!ontop && jc != null && !jc.isOptimizedDrawingEnabled$() ) {
var resetPC;
if (c !== this ) {
if (jc.isPaintingOrigin$()) {
resetPC=true;
} else {
var children=$I$(32).秘getChildArray$java_awt_Container(c);
var i=0;
for (var n=c.getComponentCount$(); i < n; i++) {
if (children[i] === child ) break;
}
switch (p$1.getObscuredState$I$I$I$I$I.apply(jc, [i, paintImmediatelyClip.x, paintImmediatelyClip.y, paintImmediatelyClip.width, paintImmediatelyClip.height])) {
case 0:
resetPC=false;
break;
case 2:
C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip);
return;
default:
resetPC=true;
break;
}
}} else {
resetPC=false;
}if (resetPC) {
paintingComponent=jc;
pIndex=pCount;
offsetX=offsetY=0;
hasBuffer=false;
}}pCount++;
if (!ontop) {
var bx=c.getX$();
var by=c.getY$();
tmpWidth=c.getWidth$();
tmpHeight=c.getHeight$();
$I$(1).computeIntersection$I$I$I$I$java_awt_Rectangle(tmpX, tmpY, tmpWidth, tmpHeight, paintImmediatelyClip);
paintImmediatelyClip.x+=bx;
paintImmediatelyClip.y+=by;
offsetX+=bx;
offsetY+=by;
}}
if (c == null || paintImmediatelyClip.width <= 0 || paintImmediatelyClip.height <= 0 ) {
C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip);
return;
}if (paintingComponent.秘isContentPane && !paintingComponent.isOpaque$() ) {
paintingComponent=paintingComponent.getRootPane$();
}p$1.setFlag$I$Z.apply(paintingComponent, [13, true]);
paintImmediatelyClip.x-=offsetX;
paintImmediatelyClip.y-=offsetY;
if (paintingComponent !== this ) {
var comp;
var i=pIndex;
for (; i > 0; i--) {
comp=path.get$I(i);
if (Clazz_instanceOf(comp, "javax.swing.JComponent")) {
(comp).setPaintingChild$java_awt_Component(path.get$I(i - 1));
}}
}try {
g=C$.safelyGetGraphics$java_awt_Component$java_awt_Component(paintingComponent, c);
try {
if (hasBuffer) {
var rm=$I$(9).currentManager$javax_swing_JComponent(bufferedComponent);
rm.beginPaint$();
try {
rm.paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I(paintingComponent, bufferedComponent, g, paintImmediatelyClip.x, paintImmediatelyClip.y, paintImmediatelyClip.width, paintImmediatelyClip.height);
} finally {
rm.endPaint$();
}
} else {
if (!this.秘isRootPane) g.setClip$I$I$I$I(paintImmediatelyClip.x, paintImmediatelyClip.y, paintImmediatelyClip.width, paintImmediatelyClip.height);
paintingComponent.秘paintWithBackgroundCheck$java_awt_Graphics(g);
}} finally {
g.dispose$();
}
} finally {
if (paintingComponent !== this ) {
var comp;
var i=pIndex;
for (; i > 0; i--) {
comp=path.get$I(i);
if (Clazz_instanceOf(comp, "javax.swing.JComponent")) {
(comp).setPaintingChild$java_awt_Component(null);
}}
}p$1.setFlag$I$Z.apply(paintingComponent, [13, false]);
}
C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip);
});
Clazz_newMeth(C$, 'paintToOffscreen$java_awt_Graphics$I$I$I$I$I$I', function (g, x, y, w, h, maxX, maxY) {
try {
p$1.setFlag$I$Z.apply(this, [1, true]);
if ((y + h) < maxY || (x + w) < maxX ) {
p$1.setFlag$I$Z.apply(this, [2, true]);
}if (p$1.getFlag$I.apply(this, [13])) {
this.paint$java_awt_Graphics(g);
} else {
if (!this.rectangleIsObscured$I$I$I$I(x, y, w, h)) {
p$1.paintComponentSafely$java_awt_Graphics.apply(this, [g]);
p$1.paintBorderSafely$java_awt_Graphics.apply(this, [g]);
}this.paintChildren$java_awt_Graphics(g);
}} finally {
p$1.setFlag$I$Z.apply(this, [1, false]);
p$1.setFlag$I$Z.apply(this, [2, false]);
}
});
Clazz_newMeth(C$, 'getObscuredState$I$I$I$I$I', function (compIndex, x, y, width, height) {
var retValue=0;
var tmpRect=C$.fetchRectangle$();
for (var i=compIndex - 1; i >= 0; i--) {
var sibling=this.getComponent$I(i);
if (!sibling.isVisible$()) {
continue;
}var siblingRect;
var opaque;
if (Clazz_instanceOf(sibling, "javax.swing.JComponent")) {
opaque=(sibling).isOpaque$();
if (!opaque) {
if (retValue == 1) {
continue;
}}} else {
opaque=true;
}siblingRect=sibling.getBounds$java_awt_Rectangle(tmpRect);
if (opaque && x >= siblingRect.x && (x + width) <= (siblingRect.x + siblingRect.width) && y >= siblingRect.y && (y + height) <= (siblingRect.y + siblingRect.height) ) {
C$.recycleRectangle$java_awt_Rectangle(tmpRect);
return 2;
} else if (retValue == 0 && !((x + width <= siblingRect.x) || (y + height <= siblingRect.y) || (x >= siblingRect.x + siblingRect.width) || (y >= siblingRect.y + siblingRect.height) ) ) {
retValue=1;
}}
C$.recycleRectangle$java_awt_Rectangle(tmpRect);
return retValue;
}, p$1);
Clazz_newMeth(C$, 'checkIfChildObscuredBySibling$', function () {
return true;
});
Clazz_newMeth(C$, 'setFlag$I$Z', function (aFlag, aValue) {
if (aValue) {
this.flags|=(1 << aFlag);
} else {
this.flags&=~(1 << aFlag);
}}, p$1);
Clazz_newMeth(C$, 'getFlag$I', function (aFlag) {
var mask=(1 << aFlag);
return ((this.flags & mask) == mask);
}, p$1);
Clazz_newMeth(C$, 'setDoubleBuffered$Z', function (aFlag) {
});
Clazz_newMeth(C$, 'isDoubleBuffered$', function () {
return p$1.getFlag$I.apply(this, [0]);
});
Clazz_newMeth(C$, 'getRootPane$', function () {
return $I$(1).getRootPane$java_awt_Component(this);
});
Clazz_newMeth(C$, 'paramString$', function () {
var preferredSizeString=(this.isPreferredSizeSet$() ? this.getPreferredSize$().toString() : "");
var minimumSizeString=(this.isMinimumSizeSet$() ? this.getMinimumSize$().toString() : "");
var maximumSizeString=(this.isMaximumSizeSet$() ? this.getMaximumSize$().toString() : "");
var borderString=(this.秘border == null ? "" : (this.秘border === this ? "this" : this.秘border.toString()));
return C$.superclazz.prototype.paramString$.apply(this, []) + ",alignmentX=" + new Float(this.秘alignmentX).toString() + ",alignmentY=" + new Float(this.秘alignmentY).toString() + ",border=" + borderString + ",flags=" + this.flags + ",maximumSize=" + maximumSizeString + ",minimumSize=" + minimumSizeString + ",preferredSize=" + preferredSizeString ;
});
Clazz_newMeth(C$, 'isActionStandin$javax_swing_Action', function (action) {
return Clazz_instanceOf(action, "javax.swing.JComponent.ActionStandin");
}, 1);
Clazz_newMeth(C$, 'dropLocationForPoint$java_awt_Point', function (p) {
return null;
});
Clazz_newMeth(C$, 'setTransferHandler$javax_swing_TransferHandler', function (newHandler) {
var oldHandler=this.getClientProperty$O(C$.JComponent_TRANSFER_HANDLER);
this.putClientProperty$O$O(C$.JComponent_TRANSFER_HANDLER, newHandler);
$I$(1).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this, newHandler);
this.firePropertyChange$S$O$O("transferHandler", oldHandler, newHandler);
});
Clazz_newMeth(C$, 'getTransferHandler$', function () {
return null;
});
Clazz_newMeth(C$, 'setDropLocation$javax_swing_TransferHandler_DropLocation$O$Z', function (dropLocation, state, forDrop) {
return null;
});
Clazz_newMeth(C$, 'dndDone$', function () {
});
Clazz_newMeth(C$, 'paintComponentSafely$java_awt_Graphics', function (g) {
var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g);
var nSave=(jsg == null ? 0 : jsg.mark$());
this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jsg, true);
this.paintComponent$java_awt_Graphics(g);
this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jsg, false);
if (jsg != null ) {
jsg.reset$I(nSave);
}}, p$1);
Clazz_newMeth(C$, 'printComponentSafely$java_awt_Graphics', function (g) {
var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g);
var nSave=(jsg == null ? 0 : jsg.mark$());
this.printComponent$java_awt_Graphics(g);
if (jsg != null ) jsg.reset$I(nSave);
}, p$1);
Clazz_newMeth(C$, 'paintBorderSafely$java_awt_Graphics', function (g) {
if (this.getBorder$() == null ) return;
var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g);
var nSave=(jsg == null ? 0 : jsg.mark$());
this.paintBorder$java_awt_Graphics(g);
if (jsg != null ) jsg.reset$I(nSave);
}, p$1);
Clazz_newMeth(C$, 'printBorderSafely$java_awt_Graphics', function (g) {
if (this.getBorder$() == null ) return;
var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g);
var nSave=(jsg == null ? 0 : jsg.mark$());
this.printBorder$java_awt_Graphics(g);
if (jsg != null ) jsg.reset$I(nSave);
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.JComponent, "ActionStandin", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.Action');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.actionListener=null;
this.command=null;
this.action=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_event_ActionListener$S', function (actionListener, command) {
C$.$init$.apply(this);
this.actionListener=actionListener;
if (Clazz_instanceOf(actionListener, "javax.swing.Action")) {
this.action=actionListener;
} else {
this.action=null;
}this.command=command;
}, 1);
Clazz_newMeth(C$, 'getValue$S', function (key) {
if (key != null ) {
if (key.equals$O("ActionCommandKey")) {
return this.command;
}if (this.action != null ) {
return this.action.getValue$S(key);
}if (key.equals$O("Name")) {
return "ActionStandin";
}}return null;
});
Clazz_newMeth(C$, 'isEnabled$', function () {
if (this.actionListener == null ) {
return false;
}if (this.action == null ) {
return true;
}return this.action.isEnabled$();
});
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (ae) {
if (this.actionListener != null ) {
this.actionListener.actionPerformed$(ae);
}});
Clazz_newMeth(C$, 'putValue$S$O', function (key, value) {
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
});
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JComponent, "IntVector", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.array=null;
this.count=0;
this.capacity=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.array=(null|0);
this.count=0;
this.capacity=0;
}, 1);
Clazz_newMeth(C$, 'size$', function () {
return this.count;
});
Clazz_newMeth(C$, 'elementAt$I', function (index) {
return this.array[index];
});
Clazz_newMeth(C$, 'addElement$I', function (value) {
if (this.count == this.capacity) {
this.capacity=(this.capacity + 2) * 2;
var newarray=Clazz_array(Integer.TYPE, [this.capacity]);
if (this.count > 0) {
System.arraycopy$O$I$O$I$I(this.array, 0, newarray, 0, this.count);
}this.array=newarray;
}this.array[this.count++]=value;
});
Clazz_newMeth(C$, 'setElementAt$I$I', function (value, index) {
this.array[index]=value;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JComponent, "KeyboardState", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.keyCodesKey=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.keyCodesKey=Clazz_getClass(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getKeyCodeArray$', function () {
var iv=$I$(1).appContextGet$O(C$.keyCodesKey);
if (iv == null ) {
iv=Clazz_new_($I$(2));
$I$(1).appContextPut$O$O(C$.keyCodesKey, iv);
}return iv;
}, 1);
Clazz_newMeth(C$, 'registerKeyPressed$I', function (keyCode) {
var kca=C$.getKeyCodeArray$();
var count=kca.size$();
var i;
for (i=0; i < count; i++) {
if (kca.elementAt$I(i) == -1) {
kca.setElementAt$I$I(keyCode, i);
return;
}}
kca.addElement$I(keyCode);
}, 1);
Clazz_newMeth(C$, 'registerKeyReleased$I', function (keyCode) {
var kca=C$.getKeyCodeArray$();
var count=kca.size$();
var i;
for (i=0; i < count; i++) {
if (kca.elementAt$I(i) == keyCode) {
kca.setElementAt$I$I(-1, i);
return;
}}
}, 1);
Clazz_newMeth(C$, 'keyIsPressed$I', function (keyCode) {
var kca=C$.getKeyCodeArray$();
var count=kca.size$();
var i;
for (i=0; i < count; i++) {
if (kca.elementAt$I(i) == keyCode) {
return true;
}}
return false;
}, 1);
Clazz_newMeth(C$, 'shouldProcess$java_awt_event_KeyEvent', function (e) {
switch (e.getID$()) {
case 401:
if (!C$.keyIsPressed$I(e.getKeyCode$())) {
C$.registerKeyPressed$I(e.getKeyCode$());
}return true;
case 402:
if (C$.keyIsPressed$I(e.getKeyCode$()) || e.getKeyCode$() == 154 ) {
C$.registerKeyReleased$I(e.getKeyCode$());
return true;
}return false;
case 400:
return true;
default:
return false;
}
}, 1);
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.JComponent','javax.swing.UIManager','javax.swing.JRootPane','javax.swing.SwingUtilities','javax.swing.RepaintManager','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JFrame", null, 'java.awt.JSFrame', ['javax.swing.WindowConstants', 'javax.swing.RootPaneContainer']);
C$.defaultLookAndFeelDecoratedKey=null;
C$.frameCount=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.defaultLookAndFeelDecoratedKey= Clazz_new_();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.defaultCloseOperation=0;
this.transferHandler=null;
this.rootPane=null;
this.rootPaneCheckingEnabled=false;
this._boundsFrozen=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.defaultCloseOperation=1;
this.rootPaneCheckingEnabled=false;
}, 1);
Clazz_newMeth(C$, 'add$java_awt_Component$O', function (comp, constraints) {
if (Clazz_instanceOf(comp, "javax.swing.JApplet")) {
this.秘isAppletFrame=true;
(comp).getLayeredPane$().秘isFramedApplet=true;
}C$.superclazz.prototype.add$java_awt_Component$O.apply(this, [comp, constraints]);
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$java_awt_GraphicsConfiguration.apply(this, [null, null]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) {
C$.c$$S$java_awt_GraphicsConfiguration.apply(this, [null, gc]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (title) {
C$.c$$S$java_awt_GraphicsConfiguration.apply(this, [title, null]);
}, 1);
Clazz_newMeth(C$, 'c$$S$java_awt_GraphicsConfiguration', function (title, gc) {
Clazz_super_(C$, this,1);
this.initTitleGC$S$java_awt_GraphicsConfiguration(title, gc);
this.enableEvents$J(72);
this.setLocale$java_util_Locale($I$(1).getDefaultLocale$());
this.setRootPane$javax_swing_JRootPane(this.createRootPane$());
this.rootPane.setFrameViewer$swingjs_JSFrameViewer(this.setFrameViewer$swingjs_JSFrameViewer(null));
this.setBackground$java_awt_Color($I$(2).getColor$O("control"));
this.setRootPaneCheckingEnabled$Z(true);
if (C$.isDefaultLookAndFeelDecorated$()) {
var supportsWindowDecorations=$I$(2).getLookAndFeel$().getSupportsWindowDecorations$();
if (supportsWindowDecorations) {
this.setUndecorated$Z(true);
this.getRootPane$().setWindowDecorationStyle$I(1);
}}this.updateUI$();
this.addNotify$();
this.rootPane.addNotify$();
}, 1);
Clazz_newMeth(C$, 'c$$O$O$O$O', function (object, object2, object3, object4) {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "FrameUI";
});
Clazz_newMeth(C$, 'createRootPane$', function () {
var rp=Clazz_new_($I$(3).c$$S$Z$java_awt_Container,["_Frame" + (++C$.frameCount), false, this]);
rp.setOpaque$Z(true);
return rp;
});
Clazz_newMeth(C$, 'processWindowEvent$java_awt_event_WindowEvent', function (e) {
C$.superclazz.prototype.processWindowEvent$java_awt_event_WindowEvent.apply(this, [e]);
if (e.getID$() == 201) {
switch (this.defaultCloseOperation) {
case 1:
this.setVisible$Z(false);
break;
case 2:
this.dispose$();
break;
case 0:
default:
break;
case 3:
System.exit$I(0);
break;
}
}});
Clazz_newMeth(C$, 'setDefaultCloseOperation$I', function (operation) {
if (operation != 0 && operation != 1 && operation != 2 && operation != 3 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or EXIT_ON_CLOSE"]);
}if (this.defaultCloseOperation != operation) {
if (operation == 3) {
var security=System.getSecurityManager$();
if (security != null ) {
security.checkExit$I(0);
}}var oldValue=this.defaultCloseOperation;
this.defaultCloseOperation=operation;
this.firePropertyChange$S$I$I("defaultCloseOperation", oldValue, operation);
}});
Clazz_newMeth(C$, 'getDefaultCloseOperation$', function () {
return this.defaultCloseOperation;
});
Clazz_newMeth(C$, 'setTransferHandler$javax_swing_TransferHandler', function (newHandler) {
var oldHandler=this.transferHandler;
this.transferHandler=newHandler;
$I$(4).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this, this.transferHandler);
this.firePropertyChange$S$O$O("transferHandler", oldHandler, newHandler);
});
Clazz_newMeth(C$, 'getTransferHandler$', function () {
return this.transferHandler;
});
Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) {
this.paint$java_awt_Graphics(g);
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
(g).setBackground$java_awt_Color(this.getBackground$());
(g).setColor$java_awt_Color(this.getForeground$());
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]);
});
Clazz_newMeth(C$, 'setJMenuBar$javax_swing_JMenuBar', function (menubar) {
this.getRootPane$().setMenuBar$javax_swing_JMenuBar(menubar);
});
Clazz_newMeth(C$, 'getJMenuBar$', function () {
return this.getRootPane$().getMenuBar$();
});
Clazz_newMeth(C$, 'isRootPaneCheckingEnabled$', function () {
return this.rootPaneCheckingEnabled;
});
Clazz_newMeth(C$, 'setRootPaneCheckingEnabled$Z', function (enabled) {
this.rootPaneCheckingEnabled=enabled;
});
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) {
if (this.isRootPaneCheckingEnabled$()) {
this.getContentPane$().add$java_awt_Component$O$I(comp, constraints, index);
return;
}this.addImplCont$java_awt_Component$O$I(comp, constraints, index);
});
Clazz_newMeth(C$, 'remove$java_awt_Component', function (comp) {
if (comp === this.rootPane ) {
C$.superclazz.prototype.remove$java_awt_Component.apply(this, [comp]);
} else {
this.getContentPane$().remove$java_awt_Component(comp);
}});
Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (manager) {
if (this.isRootPaneCheckingEnabled$()) {
this.getContentPane$().setLayout$java_awt_LayoutManager(manager);
} else {
C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [manager]);
}});
Clazz_newMeth(C$, 'getRootPane$', function () {
return this.rootPane;
});
Clazz_newMeth(C$, 'setRootPane$javax_swing_JRootPane', function (root) {
if (this.rootPane != null ) {
this.remove$java_awt_Component(this.rootPane);
}this.rootPane=root;
if (this.rootPane != null ) {
var checkingEnabled=this.isRootPaneCheckingEnabled$();
try {
this.setRootPaneCheckingEnabled$Z(false);
this.add$java_awt_Component$O(this.rootPane, "Center");
} finally {
this.setRootPaneCheckingEnabled$Z(checkingEnabled);
}
}});
Clazz_newMeth(C$, 'setIconImage$java_awt_Image', function (image) {
C$.superclazz.prototype.setIconImage$java_awt_Image.apply(this, [image]);
});
Clazz_newMeth(C$, 'getContentPane$', function () {
return this.getRootPane$().getContentPane$();
});
Clazz_newMeth(C$, 'setContentPane$java_awt_Container', function (contentPane) {
this.getRootPane$().setContentPane$java_awt_Container(contentPane);
});
Clazz_newMeth(C$, 'getLayeredPane$', function () {
return this.getRootPane$().getLayeredPane$();
});
Clazz_newMeth(C$, 'setLayeredPane$javax_swing_JLayeredPane', function (layeredPane) {
this.getRootPane$().setLayeredPane$javax_swing_JLayeredPane(layeredPane);
});
Clazz_newMeth(C$, 'getGlassPane$', function () {
return this.getRootPane$().getGlassPane$();
});
Clazz_newMeth(C$, 'setGlassPane$java_awt_Component', function (glassPane) {
this.getRootPane$().setGlassPane$java_awt_Component(glassPane);
});
Clazz_newMeth(C$, 'getGraphics$', function () {
$I$(1).getGraphicsInvoked$java_awt_Component(this);
return C$.superclazz.prototype.getGraphics$.apply(this, []);
});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (time, x, y, width, height) {
if ($I$(5).HANDLE_TOP_LEVEL_PAINT) {
$I$(5).currentManager$javax_swing_JComponent(this).addDirtyRegion$java_awt_Window$I$I$I$I(this, x, y, width, height);
} else {
C$.superclazz.prototype.repaint$J$I$I$I$I.apply(this, [time, x, y, width, height]);
}});
Clazz_newMeth(C$, 'setDefaultLookAndFeelDecorated$Z', function (defaultLookAndFeelDecorated) {
if (defaultLookAndFeelDecorated) {
$I$(4).appContextPut$O$O(C$.defaultLookAndFeelDecoratedKey, $I$(6).TRUE);
} else {
$I$(4).appContextPut$O$O(C$.defaultLookAndFeelDecoratedKey, $I$(6).FALSE);
}}, 1);
Clazz_newMeth(C$, 'isDefaultLookAndFeelDecorated$', function () {
var defaultLookAndFeelDecorated=$I$(4).appContextGet$O(C$.defaultLookAndFeelDecoratedKey);
if (defaultLookAndFeelDecorated == null ) {
defaultLookAndFeelDecorated=$I$(6).FALSE;
}return defaultLookAndFeelDecorated.booleanValue$();
}, 1);
Clazz_newMeth(C$, 'paramString$', function () {
var defaultCloseOperationString;
if (this.defaultCloseOperation == 1) {
defaultCloseOperationString="HIDE_ON_CLOSE";
} else if (this.defaultCloseOperation == 2) {
defaultCloseOperationString="DISPOSE_ON_CLOSE";
} else if (this.defaultCloseOperation == 0) {
defaultCloseOperationString="DO_NOTHING_ON_CLOSE";
} else if (this.defaultCloseOperation == 3) {
defaultCloseOperationString="EXIT_ON_CLOSE";
} else defaultCloseOperationString="";
var rootPaneString=(this.rootPane != null ? this.rootPane.toString() : "");
var rootPaneCheckingEnabledString=(this.rootPaneCheckingEnabled ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultCloseOperation=" + defaultCloseOperationString + ",rootPane=" + rootPaneString + ",rootPaneCheckingEnabled=" + rootPaneCheckingEnabledString ;
});
Clazz_newMeth(C$, '_freezeBounds$I$I', function (w, h) {
this.setSize$I$I(w, h);
this._boundsFrozen=true;
this.resizable=false;
});
Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) {
if (!this._boundsFrozen) C$.superclazz.prototype.reshape$I$I$I$I.apply(this, [x, y, width, height]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.SwingUtilities','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JLabel", null, 'javax.swing.JComponent', 'javax.swing.SwingConstants');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.mnemonic=0;
this.mnemonicIndex=0;
this.text=null;
this.defaultIcon=null;
this.disabledIcon=null;
this.disabledIconSet=false;
this.verticalAlignment=0;
this.horizontalAlignment=0;
this.verticalTextPosition=0;
this.horizontalTextPosition=0;
this.iconTextGap=0;
this.labelFor=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.mnemonic="\u0000".$c();
this.mnemonicIndex=-1;
this.text="";
this.defaultIcon=null;
this.disabledIcon=null;
this.disabledIconSet=false;
this.verticalAlignment=0;
this.horizontalAlignment=10;
this.verticalTextPosition=0;
this.horizontalTextPosition=11;
this.iconTextGap=4;
this.labelFor=null;
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$I', function (text, icon, horizontalAlignment) {
Clazz_super_(C$, this,1);
this.setText$S(text);
this.setIcon$javax_swing_Icon(icon);
this.setHorizontalAlignment$I(horizontalAlignment);
this.updateUI$();
this.setAlignmentX$F(0.0);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "LabelUI";
});
Clazz_newMeth(C$, 'c$$S$I', function (text, horizontalAlignment) {
C$.c$$S$javax_swing_Icon$I.apply(this, [text, null, horizontalAlignment]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon$I.apply(this, [text, null, 10]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon$I', function (image, horizontalAlignment) {
C$.c$$S$javax_swing_Icon$I.apply(this, [null, image, horizontalAlignment]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (image) {
C$.c$$S$javax_swing_Icon$I.apply(this, [null, image, 0]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon$I.apply(this, ["", null, 10]);
}, 1);
Clazz_newMeth(C$, 'setUI$javax_swing_plaf_LabelUI', function (ui) {
C$.superclazz.prototype.setUI$javax_swing_plaf_ComponentUI.apply(this, [ui]);
if (!this.disabledIconSet && this.disabledIcon != null ) {
this.setDisabledIcon$javax_swing_Icon(null);
}});
Clazz_newMeth(C$, 'getText$', function () {
return this.text;
});
Clazz_newMeth(C$, 'setText$S', function (text) {
var oldValue=this.text;
this.text=text;
this.firePropertyChange$S$O$O("text", oldValue, text);
this.setDisplayedMnemonicIndex$I($I$(1).findDisplayedMnemonicIndex$S$I(text, this.getDisplayedMnemonic$()));
if (text == null || oldValue == null || !text.equals$O(oldValue) ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getIcon$', function () {
return this.defaultIcon;
});
Clazz_newMeth(C$, 'setIcon$javax_swing_Icon', function (icon) {
var oldValue=this.defaultIcon;
this.defaultIcon=icon;
if (this.defaultIcon != null ) this.秘setPaintsSelf$();
if ((this.defaultIcon !== oldValue ) && !this.disabledIconSet ) {
this.disabledIcon=null;
}this.firePropertyChange$S$O$O("icon", oldValue, this.defaultIcon);
if (this.defaultIcon !== oldValue ) {
if ((this.defaultIcon == null ) || (oldValue == null ) || (this.defaultIcon.getIconWidth$() != oldValue.getIconWidth$()) || (this.defaultIcon.getIconHeight$() != oldValue.getIconHeight$()) ) {
this.revalidate$();
}this.repaint$();
}});
Clazz_newMeth(C$, 'getDisabledIcon$', function () {
if (!this.disabledIconSet && this.disabledIcon == null && this.defaultIcon != null ) {
this.disabledIcon=$I$(2).getLookAndFeel$().getDisabledIcon$javax_swing_JComponent$javax_swing_Icon(this, this.defaultIcon);
if (this.disabledIcon != null ) {
this.firePropertyChange$S$O$O("disabledIcon", null, this.disabledIcon);
}}return this.disabledIcon;
});
Clazz_newMeth(C$, 'setDisabledIcon$javax_swing_Icon', function (disabledIcon) {
var oldValue=this.disabledIcon;
this.disabledIcon=disabledIcon;
this.disabledIconSet=(disabledIcon != null );
this.firePropertyChange$S$O$O("disabledIcon", oldValue, disabledIcon);
if (disabledIcon !== oldValue ) {
if (disabledIcon == null || oldValue == null || disabledIcon.getIconWidth$() != oldValue.getIconWidth$() || disabledIcon.getIconHeight$() != oldValue.getIconHeight$() ) {
this.revalidate$();
}if (!this.isEnabled$()) {
this.repaint$();
}}});
Clazz_newMeth(C$, 'setDisplayedMnemonic$I', function (key) {
var oldKey=this.mnemonic;
this.mnemonic=key;
this.firePropertyChange$S$I$I("displayedMnemonic", oldKey, this.mnemonic);
this.setDisplayedMnemonicIndex$I($I$(1).findDisplayedMnemonicIndex$S$I(this.getText$(), this.mnemonic));
if (key != oldKey) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'setDisplayedMnemonic$C', function (aChar) {
var vk=aChar.$c();
if (vk >= 97 && vk <= 122 ) vk-=(32);
this.setDisplayedMnemonic$I(vk);
});
Clazz_newMeth(C$, 'getDisplayedMnemonic$', function () {
return this.mnemonic;
});
Clazz_newMeth(C$, 'setDisplayedMnemonicIndex$I', function (index) {
var oldValue=this.mnemonicIndex;
if (index == -1) {
this.mnemonicIndex=-1;
} else {
var text=this.getText$();
var textLength=(text == null ) ? 0 : text.length$();
if (index < -1 || index >= textLength ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index == " + index]);
}}this.mnemonicIndex=index;
this.firePropertyChange$S$I$I("displayedMnemonicIndex", oldValue, index);
if (index != oldValue) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getDisplayedMnemonicIndex$', function () {
return this.mnemonicIndex;
});
Clazz_newMeth(C$, 'checkHorizontalKey$I$S', function (key, message) {
if ((key == 2) || (key == 0) || (key == 4) || (key == 10) || (key == 11) ) {
return key;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]);
}});
Clazz_newMeth(C$, 'checkVerticalKey$I$S', function (key, message) {
if ((key == 1) || (key == 0) || (key == 3) ) {
return key;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]);
}});
Clazz_newMeth(C$, 'getIconTextGap$', function () {
return this.iconTextGap;
});
Clazz_newMeth(C$, 'setIconTextGap$I', function (iconTextGap) {
var oldValue=this.iconTextGap;
this.iconTextGap=iconTextGap;
this.firePropertyChange$S$I$I("iconTextGap", oldValue, iconTextGap);
if (iconTextGap != oldValue) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getVerticalAlignment$', function () {
return this.verticalAlignment;
});
Clazz_newMeth(C$, 'setVerticalAlignment$I', function (alignment) {
if (alignment == this.verticalAlignment) return;
var oldValue=this.verticalAlignment;
this.verticalAlignment=this.checkVerticalKey$I$S(alignment, "verticalAlignment");
this.firePropertyChange$S$I$I("verticalAlignment", oldValue, this.verticalAlignment);
this.repaint$();
});
Clazz_newMeth(C$, 'getHorizontalAlignment$', function () {
return this.horizontalAlignment;
});
Clazz_newMeth(C$, 'setHorizontalAlignment$I', function (alignment) {
if (alignment == this.horizontalAlignment) return;
var oldValue=this.horizontalAlignment;
this.horizontalAlignment=this.checkHorizontalKey$I$S(alignment, "horizontalAlignment");
this.firePropertyChange$S$I$I("horizontalAlignment", oldValue, this.horizontalAlignment);
this.repaint$();
});
Clazz_newMeth(C$, 'getVerticalTextPosition$', function () {
return this.verticalTextPosition;
});
Clazz_newMeth(C$, 'setVerticalTextPosition$I', function (textPosition) {
if (textPosition == this.verticalTextPosition) return;
var old=this.verticalTextPosition;
this.verticalTextPosition=this.checkVerticalKey$I$S(textPosition, "verticalTextPosition");
this.firePropertyChange$S$I$I("verticalTextPosition", old, this.verticalTextPosition);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getHorizontalTextPosition$', function () {
return this.horizontalTextPosition;
});
Clazz_newMeth(C$, 'setHorizontalTextPosition$I', function (textPosition) {
var old=this.horizontalTextPosition;
this.horizontalTextPosition=this.checkHorizontalKey$I$S(textPosition, "horizontalTextPosition");
this.firePropertyChange$S$I$I("horizontalTextPosition", old, this.horizontalTextPosition);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, ['imageUpdate$java_awt_Image$I$I$I$I$I','imageUpdate$'], function (img, infoflags, x, y, w, h) {
if (!this.isShowing$() || !$I$(1).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(this.getIcon$(), img) && !$I$(1).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(this.disabledIcon, img) ) {
return false;
}return C$.superclazz.prototype.imageUpdate$java_awt_Image$I$I$I$I$I.apply(this, [img, infoflags, x, y, w, h]);
});
Clazz_newMeth(C$, 'paramString$', function () {
var textString=(this.text != null ? this.text : "");
var defaultIconString=((this.defaultIcon != null ) && (this.defaultIcon !== this ) ? this.defaultIcon.toString() : "");
var disabledIconString=((this.disabledIcon != null ) && (this.disabledIcon !== this ) ? this.disabledIcon.toString() : "");
var labelForString=(this.labelFor != null ? this.labelFor.toString() : "");
var verticalAlignmentString;
if (this.verticalAlignment == 1) {
verticalAlignmentString="TOP";
} else if (this.verticalAlignment == 0) {
verticalAlignmentString="CENTER";
} else if (this.verticalAlignment == 3) {
verticalAlignmentString="BOTTOM";
} else verticalAlignmentString="";
var horizontalAlignmentString;
if (this.horizontalAlignment == 2) {
horizontalAlignmentString="LEFT";
} else if (this.horizontalAlignment == 0) {
horizontalAlignmentString="CENTER";
} else if (this.horizontalAlignment == 4) {
horizontalAlignmentString="RIGHT";
} else if (this.horizontalAlignment == 10) {
horizontalAlignmentString="LEADING";
} else if (this.horizontalAlignment == 11) {
horizontalAlignmentString="TRAILING";
} else horizontalAlignmentString="";
var verticalTextPositionString;
if (this.verticalTextPosition == 1) {
verticalTextPositionString="TOP";
} else if (this.verticalTextPosition == 0) {
verticalTextPositionString="CENTER";
} else if (this.verticalTextPosition == 3) {
verticalTextPositionString="BOTTOM";
} else verticalTextPositionString="";
var horizontalTextPositionString;
if (this.horizontalTextPosition == 2) {
horizontalTextPositionString="LEFT";
} else if (this.horizontalTextPosition == 0) {
horizontalTextPositionString="CENTER";
} else if (this.horizontalTextPosition == 4) {
horizontalTextPositionString="RIGHT";
} else if (this.horizontalTextPosition == 10) {
horizontalTextPositionString="LEADING";
} else if (this.horizontalTextPosition == 11) {
horizontalTextPositionString="TRAILING";
} else horizontalTextPositionString="";
return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultIcon=" + defaultIconString + ",disabledIcon=" + disabledIconString + ",horizontalAlignment=" + horizontalAlignmentString + ",horizontalTextPosition=" + horizontalTextPositionString + ",iconTextGap=" + this.iconTextGap + ",labelFor=" + labelForString + ",text=" + textString + ",verticalAlignment=" + verticalAlignmentString + ",verticalTextPosition=" + verticalTextPositionString ;
});
Clazz_newMeth(C$, 'getLabelFor$', function () {
return this.labelFor;
});
Clazz_newMeth(C$, 'setLabelFor$java_awt_Component', function (c) {
var oldC=this.labelFor;
this.labelFor=c;
this.firePropertyChange$S$O$O("labelFor", oldC, c);
if (Clazz_instanceOf(oldC, "javax.swing.JComponent")) {
(oldC).putClientProperty$O$O("labeledBy", null);
}if (Clazz_instanceOf(c, "javax.swing.JComponent")) {
(c).putClientProperty$O$O("labeledBy", this);
}});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.JSComponent','java.awt.Component','java.awt.Color','java.util.Hashtable','java.util.ArrayList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JLayeredPane", null, 'javax.swing.JComponent');
C$.DEFAULT_LAYER=null;
C$.PALETTE_LAYER=null;
C$.MODAL_LAYER=null;
C$.POPUP_LAYER=null;
C$.DRAG_LAYER=null;
C$.FRAME_CONTENT_LAYER=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.DEFAULT_LAYER= new Integer(0);
C$.PALETTE_LAYER= new Integer(100);
C$.MODAL_LAYER= new Integer(200);
C$.POPUP_LAYER= new Integer(300);
C$.DRAG_LAYER= new Integer(400);
C$.FRAME_CONTENT_LAYER= new Integer(-30000);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.componentToLayer=null;
this.optimizedDrawingPossible=false;
this.isAWT=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.optimizedDrawingPossible=true;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$Z.apply(this, [false]);
}, 1);
Clazz_newMeth(C$, 'c$$Z', function (isAWTContainer) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.initLayeredPane$();
this.isAWT=isAWTContainer;
}, 1);
Clazz_newMeth(C$, 'initLayeredPane$', function () {
this.updateUI$();
this.setLayout$java_awt_LayoutManager(null);
});
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "LayeredPaneUI";
});
Clazz_newMeth(C$, 'validateOptimizedDrawing', function () {
var layeredComponentFound=false;
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
var layer=null;
var children=$I$(1).秘getChildArray$java_awt_Container(this);
var n=this.getComponentCount$();
for (var i=0; i < n; i++) {
var c=children[i];
layer=null;
if ((Clazz_instanceOf(c, "javax.swing.JComponent") && (layer=(c).getClientProperty$O("layeredContainerLayer")) != null )) {
if (layer != null && layer.equals$O(C$.FRAME_CONTENT_LAYER) ) continue;
layeredComponentFound=true;
break;
}}
}if (layeredComponentFound) this.optimizedDrawingPossible=false;
else this.optimizedDrawingPossible=true;
}, p$1);
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) {
var layer=C$.DEFAULT_LAYER.intValue$();
var pos;
if (Clazz_instanceOf(constraints, "java.lang.Integer")) {
layer=(constraints).intValue$();
this.setLayer$java_awt_Component$I(comp, layer);
} else layer=C$.getLayer$java_awt_Component(comp);
pos=this.insertIndexForLayer$I$I(layer, index);
this.addImplCont$java_awt_Component$O$I(comp, constraints, pos);
comp.validate$();
comp.repaint$();
p$1.validateOptimizedDrawing.apply(this, []);
});
Clazz_newMeth(C$, 'remove$I', function (index) {
var c=this.getComponent$I(index);
C$.superclazz.prototype.remove$I.apply(this, [index]);
if (c != null && !(Clazz_instanceOf(c, "javax.swing.JComponent")) ) {
this.getComponentToLayer$().remove$O(c);
}p$1.validateOptimizedDrawing.apply(this, []);
});
Clazz_newMeth(C$, 'removeAll$', function () {
var children=$I$(1).秘getChildArray$java_awt_Container(this);
var n=this.getComponentCount$();
var cToL=this.getComponentToLayer$();
for (var counter=n - 1; counter >= 0; counter--) {
var c=children[counter];
if (c != null && !(Clazz_instanceOf(c, "javax.swing.JComponent")) ) {
cToL.remove$O(c);
}}
C$.superclazz.prototype.removeAll$.apply(this, []);
});
Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () {
return this.optimizedDrawingPossible;
});
Clazz_newMeth(C$, 'putLayer$javax_swing_JComponent$I', function (c, layer) {
var layerObj;
layerObj= new Integer(layer);
c.putClientProperty$O$O("layeredContainerLayer", layerObj);
}, 1);
Clazz_newMeth(C$, 'getLayer$javax_swing_JComponent', function (c) {
var i;
if ((i=c.getClientProperty$O("layeredContainerLayer")) != null ) return i.intValue$();
return C$.DEFAULT_LAYER.intValue$();
}, 1);
Clazz_newMeth(C$, 'getLayeredPaneAbove$java_awt_Component', function (c) {
if (c == null ) return null;
var parent=c.getParent$();
while (parent != null && !(Clazz_instanceOf(parent, "javax.swing.JLayeredPane")) )parent=parent.getParent$();
return parent;
}, 1);
Clazz_newMeth(C$, 'setLayer$java_awt_Component$I', function (c, layer) {
this.setLayer$java_awt_Component$I$I(c, layer, -1);
});
Clazz_newMeth(C$, 'setLayer$java_awt_Component$I$I', function (c, layer, position) {
var layerObj;
layerObj=this.getObjectForLayer$I(layer);
if (layer == C$.getLayer$java_awt_Component(c) && position == this.getPosition$java_awt_Component(c) ) {
this.秘updateUIZOrder$();
return;
}if (Clazz_instanceOf(c, "javax.swing.JComponent")) (c).putClientProperty$O$O("layeredContainerLayer", layerObj);
else this.getComponentToLayer$().put$TK$TV(c, layerObj);
if (c.getParent$() == null || c.getParent$() !== this ) {
return;
}this.setComponentZOrder$java_awt_Component$I(c, p$1.insertIndexForLayer$java_awt_Component$I$I.apply(this, [c, layer, position]));
});
Clazz_newMeth(C$, 'getLayer$java_awt_Component', function (c) {
var i;
if ((i=(c).getClientProperty$O("layeredContainerLayer")) != null ) return i.intValue$();
return C$.DEFAULT_LAYER.intValue$();
}, 1);
Clazz_newMeth(C$, 'getIndexOf$java_awt_Component', function (c) {
var i;
var count;
count=this.getComponentCount$();
for (i=0; i < count; i++) {
if (c === this.getComponent$I(i) ) return i;
}
return -1;
});
Clazz_newMeth(C$, 'moveToFront$java_awt_Component', function (c) {
this.setPosition$java_awt_Component$I(c, 0);
});
Clazz_newMeth(C$, 'moveToBack$java_awt_Component', function (c) {
this.setPosition$java_awt_Component$I(c, -1);
});
Clazz_newMeth(C$, 'setPosition$java_awt_Component$I', function (c, position) {
this.setLayer$java_awt_Component$I$I(c, C$.getLayer$java_awt_Component(c), position);
});
Clazz_newMeth(C$, 'getPosition$java_awt_Component', function (c) {
var i;
var count;
var startLayer;
var curLayer;
var startLocation;
var pos=0;
count=this.getComponentCount$();
startLocation=this.getIndexOf$java_awt_Component(c);
if (startLocation == -1) return -1;
startLayer=C$.getLayer$java_awt_Component(c);
for (i=startLocation - 1; i >= 0; i--) {
curLayer=C$.getLayer$java_awt_Component(this.getComponent$I(i));
if (curLayer == startLayer) pos++;
else return pos;
}
return pos;
});
Clazz_newMeth(C$, 'highestLayer$', function () {
if (this.getComponentCount$() > 0) return C$.getLayer$java_awt_Component(this.getComponent$I(0));
return 0;
});
Clazz_newMeth(C$, 'lowestLayer$', function () {
var count=this.getComponentCount$();
if (count > 0) return C$.getLayer$java_awt_Component(this.getComponent$I(count - 1));
return 0;
});
Clazz_newMeth(C$, 'getComponentCountInLayer$I', function (layer) {
var i;
var count;
var curLayer;
var layerCount=0;
count=this.getComponentCount$();
for (i=0; i < count; i++) {
curLayer=C$.getLayer$java_awt_Component(this.getComponent$I(i));
if (curLayer == layer) {
layerCount++;
} else if (layerCount > 0 || curLayer < layer ) {
break;
}}
return layerCount;
});
Clazz_newMeth(C$, 'getComponentsInLayer$I', function (layer) {
var i;
var count;
var curLayer;
var layerCount=0;
var results;
results=Clazz_array($I$(2), [this.getComponentCountInLayer$I(layer)]);
count=this.getComponentCount$();
for (i=0; i < count; i++) {
curLayer=C$.getLayer$java_awt_Component(this.getComponent$I(i));
if (curLayer == layer) {
results[layerCount++]=this.getComponent$I(i);
} else if (layerCount > 0 || curLayer < layer ) {
break;
}}
return results;
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
if (this.isOpaque$()) {
var r=g.getClipBounds$();
var c=this.getBackground$();
if (c == null ) c=$I$(3).lightGray;
g.setColor$java_awt_Color(c);
if (r != null ) {
g.fillRect$I$I$I$I(r.x, r.y, r.width, r.height);
} else {
g.fillRect$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$());
}}C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]);
});
Clazz_newMeth(C$, 'getComponentToLayer$', function () {
if (this.componentToLayer == null ) this.componentToLayer=Clazz_new_($I$(4).c$$I,[4]);
return this.componentToLayer;
});
Clazz_newMeth(C$, 'getObjectForLayer$I', function (layer) {
var layerObj;
switch (layer) {
case 0:
layerObj=C$.DEFAULT_LAYER;
break;
case 100:
layerObj=C$.PALETTE_LAYER;
break;
case 200:
layerObj=C$.MODAL_LAYER;
break;
case 300:
layerObj=C$.POPUP_LAYER;
break;
case 400:
layerObj=C$.DRAG_LAYER;
break;
default:
layerObj= new Integer(layer);
}
return layerObj;
});
Clazz_newMeth(C$, 'insertIndexForLayer$I$I', function (layer, position) {
return p$1.insertIndexForLayer$java_awt_Component$I$I.apply(this, [null, layer, position]);
});
Clazz_newMeth(C$, 'insertIndexForLayer$java_awt_Component$I$I', function (comp, layer, position) {
var i;
var count;
var curLayer;
var layerStart=-1;
var layerEnd=-1;
var componentCount=this.getComponentCount$();
var compList=Clazz_new_($I$(5).c$$I,[componentCount]);
for (var index=0; index < componentCount; index++) {
if (this.getComponent$I(index) !== comp ) {
compList.add$TE(this.getComponent$I(index));
}}
count=compList.size$();
for (i=0; i < count; i++) {
curLayer=C$.getLayer$java_awt_Component(compList.get$I(i));
if (layerStart == -1 && curLayer == layer ) {
layerStart=i;
}if (curLayer < layer) {
if (i == 0) {
layerStart=0;
layerEnd=0;
} else {
layerEnd=i;
}break;
}}
if (layerStart == -1 && layerEnd == -1 ) return count;
if (layerStart != -1 && layerEnd == -1 ) layerEnd=count;
if (layerEnd != -1 && layerStart == -1 ) layerStart=layerEnd;
if (position == -1) return layerEnd;
if (position > -1 && layerStart + position <= layerEnd ) return layerStart + position;
return layerEnd;
}, p$1);
Clazz_newMeth(C$, 'paramString$', function () {
var optimizedDrawingPossibleString=(this.optimizedDrawingPossible ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",optimizedDrawingPossible=" + optimizedDrawingPossibleString ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.UIManager','java.awt.Toolkit','java.awt.Rectangle','javax.swing.SwingUtilities','java.awt.Point','javax.swing.JPopupMenu','javax.swing.JMenuItem',['javax.swing.JPopupMenu','.Separator'],'Error','java.awt.Container','java.awt.JSComponent','javax.swing.event.MenuListener','javax.swing.event.MenuEvent',['javax.swing.JMenu','.MenuChangeListener'],['javax.swing.JMenu','.WinListener'],'javax.swing.MenuElement','javax.swing.MenuSelectionManager','java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JMenu", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JMenuItem', 'javax.swing.MenuElement');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.popupMenu=null;
this.menuChangeListener=null;
this.menuEvent=null;
this.delay=0;
this.customMenuLocation=null;
this.popupListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.menuChangeListener=null;
this.menuEvent=null;
this.customMenuLocation=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S.apply(this, [""]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (s) {
C$.superclazz.c$$S.apply(this, [s]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (s, b) {
C$.c$$S.apply(this, [s]);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "MenuUI";
});
Clazz_newMeth(C$, 'initFocusability$', function () {
});
Clazz_newMeth(C$, 'updateUI$', function () {
C$.superclazz.prototype.updateUI$.apply(this, []);
if (this.popupMenu != null ) {
this.popupMenu.setUI$javax_swing_plaf_ComponentUI($I$(1).getUI$java_awt_Component(this.popupMenu));
}});
Clazz_newMeth(C$, 'addNotify$', function () {
C$.superclazz.prototype.addNotify$.apply(this, []);
if (this.popupMenu != null ) this.popupMenu.addNotify$();
});
Clazz_newMeth(C$, 'setModel$javax_swing_ButtonModel', function (newModel) {
var oldModel=this.getModel$();
C$.superclazz.prototype.setModel$javax_swing_ButtonModel.apply(this, [newModel]);
if (oldModel != null && this.menuChangeListener != null ) {
oldModel.removeChangeListener$javax_swing_event_ChangeListener(this.menuChangeListener);
this.menuChangeListener=null;
}this.model=newModel;
if (newModel != null ) {
this.menuChangeListener=p$1.createMenuChangeListener.apply(this, []);
newModel.addChangeListener$javax_swing_event_ChangeListener(this.menuChangeListener);
}});
Clazz_newMeth(C$, 'isSelected$', function () {
return this.getModel$().isSelected$();
});
Clazz_newMeth(C$, 'setSelected$Z', function (b) {
var model=this.getModel$();
if (b != model.isSelected$() ) {
this.getModel$().setSelected$Z(b);
}});
Clazz_newMeth(C$, 'isPopupMenuVisible$', function () {
p$1.ensurePopupMenuCreated.apply(this, []);
return this.popupMenu.isVisible$();
});
Clazz_newMeth(C$, 'setPopupMenuVisible$Z', function (b) {
var isVisible=this.isPopupMenuVisible$();
if (b != isVisible && (this.isEnabled$() || !b ) ) {
p$1.ensurePopupMenuCreated.apply(this, []);
if (b && this.isShowing$() ) {
var p=p$1.getCustomMenuLocation.apply(this, []);
if (p == null ) {
p=this.getPopupMenuOrigin$();
}this.getPopupMenu$().show$java_awt_Component$I$I(this, p.x, p.y);
} else {
this.getPopupMenu$().setVisible$Z(false);
}}});
Clazz_newMeth(C$, 'getPopupMenuOrigin$', function () {
var x=0;
var y=0;
var pm=this.getPopupMenu$();
var s=this.getSize$();
var pmSize=pm.getSize$();
if (pmSize.width == 0) {
pmSize=pm.getPreferredSize$();
}var position=this.getLocationOnScreen$();
var toolkit=$I$(2).getDefaultToolkit$();
var gc=this.getGraphicsConfiguration$();
var screenBounds=Clazz_new_($I$(3).c$$java_awt_Dimension,[toolkit.getScreenSize$()]);
if (gc != null ) {
screenBounds=gc.getBounds$();
var screenInsets=toolkit.getScreenInsets$java_awt_GraphicsConfiguration(gc);
screenBounds.width-=Math.abs(screenInsets.left + screenInsets.right);
screenBounds.height-=Math.abs(screenInsets.top + screenInsets.bottom);
position.x-=Math.abs(screenInsets.left);
position.y-=Math.abs(screenInsets.top);
}var parent=this.getParent$();
if (Clazz_instanceOf(parent, "javax.swing.JPopupMenu")) {
var xOffset=$I$(1).getInt$O("Menu.submenuPopupOffsetX");
var yOffset=$I$(1).getInt$O("Menu.submenuPopupOffsetY");
if ($I$(4).isLeftToRight$java_awt_Component(this)) {
x=s.width + xOffset;
if (position.x + x + pmSize.width >= screenBounds.width + screenBounds.x && screenBounds.width - s.width < 2 * (position.x - screenBounds.x) ) {
x=0 - xOffset - pmSize.width ;
}} else {
x=0 - xOffset - pmSize.width ;
if (position.x + x < screenBounds.x && screenBounds.width - s.width > 2 * (position.x - screenBounds.x) ) {
x=s.width + xOffset;
}}y=yOffset;
if (position.y + y + pmSize.height >= screenBounds.height + screenBounds.y && screenBounds.height - s.height < 2 * (position.y - screenBounds.y) ) {
y=s.height - yOffset - pmSize.height ;
}} else {
var xOffset=$I$(1).getInt$O("Menu.menuPopupOffsetX");
var yOffset=$I$(1).getInt$O("Menu.menuPopupOffsetY");
if ($I$(4).isLeftToRight$java_awt_Component(this)) {
x=xOffset;
if (position.x + x + pmSize.width >= screenBounds.width + screenBounds.x && screenBounds.width - s.width < 2 * (position.x - screenBounds.x) ) {
x=s.width - xOffset - pmSize.width ;
}} else {
x=s.width - xOffset - pmSize.width ;
if (position.x + x < screenBounds.x && screenBounds.width - s.width > 2 * (position.x - screenBounds.x) ) {
x=xOffset;
}}y=s.height + yOffset;
if (position.y + y + pmSize.height >= screenBounds.height && screenBounds.height - s.height < 2 * (position.y - screenBounds.y) ) {
y=0 - yOffset - pmSize.height ;
}}return Clazz_new_($I$(5).c$$I$I,[x, y]);
});
Clazz_newMeth(C$, 'getDelay$', function () {
return this.delay;
});
Clazz_newMeth(C$, 'setDelay$I', function (d) {
if (d < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Delay must be a positive integer"]);
this.delay=d;
});
Clazz_newMeth(C$, 'ensurePopupMenuCreated', function () {
if (this.popupMenu == null ) {
this.popupMenu=Clazz_new_($I$(6));
this.popupMenu.setInvoker$java_awt_Component(this);
this.popupListener=this.createWinListener$javax_swing_JPopupMenu(this.popupMenu);
this.popupMenu.addNotify$();
}}, p$1);
Clazz_newMeth(C$, 'getCustomMenuLocation', function () {
return this.customMenuLocation;
}, p$1);
Clazz_newMeth(C$, 'setMenuLocation$I$I', function (x, y) {
this.customMenuLocation=Clazz_new_($I$(5).c$$I$I,[x, y]);
if (this.popupMenu != null ) this.popupMenu.setLocation$I$I(x, y);
});
Clazz_newMeth(C$, 'add$javax_swing_JMenuItem', function (menuItem) {
p$1.ensurePopupMenuCreated.apply(this, []);
this.popupMenu.add$javax_swing_JMenuItem(menuItem);
this.firePropertyChange$S$O$O("JSitem", null, menuItem);
return menuItem;
});
Clazz_newMeth(C$, 'add$java_awt_Component', function (c) {
p$1.ensurePopupMenuCreated.apply(this, []);
this.popupMenu.add$java_awt_Component(c);
this.firePropertyChange$S$O$O("JSitem", null, c);
return c;
});
Clazz_newMeth(C$, 'add$java_awt_Component$I', function (c, index) {
p$1.ensurePopupMenuCreated.apply(this, []);
this.popupMenu.add$java_awt_Component$I(c, index);
this.firePropertyChange$S$O$O("JSitem", null, c);
return c;
});
Clazz_newMeth(C$, 'add$S', function (s) {
return this.add$javax_swing_JMenuItem(Clazz_new_($I$(7).c$$S,[s]));
});
Clazz_newMeth(C$, 'add$javax_swing_Action', function (a) {
var mi=this.createActionComponent$javax_swing_Action(a);
mi.setAction$javax_swing_Action(a);
this.add$javax_swing_JMenuItem(mi);
return mi;
});
Clazz_newMeth(C$, 'createActionComponent$javax_swing_Action', function (a) {
var mi=((P$.JMenu$1||
(function(){var C$=Clazz_newClass(P$, "JMenu$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('javax.swing.JMenuItem'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) {
var pcl=this.b$['javax.swing.JMenu'].createActionChangeListener$javax_swing_JMenuItem.apply(this.b$['javax.swing.JMenu'], [this]);
if (pcl == null ) {
pcl=C$.superclazz.prototype.createActionPropertyChangeListener$javax_swing_Action.apply(this, [a]);
}return pcl;
});
})()
), Clazz_new_($I$(7), [this, null],P$.JMenu$1));
mi.setHorizontalTextPosition$I(11);
mi.setVerticalTextPosition$I(0);
return mi;
});
Clazz_newMeth(C$, 'createActionChangeListener$javax_swing_JMenuItem', function (b) {
return b.createActionPropertyChangeListener0$javax_swing_Action(b.getAction$());
});
Clazz_newMeth(C$, 'addSeparator$', function () {
p$1.ensurePopupMenuCreated.apply(this, []);
this.popupMenu.addSeparator$();
});
Clazz_newMeth(C$, 'insert$S$I', function (s, pos) {
if (pos < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}p$1.ensurePopupMenuCreated.apply(this, []);
this.popupMenu.insert$java_awt_Component$I(Clazz_new_($I$(7).c$$S,[s]), pos);
});
Clazz_newMeth(C$, 'insert$javax_swing_JMenuItem$I', function (mi, pos) {
if (pos < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}p$1.ensurePopupMenuCreated.apply(this, []);
this.popupMenu.insert$java_awt_Component$I(mi, pos);
return mi;
});
Clazz_newMeth(C$, 'insert$javax_swing_Action$I', function (a, pos) {
if (pos < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}p$1.ensurePopupMenuCreated.apply(this, []);
var mi=Clazz_new_($I$(7).c$$javax_swing_Action,[a]);
mi.setHorizontalTextPosition$I(11);
mi.setVerticalTextPosition$I(0);
this.popupMenu.insert$java_awt_Component$I(mi, pos);
return mi;
});
Clazz_newMeth(C$, 'insertSeparator$I', function (index) {
if (index < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}p$1.ensurePopupMenuCreated.apply(this, []);
var sep=Clazz_new_($I$(8));
sep.秘j2sInvalidateOnAdd=false;
this.popupMenu.insert$java_awt_Component$I(sep, index);
});
Clazz_newMeth(C$, 'getItem$I', function (pos) {
if (pos < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}var c=this.getMenuComponent$I(pos);
if (Clazz_instanceOf(c, "javax.swing.JMenuItem")) {
var mi=c;
return mi;
}return null;
});
Clazz_newMeth(C$, 'getItemCount$', function () {
return this.getMenuComponentCount$();
});
Clazz_newMeth(C$, 'isTearOff$', function () {
throw Clazz_new_($I$(9).c$$S,["boolean isTearOff() {} not yet implemented"]);
});
Clazz_newMeth(C$, 'remove$javax_swing_JMenuItem', function (item) {
this.remove$java_awt_Component(item);
});
Clazz_newMeth(C$, 'remove$I', function (pos) {
if (pos < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}if (pos > this.getItemCount$()) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index greater than the number of items."]);
}if (this.popupMenu != null ) this.popupMenu.remove$I(pos);
});
Clazz_newMeth(C$, 'remove$java_awt_Component', function (c) {
if (this.popupMenu != null ) this.popupMenu.remove$java_awt_Component(c);
this.firePropertyChange$S$O$O("JSitem", c, null);
});
Clazz_newMeth(C$, 'removeAll$', function () {
if (this.popupMenu != null ) this.popupMenu.removeAll$();
this.firePropertyChange$S$O$O("JSitem", this, null);
});
Clazz_newMeth(C$, 'getMenuComponentCount$', function () {
return (this.popupMenu == null ? 0 : this.popupMenu.getComponentCount$());
});
Clazz_newMeth(C$, 'getMenuComponent$I', function (n) {
return (this.popupMenu == null ? null : this.popupMenu.getComponent$I(n));
});
Clazz_newMeth(C$, 'getMenuComponents$', function () {
return (this.popupMenu == null ? $I$(10).EMPTY_ARRAY : this.popupMenu.getComponents$());
});
Clazz_newMeth(C$, 'getMenuArray$', function () {
return $I$(11).秘getChildArray$java_awt_Container(this.popupMenu);
});
Clazz_newMeth(C$, 'isTopLevelMenu$', function () {
return (Clazz_instanceOf(this.getParent$(), "javax.swing.JMenuBar"));
});
Clazz_newMeth(C$, 'isMenuComponent$java_awt_Component', function (c) {
if (c === this ) return true;
if (Clazz_instanceOf(c, "javax.swing.JPopupMenu")) {
var comp=c;
if (comp === this.getPopupMenu$() ) return true;
}var ncomponents=this.getMenuComponentCount$();
var component=this.getMenuArray$();
for (var i=0; i < ncomponents; i++) {
var comp=component[i];
if (comp === c ) return true;
if (Clazz_instanceOf(comp, "javax.swing.JMenu")) {
var subMenu=comp;
if (subMenu.isMenuComponent$java_awt_Component(c)) return true;
}}
return false;
});
Clazz_newMeth(C$, 'getPopupMenu$', function () {
p$1.ensurePopupMenuCreated.apply(this, []);
return this.popupMenu;
});
Clazz_newMeth(C$, 'addMenuListener$javax_swing_event_MenuListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']), l);
});
Clazz_newMeth(C$, 'removeMenuListener$javax_swing_event_MenuListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']), l);
});
Clazz_newMeth(C$, 'getMenuListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']));
});
Clazz_newMeth(C$, 'fireMenuSelected$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']) ) {
if (listeners[i + 1] == null ) {
throw Clazz_new_($I$(9).c$$S,[this.getText$() + " has a NULL Listener!! " + i ]);
} else {
if (this.menuEvent == null ) this.menuEvent=Clazz_new_($I$(13).c$$O,[this]);
(listeners[i + 1]).menuSelected$javax_swing_event_MenuEvent(this.menuEvent);
}}}
});
Clazz_newMeth(C$, 'fireMenuDeselected$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']) ) {
if (listeners[i + 1] == null ) {
throw Clazz_new_($I$(9).c$$S,[this.getText$() + " has a NULL Listener!! " + i ]);
} else {
if (this.menuEvent == null ) this.menuEvent=Clazz_new_($I$(13).c$$O,[this]);
(listeners[i + 1]).menuDeselected$javax_swing_event_MenuEvent(this.menuEvent);
}}}
});
Clazz_newMeth(C$, 'fireMenuCanceled$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']) ) {
if (listeners[i + 1] == null ) {
throw Clazz_new_($I$(9).c$$S,[this.getText$() + " has a NULL Listener!! " + i ]);
} else {
if (this.menuEvent == null ) this.menuEvent=Clazz_new_($I$(13).c$$O,[this]);
(listeners[i + 1]).menuCanceled$javax_swing_event_MenuEvent(this.menuEvent);
}}}
});
Clazz_newMeth(C$, 'configureAcceleratorFromAction$javax_swing_Action', function (a) {
});
Clazz_newMeth(C$, 'createMenuChangeListener', function () {
return Clazz_new_($I$(14), [this, null]);
}, p$1);
Clazz_newMeth(C$, 'createWinListener$javax_swing_JPopupMenu', function (p) {
return Clazz_new_($I$(15).c$$javax_swing_JPopupMenu, [this, null, p]);
});
Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) {
this.setSelected$Z(isIncluded);
});
Clazz_newMeth(C$, 'getSubElements$', function () {
if (this.popupMenu == null ) return Clazz_array($I$(16), [0]);
else {
var result=Clazz_array($I$(16), [1]);
result[0]=this.popupMenu;
return result;
}});
Clazz_newMeth(C$, 'getComponent$', function () {
return this;
});
Clazz_newMeth(C$, 'applyComponentOrientation$java_awt_ComponentOrientation', function (o) {
C$.superclazz.prototype.applyComponentOrientation$java_awt_ComponentOrientation.apply(this, [o]);
if (this.popupMenu != null ) {
var ncomponents=this.getMenuComponentCount$();
for (var i=0; i < ncomponents; ++i) {
this.getMenuComponent$I(i).applyComponentOrientation$java_awt_ComponentOrientation(o);
}
this.popupMenu.setComponentOrientation$java_awt_ComponentOrientation(o);
}});
Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (o) {
C$.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this, [o]);
if (this.popupMenu != null ) {
this.popupMenu.setComponentOrientation$java_awt_ComponentOrientation(o);
}});
Clazz_newMeth(C$, 'setAccelerator$javax_swing_KeyStroke', function (keyStroke) {
throw Clazz_new_($I$(9).c$$S,["setAccelerator() is not defined for JMenu. Use setMnemonic() instead."]);
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (evt) {
$I$(17).defaultManager$().processKeyEvent$java_awt_event_KeyEvent(evt);
if (evt.isConsumed$()) return;
C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [evt]);
});
Clazz_newMeth(C$, 'doClick$I', function (pressTime) {
var me=p$1.buildMenuElementArray$javax_swing_JMenu.apply(this, [this]);
if (me == null ) return;
$I$(17).defaultManager$().setSelectedPath$javax_swing_MenuElementA(me);
});
Clazz_newMeth(C$, 'buildMenuElementArray$javax_swing_JMenu', function (leaf) {
var elements=Clazz_new_($I$(18));
var current=leaf.getPopupMenu$();
var pop;
var menu;
var bar;
while (true){
if (Clazz_instanceOf(current, "javax.swing.JPopupMenu")) {
pop=current;
elements.insertElementAt$TE$I(pop, 0);
current=pop.getInvoker$();
} else if (Clazz_instanceOf(current, "javax.swing.JMenu")) {
menu=current;
elements.insertElementAt$TE$I(menu, 0);
current=menu.getParent$();
} else if (Clazz_instanceOf(current, "javax.swing.JMenuBar")) {
bar=current;
elements.insertElementAt$TE$I(bar, 0);
var me=Clazz_array($I$(16), [elements.size$()]);
elements.copyInto$OA(me);
return me;
} else {
return null;
}}
}, p$1);
Clazz_newMeth(C$, 'paramString$', function () {
return C$.superclazz.prototype.paramString$.apply(this, []);
});
;
(function(){var C$=Clazz_newClass(P$.JMenu, "MenuChangeListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.isSelected=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.isSelected=false;
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var model=e.getSource$();
var modelSelected=model.isSelected$();
if (modelSelected != this.isSelected ) {
if (modelSelected == true ) {
this.this$0.fireMenuSelected$.apply(this.this$0, []);
} else {
this.this$0.fireMenuDeselected$.apply(this.this$0, []);
}this.isSelected=modelSelected;
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JMenu, "WinListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.awt.event.WindowAdapter');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.popupMenu=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_JPopupMenu', function (p) {
Clazz_super_(C$, this,1);
this.popupMenu=p;
}, 1);
Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) {
this.this$0.setSelected$Z.apply(this.this$0, [false]);
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:19 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.DefaultSingleSelectionModel','Error','java.awt.JSComponent','java.awt.Insets','java.util.Vector','javax.swing.MenuElement','javax.swing.KeyboardManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JMenuBar", null, 'javax.swing.JComponent', 'javax.swing.MenuElement');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.selectionModel=null;
this.paintBorder=false;
this.margin=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.paintBorder=false;
this.margin=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setSelectionModel$javax_swing_SingleSelectionModel(Clazz_new_($I$(1)));
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "MenuBarUI";
});
Clazz_newMeth(C$, 'getSelectionModel$', function () {
return this.selectionModel;
});
Clazz_newMeth(C$, 'setSelectionModel$javax_swing_SingleSelectionModel', function (model) {
var oldValue=this.selectionModel;
this.selectionModel=model;
this.firePropertyChange$S$O$O("selectionModel", oldValue, this.selectionModel);
});
Clazz_newMeth(C$, 'add$javax_swing_JMenu', function (c) {
C$.superclazz.prototype.add$java_awt_Component.apply(this, [c]);
return c;
});
Clazz_newMeth(C$, 'getMenu$I', function (index) {
var c=this.getComponentAtIndex$I(index);
if (Clazz_instanceOf(c, "javax.swing.JMenu")) return c;
return null;
});
Clazz_newMeth(C$, 'getMenuCount$', function () {
return this.getComponentCount$();
});
Clazz_newMeth(C$, 'setHelpMenu$javax_swing_JMenu', function (menu) {
throw Clazz_new_($I$(2).c$$S,["setHelpMenu() not yet implemented."]);
});
Clazz_newMeth(C$, 'getHelpMenu$', function () {
throw Clazz_new_($I$(2).c$$S,["getHelpMenu() not yet implemented."]);
});
Clazz_newMeth(C$, 'getComponentAtIndex$I', function (i) {
if (i < 0 || i >= this.getComponentCount$() ) {
return null;
}return this.getComponent$I(i);
});
Clazz_newMeth(C$, 'getComponentIndex$java_awt_Component', function (c) {
var ncomponents=this.getComponentCount$();
var components=$I$(3).秘getChildArray$java_awt_Container(this);
for (var i=0; i < ncomponents; i++) {
var comp=components[i];
if (comp === c ) return i;
}
return -1;
});
Clazz_newMeth(C$, 'setSelected$java_awt_Component', function (sel) {
var model=this.getSelectionModel$();
var index=this.getComponentIndex$java_awt_Component(sel);
model.setSelectedIndex$I(index);
});
Clazz_newMeth(C$, 'isSelected$', function () {
return this.selectionModel.isSelected$();
});
Clazz_newMeth(C$, 'isBorderPainted$', function () {
return this.paintBorder;
});
Clazz_newMeth(C$, 'setBorderPainted$Z', function (b) {
{
}
});
Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) {
if (this.isBorderPainted$()) {
C$.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this, [g]);
}});
Clazz_newMeth(C$, 'setMargin$java_awt_Insets', function (m) {
var old=this.margin;
this.margin=m;
this.firePropertyChange$S$O$O("margin", old, m);
if (old == null || !old.equals$O(m) ) {
this.revalidate$();
this.repaint$();
}});
Clazz_newMeth(C$, 'getMargin$', function () {
if (this.margin == null ) {
return Clazz_new_($I$(4).c$$I$I$I$I,[0, 0, 0, 0]);
} else {
return this.margin;
}});
Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (event, path, manager) {
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) {
});
Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) {
});
Clazz_newMeth(C$, 'getSubElements$', function () {
var result;
var tmp=Clazz_new_($I$(5));
var c=this.getComponentCount$();
var i;
var m;
for (i=0; i < c; i++) {
m=this.getComponent$I(i);
if (Clazz_instanceOf(m, "javax.swing.MenuElement")) tmp.addElement$TE(m);
}
result=Clazz_array($I$(6), [tmp.size$()]);
for (i=0, c=tmp.size$(); i < c; i++) result[i]=tmp.elementAt$I(i);
return result;
});
Clazz_newMeth(C$, 'getComponent$', function () {
return this;
});
Clazz_newMeth(C$, 'paramString$', function () {
var paintBorderString=(this.paintBorder ? "true" : "false");
var marginString=(this.margin != null ? this.margin.toString() : "");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",margin=" + marginString + ",paintBorder=" + paintBorderString ;
});
Clazz_newMeth(C$, 'processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z', function (ks, e, condition, pressed) {
var retValue=C$.superclazz.prototype.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z.apply(this, [ks, e, condition, pressed]);
if (!retValue) {
var subElements=this.getSubElements$();
for (var i=0; i < subElements.length; i++) {
if (C$.processBindingForKeyStrokeRecursive$javax_swing_MenuElement$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(subElements[i], ks, e, condition, pressed)) {
return true;
}}
}return retValue;
});
Clazz_newMeth(C$, 'processBindingForKeyStrokeRecursive$javax_swing_MenuElement$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z', function (elem, ks, e, condition, pressed) {
if (elem == null ) {
return false;
}var c=elem.getComponent$();
if (!(c.isVisible$() || (Clazz_instanceOf(c, "javax.swing.JPopupMenu")) ) || !c.isEnabled$() ) {
return false;
}if (c != null && Clazz_instanceOf(c, "javax.swing.JComponent") && (c).processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, condition, pressed) ) {
return true;
}var subElements=elem.getSubElements$();
for (var i=0; i < subElements.length; i++) {
if (C$.processBindingForKeyStrokeRecursive$javax_swing_MenuElement$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(subElements[i], ks, e, condition, pressed)) {
return true;
}}
return false;
}, 1);
Clazz_newMeth(C$, 'addNotify$', function () {
C$.superclazz.prototype.addNotify$.apply(this, []);
$I$(7).getCurrentManager$().registerMenuBar$javax_swing_JMenuBar(this);
});
Clazz_newMeth(C$, 'removeNotify$', function () {
C$.superclazz.prototype.removeNotify$.apply(this, []);
$I$(7).getCurrentManager$().unregisterMenuBar$javax_swing_JMenuBar(this);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:19 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.DefaultButtonModel',['javax.swing.JMenuItem','.MenuItemFocusListener'],'Boolean','javax.swing.UIManager','javax.swing.event.MenuDragMouseEvent','javax.swing.event.MenuKeyEvent','javax.swing.event.MenuDragMouseListener','javax.swing.event.MenuKeyListener','javax.swing.MenuElement']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JMenuItem", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.AbstractButton', 'javax.swing.MenuElement');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.isMouseDragged=false;
this.accelerator=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.isMouseDragged=false;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon.apply(this, [null, null]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) {
C$.c$$S$javax_swing_Icon.apply(this, [null, icon]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon.apply(this, [text, null]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) {
Clazz_super_(C$, this,1);
this.setModel$();
this.init$S$javax_swing_Icon(text, icon);
this.initFocusability$();
}, 1);
Clazz_newMeth(C$, 'c$$S$I', function (text, mnemonic) {
Clazz_super_(C$, this,1);
this.setModel$();
this.init$S$javax_swing_Icon(text, null);
this.setMnemonic$I(mnemonic);
this.initFocusability$();
}, 1);
Clazz_newMeth(C$, 'setModel$', function () {
this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1)));
});
Clazz_newMeth(C$, 'setModel$javax_swing_ButtonModel', function (newModel) {
C$.superclazz.prototype.setModel$javax_swing_ButtonModel.apply(this, [newModel]);
if (Clazz_instanceOf(newModel, "javax.swing.DefaultButtonModel")) {
(newModel).setMenuItem$Z(true);
}});
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "MenuItemUI";
});
Clazz_newMeth(C$, 'init$S$javax_swing_Icon', function (text, icon) {
this.秘j2sInvalidateOnAdd=false;
this.updateUI$();
if (text != null ) this.setText$S(text);
if (icon != null ) this.setIcon$javax_swing_Icon(icon);
this.addFocusListener$java_awt_event_FocusListener(Clazz_new_($I$(2)));
this.setUIProperty$S$O("borderPainted", $I$(3).FALSE);
this.setOpaque$Z(true);
this.setFocusPainted$Z(false);
this.setHorizontalTextPosition$I(11);
this.setHorizontalAlignment$I(10);
});
Clazz_newMeth(C$, 'initFocusability$', function () {
this.setFocusable$Z(false);
});
Clazz_newMeth(C$, 'setArmed$Z', function (b) {
var model=this.getModel$();
if (model.isArmed$() != b ) {
model.setArmed$Z(b);
}});
Clazz_newMeth(C$, 'isArmed$', function () {
var model=this.getModel$();
return model.isArmed$();
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
if (!b && !$I$(4).getBoolean$O("MenuItem.disabledAreNavigable") ) {
this.setArmed$Z(false);
}C$.superclazz.prototype.setEnabled$Z.apply(this, [b]);
});
Clazz_newMeth(C$, 'alwaysOnTop$', function () {
return true;
});
Clazz_newMeth(C$, 'setAccelerator$javax_swing_KeyStroke', function (keyStroke) {
var oldAccelerator=this.accelerator;
this.accelerator=keyStroke;
this.repaint$();
this.revalidate$();
this.firePropertyChange$S$O$O("accelerator", oldAccelerator, this.accelerator);
});
Clazz_newMeth(C$, 'getAccelerator$', function () {
return this.accelerator;
});
Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) {
C$.superclazz.prototype.configurePropertiesFromAction$javax_swing_Action.apply(this, [a]);
this.configureAcceleratorFromAction$javax_swing_Action(a);
});
Clazz_newMeth(C$, 'setIconFromAction$javax_swing_Action', function (a) {
var icon=null;
if (a != null ) {
icon=a.getValue$S("SmallIcon");
}this.setIcon$javax_swing_Icon(icon);
});
Clazz_newMeth(C$, 'largeIconChanged$javax_swing_Action', function (a) {
});
Clazz_newMeth(C$, 'smallIconChanged$javax_swing_Action', function (a) {
this.setIconFromAction$javax_swing_Action(a);
});
Clazz_newMeth(C$, 'configureAcceleratorFromAction$javax_swing_Action', function (a) {
var ks=(a == null ) ? null : a.getValue$S("AcceleratorKey");
this.setAccelerator$javax_swing_KeyStroke(ks);
});
Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) {
if (propertyName == "AcceleratorKey") {
this.configureAcceleratorFromAction$javax_swing_Action(action);
} else {
C$.superclazz.prototype.actionPropertyChanged$javax_swing_Action$S.apply(this, [action, propertyName]);
}});
Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) {
this.processMenuDragMouseEvent$javax_swing_event_MenuDragMouseEvent(Clazz_new_($I$(5).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[e.getComponent$(), e.getID$(), e.getWhen$(), e.getModifiers$(), e.getX$(), e.getY$(), e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), path, manager]));
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) {
var mke=Clazz_new_($I$(6).c$$java_awt_Component$I$J$I$I$C$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[e.getComponent$(), e.getID$(), e.getWhen$(), e.getModifiers$(), e.getKeyCode$(), e.getKeyChar$(), path, manager]);
mke.bdata=e.bdata ||null;
this.processMenuKeyEvent$javax_swing_event_MenuKeyEvent(mke);
if (mke.isConsumed$()) {
e.consume$();
}});
Clazz_newMeth(C$, 'processMenuDragMouseEvent$javax_swing_event_MenuDragMouseEvent', function (e) {
switch (e.getID$()) {
case 504:
this.isMouseDragged=false;
this.fireMenuDragMouseEntered$javax_swing_event_MenuDragMouseEvent(e);
break;
case 505:
this.isMouseDragged=false;
this.fireMenuDragMouseExited$javax_swing_event_MenuDragMouseEvent(e);
break;
case 506:
this.isMouseDragged=true;
this.fireMenuDragMouseDragged$javax_swing_event_MenuDragMouseEvent(e);
break;
case 502:
if (this.isMouseDragged) this.fireMenuDragMouseReleased$javax_swing_event_MenuDragMouseEvent(e);
break;
default:
break;
}
});
Clazz_newMeth(C$, 'processMenuKeyEvent$javax_swing_event_MenuKeyEvent', function (e) {
switch (e.getID$()) {
case 401:
this.fireMenuKeyPressed$javax_swing_event_MenuKeyEvent(e);
break;
case 402:
this.fireMenuKeyReleased$javax_swing_event_MenuKeyEvent(e);
break;
case 400:
this.fireMenuKeyTyped$javax_swing_event_MenuKeyEvent(e);
break;
default:
break;
}
});
Clazz_newMeth(C$, 'fireMenuDragMouseEntered$javax_swing_event_MenuDragMouseEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) {
(listeners[i + 1]).menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent(event);
}}
});
Clazz_newMeth(C$, 'fireMenuDragMouseExited$javax_swing_event_MenuDragMouseEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) {
(listeners[i + 1]).menuDragMouseExited$javax_swing_event_MenuDragMouseEvent(event);
}}
});
Clazz_newMeth(C$, 'fireMenuDragMouseDragged$javax_swing_event_MenuDragMouseEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) {
(listeners[i + 1]).menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent(event);
}}
});
Clazz_newMeth(C$, 'fireMenuDragMouseReleased$javax_swing_event_MenuDragMouseEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) {
(listeners[i + 1]).menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent(event);
}}
});
Clazz_newMeth(C$, 'fireMenuKeyPressed$javax_swing_event_MenuKeyEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) {
(listeners[i + 1]).menuKeyPressed$javax_swing_event_MenuKeyEvent(event);
}}
});
Clazz_newMeth(C$, 'fireMenuKeyReleased$javax_swing_event_MenuKeyEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) {
(listeners[i + 1]).menuKeyReleased$javax_swing_event_MenuKeyEvent(event);
}}
});
Clazz_newMeth(C$, 'fireMenuKeyTyped$javax_swing_event_MenuKeyEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) {
(listeners[i + 1]).menuKeyTyped$javax_swing_event_MenuKeyEvent(event);
}}
});
Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) {
this.setArmed$Z(isIncluded);
});
Clazz_newMeth(C$, 'getSubElements$', function () {
return Clazz_array($I$(9), [0]);
});
Clazz_newMeth(C$, 'getComponent$', function () {
return this;
});
Clazz_newMeth(C$, 'addMenuDragMouseListener$javax_swing_event_MenuDragMouseListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']), l);
});
Clazz_newMeth(C$, 'removeMenuDragMouseListener$javax_swing_event_MenuDragMouseListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']), l);
});
Clazz_newMeth(C$, 'getMenuDragMouseListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']));
});
Clazz_newMeth(C$, 'addMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l);
});
Clazz_newMeth(C$, 'removeMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l);
});
Clazz_newMeth(C$, 'getMenuKeyListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']));
});
Clazz_newMeth(C$, 'paramString$', function () {
return C$.superclazz.prototype.paramString$.apply(this, []);
});
;
(function(){var C$=Clazz_newClass(P$.JMenuItem, "MenuItemFocusListener", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'java.awt.event.FocusListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (event) {
});
Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (event) {
var mi=event.getSource$();
if (mi.isFocusPainted$()) {
mi.repaint$();
}});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:19 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.FlowLayout','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JPanel", null, 'javax.swing.JComponent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.isAWT=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_LayoutManager$Z', function (layout, isDoubleBuffered) {
C$.c$$java_awt_LayoutManager$Z$Z.apply(this, [layout, isDoubleBuffered, false]);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "PanelUI";
});
Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) {
C$.c$$java_awt_LayoutManager$Z.apply(this, [layout, true]);
}, 1);
Clazz_newMeth(C$, 'c$$Z', function (isDoubleBuffered) {
C$.c$$Z$Z.apply(this, [isDoubleBuffered, false]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$Z$Z.apply(this, [true, false]);
}, 1);
Clazz_newMeth(C$, 'c$$Z$Z', function (isDoubleBuffered, isAWTContainer) {
C$.c$$java_awt_LayoutManager$Z$Z.apply(this, [Clazz_new_($I$(1)), true, isAWTContainer]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_LayoutManager$Z$Z', function (layout, isDoubleBuffered, isAWTContainer) {
Clazz_super_(C$, this,1);
this.setLayout$java_awt_LayoutManager(layout);
this.isAWT=isAWTContainer;
this.setUIProperty$S$O("opaque", $I$(2).TRUE);
this.updateUI$();
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:19 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.SwingUtilities','Boolean','javax.swing.DefaultSingleSelectionModel','javax.swing.MenuSelectionManager','javax.swing.JMenuItem','java.awt.Point','java.awt.GraphicsEnvironment',['javax.swing.JPopupMenu','.Separator'],'java.util.Vector','javax.swing.event.PopupMenuListener','javax.swing.event.MenuKeyListener','javax.swing.event.PopupMenuEvent','javax.swing.PopupFactory','java.awt.JSComponent','java.awt.Dimension','java.awt.Insets','javax.swing.event.MenuKeyEvent','javax.swing.MenuElement']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JPopupMenu", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', 'javax.swing.MenuElement');
C$.defaultLWPopupEnabledKey=null;
C$.popupPostionFixDisabled=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.defaultLWPopupEnabledKey= Clazz_new_();
C$.popupPostionFixDisabled=false;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.invoker=null;
this.popup=null;
this.frame=null;
this.desiredLocationX=0;
this.desiredLocationY=0;
this.haveLoc=false;
this.label=null;
this.paintBorder=false;
this.margin=null;
this.lightWeightPopup=false;
this.selectionModel=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.label=null;
this.paintBorder=true;
this.margin=null;
this.lightWeightPopup=true;
}, 1);
Clazz_newMeth(C$, 'setDefaultLightWeightPopupEnabled$Z', function (aFlag) {
$I$(1).appContextPut$O$O(C$.defaultLWPopupEnabledKey, $I$(2).valueOf$Z(aFlag));
}, 1);
Clazz_newMeth(C$, 'getDefaultLightWeightPopupEnabled$', function () {
var b=$I$(1).appContextGet$O(C$.defaultLWPopupEnabledKey);
if (b == null ) {
$I$(1).appContextPut$O$O(C$.defaultLWPopupEnabledKey, $I$(2).TRUE);
return true;
}return b.booleanValue$();
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S.apply(this, [null]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (label) {
Clazz_super_(C$, this,1);
this.label=label;
this.lightWeightPopup=C$.getDefaultLightWeightPopupEnabled$();
this.setSelectionModel$javax_swing_SingleSelectionModel(Clazz_new_($I$(3)));
this.enableEvents$J(16);
this.setOpaque$Z(true);
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "PopupMenuUI";
});
Clazz_newMeth(C$, 'processFocusEvent$java_awt_event_FocusEvent', function (evt) {
C$.superclazz.prototype.processFocusEvent$java_awt_event_FocusEvent.apply(this, [evt]);
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (evt) {
$I$(4).defaultManager$().processKeyEvent$java_awt_event_KeyEvent(evt);
if (evt.isConsumed$()) {
return;
}C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [evt]);
});
Clazz_newMeth(C$, 'getSelectionModel$', function () {
return this.selectionModel;
});
Clazz_newMeth(C$, 'setSelectionModel$javax_swing_SingleSelectionModel', function (model) {
this.selectionModel=model;
});
Clazz_newMeth(C$, 'add$javax_swing_JMenuItem', function (menuItem) {
C$.superclazz.prototype.add$java_awt_Component.apply(this, [menuItem]);
return menuItem;
});
Clazz_newMeth(C$, 'add$S', function (s) {
return this.add$javax_swing_JMenuItem(Clazz_new_($I$(5).c$$S,[s]));
});
Clazz_newMeth(C$, 'add$javax_swing_Action', function (a) {
var mi=this.createActionComponent$javax_swing_Action(a);
mi.setAction$javax_swing_Action(a);
this.add$javax_swing_JMenuItem(mi);
return mi;
});
Clazz_newMeth(C$, 'adjustPopupLocationToFitScreen$I$I', function (xposition, yposition) {
var p=Clazz_new_($I$(6).c$$I$I,[xposition, yposition]);
if (C$.popupPostionFixDisabled == true || $I$(7).isHeadless$() ) return p;
return p;
});
Clazz_newMeth(C$, 'createActionComponent$javax_swing_Action', function (a) {
var mi=((P$.JPopupMenu$1||
(function(){var C$=Clazz_newClass(P$, "JPopupMenu$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('javax.swing.JMenuItem'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) {
var pcl=this.b$['javax.swing.JPopupMenu'].createActionChangeListener$javax_swing_JMenuItem.apply(this.b$['javax.swing.JPopupMenu'], [this]);
if (pcl == null ) {
pcl=C$.superclazz.prototype.createActionPropertyChangeListener$javax_swing_Action.apply(this, [a]);
}return pcl;
});
})()
), Clazz_new_($I$(5), [this, null],P$.JPopupMenu$1));
mi.setHorizontalTextPosition$I(11);
mi.setVerticalTextPosition$I(0);
return mi;
});
Clazz_newMeth(C$, 'createActionChangeListener$javax_swing_JMenuItem', function (b) {
return b.createActionPropertyChangeListener0$javax_swing_Action(b.getAction$());
});
Clazz_newMeth(C$, 'remove$I', function (pos) {
if (pos < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}if (pos > this.getComponentCount$() - 1) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index greater than the number of items."]);
}C$.superclazz.prototype.remove$I.apply(this, [pos]);
});
Clazz_newMeth(C$, 'setLightWeightPopupEnabled$Z', function (aFlag) {
this.lightWeightPopup=aFlag;
});
Clazz_newMeth(C$, 'isLightWeightPopupEnabled$', function () {
return this.lightWeightPopup;
});
Clazz_newMeth(C$, 'getLabel$', function () {
return this.label;
});
Clazz_newMeth(C$, 'setLabel$S', function (label) {
var oldValue=this.label;
this.label=label;
this.firePropertyChange$S$O$O("label", oldValue, label);
this.invalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'addSeparator$', function () {
var sep=Clazz_new_($I$(8));
sep.秘j2sInvalidateOnAdd=false;
this.add$java_awt_Component(sep);
});
Clazz_newMeth(C$, 'insert$javax_swing_Action$I', function (a, index) {
var mi=this.createActionComponent$javax_swing_Action(a);
mi.setAction$javax_swing_Action(a);
this.insert$java_awt_Component$I(mi, index);
});
Clazz_newMeth(C$, 'insert$java_awt_Component$I', function (component, index) {
if (index < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]);
}var nitems=this.getComponentCount$();
var tempItems=Clazz_new_($I$(9));
for (var i=index; i < nitems; i++) {
tempItems.addElement$TE(this.getComponent$I(index));
this.remove$I(index);
}
this.add$java_awt_Component(component);
for (var i=0; i < tempItems.size$(); i++) {
this.add$java_awt_Component(tempItems.elementAt$I(i));
}
});
Clazz_newMeth(C$, 'addPopupMenuListener$javax_swing_event_PopupMenuListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l);
});
Clazz_newMeth(C$, 'removePopupMenuListener$javax_swing_event_PopupMenuListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l);
});
Clazz_newMeth(C$, 'getPopupMenuListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']));
});
Clazz_newMeth(C$, 'addMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l);
});
Clazz_newMeth(C$, 'removeMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l);
});
Clazz_newMeth(C$, 'getMenuKeyListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']));
});
Clazz_newMeth(C$, 'firePopupMenuWillBecomeVisible$', function () {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) {
if (e == null ) e=Clazz_new_($I$(12).c$$O,[this]);
(listeners[i + 1]).popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent(e);
}}
});
Clazz_newMeth(C$, 'firePopupMenuWillBecomeInvisible$', function () {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) {
if (e == null ) e=Clazz_new_($I$(12).c$$O,[this]);
(listeners[i + 1]).popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent(e);
}}
});
Clazz_newMeth(C$, 'firePopupMenuCanceled$', function () {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) {
if (e == null ) e=Clazz_new_($I$(12).c$$O,[this]);
(listeners[i + 1]).popupMenuCanceled$javax_swing_event_PopupMenuEvent(e);
}}
});
Clazz_newMeth(C$, 'alwaysOnTop$', function () {
return true;
});
Clazz_newMeth(C$, 'pack$', function () {
if (this.popup != null ) {
var pref=this.getPreferredSize$();
if (pref == null || pref.width != this.getWidth$() || pref.height != this.getHeight$() ) {
this.popup=p$1.getPopup.apply(this, []);
} else {
this.validate$();
}}});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
if (b == this.isVisible$() ) return;
this.getUI$().setVisible$Z(true);
if (!b) this.popup=null;
});
Clazz_newMeth(C$, 'getPopup', function () {
var oldPopup=this.popup;
if (oldPopup != null ) {
oldPopup.hide$();
}var popupFactory=$I$(13).getSharedInstance$();
if (this.isLightWeightPopupEnabled$()) {
popupFactory.setPopupType$I(0);
} else {
popupFactory.setPopupType$I(1);
}var p=this.adjustPopupLocationToFitScreen$I$I(this.desiredLocationX, this.desiredLocationY);
this.desiredLocationX=p.x;
this.desiredLocationY=p.y;
this.haveLoc=true;
var newPopup=(this.getUI$()).getPopup$javax_swing_JPopupMenu$I$I(this, this.desiredLocationX, this.desiredLocationY);
popupFactory.setPopupType$I(0);
newPopup.show$();
return newPopup;
}, p$1);
Clazz_newMeth(C$, 'isVisible$', function () {
return (this.ui).isJSPopupVisible$();
});
Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) {
var oldX=this.desiredLocationX;
var oldY=this.desiredLocationY;
this.haveLoc=true;
this.desiredLocationX=x;
this.desiredLocationY=y;
if (this.popup != null && (x != oldX || y != oldY ) ) {
this.popup=p$1.getPopup.apply(this, []);
}});
Clazz_newMeth(C$, 'isPopupMenu', function () {
return ((this.invoker != null ) && !(Clazz_instanceOf(this.invoker, "javax.swing.JMenu")) );
}, p$1);
Clazz_newMeth(C$, 'getInvoker$', function () {
return this.invoker;
});
Clazz_newMeth(C$, 'setInvoker$java_awt_Component', function (invoker) {
var oldInvoker=this.invoker;
this.invoker=invoker;
if ((oldInvoker !== this.invoker ) && (this.ui != null ) ) {
(this.ui).reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this, invoker);
}this.invalidate$();
});
Clazz_newMeth(C$, 'show$java_awt_Component$I$I', function (invoker, x, y) {
this.setInvoker$java_awt_Component(invoker);
var invokerOrigin;
if (invoker != null ) {
invokerOrigin=invoker.getLocationOnScreen$();
var lx;
var ly;
lx=(invokerOrigin.x) + (x);
ly=(invokerOrigin.y) + (y);
if (lx > 2147483647) lx=2147483647;
if (lx < -2147483648) lx=-2147483648;
if (ly > 2147483647) ly=2147483647;
if (ly < -2147483648) ly=-2147483648;
this.setLocation$I$I((lx|0), (ly|0));
} else {
this.setLocation$I$I(x, y);
}this.setVisible$Z(true);
});
Clazz_newMeth(C$, 'getRootPopupMenu$', function () {
var mp=this;
while ((mp != null ) && (p$1.isPopupMenu.apply(mp, []) != true ) && (mp.getInvoker$() != null ) && (mp.getInvoker$().getParent$() != null ) && (Clazz_instanceOf(mp.getInvoker$().getParent$(), "javax.swing.JPopupMenu")) ){
mp=mp.getInvoker$().getParent$();
}
return mp;
});
Clazz_newMeth(C$, 'getComponentAtIndex$I', function (i) {
return this.getComponent$I(i);
});
Clazz_newMeth(C$, 'getComponentIndex$java_awt_Component', function (c) {
var ncomponents=this.getComponentCount$();
var components=$I$(14).秘getChildArray$java_awt_Container(this);
for (var i=0; i < ncomponents; i++) {
var comp=components[i];
if (comp === c ) return i;
}
return -1;
});
Clazz_newMeth(C$, 'setPopupSize$java_awt_Dimension', function (d) {
var oldSize=this.getPreferredSize$();
this.setPreferredSize$java_awt_Dimension(d);
if (this.popup != null ) {
var newSize=this.getPreferredSize$();
if (!oldSize.equals$O(newSize)) {
this.popup=p$1.getPopup.apply(this, []);
}}});
Clazz_newMeth(C$, 'setPopupSize$I$I', function (width, height) {
this.setPopupSize$java_awt_Dimension(Clazz_new_($I$(15).c$$I$I,[width, height]));
});
Clazz_newMeth(C$, 'setSelected$java_awt_Component', function (sel) {
var model=this.getSelectionModel$();
var index=this.getComponentIndex$java_awt_Component(sel);
model.setSelectedIndex$I(index);
});
Clazz_newMeth(C$, 'isBorderPainted$', function () {
return this.paintBorder;
});
Clazz_newMeth(C$, 'setBorderPainted$Z', function (b) {
this.paintBorder=b;
this.repaint$();
});
Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) {
if (this.isBorderPainted$()) {
C$.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this, [g]);
}});
Clazz_newMeth(C$, 'getMargin$', function () {
if (this.margin == null ) {
return Clazz_new_($I$(16).c$$I$I$I$I,[0, 0, 0, 0]);
} else {
return this.margin;
}});
Clazz_newMeth(C$, 'isSubPopupMenu$javax_swing_JPopupMenu', function (popup) {
var ncomponents=this.getComponentCount$();
var components=$I$(14).秘getChildArray$java_awt_Container(this);
for (var i=0; i < ncomponents; i++) {
var comp=components[i];
if (Clazz_instanceOf(comp, "javax.swing.JMenu")) {
var menu=comp;
var subPopup=menu.getPopupMenu$();
if (subPopup === popup ) return true;
if (subPopup.isSubPopupMenu$javax_swing_JPopupMenu(popup)) return true;
}}
return false;
});
Clazz_newMeth(C$, 'paramString$', function () {
var labelString=(this.label != null ? this.label : "");
var paintBorderString=(this.paintBorder ? "true" : "false");
var marginString=(this.margin != null ? this.margin.toString() : "");
var lightWeightPopupEnabledString=(this.isLightWeightPopupEnabled$() ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",desiredLocationX=" + this.desiredLocationX + ",desiredLocationY=" + this.desiredLocationY + ",label=" + labelString + ",lightWeightPopupEnabled=" + lightWeightPopupEnabledString + ",margin=" + marginString + ",paintBorder=" + paintBorderString ;
});
Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (event, path, manager) {
});
Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) {
var mke=Clazz_new_($I$(17).c$$java_awt_Component$I$J$I$I$C$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[e.getComponent$(), e.getID$(), e.getWhen$(), e.getModifiers$(), e.getKeyCode$(), e.getKeyChar$(), path, manager]);
mke.bdata=e.bdata ||null;
p$1.processMenuKeyEvent$javax_swing_event_MenuKeyEvent.apply(this, [mke]);
if (mke.isConsumed$()) {
e.consume$();
}});
Clazz_newMeth(C$, 'processMenuKeyEvent$javax_swing_event_MenuKeyEvent', function (e) {
switch (e.getID$()) {
case 401:
p$1.fireMenuKeyPressed$javax_swing_event_MenuKeyEvent.apply(this, [e]);
break;
case 402:
p$1.fireMenuKeyReleased$javax_swing_event_MenuKeyEvent.apply(this, [e]);
break;
case 400:
p$1.fireMenuKeyTyped$javax_swing_event_MenuKeyEvent.apply(this, [e]);
break;
default:
break;
}
}, p$1);
Clazz_newMeth(C$, 'fireMenuKeyPressed$javax_swing_event_MenuKeyEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) {
(listeners[i + 1]).menuKeyPressed$javax_swing_event_MenuKeyEvent(event);
}}
}, p$1);
Clazz_newMeth(C$, 'fireMenuKeyReleased$javax_swing_event_MenuKeyEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) {
(listeners[i + 1]).menuKeyReleased$javax_swing_event_MenuKeyEvent(event);
}}
}, p$1);
Clazz_newMeth(C$, 'fireMenuKeyTyped$javax_swing_event_MenuKeyEvent', function (event) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) {
(listeners[i + 1]).menuKeyTyped$javax_swing_event_MenuKeyEvent(event);
}}
}, p$1);
Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) {
});
Clazz_newMeth(C$, 'getSubElements$', function () {
var result;
var tmp=Clazz_new_($I$(9));
var c=this.getComponentCount$();
var i;
var m;
for (i=0; i < c; i++) {
m=this.getComponent$I(i);
if (Clazz_instanceOf(m, "javax.swing.MenuElement")) tmp.addElement$TE(m);
}
result=Clazz_array($I$(18), [tmp.size$()]);
for (i=0, c=tmp.size$(); i < c; i++) result[i]=tmp.elementAt$I(i);
return result;
});
Clazz_newMeth(C$, 'getComponent$', function () {
return this;
});
Clazz_newMeth(C$, 'isPopupTrigger$java_awt_event_MouseEvent', function (e) {
return (this.getUI$()).isPopupTrigger$java_awt_event_MouseEvent(e);
});
;
(function(){var C$=Clazz_newClass(P$.JPopupMenu, "Separator", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.JSeparator');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$I.apply(this, [0]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "PopupMenuSeparatorUI";
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:19 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,['javax.swing.JToggleButton','.ToggleButtonModel']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JRadioButtonMenuItem", null, 'javax.swing.JMenuItem');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (text, selected) {
C$.c$$S.apply(this, [text]);
this.setSelected$Z(selected);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon$Z', function (icon, selected) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, selected]);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, selected) {
C$.superclazz.c$$S$javax_swing_Icon.apply(this, [text, icon]);
C$.$init$.apply(this);
this.setSelected$Z(selected);
this.setFocusable$Z(false);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "RadioButtonMenuItemUI";
});
Clazz_newMeth(C$, 'setModel$', function () {
this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1)));
});
Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () {
return true;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.SwingUtilities','java.awt.Dimension','sun.awt.AppContext','javax.swing.JLayeredPane','javax.swing.JPanel','java.awt.BorderLayout',['javax.swing.JRootPane','.RootLayout']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JRootPane", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.windowDecorationStyle=0;
this.menuBar=null;
this.contentPane=null;
this.layeredPane=null;
this.glassPane=null;
this.defaultButton=null;
this.defaultPressAction=null;
this.defaultReleaseAction=null;
this.useTrueDoubleBuffering=false;
this.paneCount=0;
this.isAWT=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.useTrueDoubleBuffering=true;
this.isAWT=false;
}, 1);
Clazz_newMeth(C$, 'c$$S$Z$java_awt_Container', function (prefix, isApplet, container) {
Clazz_super_(C$, this,1);
this.秘isRootPane=true;
this.isAWT=Clazz_instanceOf(container, "swingjs.a2s.A2SContainer");
this.setName$S($I$(3).getAppContext$().getThreadGroup$().getName$() + prefix + (++this.paneCount) + ".JRootPane" );
this.setGlassPane$java_awt_Component(this.createGlassPane$());
this.setLayeredPane$javax_swing_JLayeredPane(this.createLayeredPane$());
this.setContentPane$java_awt_Container(this.createContentPane$());
this.setLayout$java_awt_LayoutManager(this.createRootLayout$());
this.setFocusable$Z(false);
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "RootPaneUI";
});
Clazz_newMeth(C$, 'setDoubleBuffered$Z', function (aFlag) {
});
Clazz_newMeth(C$, 'getWindowDecorationStyle$', function () {
return this.windowDecorationStyle;
});
Clazz_newMeth(C$, 'setWindowDecorationStyle$I', function (windowDecorationStyle) {
if (windowDecorationStyle < 0 || windowDecorationStyle > 8 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid decoration style"]);
}var oldWindowDecorationStyle=this.getWindowDecorationStyle$();
this.windowDecorationStyle=windowDecorationStyle;
this.firePropertyChange$S$I$I("windowDecorationStyle", oldWindowDecorationStyle, windowDecorationStyle);
});
Clazz_newMeth(C$, 'createLayeredPane$', function () {
var p=Clazz_new_($I$(4).c$$Z,[this.isAWT]);
p.setName$S(this.getName$() + ".layeredPane");
return p;
});
Clazz_newMeth(C$, 'createContentPane$', function () {
var c=Clazz_new_($I$(5).c$$Z$Z,[true, this.isAWT]);
c.setName$S(this.getName$() + ".contentPane");
c.setLayout$java_awt_LayoutManager(((P$.JRootPane$1||
(function(){var C$=Clazz_newClass(P$, "JRootPane$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.awt.BorderLayout'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) {
if (constraints == null ) {
constraints="Center";
}C$.superclazz.prototype.addLayoutComponent$java_awt_Component$O.apply(this, [comp, constraints]);
});
})()
), Clazz_new_($I$(6), [this, null],P$.JRootPane$1)));
return c;
});
Clazz_newMeth(C$, 'createGlassPane$', function () {
var c=Clazz_new_($I$(5));
c.setName$S(this.getName$() + ".glassPane");
c.setVisible$Z(false);
c.setOpaque$Z(false);
return c;
});
Clazz_newMeth(C$, 'createRootLayout$', function () {
return Clazz_new_($I$(7), [this, null]);
});
Clazz_newMeth(C$, 'setJMenuBar$javax_swing_JMenuBar', function (menu) {
if (this.menuBar != null && this.menuBar.getParent$() === this.layeredPane ) this.layeredPane.remove$java_awt_Component(this.menuBar);
this.menuBar=menu;
if (this.menuBar != null ) this.layeredPane.add$java_awt_Component$O(this.menuBar, $I$(4).FRAME_CONTENT_LAYER);
});
Clazz_newMeth(C$, 'setMenuBar$javax_swing_JMenuBar', function (menu) {
if (this.menuBar != null && this.menuBar.getParent$() === this.layeredPane ) this.layeredPane.remove$java_awt_Component(this.menuBar);
this.menuBar=menu;
if (this.menuBar != null ) this.layeredPane.add$java_awt_Component$O(this.menuBar, $I$(4).FRAME_CONTENT_LAYER);
});
Clazz_newMeth(C$, 'getJMenuBar$', function () {
return this.menuBar;
});
Clazz_newMeth(C$, 'getMenuBar$', function () {
return this.menuBar;
});
Clazz_newMeth(C$, 'setContentPane$java_awt_Container', function (content) {
if (content == null ) throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["contentPane cannot be set to null."]);
if (this.contentPane != null && this.contentPane.getParent$() === this.layeredPane ) this.layeredPane.remove$java_awt_Component(this.contentPane);
this.contentPane=content;
content.秘isContentPane=true;
this.layeredPane.add$java_awt_Component$O(this.contentPane, $I$(4).FRAME_CONTENT_LAYER);
});
Clazz_newMeth(C$, 'getContentPane$', function () {
return this.contentPane;
});
Clazz_newMeth(C$, 'setLayeredPane$javax_swing_JLayeredPane', function (layered) {
if (layered == null ) throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["layeredPane cannot be set to null."]);
if (this.layeredPane != null && this.layeredPane.getParent$() === this ) this.remove$java_awt_Component(this.layeredPane);
this.layeredPane=layered;
this.add$java_awt_Component$I(this.layeredPane, -1);
});
Clazz_newMeth(C$, 'getLayeredPane$', function () {
return this.layeredPane;
});
Clazz_newMeth(C$, 'setGlassPane$java_awt_Component', function (glass) {
if (glass == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["glassPane cannot be set to null."]);
}var visible=false;
if (this.glassPane != null && this.glassPane.getParent$() === this ) {
this.remove$java_awt_Component(this.glassPane);
visible=this.glassPane.isVisible$();
}glass.setVisible$Z(visible);
this.glassPane=glass;
this.add$java_awt_Component$I(this.glassPane, 0);
if (visible) {
this.repaint$();
}});
Clazz_newMeth(C$, 'getGlassPane$', function () {
return this.glassPane;
});
Clazz_newMeth(C$, 'isValidateRoot$', function () {
return true;
});
Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () {
return !this.glassPane.isVisible$();
});
Clazz_newMeth(C$, 'addNotify$', function () {
C$.superclazz.prototype.addNotify$.apply(this, []);
this.enableEvents$J(8);
});
Clazz_newMeth(C$, 'removeNotify$', function () {
C$.superclazz.prototype.removeNotify$.apply(this, []);
});
Clazz_newMeth(C$, 'setDefaultButton$javax_swing_JButton', function (defaultButton) {
var oldDefault=this.defaultButton;
if (oldDefault !== defaultButton ) {
this.defaultButton=defaultButton;
if (oldDefault != null ) {
oldDefault.repaint$();
}if (defaultButton != null ) {
defaultButton.repaint$();
}}this.firePropertyChange$S$O$O("defaultButton", oldDefault, defaultButton);
});
Clazz_newMeth(C$, 'getDefaultButton$', function () {
return this.defaultButton;
});
Clazz_newMeth(C$, 'setUseTrueDoubleBuffering$Z', function (useTrueDoubleBuffering) {
this.useTrueDoubleBuffering=useTrueDoubleBuffering;
});
Clazz_newMeth(C$, 'getUseTrueDoubleBuffering$', function () {
return this.useTrueDoubleBuffering;
});
Clazz_newMeth(C$, 'disableTrueDoubleBuffering$', function () {
});
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) {
this.addImplCont$java_awt_Component$O$I(comp, constraints, index);
if (this.glassPane != null && this.glassPane.getParent$() === this && this.getComponent$I(0) !== this.glassPane ) {
this.add$java_awt_Component$I(this.glassPane, 0);
}});
Clazz_newMeth(C$, 'paramString$', function () {
return C$.superclazz.prototype.paramString$.apply(this, []);
});
Clazz_newMeth(C$, 'getInsets$', function () {
return C$.superclazz.prototype.getInsets$.apply(this, []);
});
Clazz_newMeth(C$, 'setFrameViewer$swingjs_JSFrameViewer', function (v) {
this.layeredPane.setFrameViewer$swingjs_JSFrameViewer(v);
this.contentPane.setFrameViewer$swingjs_JSFrameViewer(v);
if (this.glassPane != null ) this.glassPane.setFrameViewer$swingjs_JSFrameViewer(v);
return C$.superclazz.prototype.setFrameViewer$swingjs_JSFrameViewer.apply(this, [v]);
});
;
(function(){var C$=Clazz_newClass(P$.JRootPane, "DefaultAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.AbstractAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.owner=null;
this.root=null;
this.press=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_JRootPane$Z', function (root, press) {
Clazz_super_(C$, this,1);
this.root=root;
this.press=press;
}, 1);
Clazz_newMeth(C$, 'setOwner$javax_swing_JButton', function (owner) {
this.owner=owner;
});
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
if (this.owner != null && $I$(1).getRootPane$java_awt_Component(this.owner) === this.root ) {
var model=this.owner.getModel$();
if (this.press) {
model.setArmed$Z(true);
model.setPressed$Z(true);
} else {
model.setPressed$Z(false);
}}});
Clazz_newMeth(C$, 'isEnabled$', function () {
return this.owner.getModel$().isEnabled$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JRootPane, "RootLayout", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.awt.LayoutManager2');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) {
var rd;
var mbd;
var i=this.this$0.getInsets$.apply(this.this$0, []);
if (this.this$0.contentPane != null ) {
rd=this.this$0.contentPane.getPreferredSize$();
} else {
rd=parent.getSize$();
}if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) {
mbd=this.this$0.menuBar.getPreferredSize$();
} else {
mbd=Clazz_new_($I$(2).c$$I$I,[0, 0]);
}return Clazz_new_($I$(2).c$$I$I,[Math.max(rd.width, mbd.width) + i.left + i.right , rd.height + mbd.height + i.top + i.bottom ]);
});
Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) {
var rd;
var mbd;
var i=this.this$0.getInsets$.apply(this.this$0, []);
if (this.this$0.contentPane != null ) {
rd=this.this$0.contentPane.getMinimumSize$();
} else {
rd=parent.getSize$();
}if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) {
mbd=this.this$0.menuBar.getMinimumSize$();
} else {
mbd=Clazz_new_($I$(2).c$$I$I,[0, 0]);
}return Clazz_new_($I$(2).c$$I$I,[Math.max(rd.width, mbd.width) + i.left + i.right , rd.height + mbd.height + i.top + i.bottom ]);
});
Clazz_newMeth(C$, 'maximumLayoutSize$java_awt_Container', function (target) {
var rd;
var mbd;
var i=this.this$0.getInsets$.apply(this.this$0, []);
if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) {
mbd=this.this$0.menuBar.getMaximumSize$();
} else {
mbd=Clazz_new_($I$(2).c$$I$I,[0, 0]);
}if (this.this$0.contentPane != null ) {
rd=this.this$0.contentPane.getMaximumSize$();
} else {
rd=Clazz_new_($I$(2).c$$I$I,[2147483647, 2147483647 - i.top - i.bottom - mbd.height - 1 ]);
}return Clazz_new_($I$(2).c$$I$I,[Math.min(rd.width, mbd.width) + i.left + i.right , rd.height + mbd.height + i.top + i.bottom ]);
});
Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) {
var b=parent.getBounds$();
var i=this.this$0.getInsets$.apply(this.this$0, []);
var contentY=0;
var w=b.width - i.right - i.left ;
var h=b.height - i.top - i.bottom ;
if (this.this$0.layeredPane != null ) {
this.this$0.layeredPane.setBounds$I$I$I$I(i.left, i.top, w, h);
}if (this.this$0.glassPane != null ) {
this.this$0.glassPane.setBounds$I$I$I$I(i.left, i.top, w, h);
}if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) {
var mbd=this.this$0.menuBar.getPreferredSize$();
this.this$0.menuBar.setBounds$I$I$I$I(0, 0, w, mbd.height);
contentY+=mbd.height;
}if (this.this$0.contentPane != null ) {
this.this$0.contentPane.setBounds$I$I$I$I(0, contentY, w, h - contentY);
}});
Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) {
});
Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) {
});
Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) {
});
Clazz_newMeth(C$, 'getLayoutAlignmentX$java_awt_Container', function (target) {
return 0.0;
});
Clazz_newMeth(C$, 'getLayoutAlignmentY$java_awt_Container', function (target) {
return 0.0;
});
Clazz_newMeth(C$, 'invalidateLayout$java_awt_Container', function (target) {
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.DefaultBoundedRangeModel',['javax.swing.JScrollBar','.ModelListener'],'java.awt.event.AdjustmentListener','java.awt.event.AdjustmentEvent','java.awt.Dimension','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JScrollBar", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', 'java.awt.Adjustable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.fwdAdjustmentEvents=null;
this.model=null;
this.orientation=0;
this.unitIncrement=0;
this.blockIncrement=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'checkOrientation$I', function (orientation) {
switch (orientation) {
case 1:
case 0:
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["orientation must be one of: VERTICAL, HORIZONTAL"]);
}
}, p$1);
Clazz_newMeth(C$, 'c$$I$I$I$I$I', function (orientation, value, extent, min, max) {
Clazz_super_(C$, this,1);
p$1.checkOrientation$I.apply(this, [orientation]);
this.unitIncrement=1;
this.blockIncrement=(extent == 0) ? 1 : extent;
this.orientation=orientation;
this.model=Clazz_new_($I$(1).c$$I$I$I$I,[value, extent, min, max]);
this.model.addChangeListener$javax_swing_event_ChangeListener(this.fwdAdjustmentEvents=Clazz_new_($I$(2), [this, null]));
this.setRequestFocusEnabled$Z(false);
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "ScrollBarUI";
});
Clazz_newMeth(C$, 'c$$I', function (orientation) {
C$.c$$I$I$I$I$I.apply(this, [orientation, 0, 10, 0, 100]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [1]);
}, 1);
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.model.addChangeListener$javax_swing_event_ChangeListener(l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.model.removeChangeListener$javax_swing_event_ChangeListener(l);
});
Clazz_newMeth(C$, 'getOrientation$', function () {
return this.orientation;
});
Clazz_newMeth(C$, 'setOrientation$I', function (orientation) {
p$1.checkOrientation$I.apply(this, [orientation]);
var oldValue=this.orientation;
this.orientation=orientation;
this.firePropertyChange$S$I$I("orientation", oldValue, orientation);
if (orientation != oldValue) {
this.revalidate$();
}});
Clazz_newMeth(C$, 'getModel$', function () {
return this.model;
});
Clazz_newMeth(C$, 'setModel$javax_swing_BoundedRangeModel', function (newModel) {
var oldModel=this.model;
if (this.model != null ) {
this.model.removeChangeListener$javax_swing_event_ChangeListener(this.fwdAdjustmentEvents);
}this.model=newModel;
if (this.model != null ) {
this.model.addChangeListener$javax_swing_event_ChangeListener(this.fwdAdjustmentEvents);
}this.firePropertyChange$S$O$O("model", oldModel, this.model);
});
Clazz_newMeth(C$, 'getUnitIncrement$I', function (direction) {
return this.unitIncrement;
});
Clazz_newMeth(C$, 'setUnitIncrement$I', function (unitIncrement) {
var oldValue=this.unitIncrement;
this.unitIncrement=unitIncrement;
this.firePropertyChange$S$I$I("unitIncrement", oldValue, unitIncrement);
});
Clazz_newMeth(C$, 'getBlockIncrement$I', function (direction) {
return this.blockIncrement;
});
Clazz_newMeth(C$, 'setBlockIncrement$I', function (blockIncrement) {
var oldValue=this.blockIncrement;
this.blockIncrement=blockIncrement;
this.firePropertyChange$S$I$I("blockIncrement", oldValue, blockIncrement);
});
Clazz_newMeth(C$, 'getUnitIncrement$', function () {
return this.unitIncrement;
});
Clazz_newMeth(C$, 'getBlockIncrement$', function () {
return this.blockIncrement;
});
Clazz_newMeth(C$, 'getValue$', function () {
return this.getModel$().getValue$();
});
Clazz_newMeth(C$, 'setValue$I', function (value) {
var m=this.getModel$();
m.setValue$I(value);
});
Clazz_newMeth(C$, 'getVisibleAmount$', function () {
return this.getModel$().getExtent$();
});
Clazz_newMeth(C$, 'setVisibleAmount$I', function (extent) {
this.getModel$().setExtent$I(extent);
});
Clazz_newMeth(C$, 'getMinimum$', function () {
return this.getModel$().getMinimum$();
});
Clazz_newMeth(C$, 'setMinimum$I', function (minimum) {
this.getModel$().setMinimum$I(minimum);
});
Clazz_newMeth(C$, 'getMaximum$', function () {
return this.getModel$().getMaximum$();
});
Clazz_newMeth(C$, 'setMaximum$I', function (maximum) {
this.getModel$().setMaximum$I(maximum);
});
Clazz_newMeth(C$, 'getValueIsAdjusting$', function () {
return this.getModel$().getValueIsAdjusting$();
});
Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) {
var m=this.getModel$();
m.setValueIsAdjusting$Z(b);
});
Clazz_newMeth(C$, 'setValues$I$I$I$I', function (newValue, newExtent, newMin, newMax) {
var m=this.getModel$();
m.setRangeProperties$I$I$I$I$Z(newValue, newExtent, newMin, newMax, m.getValueIsAdjusting$());
});
Clazz_newMeth(C$, 'addAdjustmentListener$java_awt_event_AdjustmentListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']), l);
});
Clazz_newMeth(C$, 'removeAdjustmentListener$java_awt_event_AdjustmentListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']), l);
});
Clazz_newMeth(C$, 'getAdjustmentListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']));
});
Clazz_newMeth(C$, 'fireAdjustmentValueChanged$I$I$I', function (id, type, value) {
this.fireAdjustmentValueChanged$I$I$I$Z(id, type, value, this.getValueIsAdjusting$());
});
Clazz_newMeth(C$, 'fireAdjustmentValueChanged$I$I$I$Z', function (id, type, value, isAdjusting) {
var listeners=this.listenerList.getListenerList$();
var e=null;
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']) ) {
if (e == null ) {
e=Clazz_new_($I$(4).c$$java_awt_Adjustable$I$I$I$Z,[this, id, type, value, isAdjusting]);
}(listeners[i + 1]).adjustmentValueChanged$(e);
}}
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
var pref=this.getPreferredSize$();
if (this.orientation == 1) {
return Clazz_new_($I$(5).c$$I$I,[pref.width, 5]);
} else {
return Clazz_new_($I$(5).c$$I$I,[5, pref.height]);
}});
Clazz_newMeth(C$, 'getMaximumSize$', function () {
var pref=this.getPreferredSize$();
if (this.getOrientation$() == 1) {
return Clazz_new_($I$(5).c$$I$I,[pref.width, 32767]);
} else {
return Clazz_new_($I$(5).c$$I$I,[32767, pref.height]);
}});
Clazz_newMeth(C$, 'setEnabled$Z', function (x) {
C$.superclazz.prototype.setEnabled$Z.apply(this, [x]);
var n=this.getComponentCount$();
var components=$I$(6).秘getChildArray$java_awt_Container(this);
for (var i=0; i < n; i++) {
components[i].setEnabled$Z(x);
}
});
Clazz_newMeth(C$, 'paramString$', function () {
var orientationString=(this.orientation == 0 ? "HORIZONTAL" : "VERTICAL");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",blockIncrement=" + this.blockIncrement + ",orientation=" + orientationString + ",unitIncrement=" + this.unitIncrement ;
});
;
(function(){var C$=Clazz_newClass(P$.JScrollBar, "ModelListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var obj=e.getSource$();
if (Clazz_instanceOf(obj, "javax.swing.BoundedRangeModel")) {
var id=601;
var type=5;
var model=obj;
var value=model.getValue$();
var isAdjusting=model.getValueIsAdjusting$();
this.this$0.fireAdjustmentValueChanged$I$I$I$Z.apply(this.this$0, [id, type, value, isAdjusting]);
}});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'Boolean',['javax.swing.ScrollPaneLayout','.UIResource'],'java.awt.Point','java.awt.Rectangle','javax.swing.SwingUtilities',['javax.swing.JScrollPane','.ScrollBar'],'javax.swing.JViewport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JScrollPane", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', 'javax.swing.ScrollPaneConstants');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.viewportBorder=null;
this.verticalScrollBarPolicy=0;
this.horizontalScrollBarPolicy=0;
this.viewport=null;
this.verticalScrollBar=null;
this.horizontalScrollBar=null;
this.rowHeader=null;
this.columnHeader=null;
this.lowerLeft=null;
this.lowerRight=null;
this.upperLeft=null;
this.upperRight=null;
this.wheelScrollState=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.verticalScrollBarPolicy=20;
this.horizontalScrollBarPolicy=30;
this.wheelScrollState=true;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component$I$I', function (view, vsbPolicy, hsbPolicy) {
Clazz_super_(C$, this,1);
this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(2)));
this.setVerticalScrollBarPolicy$I(vsbPolicy);
this.setHorizontalScrollBarPolicy$I(hsbPolicy);
this.setViewport$javax_swing_JViewport(this.createViewport$());
this.setVerticalScrollBar$javax_swing_JScrollBar(this.createVerticalScrollBar$());
this.setHorizontalScrollBar$javax_swing_JScrollBar(this.createHorizontalScrollBar$());
if (view != null ) {
this.setViewportView$java_awt_Component(view);
}if (!this.getComponentOrientation$().isLeftToRight$()) {
this.viewport.setViewPosition$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[2147483647, 0]));
}this.setUIProperty$S$O("opaque", new Boolean(true));
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "ScrollPaneUI";
});
Clazz_newMeth(C$, 'c$$java_awt_Component', function (view) {
C$.c$$java_awt_Component$I$I.apply(this, [view, 20, 30]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (vsbPolicy, hsbPolicy) {
C$.c$$java_awt_Component$I$I.apply(this, [null, vsbPolicy, hsbPolicy]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$java_awt_Component$I$I.apply(this, [null, 20, 30]);
}, 1);
Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (layout) {
if (Clazz_instanceOf(layout, "javax.swing.ScrollPaneLayout")) {
C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [layout]);
(layout).syncWithScrollPane$javax_swing_JScrollPane(this);
} else if (layout == null ) {
C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [layout]);
} else {
var s="layout of JScrollPane must be a ScrollPaneLayout";
throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[s]);
}});
Clazz_newMeth(C$, 'isValidateRoot$', function () {
return true;
});
Clazz_newMeth(C$, 'getVerticalScrollBarPolicy$', function () {
return this.verticalScrollBarPolicy;
});
Clazz_newMeth(C$, 'setVerticalScrollBarPolicy$I', function (policy) {
switch (policy) {
case 20:
case 21:
case 22:
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid verticalScrollBarPolicy"]);
}
var old=this.verticalScrollBarPolicy;
this.verticalScrollBarPolicy=policy;
this.firePropertyChange$S$I$I("verticalScrollBarPolicy", old, policy);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getHorizontalScrollBarPolicy$', function () {
return this.horizontalScrollBarPolicy;
});
Clazz_newMeth(C$, 'setHorizontalScrollBarPolicy$I', function (policy) {
switch (policy) {
case 30:
case 31:
case 32:
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid horizontalScrollBarPolicy"]);
}
var old=this.horizontalScrollBarPolicy;
this.horizontalScrollBarPolicy=policy;
this.firePropertyChange$S$I$I("horizontalScrollBarPolicy", old, policy);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getViewportBorder$', function () {
return this.viewportBorder;
});
Clazz_newMeth(C$, 'setViewportBorder$javax_swing_border_Border', function (viewportBorder) {
var oldValue=this.viewportBorder;
this.viewportBorder=viewportBorder;
this.firePropertyChange$S$O$O("viewportBorder", oldValue, viewportBorder);
});
Clazz_newMeth(C$, 'getViewportBorderBounds$', function () {
var borderR=Clazz_new_($I$(4).c$$java_awt_Dimension,[this.getSize$()]);
var insets=this.getInsets$();
borderR.x=insets.left;
borderR.y=insets.top;
borderR.width-=insets.left + insets.right;
borderR.height-=insets.top + insets.bottom;
var leftToRight=$I$(5).isLeftToRight$java_awt_Component(this);
var colHead=this.getColumnHeader$();
if ((colHead != null ) && (colHead.isVisible$()) ) {
var colHeadHeight=colHead.getHeight$();
borderR.y+=colHeadHeight;
borderR.height-=colHeadHeight;
}var rowHead=this.getRowHeader$();
if ((rowHead != null ) && (rowHead.isVisible$()) ) {
var rowHeadWidth=rowHead.getWidth$();
if (leftToRight) {
borderR.x+=rowHeadWidth;
}borderR.width-=rowHeadWidth;
}var vsb=this.getVerticalScrollBar$();
if ((vsb != null ) && (vsb.isVisible$()) ) {
var vsbWidth=vsb.getWidth$();
if (!leftToRight) {
borderR.x+=vsbWidth;
}borderR.width-=vsbWidth;
}var hsb=this.getHorizontalScrollBar$();
if ((hsb != null ) && (hsb.isVisible$()) ) {
borderR.height-=hsb.getHeight$();
}return borderR;
});
Clazz_newMeth(C$, 'createHorizontalScrollBar$', function () {
return Clazz_new_($I$(6).c$$I, [this, null, 0]);
});
Clazz_newMeth(C$, 'getHorizontalScrollBar$', function () {
return this.horizontalScrollBar;
});
Clazz_newMeth(C$, 'setHorizontalScrollBar$javax_swing_JScrollBar', function (horizontalScrollBar) {
var old=this.getHorizontalScrollBar$();
this.horizontalScrollBar=horizontalScrollBar;
if (horizontalScrollBar != null ) {
this.add$java_awt_Component$O(horizontalScrollBar, "HORIZONTAL_SCROLLBAR");
} else if (old != null ) {
this.remove$java_awt_Component(old);
}this.firePropertyChange$S$O$O("horizontalScrollBar", old, horizontalScrollBar);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'createVerticalScrollBar$', function () {
return Clazz_new_($I$(6).c$$I, [this, null, 1]);
});
Clazz_newMeth(C$, 'getVerticalScrollBar$', function () {
return this.verticalScrollBar;
});
Clazz_newMeth(C$, 'setVerticalScrollBar$javax_swing_JScrollBar', function (verticalScrollBar) {
var old=this.getVerticalScrollBar$();
this.verticalScrollBar=verticalScrollBar;
this.add$java_awt_Component$O(verticalScrollBar, "VERTICAL_SCROLLBAR");
this.firePropertyChange$S$O$O("verticalScrollBar", old, verticalScrollBar);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'createViewport$', function () {
return Clazz_new_($I$(7));
});
Clazz_newMeth(C$, 'getViewport$', function () {
return this.viewport;
});
Clazz_newMeth(C$, 'setViewport$javax_swing_JViewport', function (viewport) {
var old=this.getViewport$();
this.viewport=viewport;
if (viewport != null ) {
this.add$java_awt_Component$O(viewport, "VIEWPORT");
} else if (old != null ) {
this.remove$java_awt_Component(old);
}this.firePropertyChange$S$O$O("viewport", old, viewport);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'setViewportView$java_awt_Component', function (view) {
if (this.getViewport$() == null ) {
this.setViewport$javax_swing_JViewport(this.createViewport$());
}this.getViewport$().setView$java_awt_Component(view);
});
Clazz_newMeth(C$, 'getRowHeader$', function () {
return this.rowHeader;
});
Clazz_newMeth(C$, 'setRowHeader$javax_swing_JViewport', function (rowHeader) {
var old=this.getRowHeader$();
this.rowHeader=rowHeader;
if (rowHeader != null ) {
this.add$java_awt_Component$O(rowHeader, "ROW_HEADER");
} else if (old != null ) {
this.remove$java_awt_Component(old);
}this.firePropertyChange$S$O$O("rowHeader", old, rowHeader);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'setRowHeaderView$java_awt_Component', function (view) {
if (this.getRowHeader$() == null ) {
this.setRowHeader$javax_swing_JViewport(this.createViewport$());
}this.getRowHeader$().setView$java_awt_Component(view);
});
Clazz_newMeth(C$, 'getColumnHeader$', function () {
return this.columnHeader;
});
Clazz_newMeth(C$, 'setColumnHeader$javax_swing_JViewport', function (columnHeader) {
var old=this.getColumnHeader$();
this.columnHeader=columnHeader;
if (columnHeader != null ) {
this.add$java_awt_Component$O(columnHeader, "COLUMN_HEADER");
} else if (old != null ) {
this.remove$java_awt_Component(old);
}this.firePropertyChange$S$O$O("columnHeader", old, columnHeader);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'setColumnHeaderView$java_awt_Component', function (view) {
if (this.getColumnHeader$() == null ) {
this.setColumnHeader$javax_swing_JViewport(this.createViewport$());
}this.getColumnHeader$().setView$java_awt_Component(view);
});
Clazz_newMeth(C$, 'getCorner$S', function (key) {
var isLeftToRight=this.getComponentOrientation$().isLeftToRight$();
if (key.equals$O("LOWER_LEADING_CORNER")) {
key=isLeftToRight ? "LOWER_LEFT_CORNER" : "LOWER_RIGHT_CORNER";
} else if (key.equals$O("LOWER_TRAILING_CORNER")) {
key=isLeftToRight ? "LOWER_RIGHT_CORNER" : "LOWER_LEFT_CORNER";
} else if (key.equals$O("UPPER_LEADING_CORNER")) {
key=isLeftToRight ? "UPPER_LEFT_CORNER" : "UPPER_RIGHT_CORNER";
} else if (key.equals$O("UPPER_TRAILING_CORNER")) {
key=isLeftToRight ? "UPPER_RIGHT_CORNER" : "UPPER_LEFT_CORNER";
}if (key.equals$O("LOWER_LEFT_CORNER")) {
return this.lowerLeft;
} else if (key.equals$O("LOWER_RIGHT_CORNER")) {
return this.lowerRight;
} else if (key.equals$O("UPPER_LEFT_CORNER")) {
return this.upperLeft;
} else if (key.equals$O("UPPER_RIGHT_CORNER")) {
return this.upperRight;
} else {
return null;
}});
Clazz_newMeth(C$, 'setCorner$S$java_awt_Component', function (key, corner) {
var old;
var isLeftToRight=this.getComponentOrientation$().isLeftToRight$();
if (key.equals$O("LOWER_LEADING_CORNER")) {
key=isLeftToRight ? "LOWER_LEFT_CORNER" : "LOWER_RIGHT_CORNER";
} else if (key.equals$O("LOWER_TRAILING_CORNER")) {
key=isLeftToRight ? "LOWER_RIGHT_CORNER" : "LOWER_LEFT_CORNER";
} else if (key.equals$O("UPPER_LEADING_CORNER")) {
key=isLeftToRight ? "UPPER_LEFT_CORNER" : "UPPER_RIGHT_CORNER";
} else if (key.equals$O("UPPER_TRAILING_CORNER")) {
key=isLeftToRight ? "UPPER_RIGHT_CORNER" : "UPPER_LEFT_CORNER";
}if (key.equals$O("LOWER_LEFT_CORNER")) {
old=this.lowerLeft;
this.lowerLeft=corner;
} else if (key.equals$O("LOWER_RIGHT_CORNER")) {
old=this.lowerRight;
this.lowerRight=corner;
} else if (key.equals$O("UPPER_LEFT_CORNER")) {
old=this.upperLeft;
this.upperLeft=corner;
} else if (key.equals$O("UPPER_RIGHT_CORNER")) {
old=this.upperRight;
this.upperRight=corner;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid corner key"]);
}if (old != null ) {
this.remove$java_awt_Component(old);
}if (corner != null ) {
this.add$java_awt_Component$O(corner, key);
}this.firePropertyChange$S$O$O(key, old, corner);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (co) {
C$.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this, [co]);
if (this.verticalScrollBar != null ) this.verticalScrollBar.setComponentOrientation$java_awt_ComponentOrientation(co);
if (this.horizontalScrollBar != null ) this.horizontalScrollBar.setComponentOrientation$java_awt_ComponentOrientation(co);
});
Clazz_newMeth(C$, 'isWheelScrollingEnabled$', function () {
return this.wheelScrollState;
});
Clazz_newMeth(C$, 'setWheelScrollingEnabled$Z', function (handleWheel) {
var old=this.wheelScrollState;
this.wheelScrollState=handleWheel;
this.firePropertyChange$S$Z$Z("wheelScrollingEnabled", old, handleWheel);
});
;
(function(){var C$=Clazz_newClass(P$.JScrollPane, "ScrollBar", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.JScrollBar', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.unitIncrementSet=false;
this.blockIncrementSet=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (orientation) {
C$.superclazz.c$$I.apply(this, [orientation]);
C$.$init$.apply(this);
this.putClientProperty$O$O("JScrollBar.fastWheelScrolling", $I$(1).TRUE);
}, 1);
Clazz_newMeth(C$, 'setUnitIncrement$I', function (unitIncrement) {
this.unitIncrementSet=true;
this.putClientProperty$O$O("JScrollBar.fastWheelScrolling", null);
C$.superclazz.prototype.setUnitIncrement$I.apply(this, [unitIncrement]);
});
Clazz_newMeth(C$, 'getUnitIncrement$I', function (direction) {
var vp=this.this$0.getViewport$.apply(this.this$0, []);
if (!this.unitIncrementSet && (vp != null ) && (Clazz_instanceOf(vp.getView$(), "javax.swing.Scrollable")) ) {
var view=(vp.getView$());
var vr=vp.getViewRect$();
return view.getScrollableUnitIncrement$java_awt_Rectangle$I$I(vr, this.getOrientation$(), direction);
} else {
return C$.superclazz.prototype.getUnitIncrement$I.apply(this, [direction]);
}});
Clazz_newMeth(C$, 'setBlockIncrement$I', function (blockIncrement) {
this.blockIncrementSet=true;
this.putClientProperty$O$O("JScrollBar.fastWheelScrolling", null);
C$.superclazz.prototype.setBlockIncrement$I.apply(this, [blockIncrement]);
});
Clazz_newMeth(C$, 'getBlockIncrement$I', function (direction) {
var vp=this.this$0.getViewport$.apply(this.this$0, []);
if (this.blockIncrementSet || vp == null ) {
return C$.superclazz.prototype.getBlockIncrement$I.apply(this, [direction]);
} else if (Clazz_instanceOf(vp.getView$(), "javax.swing.Scrollable")) {
var view=(vp.getView$());
var vr=vp.getViewRect$();
return view.getScrollableBlockIncrement$java_awt_Rectangle$I$I(vr, this.getOrientation$(), direction);
} else if (this.getOrientation$() == 1) {
return vp.getExtentSize$().height;
} else {
return vp.getExtentSize$().width;
}});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={};
var C$=Clazz_newClass(P$, "JSeparator", null, 'javax.swing.JComponent', 'javax.swing.SwingConstants');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.orientation=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.orientation=0;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [0]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (orientation) {
Clazz_super_(C$, this,1);
p$1.checkOrientation$I.apply(this, [orientation]);
this.orientation=orientation;
this.setFocusable$Z(false);
this.updateUI$();
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "SeparatorUI";
});
Clazz_newMeth(C$, 'getOrientation$', function () {
return this.orientation;
});
Clazz_newMeth(C$, 'setOrientation$I', function (orientation) {
if (this.orientation == orientation) {
return;
}var oldValue=this.orientation;
p$1.checkOrientation$I.apply(this, [orientation]);
this.orientation=orientation;
this.firePropertyChange$S$I$I("orientation", oldValue, orientation);
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'checkOrientation$I', function (orientation) {
switch (orientation) {
case 1:
case 0:
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["orientation must be one of: VERTICAL, HORIZONTAL"]);
}
}, p$1);
Clazz_newMeth(C$, 'paramString$', function () {
var orientationString=(this.orientation == 0 ? "HORIZONTAL" : "VERTICAL");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",orientation=" + orientationString ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.LookAndFeel','javax.swing.JComponent','javax.swing.text.PlainDocument','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JTextArea", null, 'javax.swing.text.JTextComponent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.rows=0;
this.columns=0;
this.columnWidth=0;
this.rowHeight=0;
this.wrap=false;
this.word=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, null, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, text, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (rows, columns) {
C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, null, rows, columns]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I', function (text, rows, columns) {
C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, text, rows, columns]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Document', function (doc) {
C$.c$$javax_swing_text_Document$S$I$I.apply(this, [doc, null, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Document$S$I$I', function (doc, text, rows, columns) {
Clazz_super_(C$, this,1);
this.rows=rows;
this.columns=columns;
if (doc == null ) {
doc=this.createDefaultModel$();
}this.setDocument$javax_swing_text_Document(doc);
if (text != null ) {
this.setText$S(text);
this.select$I$I(0, 0);
}if (rows < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["rows: " + rows]);
}if (columns < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns: " + columns]);
}$I$(1).installProperty$javax_swing_JComponent$S$O(this, "focusTraversalKeysForward", $I$(2).getManagingFocusForwardTraversalKeys$());
$I$(1).installProperty$javax_swing_JComponent$S$O(this, "focusTraversalKeysBackward", $I$(2).getManagingFocusBackwardTraversalKeys$());
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "TextAreaUI";
});
Clazz_newMeth(C$, 'createDefaultModel$', function () {
return Clazz_new_($I$(3));
});
Clazz_newMeth(C$, 'setTabSize$I', function (size) {
var doc=this.getDocument$();
if (doc != null ) {
var old=this.getTabSize$();
doc.putProperty$O$O("tabSize", new Integer(size));
this.firePropertyChange$S$I$I("tabSize", old, size);
}});
Clazz_newMeth(C$, 'getTabSize$', function () {
var size=8;
var doc=this.getDocument$();
if (doc != null ) {
var i=doc.getProperty$O("tabSize");
if (i != null ) {
size=i.intValue$();
}}return size;
});
Clazz_newMeth(C$, 'setLineWrap$Z', function (wrap) {
var old=this.wrap;
this.wrap=wrap;
this.firePropertyChange$S$Z$Z("lineWrap", old, wrap);
});
Clazz_newMeth(C$, 'getLineWrap$', function () {
return this.wrap;
});
Clazz_newMeth(C$, 'setWrapStyleWord$Z', function (word) {
var old=this.word;
this.word=word;
this.firePropertyChange$S$Z$Z("wrapStyleWord", old, word);
});
Clazz_newMeth(C$, 'getWrapStyleWord$', function () {
return this.word;
});
Clazz_newMeth(C$, 'getLineOfOffset$I', function (offset) {
var doc=this.getDocument$();
if (offset < 0) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Can\'t translate offset to line", -1]);
} else if (offset > doc.getLength$()) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Can\'t translate offset to line", doc.getLength$() + 1]);
} else {
var map=this.getDocument$().getDefaultRootElement$();
return map.getElementIndex$I(offset);
}});
Clazz_newMeth(C$, 'getLineCount$', function () {
var map=this.getDocument$().getDefaultRootElement$();
return map.getElementCount$();
});
Clazz_newMeth(C$, 'getLineStartOffset$I', function (line) {
var lineCount=this.getLineCount$();
if (line < 0) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Negative line", -1]);
} else if (line >= lineCount) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["No such line", this.getDocument$().getLength$() + 1]);
} else {
var map=this.getDocument$().getDefaultRootElement$();
var lineElem=map.getElement$I(line);
return lineElem.getStartOffset$();
}});
Clazz_newMeth(C$, 'getLineEndOffset$I', function (line) {
var lineCount=this.getLineCount$();
if (line < 0) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Negative line", -1]);
} else if (line >= lineCount) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["No such line", this.getDocument$().getLength$() + 1]);
} else {
var map=this.getDocument$().getDefaultRootElement$();
var lineElem=map.getElement$I(line);
var endOffset=lineElem.getEndOffset$();
return ((line == lineCount - 1) ? (endOffset - 1) : endOffset);
}});
Clazz_newMeth(C$, 'insert$S$I', function (str, pos) {
var doc=this.getDocument$();
if (doc != null ) {
try {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, str, null);
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[e.getMessage$()]);
} else {
throw e;
}
}
}});
Clazz_newMeth(C$, 'append$S', function (str) {
var doc=this.getDocument$();
if (doc != null ) {
try {
doc.insertString$I$S$javax_swing_text_AttributeSet(doc.getLength$(), str, null);
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
} else {
throw e;
}
}
}});
Clazz_newMeth(C$, 'replaceRange$S$I$I', function (str, start, end) {
if (end < start) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["end before start"]);
}var doc=this.getDocument$();
if (doc != null ) {
try {
if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) {
(doc).replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(start, end - start, str, null, this);
} else {
doc.remove$I$I(start, end - start);
doc.insertString$I$S$javax_swing_text_AttributeSet(start, str, null);
}} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[e.getMessage$()]);
} else {
throw e;
}
}
}});
Clazz_newMeth(C$, 'getRows$', function () {
return this.rows;
});
Clazz_newMeth(C$, 'setRows$I', function (rows) {
var oldVal=this.rows;
if (rows < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["rows less than zero."]);
}if (rows != oldVal) {
this.rows=rows;
this.invalidate$();
}});
Clazz_newMeth(C$, 'getRowHeight$', function () {
if (this.rowHeight == 0) {
var metrics=this.getFontMetrics$java_awt_Font(this.getFont$());
this.rowHeight=metrics.getHeight$();
}return this.rowHeight;
});
Clazz_newMeth(C$, 'getColumns$', function () {
return this.columns;
});
Clazz_newMeth(C$, 'setColumns$I', function (columns) {
var oldVal=this.columns;
if (columns < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns less than zero."]);
}if (columns != oldVal) {
this.columns=columns;
this.invalidate$();
}});
Clazz_newMeth(C$, 'getColumnWidth$', function () {
if (this.columnWidth == 0) {
var metrics=this.getFontMetrics$java_awt_Font(this.getFont$());
this.columnWidth=metrics.charWidth$C("m");
}return this.columnWidth;
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.getSizeJS$java_awt_Dimension$I$I$I(this.getPrefSizeJComp$(), 400, this.rows, this.columns);
});
Clazz_newMeth(C$, 'getSizeJS$java_awt_Dimension$I$I$I', function (d, n, rows, columns) {
var w=10;
var h=10;
if (d == null ) {
d=Clazz_new_($I$(4).c$$I$I,[n, n]);
} else {
w=d.width;
h=d.height;
}if (columns != 0) {
d.width=Math.max(w, this.getJ2SWidth$I(columns));
}if (rows != 0) {
var insets=this.getInsets$();
d.height=Math.max(h, rows * this.getRowHeight$() + insets.top + insets.bottom);
}return d;
});
Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) {
var insets=this.getInsets$();
return columns * this.getColumnWidth$() + insets.left + insets.right;
});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [f]);
this.rowHeight=0;
this.columnWidth=0;
});
Clazz_newMeth(C$, 'paramString$', function () {
var wrapString=(this.wrap ? "true" : "false");
var wordString=(this.word ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",colums=" + this.columns + ",columWidth=" + this.columnWidth + ",rows=" + this.rows + ",rowHeight=" + this.rowHeight + ",word=" + wordString + ",wrap=" + wrapString ;
});
Clazz_newMeth(C$, 'getScrollableTracksViewportWidth$', function () {
return (this.wrap) ? true : C$.superclazz.prototype.getScrollableTracksViewportWidth$.apply(this, []);
});
Clazz_newMeth(C$, 'getPreferredScrollableViewportSize$', function () {
var size=C$.superclazz.prototype.getPreferredScrollableViewportSize$.apply(this, []);
size=(size == null ) ? Clazz_new_($I$(4).c$$I$I,[400, 400]) : size;
var insets=this.getInsets$();
size.width=(this.columns == 0) ? size.width : this.columns * this.getColumnWidth$() + insets.left + insets.right;
size.height=(this.rows == 0) ? size.height : this.rows * this.getRowHeight$() + insets.top + insets.bottom;
return size;
});
Clazz_newMeth(C$, 'getScrollableUnitIncrement$java_awt_Rectangle$I$I', function (visibleRect, orientation, direction) {
switch (orientation) {
case 1:
return this.getRowHeight$();
case 0:
return this.getColumnWidth$();
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid orientation: " + orientation]);
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:21 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.AbstractAction','javax.swing.Action',['javax.swing.JTextField','.NotifyAction'],'Boolean','javax.swing.text.PlainDocument','java.awt.event.ActionListener','java.awt.EventQueue','java.awt.event.ActionEvent',['javax.swing.JTextField','.TextFieldActionPropertyChangeListener'],'javax.swing.text.TextAction']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JTextField", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.text.JTextComponent', 'javax.swing.SwingConstants');
C$.defaultActions=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.defaultActions=Clazz_array($I$(2), -1, [Clazz_new_($I$(3))]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.action=null;
this.actionPropertyChangeListener=null;
this.horizontalAlignment=0;
this.columns=0;
this.columnWidth=0;
this.command=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.horizontalAlignment=10;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$javax_swing_text_Document$S$I.apply(this, [null, null, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$javax_swing_text_Document$S$I.apply(this, [null, text, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (columns) {
C$.c$$javax_swing_text_Document$S$I.apply(this, [null, null, columns]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I', function (text, columns) {
C$.c$$javax_swing_text_Document$S$I.apply(this, [null, text, columns]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Document$S$I', function (doc, text, columns) {
Clazz_super_(C$, this,1);
if (columns < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns less than zero."]);
}this.columns=columns;
if (doc == null ) {
doc=this.createDefaultModel$();
}this.setDocument$javax_swing_text_Document(doc);
if (text != null ) {
this.setText$S(text);
}}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "TextFieldUI";
});
Clazz_newMeth(C$, 'setDocument$javax_swing_text_Document', function (doc) {
if (doc != null ) {
doc.putProperty$O$O("filterNewlines", $I$(4).TRUE);
}C$.superclazz.prototype.setDocument$javax_swing_text_Document.apply(this, [doc]);
});
Clazz_newMeth(C$, 'isValidateRoot$', function () {
var parent=this.getParent$();
if (Clazz_instanceOf(parent, "javax.swing.JViewport")) {
return false;
}return true;
});
Clazz_newMeth(C$, 'getHorizontalAlignment$', function () {
return this.horizontalAlignment;
});
Clazz_newMeth(C$, 'setHorizontalAlignment$I', function (alignment) {
if (alignment == this.horizontalAlignment) return;
var oldValue=this.horizontalAlignment;
if ((alignment == 2) || (alignment == 0) || (alignment == 4) || (alignment == 10) || (alignment == 11) ) {
this.horizontalAlignment=alignment;
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["horizontalAlignment"]);
}this.firePropertyChange$S$I$I("horizontalAlignment", oldValue, this.horizontalAlignment);
this.invalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'createDefaultModel$', function () {
return Clazz_new_($I$(5));
});
Clazz_newMeth(C$, 'getColumns$', function () {
return this.columns;
});
Clazz_newMeth(C$, 'setColumns$I', function (columns) {
var oldVal=this.columns;
if (columns < 0) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns less than zero."]);
}if (columns != oldVal) {
this.columns=columns;
this.invalidate$();
}});
Clazz_newMeth(C$, 'getColumnWidth$', function () {
if (this.columnWidth == 0) {
var metrics=this.getFontMetrics$java_awt_Font(this.getFont$());
this.columnWidth=metrics.charWidth$C("m");
}return this.columnWidth;
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.getPrefSizeJTF$();
});
Clazz_newMeth(C$, 'getPrefSizeJTF$', function () {
return this.getPrefSizeJTF$I(this.columns);
});
Clazz_newMeth(C$, 'getPrefSizeJTF$I', function (columns) {
var size=(!this.isPreferredSizeSet$() && this.ui != null ? this.ui.getPreferredSize$javax_swing_JComponent(this) : null);
if (size == null ) size=C$.superclazz.prototype.preferredSize$.apply(this, []);
if (columns != 0) {
size.width=this.getJ2SWidth$I(columns);
}return size;
});
Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) {
var insets=this.getInsets$();
return columns * this.getColumnWidth$() + insets.left + insets.right;
});
Clazz_newMeth(C$, 'getMinimumSizeJTF$I', function (columns) {
var size=C$.superclazz.prototype.getMinimumSize$.apply(this, []);
if (columns != 0) {
size.width=this.getJ2SWidth$I(columns);
}return size;
});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [f]);
this.columnWidth=0;
});
Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l);
});
Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) {
if ((l != null ) && (this.getAction$() === l ) ) {
this.setAction$javax_swing_Action(null);
} else {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l);
}});
Clazz_newMeth(C$, 'getActionListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']));
});
Clazz_newMeth(C$, 'fireActionPerformed$', function () {
var listeners=this.listenerList.getListenerList$();
var modifiers=0;
var currentEvent=$I$(7).getCurrentEvent$();
if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) {
modifiers=(currentEvent).getModifiers$();
} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) {
modifiers=(currentEvent).getModifiers$();
}var e=Clazz_new_($I$(8).c$$O$I$S$J$I,[this, 1001, (this.command != null ) ? this.command : this.getText$(), $I$(7).getMostRecentEventTime$(), modifiers]);
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']) ) {
(listeners[i + 1]).actionPerformed$(e);
}}
});
Clazz_newMeth(C$, 'setActionCommand$S', function (command) {
this.command=command;
});
Clazz_newMeth(C$, 'setAction$javax_swing_Action', function (a) {
var oldValue=this.getAction$();
if (this.action == null || !this.action.equals$O(a) ) {
this.action=a;
if (oldValue != null ) {
this.removeActionListener$java_awt_event_ActionListener(oldValue);
oldValue.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener);
this.actionPropertyChangeListener=null;
}this.configurePropertiesFromAction$javax_swing_Action(this.action);
if (this.action != null ) {
if (!p$1.isListener$Class$java_awt_event_ActionListener.apply(this, [Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), this.action])) {
this.addActionListener$java_awt_event_ActionListener(this.action);
}this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action);
this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener);
}this.firePropertyChange$S$O$O("action", oldValue, this.action);
}});
Clazz_newMeth(C$, 'isListener$Class$java_awt_event_ActionListener', function (c, a) {
var isListener=false;
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === c && listeners[i + 1] === a ) {
isListener=true;
}}
return isListener;
}, p$1);
Clazz_newMeth(C$, 'getAction$', function () {
return this.action;
});
Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) {
$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, a);
$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, a);
p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [a]);
});
Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) {
if (propertyName == "ActionCommandKey") {
p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [action]);
} else if (propertyName == "enabled") {
$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, action);
} else if (propertyName == "ShortDescription") {
$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, action);
}});
Clazz_newMeth(C$, 'setActionCommandFromAction$javax_swing_Action', function (action) {
this.setActionCommand$S((action == null ) ? null : action.getValue$S("ActionCommandKey"));
}, p$1);
Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) {
return Clazz_new_($I$(9).c$$javax_swing_JTextField$javax_swing_Action,[this, a]);
});
Clazz_newMeth(C$, 'getActions$', function () {
return $I$(10).augmentList$javax_swing_ActionA$javax_swing_ActionA(C$.superclazz.prototype.getActions$.apply(this, []), C$.defaultActions);
});
Clazz_newMeth(C$, 'postActionEvent$', function () {
this.fireActionPerformed$();
});
Clazz_newMeth(C$, 'hasActionListener$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']) ) {
return true;
}}
return false;
});
Clazz_newMeth(C$, 'paramString$', function () {
var horizontalAlignmentString;
if (this.horizontalAlignment == 2) {
horizontalAlignmentString="LEFT";
} else if (this.horizontalAlignment == 0) {
horizontalAlignmentString="CENTER";
} else if (this.horizontalAlignment == 4) {
horizontalAlignmentString="RIGHT";
} else if (this.horizontalAlignment == 10) {
horizontalAlignmentString="LEADING";
} else if (this.horizontalAlignment == 11) {
horizontalAlignmentString="TRAILING";
} else horizontalAlignmentString="";
var commandString=(this.command != null ? this.command : "");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",columns=" + this.columns + ",columnWidth=" + this.columnWidth + ",command=" + commandString + ",horizontalAlignment=" + horizontalAlignmentString ;
});
;
(function(){var C$=Clazz_newClass(P$.JTextField, "TextFieldActionPropertyChangeListener", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.ActionPropertyChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_JTextField$javax_swing_Action', function (tf, a) {
C$.superclazz.c$$TT$javax_swing_Action.apply(this, [tf, a]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPropertyChanged$javax_swing_JTextField$javax_swing_Action$java_beans_PropertyChangeEvent','actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent'], function (textField, action, e) {
if ($I$(1).shouldReconfigure$java_beans_PropertyChangeEvent(e)) {
textField.configurePropertiesFromAction$javax_swing_Action(action);
} else {
textField.actionPropertyChanged$javax_swing_Action$S(action, e.getPropertyName$());
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JTextField, "NotifyAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["notify-field-accept"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=e.getSource$();
if (Clazz_instanceOf(target, "javax.swing.JTextField")) {
var field=target;
field.postActionEvent$();
}});
Clazz_newMeth(C$, 'isEnabled$', function () {
var target=this.getFocusedComponent$();
if (Clazz_instanceOf(target, "javax.swing.JTextField")) {
return (target).hasActionListener$();
}return false;
});
})()
;
(function(){var C$=Clazz_newClass(P$.JTextField, "ScrollRepainter", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
this.b$['java.awt.Component'].repaint$.apply(this.b$['java.awt.Component'], []);
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.event.ItemEvent','java.awt.EventQueue','java.awt.event.ActionEvent',['javax.swing.JToggleButton','.ToggleButtonModel']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JToggleButton", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.AbstractButton');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon$Z', function (icon, selected) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, selected]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (text, selected) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, selected]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) {
C$.c$.apply(this, []);
this.setAction$javax_swing_Action(a);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) {
C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]);
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, selected) {
Clazz_super_(C$, this,1);
this.setModel$();
this.model.setSelected$Z(selected);
this.init$S$javax_swing_Icon(text, icon);
this.setOpaque$Z(true);
}, 1);
Clazz_newMeth(C$, 'setModel$', function () {
this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(4)));
});
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "ToggleButtonUI";
});
Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () {
return true;
});
Clazz_newMeth(C$, 'paramString$', function () {
return C$.superclazz.prototype.paramString$.apply(this, []);
});
;
(function(){var C$=Clazz_newClass(P$.JToggleButton, "ToggleButtonModel", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.DefaultButtonModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'isSelected$', function () {
return (this.stateMask & 2) != 0;
});
Clazz_newMeth(C$, 'setSelected$Z', function (b) {
var group=this.getGroup$();
if (group != null ) {
group.setSelected$javax_swing_ButtonModel$Z(this, b);
b=group.isSelected$javax_swing_ButtonModel(this);
}if (this.isSelected$() == b ) {
return;
}if (b) {
this.stateMask|=2;
} else {
this.stateMask&=~2;
}this.fireStateChanged$();
this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(1).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this, this.isSelected$() ? 1 : 2]));
});
Clazz_newMeth(C$, 'setPressed$Z', function (b) {
if ((this.isPressed$() == b ) || !this.isEnabled$() ) {
return;
}if (!b && this.isArmed$() ) {
this.setSelected$Z(!this.isSelected$());
}if (b) {
this.stateMask|=4;
} else {
this.stateMask&=~4;
}this.fireStateChanged$();
if (!this.isPressed$() && this.isArmed$() ) {
var modifiers=0;
var currentEvent=$I$(2).getCurrentEvent$();
if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) {
modifiers=(currentEvent).getModifiers$();
} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) {
modifiers=(currentEvent).getModifiers$();
}this.fireActionPerformed$java_awt_event_ActionEvent(Clazz_new_($I$(3).c$$O$I$S$J$I,[this, 1001, this.getActionCommand$(), $I$(2).getMostRecentEventTime$(), modifiers]));
}});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.RepaintManager','java.awt.Insets','java.awt.Point','java.awt.Dimension','java.awt.Rectangle','javax.swing.JComponent','javax.swing.SwingUtilities',['javax.swing.JViewport','.ViewListener'],'javax.swing.ViewportLayout','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JViewport", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', [['java.awt.JSComponent','java.awt.JSComponent.A2SComponentWrapper']]);
C$.EnableWindowBlit=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EnableWindowBlit="EnableWindowBlit";
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.isViewSizeSet=false;
this.lastPaintPosition=null;
this.backingStore=false;
this.backingStoreImage=null;
this.scrollUnderway=false;
this.viewListener=null;
this.changeEvent=null;
this.scrollMode=0;
this.repaintAll=false;
this.waitingForRepaint=false;
this.inBlitPaint=false;
this.hasHadValidView=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.isViewSizeSet=false;
this.lastPaintPosition=null;
this.backingStore=false;
this.backingStoreImage=null;
this.scrollUnderway=false;
this.viewListener=null;
this.changeEvent=null;
this.scrollMode=1;
}, 1);
Clazz_newMeth(C$, '秘isWrapper$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.setLayout$java_awt_LayoutManager(this.createLayoutManager$());
this.setOpaque$Z(true);
this.updateUI$();
this.setInheritsPopupMenu$Z(true);
}, 1);
Clazz_newMeth(C$, 'getUIClassID$', function () {
return "ViewportUI";
});
Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (child, constraints, index) {
this.setView$java_awt_Component(child);
});
Clazz_newMeth(C$, 'remove$java_awt_Component', function (child) {
child.removeComponentListener$java_awt_event_ComponentListener(this.viewListener);
C$.superclazz.prototype.remove$java_awt_Component.apply(this, [child]);
});
Clazz_newMeth(C$, 'scrollRectToVisible$java_awt_Rectangle', function (contentRect) {
var view=this.getView$();
if (view == null ) {
return;
} else {
if (!view.isValid$()) {
p$1.validateView.apply(this, []);
}var dx=0;
var dy=0;
dx=p$1.positionAdjustment$I$I$I.apply(this, [this.getWidth$(), contentRect.width, contentRect.x]);
dy=p$1.positionAdjustment$I$I$I.apply(this, [this.getHeight$(), contentRect.height, contentRect.y]);
if (dx != 0 || dy != 0 ) {
var viewPosition=this.getViewPosition$();
var viewSize=view.getSize$();
var startX=viewPosition.x;
var startY=viewPosition.y;
var extent=this.getExtentSize$();
viewPosition.x-=dx;
viewPosition.y-=dy;
if (view.isValid$()) {
if (this.getParent$().getComponentOrientation$().isLeftToRight$()) {
if (viewPosition.x + extent.width > viewSize.width) {
viewPosition.x=Math.max(0, viewSize.width - extent.width);
} else if (viewPosition.x < 0) {
viewPosition.x=0;
}} else {
if (extent.width > viewSize.width) {
viewPosition.x=viewSize.width - extent.width;
} else {
viewPosition.x=Math.max(0, Math.min(viewSize.width - extent.width, viewPosition.x));
}}if (viewPosition.y + extent.height > viewSize.height) {
viewPosition.y=Math.max(0, viewSize.height - extent.height);
} else if (viewPosition.y < 0) {
viewPosition.y=0;
}}if (viewPosition.x != startX || viewPosition.y != startY ) {
this.setViewPosition$java_awt_Point(viewPosition);
this.scrollUnderway=false;
}}}});
Clazz_newMeth(C$, 'validateView', function () {
var validateRoot=null;
for (var c=this; c != null ; c=c.getParent$()) {
if ((Clazz_instanceOf(c, "javax.swing.CellRendererPane")) || !c.isLightweight$() ) {
return;
}if ((Clazz_instanceOf(c, "javax.swing.JComponent")) && ((c).isValidateRoot$()) ) {
validateRoot=c;
break;
}}
if (validateRoot == null ) {
return;
}var root=null;
for (var c=validateRoot; c != null ; c=c.getParent$()) {
if (!c.isLightweight$()) {
return;
}if (c.isWindowOrJSApplet$()) {
root=c;
break;
}}
if (root == null ) {
return;
}validateRoot.validate$();
var rm=$I$(1).currentManager$javax_swing_JComponent(this);
if (rm != null ) {
rm.removeInvalidComponent$javax_swing_JComponent(validateRoot);
}}, p$1);
Clazz_newMeth(C$, 'positionAdjustment$I$I$I', function (parentWidth, childWidth, childAt) {
if (childAt >= 0 && childWidth + childAt <= parentWidth ) {
return 0;
}if (childAt <= 0 && childWidth + childAt >= parentWidth ) {
return 0;
}if (childAt > 0 && childWidth <= parentWidth ) {
return -childAt + parentWidth - childWidth;
}if (childAt >= 0 && childWidth >= parentWidth ) {
return -childAt;
}if (childAt <= 0 && childWidth <= parentWidth ) {
return -childAt;
}if (childAt < 0 && childWidth >= parentWidth ) {
return -childAt + parentWidth - childWidth;
}return 0;
}, p$1);
Clazz_newMeth(C$, 'setBorder$javax_swing_border_Border', function (border) {
if (border != null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["JViewport.setBorder() not supported"]);
}});
Clazz_newMeth(C$, 'getInsets$', function () {
return Clazz_new_($I$(2).c$$I$I$I$I,[1, 1, 1, 1]);
});
Clazz_newMeth(C$, 'getInsets$java_awt_Insets', function (insets) {
insets.left=insets.top=insets.right=insets.bottom=0;
return insets;
});
Clazz_newMeth(C$, 'getBackingStoreGraphics$java_awt_Graphics', function (g) {
var bsg=this.backingStoreImage.getGraphics$();
bsg.setColor$java_awt_Color(g.getColor$());
bsg.setFont$java_awt_Font(g.getFont$());
bsg.setClip$java_awt_Shape(g.getClipBounds$());
return bsg;
}, p$1);
Clazz_newMeth(C$, 'paintViaBackingStore$java_awt_Graphics', function (g) {
var bsg=p$1.getBackingStoreGraphics$java_awt_Graphics.apply(this, [g]);
try {
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [bsg]);
(g).drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage, 0, 0, this);
} finally {
bsg.dispose$();
}
}, p$1);
Clazz_newMeth(C$, 'paintViaBackingStore$java_awt_Graphics$java_awt_Rectangle', function (g, oClip) {
var bsg=p$1.getBackingStoreGraphics$java_awt_Graphics.apply(this, [g]);
try {
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [bsg]);
g.setClip$java_awt_Shape(oClip);
(g).drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage, 0, 0, this);
} finally {
bsg.dispose$();
}
}, p$1);
Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () {
return false;
});
Clazz_newMeth(C$, 'isPaintingOrigin$', function () {
if (this.scrollMode == 2) {
return true;
}return false;
});
Clazz_newMeth(C$, 'getViewLocation', function () {
var view=this.getView$();
if (view != null ) {
return view.getLocation$();
} else {
return Clazz_new_($I$(3).c$$I$I,[0, 0]);
}}, p$1);
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
var width=this.getWidth$();
var height=this.getHeight$();
if ((width <= 0) || (height <= 0) ) {
return;
}if (this.inBlitPaint) {
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]);
return;
}if (this.repaintAll) {
this.repaintAll=false;
} else if (this.waitingForRepaint) {
var clipB=g.getClipBounds$();
if (clipB.width >= this.getWidth$() && clipB.height >= this.getHeight$() ) {
this.waitingForRepaint=false;
}}if (!this.backingStore || p$1.isBlitting.apply(this, []) || this.getView$() == null ) {
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]);
this.lastPaintPosition=p$1.getViewLocation.apply(this, []);
return;
}var viewBounds=this.getView$().getBounds$();
if (!this.isOpaque$()) {
g.clipRect$I$I$I$I(0, 0, viewBounds.width, viewBounds.height);
}if (this.backingStoreImage == null ) {
this.backingStoreImage=this.createImage$I$I(width, height);
var clip=g.getClipBounds$();
if (clip.width != width || clip.height != height ) {
if (!this.isOpaque$()) {
g.setClip$I$I$I$I(0, 0, Math.min(viewBounds.width, width), Math.min(viewBounds.height, height));
} else {
g.setClip$I$I$I$I(0, 0, width, height);
}p$1.paintViaBackingStore$java_awt_Graphics$java_awt_Rectangle.apply(this, [g, clip]);
} else {
p$1.paintViaBackingStore$java_awt_Graphics.apply(this, [g]);
}} else {
if (!this.scrollUnderway || this.lastPaintPosition.equals$O(p$1.getViewLocation.apply(this, [])) ) {
p$1.paintViaBackingStore$java_awt_Graphics.apply(this, [g]);
} else {
var blitFrom=Clazz_new_($I$(3));
var blitTo=Clazz_new_($I$(3));
var blitSize=Clazz_new_($I$(4));
var blitPaint=Clazz_new_($I$(5));
var newLocation=p$1.getViewLocation.apply(this, []);
var dx=newLocation.x - this.lastPaintPosition.x;
var dy=newLocation.y - this.lastPaintPosition.y;
var canBlit=this.computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle(dx, dy, blitFrom, blitTo, blitSize, blitPaint);
if (!canBlit) {
p$1.paintViaBackingStore$java_awt_Graphics.apply(this, [g]);
} else {
var bdx=blitTo.x - blitFrom.x;
var bdy=blitTo.y - blitFrom.y;
var clip=g.getClipBounds$();
g.setClip$I$I$I$I(0, 0, width, height);
var bsg=p$1.getBackingStoreGraphics$java_awt_Graphics.apply(this, [g]);
try {
bsg.copyArea$I$I$I$I$I$I(blitFrom.x, blitFrom.y, blitSize.width, blitSize.height, bdx, bdy);
g.setClip$I$I$I$I(clip.x, clip.y, clip.width, clip.height);
var r=viewBounds.intersection$java_awt_Rectangle(blitPaint);
bsg.setClip$java_awt_Shape(r);
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [bsg]);
(g).drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage, 0, 0, this);
} finally {
bsg.dispose$();
}
}}}this.lastPaintPosition=p$1.getViewLocation.apply(this, []);
this.scrollUnderway=false;
});
Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, w, h) {
var sizeChanged=(this.getWidth$() != w) || (this.getHeight$() != h) ;
if (sizeChanged) {
this.backingStoreImage=null;
}C$.superclazz.prototype.reshape$I$I$I$I.apply(this, [x, y, w, h]);
if (sizeChanged) {
this.fireStateChanged$();
}});
Clazz_newMeth(C$, 'setScrollMode$I', function (mode) {
this.scrollMode=mode;
if (mode == 2) {
this.backingStore=true;
} else {
this.backingStore=false;
}});
Clazz_newMeth(C$, 'getScrollMode$', function () {
return this.scrollMode;
});
Clazz_newMeth(C$, 'isBackingStoreEnabled$', function () {
return this.scrollMode == 2;
});
Clazz_newMeth(C$, 'setBackingStoreEnabled$Z', function (enabled) {
if (enabled) {
this.setScrollMode$I(2);
} else {
this.setScrollMode$I(1);
}});
Clazz_newMeth(C$, 'isBlitting', function () {
var view=this.getView$();
return (this.scrollMode == 1) && (Clazz_instanceOf(view, "javax.swing.JComponent")) && (view).isOpaque$() ;
}, p$1);
Clazz_newMeth(C$, 'getView$', function () {
return (this.getComponentCount$() > 0) ? this.getComponent$I(0) : null;
});
Clazz_newMeth(C$, 'setView$java_awt_Component', function (view) {
var n=this.getComponentCount$();
for (var i=n - 1; i >= 0; i--) {
this.remove$java_awt_Component(this.getComponent$I(i));
}
this.isViewSizeSet=false;
if (view != null ) {
this.addImplCont$java_awt_Component$O$I(view, null, -1);
this.viewListener=this.createViewListener$();
view.addComponentListener$java_awt_event_ComponentListener(this.viewListener);
}if (this.hasHadValidView) {
this.fireStateChanged$();
} else if (view != null ) {
this.hasHadValidView=true;
}this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getViewSize$', function () {
var view=this.getView$();
if (view == null ) {
return Clazz_new_($I$(4).c$$I$I,[0, 0]);
} else if (this.isViewSizeSet) {
return view.getSize$();
} else {
return view.getPreferredSize$();
}});
Clazz_newMeth(C$, 'setViewSize$java_awt_Dimension', function (newSize) {
var view=this.getView$();
if (view != null ) {
var oldSize=view.getSize$();
if (!newSize.equals$O(oldSize)) {
this.scrollUnderway=false;
view.setSize$java_awt_Dimension(newSize);
this.isViewSizeSet=true;
this.fireStateChanged$();
}}});
Clazz_newMeth(C$, 'getViewPosition$', function () {
var view=this.getView$();
if (view != null ) {
var p=view.getLocation$();
p.x=-p.x;
p.y=-p.y;
return p;
} else {
return Clazz_new_($I$(3).c$$I$I,[0, 0]);
}});
Clazz_newMeth(C$, 'setViewPosition$java_awt_Point', function (p) {
var view=this.getView$();
if (view == null ) {
return;
}var oldX;
var oldY;
var x=p.x;
var y=p.y;
if (Clazz_instanceOf(view, "javax.swing.JComponent")) {
var c=view;
oldX=c.getX$();
oldY=c.getY$();
} else {
var r=view.getBounds$();
oldX=r.x;
oldY=r.y;
}var newX=-x;
var newY=-y;
if ((oldX != newX) || (oldY != newY) ) {
if (!this.waitingForRepaint && p$1.isBlitting.apply(this, []) && p$1.canUseWindowBlitter.apply(this, []) ) {
var rm=$I$(1).currentManager$javax_swing_JComponent(this);
var jview=view;
var dirty=rm.getDirtyRegion$javax_swing_JComponent(jview);
if (dirty == null || !dirty.contains$java_awt_Rectangle(jview.getVisibleRect$()) ) {
rm.beginPaint$();
var g=$I$(6).safelyGetGraphics$java_awt_Component$java_awt_Component(this, $I$(7).getRoot$java_awt_Component(this));
try {
p$1.flushViewDirtyRegion$java_awt_Graphics$java_awt_Rectangle.apply(this, [g, dirty]);
view.setLocation$I$I(newX, newY);
g.setClip$I$I$I$I(0, 0, this.getWidth$(), Math.min(this.getHeight$(), jview.getHeight$()));
this.repaintAll=(p$1.windowBlitPaint$java_awt_Graphics.apply(this, [g]) && p$1.needsRepaintAfterBlit.apply(this, []) );
rm.markCompletelyClean$javax_swing_JComponent(this.getParent$());
rm.markCompletelyClean$javax_swing_JComponent(this);
rm.markCompletelyClean$javax_swing_JComponent(jview);
} finally {
g.dispose$();
rm.endPaint$();
}
} else {
view.setLocation$I$I(newX, newY);
this.repaintAll=false;
}} else {
this.scrollUnderway=true;
view.setLocation$I$I(newX, newY);
this.repaintAll=false;
}this.fireStateChanged$();
}});
Clazz_newMeth(C$, 'getViewRect$', function () {
return Clazz_new_($I$(5).c$$java_awt_Point$java_awt_Dimension,[this.getViewPosition$(), this.getExtentSize$()]);
});
Clazz_newMeth(C$, 'computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle', function (dx, dy, blitFrom, blitTo, blitSize, blitPaint) {
{
return false;
}
});
Clazz_newMeth(C$, 'getExtentSize$', function () {
return this.getSize$();
});
Clazz_newMeth(C$, 'toViewCoordinates$java_awt_Dimension', function (size) {
return Clazz_new_($I$(4).c$$java_awt_Dimension,[size]);
});
Clazz_newMeth(C$, 'toViewCoordinates$java_awt_Point', function (p) {
return Clazz_new_($I$(3).c$$java_awt_Point,[p]);
});
Clazz_newMeth(C$, 'setExtentSize$java_awt_Dimension', function (newExtent) {
var oldExtent=this.getExtentSize$();
if (!newExtent.equals$O(oldExtent)) {
this.setSize$java_awt_Dimension(newExtent);
this.fireStateChanged$();
}});
Clazz_newMeth(C$, 'createViewListener$', function () {
return Clazz_new_($I$(8), [this, null]);
});
Clazz_newMeth(C$, 'createLayoutManager$', function () {
return $I$(9).SHARED_INSTANCE;
});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']));
});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) {
this.changeEvent=Clazz_new_($I$(11).c$$O,[this]);
}(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, w, h) {
var parent=this.getParent$();
if (parent != null ) parent.repaint$J$I$I$I$I(tm, x + this.getX$(), y + this.getY$(), w, h);
else C$.superclazz.prototype.repaint$J$I$I$I$I.apply(this, [tm, x, y, w, h]);
});
Clazz_newMeth(C$, 'paramString$', function () {
var isViewSizeSetString=(this.isViewSizeSet ? "true" : "false");
var lastPaintPositionString=(this.lastPaintPosition != null ? this.lastPaintPosition.toString() : "");
var scrollUnderwayString=(this.scrollUnderway ? "true" : "false");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",isViewSizeSet=" + isViewSizeSetString + ",lastPaintPosition=" + lastPaintPositionString + ",scrollUnderway=" + scrollUnderwayString ;
});
Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) {
C$.superclazz.prototype.firePropertyChange$S$O$O.apply(this, [propertyName, oldValue, newValue]);
if (propertyName.equals$O(C$.EnableWindowBlit)) {
if (newValue != null ) {
this.setScrollMode$I(1);
} else {
this.setScrollMode$I(0);
}}});
Clazz_newMeth(C$, 'needsRepaintAfterBlit', function () {
var heavyParent=this.getParent$();
while (heavyParent != null && heavyParent.isLightweight$() ){
heavyParent=heavyParent.getParent$();
}
if (heavyParent != null ) {
}return true;
}, p$1);
Clazz_newMeth(C$, 'flushViewDirtyRegion$java_awt_Graphics$java_awt_Rectangle', function (g, dirty) {
var view=this.getView$();
if (dirty != null && dirty.width > 0 && dirty.height > 0 ) {
dirty.x+=view.getX$();
dirty.y+=view.getY$();
var clip=g.getClipBounds$();
if (clip == null ) {
g.setClip$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$());
}g.clipRect$I$I$I$I(dirty.x, dirty.y, dirty.width, dirty.height);
clip=g.getClipBounds$();
if (clip.width > 0 && clip.height > 0 ) {
p$1.paintView$java_awt_Graphics.apply(this, [g]);
}}}, p$1);
Clazz_newMeth(C$, 'windowBlitPaint$java_awt_Graphics', function (g) {
var width=this.getWidth$();
var height=this.getHeight$();
if ((width == 0) || (height == 0) ) {
return false;
}var retValue;
var view=this.getView$();
if (this.lastPaintPosition == null || this.lastPaintPosition.equals$O(p$1.getViewLocation.apply(this, [])) ) {
p$1.paintView$java_awt_Graphics.apply(this, [g]);
retValue=false;
} else {
var blitFrom=Clazz_new_($I$(3));
var blitTo=Clazz_new_($I$(3));
var blitSize=Clazz_new_($I$(4));
var blitPaint=Clazz_new_($I$(5));
var newLocation=p$1.getViewLocation.apply(this, []);
var dx=newLocation.x - this.lastPaintPosition.x;
var dy=newLocation.y - this.lastPaintPosition.y;
var canBlit=this.computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle(dx, dy, blitFrom, blitTo, blitSize, blitPaint);
if (!canBlit) {
p$1.paintView$java_awt_Graphics.apply(this, [g]);
retValue=false;
} else {
var r=view.getBounds$().intersection$java_awt_Rectangle(blitPaint);
r.x-=view.getX$();
r.y-=view.getY$();
p$1.blitDoubleBuffered$javax_swing_JComponent$java_awt_Graphics$I$I$I$I$I$I$I$I$I$I.apply(this, [view, g, r.x, r.y, r.width, r.height, blitFrom.x, blitFrom.y, blitTo.x, blitTo.y, blitSize.width, blitSize.height]);
retValue=true;
}}this.lastPaintPosition=p$1.getViewLocation.apply(this, []);
return retValue;
}, p$1);
Clazz_newMeth(C$, 'blitDoubleBuffered$javax_swing_JComponent$java_awt_Graphics$I$I$I$I$I$I$I$I$I$I', function (view, g, clipX, clipY, clipW, clipH, blitFromX, blitFromY, blitToX, blitToY, blitW, blitH) {
var x=view.getX$();
var y=view.getY$();
g.translate$I$I(x, y);
g.setClip$I$I$I$I(clipX, clipY, clipW, clipH);
view.paintForceDoubleBuffered$java_awt_Graphics(g);
g.translate$I$I(-x, -y);
}, p$1);
Clazz_newMeth(C$, 'paintView$java_awt_Graphics', function (g) {
var clip=g.getClipBounds$();
var view=this.getView$();
if (view.getWidth$() >= this.getWidth$()) {
var x=view.getX$();
var y=view.getY$();
g.translate$I$I(x, y);
g.setClip$I$I$I$I(clip.x - x, clip.y - y, clip.width, clip.height);
view.paintForceDoubleBuffered$java_awt_Graphics(g);
g.translate$I$I(-x, -y);
g.setClip$I$I$I$I(clip.x, clip.y, clip.width, clip.height);
} else {
try {
this.inBlitPaint=true;
this.paintForceDoubleBuffered$java_awt_Graphics(g);
} finally {
this.inBlitPaint=false;
}
}}, p$1);
Clazz_newMeth(C$, 'canUseWindowBlitter', function () {
if (!this.isShowing$() || (!(Clazz_instanceOf(this.getParent$(), "javax.swing.JComponent")) && !(Clazz_instanceOf(this.getView$(), "javax.swing.JComponent")) ) ) {
return false;
}if (this.isPainting$()) {
return false;
}var dirtyRegion=$I$(1).currentManager$javax_swing_JComponent(this).getDirtyRegion$javax_swing_JComponent(this.getParent$());
if (dirtyRegion != null && dirtyRegion.width > 0 && dirtyRegion.height > 0 ) {
return false;
}var clip=Clazz_new_($I$(5).c$$I$I$I$I,[0, 0, this.getWidth$(), this.getHeight$()]);
var oldClip=Clazz_new_($I$(5));
var tmp2=null;
var parent;
var lastParent=null;
var x;
var y;
var w;
var h;
for (parent=this; parent != null && P$.JComponent.isLightweightComponent$java_awt_Component(parent) ; parent=parent.getParent$()) {
x=parent.getX$();
y=parent.getY$();
w=parent.getWidth$();
h=parent.getHeight$();
oldClip.setBounds$java_awt_Rectangle(clip);
$I$(7).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, w, h, clip);
if (!clip.equals$O(oldClip)) return false;
if (lastParent != null && Clazz_instanceOf(parent, "javax.swing.JComponent") && !(parent).isOptimizedDrawingEnabled$() ) {
var comps=$I$(12).秘getChildArray$java_awt_Container(parent);
var index=0;
for (var i=parent.getComponentCount$() - 1; i >= 0; i--) {
if (comps[i] === lastParent ) {
index=i - 1;
break;
}}
while (index >= 0){
tmp2=comps[index].getBounds$java_awt_Rectangle(tmp2);
if (tmp2.intersects$java_awt_Rectangle(clip)) return false;
index--;
}
}clip.x+=x;
clip.y+=y;
lastParent=parent;
}
if (parent == null ) {
return false;
}return true;
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.JViewport, "ViewListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'java.awt.event.ComponentAdapter');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) {
this.this$0.fireStateChanged$.apply(this.this$0, []);
this.b$['javax.swing.JComponent'].revalidate$.apply(this.b$['javax.swing.JComponent'], []);
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.util.Hashtable','java.util.Vector','Thread',['javax.swing.KeyboardManager','.ComponentKeyStrokePair'],'javax.swing.KeyStroke','javax.swing.JMenuBar','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "KeyboardManager", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.currentManager=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.currentManager=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.containerMap=null;
this.componentKeyStrokeMap=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.containerMap=Clazz_new_($I$(1));
this.componentKeyStrokeMap=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'getCurrentManager$', function () {
return C$.currentManager;
}, 1);
Clazz_newMeth(C$, 'setCurrentManager$javax_swing_KeyboardManager', function (km) {
C$.currentManager=km;
}, 1);
Clazz_newMeth(C$, 'registerKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent', function (k, c) {
var keyMap=p$1.getKeyMap$javax_swing_JComponent$javax_swing_KeyStroke.apply(this, [c, k]);
if (keyMap == null ) return;
var tmp=keyMap.get$O(k);
if (tmp == null ) {
keyMap.put$TK$TV(k, c);
} else if (Clazz_instanceOf(tmp, "java.util.Vector")) {
var v=tmp;
if (!v.contains$O(c)) {
v.addElement$TE(c);
}} else if (Clazz_instanceOf(tmp, "javax.swing.JComponent")) {
if (tmp !== c ) {
var v=Clazz_new_($I$(2));
v.addElement$TE(tmp);
v.addElement$TE(c);
keyMap.put$TK$TV(k, v);
}} else {
System.out.println$S("Unexpected condition in registerKeyStroke");
$I$(3).dumpStack$();
}});
Clazz_newMeth(C$, 'unregisterKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent', function (ks, c) {
var ckp=Clazz_new_($I$(4).c$$O$O, [this, null, c, ks]);
var topContainer=this.componentKeyStrokeMap.get$O(ckp);
if (topContainer == null ) {
return;
}var keyMap=this.containerMap.get$O(topContainer);
if (keyMap == null ) {
$I$(3).dumpStack$();
return;
}var tmp=keyMap.get$O(ks);
if (tmp == null ) {
$I$(3).dumpStack$();
return;
}if (Clazz_instanceOf(tmp, "javax.swing.JComponent") && tmp === c ) {
keyMap.remove$O(ks);
} else if (Clazz_instanceOf(tmp, "java.util.Vector")) {
var v=tmp;
v.removeElement$O(c);
if (v.isEmpty$()) {
keyMap.remove$O(ks);
}}if (keyMap.isEmpty$()) {
this.containerMap.remove$O(topContainer);
}this.componentKeyStrokeMap.remove$O(ckp);
});
Clazz_newMeth(C$, 'fireKeyboardAction$java_awt_event_KeyEvent$Z$java_awt_Container', function (e, pressed, topAncestor) {
if (e.isConsumed$()) {
System.out.println$S("Aquired pre-used event!");
$I$(3).dumpStack$();
}var ks;
if (e.getID$() == 400) {
ks=$I$(5).getKeyStroke$C(e.getKeyChar$());
} else {
ks=$I$(5).getKeyStroke$I$I$Z(e.getKeyCode$(), e.getModifiers$(), !pressed);
}var keyMap=this.containerMap.get$O(topAncestor);
if (keyMap != null ) {
var tmp=keyMap.get$O(ks);
if (tmp == null ) {
} else if (Clazz_instanceOf(tmp, "javax.swing.JComponent")) {
var c=tmp;
if (c.isShowing$() && c.isEnabled$() ) {
this.fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z(c, ks, e, pressed);
}} else if (Clazz_instanceOf(tmp, "java.util.Vector")) {
var v=tmp;
for (var counter=v.size$() - 1; counter >= 0; counter--) {
var c=v.elementAt$I(counter);
if (c.isShowing$() && c.isEnabled$() ) {
this.fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z(c, ks, e, pressed);
if (e.isConsumed$()) return true;
}}
} else {
System.out.println$S("Unexpected condition in fireKeyboardAction " + tmp);
$I$(3).dumpStack$();
}}if (e.isConsumed$()) {
return true;
}if (keyMap != null ) {
var v=keyMap.get$O(Clazz_getClass($I$(6)));
if (v != null ) {
var iter=v.elements$();
while (iter.hasMoreElements$()){
var mb=iter.nextElement$();
if (mb.isShowing$() && mb.isEnabled$() ) {
this.fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z(mb, ks, e, pressed);
if (e.isConsumed$()) {
return true;
}}}
}}return e.isConsumed$();
});
Clazz_newMeth(C$, 'fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z', function (c, ks, e, pressed) {
if (c.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, 2, pressed)) {
e.consume$();
}});
Clazz_newMeth(C$, 'registerMenuBar$javax_swing_JMenuBar', function (mb) {
var keyMap=p$1.getKeyMap$javax_swing_JComponent$javax_swing_KeyStroke.apply(this, [mb, null]);
if (keyMap == null ) return;
var menuBars=keyMap.get$O(Clazz_getClass($I$(6)));
if (menuBars == null ) {
menuBars=Clazz_new_($I$(2));
keyMap.put$TK$TV(Clazz_getClass($I$(6)), menuBars);
}if (!menuBars.contains$O(mb)) {
menuBars.addElement$TE(mb);
}});
Clazz_newMeth(C$, 'getKeyMap$javax_swing_JComponent$javax_swing_KeyStroke', function (c, k) {
var top=$I$(7).秘getTopInvokableAncestor$java_awt_Component$Z(c, true);
if (top == null ) {
return null;
}var keyMap=this.containerMap.get$O(top);
if (keyMap == null ) {
keyMap=this.registerNewTopContainer$java_awt_Container(top);
}if (k != null ) this.componentKeyStrokeMap.put$TK$TV(Clazz_new_($I$(4).c$$O$O, [this, null, c, k]), top);
return keyMap;
}, p$1);
Clazz_newMeth(C$, 'unregisterMenuBar$javax_swing_JMenuBar', function (mb) {
var top=$I$(7).秘getTopInvokableAncestor$java_awt_Component$Z(mb, true);
if (top == null ) {
return;
}var keyMap=this.containerMap.get$O(top);
if (keyMap != null ) {
var v=keyMap.get$O(Clazz_getClass($I$(6)));
if (v != null ) {
v.removeElement$O(mb);
if (v.isEmpty$()) {
keyMap.remove$O(Clazz_getClass($I$(6)));
if (keyMap.isEmpty$()) {
this.containerMap.remove$O(top);
}}}}});
Clazz_newMeth(C$, 'registerNewTopContainer$java_awt_Container', function (topContainer) {
var keyMap=Clazz_new_($I$(1));
this.containerMap.put$TK$TV(topContainer, keyMap);
return keyMap;
});
;
(function(){var C$=Clazz_newClass(P$.KeyboardManager, "ComponentKeyStrokePair", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.component=null;
this.keyStroke=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O$O', function (comp, key) {
C$.$init$.apply(this);
this.component=comp;
this.keyStroke=key;
}, 1);
Clazz_newMeth(C$, 'equals$O', function (o) {
if (!(Clazz_instanceOf(o, "javax.swing.KeyboardManager.ComponentKeyStrokePair"))) {
return false;
}var ckp=o;
return ((this.component.equals$O(ckp.component)) && (this.keyStroke.equals$O(ckp.keyStroke)) );
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.component.hashCode$() * this.keyStroke.hashCode$();
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newClass(P$, "KeyStroke", null, 'java.awt.AWTKeyStroke');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'c$$C$I$I$Z', function (keyChar, keyCode, modifiers, onKeyRelease) {
C$.superclazz.c$$C$I$I$Z.apply(this, [keyChar, keyCode, modifiers, onKeyRelease]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getKeyStroke$C', function (keyChar) {
{
java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$));
return java.awt.AWTKeyStroke.getAWTKeyStroke$C(keyChar);
}}, 1);
Clazz_newMeth(C$, 'getKeyStroke$C$Z', function (keyChar, onKeyRelease) {
return Clazz_new_(C$.c$$C$I$I$Z,[keyChar, 0, 0, onKeyRelease]);
}, 1);
Clazz_newMeth(C$, 'getKeyStroke$Character$I', function (keyChar, modifiers) {
{
java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$));
return java.awt.AWTKeyStroke.getAWTKeyStroke$Character$I(keyChar, modifiers);
}}, 1);
Clazz_newMeth(C$, 'getKeyStroke$I$I$Z', function (keyCode, modifiers, onKeyRelease) {
{
java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$));
return java.awt.AWTKeyStroke.getAWTKeyStroke$I$I$Z(keyCode, modifiers, onKeyRelease);
}}, 1);
Clazz_newMeth(C$, 'getKeyStroke$I$I', function (keyCode, modifiers) {
{
java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$));
return java.awt.AWTKeyStroke.getAWTKeyStroke$I$I(keyCode, modifiers);
}}, 1);
Clazz_newMeth(C$, 'getKeyStrokeForEvent$java_awt_event_KeyEvent', function (anEvent) {
{
java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$));
return java.awt.AWTKeyStroke.getAWTKeyStrokeForEvent$java_awt_event_KeyEvent(anEvent);
}}, 1);
Clazz_newMeth(C$, 'getKeyStroke$S', function (s) {
if (s == null || s.length$() == 0 ) {
return null;
}{
java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$));
try {
return java.awt.AWTKeyStroke.getAWTKeyStroke$S(s);
} catch (e) {
if (Clazz_exceptionOf(e,"IllegalArgumentException")){
return null;
} else {
throw e;
}
}
}}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "ListModel");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.UIManager','swingjs.JSUtil','javax.swing.plaf.InputMapUIResource','javax.swing.plaf.ComponentInputMapUIResource','javax.swing.KeyStroke','sun.swing.DefaultLayoutStyle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LookAndFeel");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'installColors$javax_swing_JComponent$S$S', function (c, defaultBgName, defaultFgName) {
var bg=c.getBackground$();
if (bg == null || Clazz_instanceOf(bg, "javax.swing.plaf.UIResource") ) c.setBackground$java_awt_Color($I$(1).getColor$O(defaultBgName));
var fg=c.getForeground$();
if (fg == null || Clazz_instanceOf(fg, "javax.swing.plaf.UIResource") ) c.setForeground$java_awt_Color($I$(1).getColor$O(defaultFgName));
}, 1);
Clazz_newMeth(C$, 'installColorsAndFont$javax_swing_JComponent$S$S$S', function (c, defaultBgName, defaultFgName, defaultFontName) {
if (c.isAWT || c.isAWT$ ||false) return;
var f=c.getFont$();
if (f == null || Clazz_instanceOf(f, "javax.swing.plaf.UIResource") ) {
c.setFont$java_awt_Font($I$(1).getFont$O(defaultFontName));
}if (defaultBgName != null ) C$.installColors$javax_swing_JComponent$S$S(c, defaultBgName, defaultFgName);
}, 1);
Clazz_newMeth(C$, 'installBorder$javax_swing_JComponent$S', function (c, defaultBorderName) {
var b=c.getBorder$();
if (b == null || Clazz_instanceOf(b, "javax.swing.plaf.UIResource") ) {
c.setBorder$javax_swing_border_Border($I$(1).getBorder$O(defaultBorderName));
}}, 1);
Clazz_newMeth(C$, 'uninstallBorder$javax_swing_JComponent', function (c) {
if (Clazz_instanceOf(c.getBorder$(), "javax.swing.plaf.UIResource")) {
c.setBorder$javax_swing_border_Border(null);
}}, 1);
Clazz_newMeth(C$, 'installProperty$javax_swing_JComponent$S$O', function (c, propertyName, propertyValue) {
if (Clazz_instanceOf(c, "javax.swing.JPasswordField")) {
if (!(c).customSetUIProperty$S$O(propertyName, propertyValue)) {
c.setUIProperty$S$O(propertyName, propertyValue);
}} else {
c.setUIProperty$S$O(propertyName, propertyValue);
}}, 1);
Clazz_newMeth(C$, 'makeKeyBindings$OA', function (keyBindingList) {
$I$(2).notImplemented$S(null);
return null;
}, 1);
Clazz_newMeth(C$, 'makeInputMap$OA', function (keys) {
var retMap=Clazz_new_($I$(3));
C$.loadKeyBindings$javax_swing_InputMap$OA(retMap, keys);
return retMap;
}, 1);
Clazz_newMeth(C$, 'makeComponentInputMap$javax_swing_JComponent$OA', function (c, keys) {
var retMap=Clazz_new_($I$(4).c$$javax_swing_JComponent,[c]);
C$.loadKeyBindings$javax_swing_InputMap$OA(retMap, keys);
return retMap;
}, 1);
Clazz_newMeth(C$, 'loadKeyBindings$javax_swing_InputMap$OA', function (retMap, keys) {
if (keys != null ) {
for (var counter=0, maxCounter=keys.length; counter < maxCounter; counter++) {
var keyStrokeO=keys[counter++];
var ks=(Clazz_instanceOf(keyStrokeO, "javax.swing.KeyStroke")) ? keyStrokeO : $I$(5).getKeyStroke$S(keyStrokeO);
retMap.put$javax_swing_KeyStroke$O(ks, keys[counter]);
}
}}, 1);
Clazz_newMeth(C$, 'makeIcon$Class$S', function (baseClass, gifFile) {
$I$(2).notImplemented$S(null);
return null;
}, 1);
Clazz_newMeth(C$, 'getLayoutStyle$', function () {
return $I$(6).getInstance$();
});
Clazz_newMeth(C$, 'provideErrorFeedback$java_awt_Component', function (component) {
$I$(2).notImplemented$S(null);
});
Clazz_newMeth(C$, 'getDesktopPropertyValue$S$O', function (systemPropertyName, fallbackValue) {
$I$(2).notImplemented$S(null);
return fallbackValue;
}, 1);
Clazz_newMeth(C$, 'getDisabledIcon$javax_swing_JComponent$javax_swing_Icon', function (component, icon) {
$I$(2).notImplemented$S(null);
return null;
});
Clazz_newMeth(C$, 'getDisabledSelectedIcon$javax_swing_JComponent$javax_swing_Icon', function (component, icon) {
return this.getDisabledIcon$javax_swing_JComponent$javax_swing_Icon(component, icon);
});
Clazz_newMeth(C$, 'getSupportsWindowDecorations$', function () {
return false;
});
Clazz_newMeth(C$, 'initialize$', function () {
});
Clazz_newMeth(C$, 'uninitialize$', function () {
});
Clazz_newMeth(C$, 'getDefaults$', function () {
return null;
});
Clazz_newMeth(C$, 'toString', function () {
return "[" + this.getDescription$() + " - " + this.getClass$().getName$() + "]" ;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "MenuElement");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "MutableComboBoxModel", null, null, 'javax.swing.ComboBoxModel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newClass(P$, "ActionMapUIResource", null, 'javax.swing.ActionMap', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf.basic"),I$=[[0,'java.awt.Insets','javax.swing.plaf.basic.BasicGraphicsUtils','javax.swing.UIManager',['javax.swing.plaf.BorderUIResource','.CompoundBorderUIResource'],['javax.swing.plaf.basic.BasicBorders','.ButtonBorder'],['javax.swing.plaf.basic.BasicBorders','.MarginBorder'],['javax.swing.plaf.basic.BasicBorders','.RadioButtonBorder'],['javax.swing.plaf.basic.BasicBorders','.ToggleButtonBorder'],['javax.swing.plaf.basic.BasicBorders','.MenuBarBorder'],['javax.swing.plaf.basic.BasicBorders','.SplitPaneBorder'],['javax.swing.plaf.basic.BasicBorders','.FieldBorder'],['javax.swing.plaf.BorderUIResource','.LineBorderUIResource'],'java.awt.Color','javax.swing.border.BevelBorder','javax.swing.BorderFactory']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BasicBorders", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getButtonBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var buttonBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(5).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("Button.shadow"), table.getColor$O("Button.darkShadow"), table.getColor$O("Button.light"), table.getColor$O("Button.highlight")]), Clazz_new_($I$(6))]);
return buttonBorder;
}, 1);
Clazz_newMeth(C$, 'getRadioButtonBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var radioButtonBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(7).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("RadioButton.shadow"), table.getColor$O("RadioButton.darkShadow"), table.getColor$O("RadioButton.light"), table.getColor$O("RadioButton.highlight")]), Clazz_new_($I$(6))]);
return radioButtonBorder;
}, 1);
Clazz_newMeth(C$, 'getToggleButtonBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var toggleButtonBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(8).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("ToggleButton.shadow"), table.getColor$O("ToggleButton.darkShadow"), table.getColor$O("ToggleButton.light"), table.getColor$O("ToggleButton.highlight")]), Clazz_new_($I$(6))]);
return toggleButtonBorder;
}, 1);
Clazz_newMeth(C$, 'getMenuBarBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var menuBarBorder=Clazz_new_($I$(9).c$$java_awt_Color$java_awt_Color,[table.getColor$O("MenuBar.shadow"), table.getColor$O("MenuBar.highlight")]);
return menuBarBorder;
}, 1);
Clazz_newMeth(C$, 'getSplitPaneBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var splitPaneBorder=Clazz_new_($I$(10).c$$java_awt_Color$java_awt_Color,[table.getColor$O("SplitPane.highlight"), table.getColor$O("SplitPane.darkShadow")]);
return splitPaneBorder;
}, 1);
Clazz_newMeth(C$, 'getTextFieldBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var textFieldBorder=Clazz_new_($I$(11).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("TextField.shadow"), table.getColor$O("TextField.darkShadow"), table.getColor$O("TextField.light"), table.getColor$O("TextField.highlight")]);
return textFieldBorder;
}, 1);
Clazz_newMeth(C$, 'getProgressBarBorder$', function () {
var progressBarBorder=Clazz_new_($I$(12).c$$java_awt_Color$I,[$I$(13).green, 2]);
return progressBarBorder;
}, 1);
Clazz_newMeth(C$, 'getInternalFrameBorder$', function () {
var table=$I$(3).getLookAndFeelDefaults$();
var internalFrameBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(14).c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[0, table.getColor$O("InternalFrame.borderLight"), table.getColor$O("InternalFrame.borderHighlight"), table.getColor$O("InternalFrame.borderDarkShadow"), table.getColor$O("InternalFrame.borderShadow")]), $I$(15).createLineBorder$java_awt_Color$I(table.getColor$O("InternalFrame.borderColor"), 1)]);
return internalFrameBorder;
}, 1);
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "RolloverButtonBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['javax.swing.plaf.basic.BasicBorders','.ButtonBorder']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) {
C$.superclazz.c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [shadow, darkShadow, highlight, lightHighlight]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, w, h) {
var b=c;
var model=b.getModel$();
var shade=this.shadow;
var p=b.getParent$();
if (p != null && p.getBackground$().equals$O(this.shadow) ) {
shade=this.darkShadow;
}if ((model.isRollover$() && !(model.isPressed$() && !model.isArmed$() ) ) || model.isSelected$() ) {
var oldColor=g.getColor$();
g.translate$I$I(x, y);
if (model.isPressed$() && model.isArmed$() || model.isSelected$() ) {
g.setColor$java_awt_Color(shade);
g.drawRect$I$I$I$I(0, 0, w - 1, h - 1);
g.setColor$java_awt_Color(this.lightHighlight);
g.drawLine$I$I$I$I(w - 1, 0, w - 1, h - 1);
g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1);
} else {
g.setColor$java_awt_Color(this.lightHighlight);
g.drawRect$I$I$I$I(0, 0, w - 1, h - 1);
g.setColor$java_awt_Color(shade);
g.drawLine$I$I$I$I(w - 1, 0, w - 1, h - 1);
g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1);
}g.translate$I$I(-x, -y);
g.setColor$java_awt_Color(oldColor);
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "RolloverMarginBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.EmptyBorder');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$I$I$I$I.apply(this, [3, 3, 3, 3]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]));
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
var margin=null;
if (Clazz_instanceOf(c, "javax.swing.AbstractButton")) {
margin=(c).getMargin$();
}if (margin == null || Clazz_instanceOf(margin, "javax.swing.plaf.UIResource") ) {
insets.left=this.left;
insets.top=this.top;
insets.right=this.right;
insets.bottom=this.bottom;
} else {
insets.left=margin.left;
insets.top=margin.top;
insets.right=margin.right;
insets.bottom=margin.bottom;
}return insets;
});
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "ButtonBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.EmptyBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.shadow=null;
this.darkShadow=null;
this.highlight=null;
this.lightHighlight=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) {
C$.superclazz.c$$I$I$I$I.apply(this, [1, 1, 1, 1]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "ToggleButtonBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['javax.swing.plaf.basic.BasicBorders','.ButtonBorder']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) {
C$.superclazz.c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [shadow, darkShadow, highlight, lightHighlight]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "RadioButtonBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['javax.swing.plaf.basic.BasicBorders','.ButtonBorder']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) {
C$.superclazz.c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [shadow, darkShadow, highlight, lightHighlight]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "MenuBarBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.AbstractBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.shadow=null;
this.highlight=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (shadow, highlight) {
Clazz_super_(C$, this,1);
this.shadow=shadow;
this.highlight=highlight;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
var oldColor=g.getColor$();
g.translate$I$I(x, y);
g.setColor$java_awt_Color(this.shadow);
g.drawLine$I$I$I$I(0, height - 2, width, height - 2);
g.setColor$java_awt_Color(this.highlight);
g.drawLine$I$I$I$I(0, height - 1, width, height - 1);
g.translate$I$I(-x, -y);
g.setColor$java_awt_Color(oldColor);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]));
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
insets.top=0;
insets.left=0;
insets.bottom=2;
insets.right=0;
return insets;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "MarginBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.AbstractBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]));
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
var margin=null;
if (Clazz_instanceOf(c, "javax.swing.AbstractButton")) {
var b=c;
margin=b.getMargin$();
} else if (Clazz_instanceOf(c, "javax.swing.JToolBar")) {
var t=c;
margin=t.getMargin$();
} else if (Clazz_instanceOf(c, "javax.swing.text.JTextComponent")) {
var t=c;
margin=t.getMargin$();
}insets.top=margin != null ? margin.top : 0;
insets.left=margin != null ? margin.left : 0;
insets.bottom=margin != null ? margin.bottom : 0;
insets.right=margin != null ? margin.right : 0;
return insets;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "FieldBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.AbstractBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.shadow=null;
this.darkShadow=null;
this.highlight=null;
this.lightHighlight=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) {
Clazz_super_(C$, this,1);
this.shadow=shadow;
this.highlight=highlight;
this.darkShadow=darkShadow;
this.lightHighlight=lightHighlight;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
$I$(2).drawEtchedRect$java_awt_Graphics$I$I$I$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color(g, x, y, width, height, this.shadow, this.darkShadow, this.highlight, this.lightHighlight);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]));
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) {
var margin=null;
if (Clazz_instanceOf(c, "javax.swing.text.JTextComponent")) {
margin=(c).getMargin$();
}insets.top=margin != null ? 2 + margin.top : 2;
insets.left=margin != null ? 2 + margin.left : 2;
insets.bottom=margin != null ? 2 + margin.bottom : 2;
insets.right=margin != null ? 2 + margin.right : 2;
return insets;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BasicBorders, "SplitPaneBorder", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, ['javax.swing.border.Border', 'javax.swing.plaf.UIResource']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.highlight=null;
this.shadow=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (highlight, shadow) {
C$.$init$.apply(this);
this.highlight=highlight;
this.shadow=shadow;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
var child;
var cBounds;
var splitPane=c;
child=splitPane.getLeftComponent$();
g.setColor$java_awt_Color(c.getBackground$());
g.drawRect$I$I$I$I(x, y, width - 1, height - 1);
if (splitPane.getOrientation$() == 1) {
if (child != null ) {
cBounds=child.getBounds$();
g.setColor$java_awt_Color(this.shadow);
g.drawLine$I$I$I$I(0, 0, cBounds.width + 1, 0);
g.drawLine$I$I$I$I(0, 1, 0, cBounds.height + 1);
g.setColor$java_awt_Color(this.highlight);
g.drawLine$I$I$I$I(0, cBounds.height + 1, cBounds.width + 1, cBounds.height + 1);
}child=splitPane.getRightComponent$();
if (child != null ) {
cBounds=child.getBounds$();
var maxX=cBounds.x + cBounds.width;
var maxY=cBounds.y + cBounds.height;
g.setColor$java_awt_Color(this.shadow);
g.drawLine$I$I$I$I(cBounds.x - 1, 0, maxX, 0);
g.setColor$java_awt_Color(this.highlight);
g.drawLine$I$I$I$I(cBounds.x - 1, maxY, maxX, maxY);
g.drawLine$I$I$I$I(maxX, 0, maxX, maxY + 1);
}} else {
if (child != null ) {
cBounds=child.getBounds$();
g.setColor$java_awt_Color(this.shadow);
g.drawLine$I$I$I$I(0, 0, cBounds.width + 1, 0);
g.drawLine$I$I$I$I(0, 1, 0, cBounds.height);
g.setColor$java_awt_Color(this.highlight);
g.drawLine$I$I$I$I(1 + cBounds.width, 0, 1 + cBounds.width, cBounds.height + 1);
g.drawLine$I$I$I$I(0, cBounds.height + 1, 0, cBounds.height + 1);
}child=splitPane.getRightComponent$();
if (child != null ) {
cBounds=child.getBounds$();
var maxX=cBounds.x + cBounds.width;
var maxY=cBounds.y + cBounds.height;
g.setColor$java_awt_Color(this.shadow);
g.drawLine$I$I$I$I(0, cBounds.y - 1, 0, maxY);
g.drawLine$I$I$I$I(maxX, cBounds.y - 1, maxX, cBounds.y - 1);
g.setColor$java_awt_Color(this.highlight);
g.drawLine$I$I$I$I(0, maxY, cBounds.width + 1, maxY);
g.drawLine$I$I$I$I(maxX, cBounds.y, maxX, maxY);
}}});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return Clazz_new_($I$(1).c$$I$I$I$I,[1, 1, 1, 1]);
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return true;
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[[0,['javax.swing.plaf.BorderUIResource','.EtchedBorderUIResource'],['javax.swing.plaf.BorderUIResource','.BevelBorderUIResource'],['javax.swing.plaf.BorderUIResource','.LineBorderUIResource'],'java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "BorderUIResource", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['javax.swing.border.Border', 'javax.swing.plaf.UIResource']);
C$.etched=null;
C$.loweredBevel=null;
C$.raisedBevel=null;
C$.blackLine=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.delegate=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getEtchedBorderUIResource$', function () {
if (C$.etched == null ) {
C$.etched=Clazz_new_($I$(1));
}return C$.etched;
}, 1);
Clazz_newMeth(C$, 'getLoweredBevelBorderUIResource$', function () {
if (C$.loweredBevel == null ) {
C$.loweredBevel=Clazz_new_($I$(2).c$$I,[1]);
}return C$.loweredBevel;
}, 1);
Clazz_newMeth(C$, 'getRaisedBevelBorderUIResource$', function () {
if (C$.raisedBevel == null ) {
C$.raisedBevel=Clazz_new_($I$(2).c$$I,[0]);
}return C$.raisedBevel;
}, 1);
Clazz_newMeth(C$, 'getBlackLineBorderUIResource$', function () {
if (C$.blackLine == null ) {
C$.blackLine=Clazz_new_($I$(3).c$$java_awt_Color,[$I$(4).black]);
}return C$.blackLine;
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border', function (delegate) {
C$.$init$.apply(this);
if (delegate == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null border delegate argument"]);
}this.delegate=delegate;
}, 1);
Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) {
this.delegate.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, x, y, width, height);
});
Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) {
return this.delegate.getBorderInsets$java_awt_Component(c);
});
Clazz_newMeth(C$, 'isBorderOpaque$', function () {
return this.delegate.isBorderOpaque$();
});
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "CompoundBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.CompoundBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border$javax_swing_border_Border', function (outsideBorder, insideBorder) {
C$.superclazz.c$$javax_swing_border_Border$javax_swing_border_Border.apply(this, [outsideBorder, insideBorder]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "EmptyBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.EmptyBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) {
C$.superclazz.c$$I$I$I$I.apply(this, [top, left, bottom, right]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Insets', function (insets) {
C$.superclazz.c$$java_awt_Insets.apply(this, [insets]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "LineBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.LineBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color', function (color) {
C$.superclazz.c$$java_awt_Color.apply(this, [color]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$I', function (color, thickness) {
C$.superclazz.c$$java_awt_Color$I.apply(this, [color, thickness]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "BevelBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.BevelBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (bevelType) {
C$.superclazz.c$$I.apply(this, [bevelType]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (bevelType, highlight, shadow) {
C$.superclazz.c$$I$java_awt_Color$java_awt_Color.apply(this, [bevelType, highlight, shadow]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (bevelType, highlightOuter, highlightInner, shadowOuter, shadowInner) {
C$.superclazz.c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [bevelType, highlightOuter, highlightInner, shadowOuter, shadowInner]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "EtchedBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.EtchedBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (etchType) {
C$.superclazz.c$$I.apply(this, [etchType]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (highlight, shadow) {
C$.superclazz.c$$java_awt_Color$java_awt_Color.apply(this, [highlight, shadow]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (etchType, highlight, shadow) {
C$.superclazz.c$$I$java_awt_Color$java_awt_Color.apply(this, [etchType, highlight, shadow]);
C$.$init$.apply(this);
}, 1);
})()
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "MatteBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.MatteBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I$java_awt_Color', function (top, left, bottom, right, color) {
C$.superclazz.c$$I$I$I$I$java_awt_Color.apply(this, [top, left, bottom, right, color]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I$javax_swing_Icon', function (top, left, bottom, right, tileIcon) {
C$.superclazz.c$$I$I$I$I$javax_swing_Icon.apply(this, [top, left, bottom, right, tileIcon]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (tileIcon) {
C$.superclazz.c$$javax_swing_Icon.apply(this, [tileIcon]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.BorderUIResource, "TitledBorderUIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.border.TitledBorder', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (title) {
C$.superclazz.c$$S.apply(this, [title]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border', function (border) {
C$.superclazz.c$$javax_swing_border_Border.apply(this, [border]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S', function (border, title) {
C$.superclazz.c$$javax_swing_border_Border$S.apply(this, [border, title]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S$I$I', function (border, title, titleJustification, titlePosition) {
C$.superclazz.c$$javax_swing_border_Border$S$I$I.apply(this, [border, title, titleJustification, titlePosition]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S$I$I$java_awt_Font', function (border, title, titleJustification, titlePosition, titleFont) {
C$.superclazz.c$$javax_swing_border_Border$S$I$I$java_awt_Font.apply(this, [border, title, titleJustification, titlePosition, titleFont]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color', function (border, title, titleJustification, titlePosition, titleFont, titleColor) {
C$.superclazz.c$$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color.apply(this, [border, title, titleJustification, titlePosition, titleFont, titleColor]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newClass(P$, "ColorUIResource", null, 'java.awt.Color', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I', function (r, g, b) {
C$.superclazz.c$$I$I$I.apply(this, [r, g, b]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (rgb) {
C$.superclazz.c$$I.apply(this, [rgb]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$F$F$F', function (r, g, b) {
C$.superclazz.c$$F$F$F.apply(this, [r, g, b]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Color', function (c) {
C$.superclazz.c$$I$Z.apply(this, [c.getRGB$(), (c.getRGB$() & -16777216) != -16777216]);
C$.$init$.apply(this);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[[0,'Error',['java.awt.Component','.BaselineResizeBehavior']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ComponentUI", null, null, 'java.awt.peer.ComponentPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (component) {
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (c) {
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
});
Clazz_newMeth(C$, 'update$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (c) {
return null;
});
Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (c) {
return this.getPreferredSize$javax_swing_JComponent(c);
});
Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (c) {
return this.getPreferredSize$javax_swing_JComponent(c);
});
Clazz_newMeth(C$, 'contains$javax_swing_JComponent$I$I', function (c, x, y) {
return c.inside$I$I(x, y);
});
Clazz_newMeth(C$, 'createUI$javax_swing_JComponent', function (c) {
throw Clazz_new_($I$(1).c$$S,["ComponentUI.createUI not implemented."]);
}, 1);
Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) {
return -1;
});
Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) {
return $I$(2).OTHER;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newClass(P$, "DimensionUIResource", null, 'java.awt.Dimension', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (width, height) {
C$.superclazz.c$$I$I.apply(this, [width, height]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newClass(P$, "FontUIResource", null, 'java.awt.Font', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I', function (name, style, size) {
C$.superclazz.c$$S$I$I.apply(this, [name, style, size]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) {
C$.superclazz.c$$java_awt_Font.apply(this, [font]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newClass(P$, "InputMapUIResource", null, 'javax.swing.InputMap', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newClass(P$, "InsetsUIResource", null, 'java.awt.Insets', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) {
C$.superclazz.c$$I$I$I$I.apply(this, [top, left, bottom, right]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[];
var C$=Clazz_newInterface(P$, "UIResource");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:30 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.util.HashMap','java.awt.Rectangle','sun.awt.AppContext','javax.swing.SwingUtilities',['javax.swing.RepaintManager','.ProcessingRunnable'],'java.util.IdentityHashMap','javajs.util.Lst','java.awt.Toolkit','java.util.HashSet','sun.awt.AWTAccessor','javax.swing.JComponent','StringBuffer','Thread','sun.awt.SunToolkit','java.awt.event.InvocationEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "RepaintManager", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.HANDLE_TOP_LEVEL_PAINT=false;
C$.repaintManagerKey=null;
C$.volatileImageBufferEnabled=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.HANDLE_TOP_LEVEL_PAINT=false;
C$.repaintManagerKey=Clazz_getClass(C$);
C$.volatileImageBufferEnabled=true;
{
C$.volatileImageBufferEnabled=false;
var headless=false;
if (C$.volatileImageBufferEnabled && headless ) {
C$.volatileImageBufferEnabled=false;
}C$.HANDLE_TOP_LEVEL_PAINT=true;
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.volatileMap=null;
this.hwDirtyComponents=null;
this.dirtyComponents=null;
this.tmpDirtyComponents=null;
this.invalidComponents=null;
this.runnableList=null;
this.paintDepth=0;
this.painting=false;
this.repaintRoot=null;
this.paintThread=null;
this.processingRunnable=null;
this.myComponent=null;
this.tmp=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.volatileMap=Clazz_new_($I$(1).c$$I,[1]);
this.paintDepth=0;
this.tmp=Clazz_new_($I$(2));
}, 1);
Clazz_newMeth(C$, 'currentManager$java_awt_Component', function (c) {
return C$.currentManager$java_awt_Component$sun_awt_AppContext(c, $I$(3).getAppContext$());
}, 1);
Clazz_newMeth(C$, 'currentManager$java_awt_Component$sun_awt_AppContext', function (c, appContext) {
var rm=appContext.get$O(C$.repaintManagerKey);
if (rm == null ) {
rm=Clazz_new_(C$);
p$1.set$java_awt_Component.apply(rm, [c]);
appContext.put$O$O(C$.repaintManagerKey, rm);
}return rm;
}, 1);
Clazz_newMeth(C$, 'currentManager$javax_swing_JComponent', function (c) {
return C$.currentManager$java_awt_Component(c);
}, 1);
Clazz_newMeth(C$, 'setCurrentManager$javax_swing_RepaintManager', function (aRepaintManager) {
if (aRepaintManager != null ) {
$I$(4).appContextPut$O$O(C$.repaintManagerKey, aRepaintManager);
} else {
$I$(4).appContextRemove$O(C$.repaintManagerKey);
}}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
p$1.setMaps.apply(this, []);
this.processingRunnable=Clazz_new_($I$(5), [this, null]);
}, 1);
Clazz_newMeth(C$, 'set$java_awt_Component', function (c) {
this.myComponent=c;
p$1.setMaps.apply(this, []);
}, p$1);
Clazz_newMeth(C$, 'setMaps', function () {
this.dirtyComponents=Clazz_new_($I$(6));
this.tmpDirtyComponents=Clazz_new_($I$(6));
this.hwDirtyComponents=Clazz_new_($I$(6));
}, p$1);
Clazz_newMeth(C$, 'addInvalidComponent$javax_swing_JComponent', function (invalidComponent) {
var validateRoot=null;
for (var c=invalidComponent; c != null ; c=c.getParent$()) {
if ((Clazz_instanceOf(c, "javax.swing.CellRendererPane"))) {
return;
}if (p$1.isStandardJComponent$java_awt_Component.apply(this, [c]) && ((c).isValidateRoot$()) ) {
validateRoot=c;
break;
}}
if (validateRoot == null ) {
return;
}var root=null;
for (var c=validateRoot; c != null ; c=c.getParent$()) {
if (!c.isVisible$()) {
return;
}if (c.isWindowOrJSApplet$()) {
root=c;
break;
}}
if (root == null ) {
return;
}if (this.invalidComponents == null ) {
this.invalidComponents=Clazz_new_($I$(7));
} else {
var n=this.invalidComponents.size$();
for (var i=0; i < n; i++) {
if (validateRoot === this.invalidComponents.get$I(i) ) {
return;
}}
}this.invalidComponents.add$TE(validateRoot);
p$1.scheduleProcessingRunnable$java_awt_Component.apply(this, [root]);
});
Clazz_newMeth(C$, 'isStandardJComponent$java_awt_Component', function (c) {
return (Clazz_instanceOf(c, "javax.swing.JComponent") && !(Clazz_instanceOf(c, "java.awt.Window")) );
}, p$1);
Clazz_newMeth(C$, 'removeInvalidComponent$javax_swing_JComponent', function (component) {
if (this.invalidComponents != null ) {
var index=this.invalidComponents.indexOf$O(component);
if (index != -1) {
this.invalidComponents.removeItemAt$I(index);
}}});
Clazz_newMeth(C$, 'addDirtyRegion0$java_awt_Container$I$I$I$I', function (c, x, y, w, h) {
if (w <= 0 || h <= 0 || c == null || c.getWidth$() <= 0 || c.getHeight$() <= 0 ) return;
if (p$1.extendDirtyRegion$java_awt_Component$I$I$I$I.apply(this, [c, x, y, w, h])) {
return;
}var root=null;
for (var p=c; p != null ; p=p.getParent$()) {
if (!p.isVisible$() || p.getPeer$() == null ) {
return;
}if (p.isWindowOrJSApplet$()) {
if (Clazz_instanceOf(p, "java.awt.JSFrame") && ((p).getExtendedState$() & 1) == 1 ) {
return;
}root=p;
break;
}}
if (root == null ) return;
{
if (p$1.extendDirtyRegion$java_awt_Component$I$I$I$I.apply(this, [c, x, y, w, h])) {
return;
}this.dirtyComponents.put$TK$TV(c, Clazz_new_($I$(2).c$$I$I$I$I,[x, y, w, h]));
}p$1.scheduleProcessingRunnable$java_awt_Component.apply(this, [c]);
}, p$1);
Clazz_newMeth(C$, 'addDirtyRegion$javax_swing_JComponent$I$I$I$I', function (c, x, y, w, h) {
p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [c, x, y, w, h]);
});
Clazz_newMeth(C$, 'addDirtyRegion$java_awt_Window$I$I$I$I', function (window, x, y, w, h) {
p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [window, x, y, w, h]);
});
Clazz_newMeth(C$, 'addDirtyRegion$java_applet_JSApplet$I$I$I$I', function (applet, x, y, w, h) {
p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [applet, x, y, w, h]);
});
Clazz_newMeth(C$, 'scheduleHeavyWeightPaints$', function () {
var hws;
{
if (this.hwDirtyComponents.size$() == 0) {
return;
}hws=this.hwDirtyComponents;
this.hwDirtyComponents=Clazz_new_($I$(6));
}for (var hw, $hw = hws.keySet$().iterator$(); $hw.hasNext$()&&((hw=($hw.next$())),1);) {
var dirty=hws.get$O(hw);
if (hw.isWindowOrJSApplet$()) {
this.addDirtyRegion$java_awt_Window$I$I$I$I(hw, dirty.x, dirty.y, dirty.width, dirty.height);
} else {
p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [hw, dirty.x, dirty.y, dirty.width, dirty.height]);
}}
});
Clazz_newMeth(C$, 'nativeAddDirtyRegion$sun_awt_AppContext$java_awt_Container$I$I$I$I', function (appContext, c, x, y, w, h) {
if (w > 0 && h > 0 ) {
{
var dirty=this.hwDirtyComponents.get$O(c);
if (dirty == null ) {
this.hwDirtyComponents.put$TK$TV(c, Clazz_new_($I$(2).c$$I$I$I$I,[x, y, w, h]));
} else {
this.hwDirtyComponents.put$TK$TV(c, $I$(4).computeUnion$I$I$I$I$java_awt_Rectangle(x, y, w, h, dirty));
}}p$1.scheduleProcessingRunnable$sun_awt_AppContext.apply(this, [appContext]);
}});
Clazz_newMeth(C$, 'extendDirtyRegion$java_awt_Component$I$I$I$I', function (c, x, y, w, h) {
var r=this.dirtyComponents.get$O(c);
if (r != null ) {
$I$(4).computeUnion$I$I$I$I$java_awt_Rectangle(x, y, w, h, r);
return true;
}return false;
}, p$1);
Clazz_newMeth(C$, 'getDirtyRegion$javax_swing_JComponent', function (aComponent) {
var r=null;
{
r=this.dirtyComponents.get$O(aComponent);
}if (r == null ) return Clazz_new_($I$(2).c$$I$I$I$I,[0, 0, 0, 0]);
else return Clazz_new_($I$(2).c$$java_awt_Rectangle,[r]);
});
Clazz_newMeth(C$, 'markCompletelyDirty$javax_swing_JComponent', function (aComponent) {
this.addDirtyRegion$javax_swing_JComponent$I$I$I$I(aComponent, 0, 0, 2147483647, 2147483647);
});
Clazz_newMeth(C$, 'markCompletelyClean$javax_swing_JComponent', function (aComponent) {
{
this.dirtyComponents.remove$O(aComponent);
}});
Clazz_newMeth(C$, 'isCompletelyDirty$javax_swing_JComponent', function (aComponent) {
var r;
r=this.getDirtyRegion$javax_swing_JComponent(aComponent);
if (r.width == 2147483647 && r.height == 2147483647 ) return true;
else return false;
});
Clazz_newMeth(C$, 'validateInvalidComponents$', function () {
var ic;
{
if (this.invalidComponents == null ) {
return;
}ic=this.invalidComponents;
this.invalidComponents=null;
}var n=ic.size$();
for (var i=0; i < n; i++) {
var c=ic.get$I(i);
c.validate$();
}
});
Clazz_newMeth(C$, 'prePaintDirtyRegions$', function () {
var dirtyComponents;
var runnableList;
{
dirtyComponents=this.dirtyComponents;
runnableList=this.runnableList;
this.runnableList=null;
}if (runnableList != null ) {
for (var runnable, $runnable = runnableList.iterator$(); $runnable.hasNext$()&&((runnable=($runnable.next$())),1);) {
runnable.run$();
}
}this.paintDirtyRegions$();
if (dirtyComponents.size$() > 0) {
p$1.paintDirtyRegions1$java_util_Map.apply(this, [dirtyComponents]);
}});
Clazz_newMeth(C$, 'updateWindows$java_util_Map', function (dirtyComponents) {
var toolkit=$I$(8).getDefaultToolkit$();
if (!(Clazz_instanceOf(toolkit, "sun.awt.SunToolkit") && (toolkit).needUpdateWindow$() )) {
return dirtyComponents;
}var windows=Clazz_new_($I$(9));
var dirtyComps=dirtyComponents.keySet$();
for (var it=dirtyComps.iterator$(); it.hasNext$(); ) {
var dirty=it.next$();
var window=dirty.isWindowOrJSApplet$() ? dirty : $I$(4).getWindowAncestor$java_awt_Component(dirty);
if (window != null && !$I$(10).getWindowAccessor$().isOpaque$java_awt_Window(window) ) {
it.remove$();
windows.add$TE(window);
}}
for (var window, $window = windows.iterator$(); $window.hasNext$()&&((window=($window.next$())),1);) {
$I$(10).getWindowAccessor$().updateWindow$java_awt_Window$java_awt_image_BufferedImage(window, null);
}
return dirtyComponents;
}, p$1);
Clazz_newMeth(C$, 'paintDirtyRegions$', function () {
{
var tmp=this.tmpDirtyComponents;
this.tmpDirtyComponents=this.dirtyComponents;
this.dirtyComponents=tmp;
this.dirtyComponents.clear$();
}p$1.paintDirtyRegions1$java_util_Map.apply(this, [this.tmpDirtyComponents]);
});
Clazz_newMeth(C$, 'paintDirtyRegions1$java_util_Map', function (tmpDirtyComponents) {
if (tmpDirtyComponents.isEmpty$()) {
return;
}p$1.updateWindows$java_util_Map.apply(this, [tmpDirtyComponents]);
var roots=Clazz_new_($I$(7));
for (var dirty, $dirty = tmpDirtyComponents.keySet$().iterator$(); $dirty.hasNext$()&&((dirty=($dirty.next$())),1);) {
this.collectDirtyComponents$java_util_Map$java_awt_Component$java_util_List(tmpDirtyComponents, dirty, roots);
}
var count=roots.size$();
this.painting=true;
try {
for (var j=0; j < count; j++) {
var i=j;
var dirtyComponent=roots.get$I(j);
var rect=tmpDirtyComponents.get$O(dirtyComponent);
var localBoundsH=dirtyComponent.getHeight$();
var localBoundsW=dirtyComponent.getWidth$();
$I$(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, localBoundsW, localBoundsH, rect);
if (p$1.isStandardJComponent$java_awt_Component.apply(this, [dirtyComponent])) {
(dirtyComponent).paintImmediately$I$I$I$I(rect.x, rect.y, rect.width, rect.height);
} else if (dirtyComponent.isShowing$()) {
var g=$I$(11).safelyGetGraphics$java_awt_Component$java_awt_Component(dirtyComponent, dirtyComponent);
if (g != null ) {
try {
(dirtyComponent).秘paintWithBackgroundCheck$java_awt_Graphics(g);
} finally {
g.dispose$();
}
}}if (this.repaintRoot != null ) {
p$1.adjustRoots$javax_swing_JComponent$javajs_util_Lst$I.apply(this, [this.repaintRoot, roots, i + 1]);
count=roots.size$();
this.repaintRoot.paintImmediately$I$I$I$I(0, 0, this.repaintRoot.getWidth$(), this.repaintRoot.getHeight$());
this.repaintRoot=null;
}}
} finally {
this.painting=false;
}
tmpDirtyComponents.clear$();
}, p$1);
Clazz_newMeth(C$, 'adjustRoots$javax_swing_JComponent$javajs_util_Lst$I', function (root, roots, index) {
for (var i=roots.size$() - 1; i >= index; i--) {
var c=roots.get$I(i);
for (; ; ) {
if (c === root || c == null || !p$1.isStandardJComponent$java_awt_Component.apply(this, [c]) ) {
break;
}c=c.getParent$();
}
if (c === root ) {
roots.removeItemAt$I(i);
}}
}, p$1);
Clazz_newMeth(C$, 'collectDirtyComponents$java_util_Map$java_awt_Component$java_util_List', function (dirtyComponents, dirtyComponent, roots) {
var dx;
var dy;
var rootDx;
var rootDy;
var component;
var rootDirtyComponent;
var parent;
component=rootDirtyComponent=dirtyComponent;
var x=dirtyComponent.getX$();
var y=dirtyComponent.getY$();
var w=dirtyComponent.getWidth$();
var h=dirtyComponent.getHeight$();
dx=rootDx=0;
dy=rootDy=0;
this.tmp.setBounds$java_awt_Rectangle(dirtyComponents.get$O(dirtyComponent));
$I$(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, w, h, this.tmp);
if (this.tmp.isEmpty$()) {
return;
}for (; ; ) {
if (!p$1.isStandardJComponent$java_awt_Component.apply(this, [component])) break;
parent=component.getParent$();
if (parent == null ) break;
component=parent;
dx+=x;
dy+=y;
this.tmp.x+=x;
this.tmp.y+=y;
x=component.getX$();
y=component.getY$();
w=component.getWidth$();
h=component.getHeight$();
this.tmp=$I$(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, w, h, this.tmp);
if (this.tmp.isEmpty$()) {
return;
}if (dirtyComponents.get$O(component) != null ) {
rootDirtyComponent=component;
rootDx=dx;
rootDy=dy;
}}
if (dirtyComponent !== rootDirtyComponent ) {
var r;
this.tmp.x+=rootDx - dx;
this.tmp.y+=rootDy - dy;
r=dirtyComponents.get$O(rootDirtyComponent);
$I$(4).computeUnion$I$I$I$I$java_awt_Rectangle(this.tmp.x, this.tmp.y, this.tmp.width, this.tmp.height, r);
}if (!roots.contains$O(rootDirtyComponent)) roots.add$TE(rootDirtyComponent);
});
Clazz_newMeth(C$, 'toString', function () {
var sb=Clazz_new_($I$(12));
if (this.dirtyComponents != null ) sb.append$S("" + this.dirtyComponents);
return sb.toString();
});
Clazz_newMeth(C$, 'getOffscreenBuffer$java_awt_Component$I$I', function (c, proposedWidth, proposedHeight) {
return null;
});
Clazz_newMeth(C$, 'getVolatileOffscreenBuffer$java_awt_Component$I$I', function (c, proposedWidth, proposedHeight) {
var config=c.getGraphicsConfiguration$();
var maxSize=this.getDoubleBufferMaximumSize$();
var width=proposedWidth < 1 ? 1 : (proposedWidth > maxSize.width ? maxSize.width : proposedWidth);
var height=proposedHeight < 1 ? 1 : (proposedHeight > maxSize.height ? maxSize.height : proposedHeight);
var image=this.volatileMap.get$O(config);
if (image == null || image.getWidth$() < width || image.getHeight$() < height ) {
if (image != null ) {
image.flush$();
}image=config.createCompatibleVolatileImage$I$I(width, height);
this.volatileMap.put$TK$TV(config, image);
}return image;
});
Clazz_newMeth(C$, 'setDoubleBufferMaximumSize$java_awt_Dimension', function (d) {
});
Clazz_newMeth(C$, 'getDoubleBufferMaximumSize$', function () {
return null;
});
Clazz_newMeth(C$, 'setDoubleBufferingEnabled$Z', function (aFlag) {
});
Clazz_newMeth(C$, 'resetDoubleBuffer$', function () {
});
Clazz_newMeth(C$, 'resetVolatileDoubleBuffer$java_awt_GraphicsConfiguration', function (gc) {
var image=this.volatileMap.remove$O(gc);
if (image != null ) {
image.flush$();
}});
Clazz_newMeth(C$, 'useVolatileDoubleBuffer$', function () {
return C$.volatileImageBufferEnabled;
});
Clazz_newMeth(C$, 'isPaintingThread', function () {
return ($I$(13).currentThread$() === this.paintThread );
}, p$1);
Clazz_newMeth(C$, 'paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I', function (paintingComponent, bufferComponent, g, x, y, w, h) {
paintingComponent.paintToOffscreen$java_awt_Graphics$I$I$I$I$I$I(g, x, y, w, h, x + w, y + h);
});
Clazz_newMeth(C$, 'beginPaint$', function () {
var multiThreadedPaint=false;
var paintDepth=0;
var currentThread=$I$(13).currentThread$();
{
paintDepth=this.paintDepth;
if (this.paintThread == null || currentThread === this.paintThread ) {
this.paintThread=currentThread;
this.paintDepth++;
} else {
multiThreadedPaint=true;
}}});
Clazz_newMeth(C$, 'endPaint$', function () {
if (p$1.isPaintingThread.apply(this, [])) {
}});
Clazz_newMeth(C$, 'doubleBufferingChanged$javax_swing_JRootPane', function (rootPane) {
});
Clazz_newMeth(C$, 'scheduleProcessingRunnable$java_awt_Component', function (c) {
p$1.scheduleProcessingRunnable$sun_awt_AppContext.apply(this, [c.getAppContext$()]);
}, p$1);
Clazz_newMeth(C$, 'scheduleProcessingRunnable$sun_awt_AppContext', function (context) {
if (this.processingRunnable.markPending$()) {
$I$(14).getSystemEventQueueImplPP$sun_awt_AppContext(context).postEvent$java_awt_AWTEvent(Clazz_new_($I$(15).c$$O$I$Runnable$O$Z,[$I$(8).getDefaultToolkit$(), 1200, this.processingRunnable, null, false]));
}}, p$1);
;
(function(){var C$=Clazz_newClass(P$.RepaintManager, "ProcessingRunnable", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'Runnable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.pending=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'markPending$', function () {
if (!this.pending) {
this.pending=true;
return true;
}return false;
});
Clazz_newMeth(C$, 'run$', function () {
{
this.pending=false;
}this.this$0.scheduleHeavyWeightPaints$.apply(this.this$0, []);
this.this$0.validateInvalidComponents$.apply(this.this$0, []);
this.this$0.prePaintDirtyRegions$.apply(this.this$0, []);
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "RootPaneContainer");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "Scrollable");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "ScrollPaneConstants");
C$.VIEWPORT=null;
C$.VERTICAL_SCROLLBAR=null;
C$.HORIZONTAL_SCROLLBAR=null;
C$.ROW_HEADER=null;
C$.COLUMN_HEADER=null;
C$.LOWER_LEFT_CORNER=null;
C$.LOWER_RIGHT_CORNER=null;
C$.UPPER_LEFT_CORNER=null;
C$.UPPER_RIGHT_CORNER=null;
C$.LOWER_LEADING_CORNER=null;
C$.LOWER_TRAILING_CORNER=null;
C$.UPPER_LEADING_CORNER=null;
C$.UPPER_TRAILING_CORNER=null;
C$.VERTICAL_SCROLLBAR_POLICY=null;
C$.HORIZONTAL_SCROLLBAR_POLICY=null;
C$.VERTICAL_SCROLLBAR_AS_NEEDED=0;
C$.VERTICAL_SCROLLBAR_NEVER=0;
C$.VERTICAL_SCROLLBAR_ALWAYS=0;
C$.HORIZONTAL_SCROLLBAR_AS_NEEDED=0;
C$.HORIZONTAL_SCROLLBAR_NEVER=0;
C$.HORIZONTAL_SCROLLBAR_ALWAYS=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.VIEWPORT="VIEWPORT";
C$.VERTICAL_SCROLLBAR="VERTICAL_SCROLLBAR";
C$.HORIZONTAL_SCROLLBAR="HORIZONTAL_SCROLLBAR";
C$.ROW_HEADER="ROW_HEADER";
C$.COLUMN_HEADER="COLUMN_HEADER";
C$.LOWER_LEFT_CORNER="LOWER_LEFT_CORNER";
C$.LOWER_RIGHT_CORNER="LOWER_RIGHT_CORNER";
C$.UPPER_LEFT_CORNER="UPPER_LEFT_CORNER";
C$.UPPER_RIGHT_CORNER="UPPER_RIGHT_CORNER";
C$.LOWER_LEADING_CORNER="LOWER_LEADING_CORNER";
C$.LOWER_TRAILING_CORNER="LOWER_TRAILING_CORNER";
C$.UPPER_LEADING_CORNER="UPPER_LEADING_CORNER";
C$.UPPER_TRAILING_CORNER="UPPER_TRAILING_CORNER";
C$.VERTICAL_SCROLLBAR_POLICY="VERTICAL_SCROLLBAR_POLICY";
C$.HORIZONTAL_SCROLLBAR_POLICY="HORIZONTAL_SCROLLBAR_POLICY";
C$.VERTICAL_SCROLLBAR_AS_NEEDED=20;
C$.VERTICAL_SCROLLBAR_NEVER=21;
C$.VERTICAL_SCROLLBAR_ALWAYS=22;
C$.HORIZONTAL_SCROLLBAR_AS_NEEDED=30;
C$.HORIZONTAL_SCROLLBAR_NEVER=31;
C$.HORIZONTAL_SCROLLBAR_ALWAYS=32;
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.Dimension','javax.swing.SwingUtilities','java.awt.Rectangle','java.awt.Insets','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ScrollPaneLayout", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.awt.LayoutManager', 'javax.swing.ScrollPaneConstants']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.viewport=null;
this.vsb=null;
this.hsb=null;
this.rowHead=null;
this.colHead=null;
this.lowerLeft=null;
this.lowerRight=null;
this.upperLeft=null;
this.upperRight=null;
this.vsbPolicy=0;
this.hsbPolicy=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.vsbPolicy=20;
this.hsbPolicy=30;
}, 1);
Clazz_newMeth(C$, 'syncWithScrollPane$javax_swing_JScrollPane', function (sp) {
this.viewport=sp.getViewport$();
this.vsb=sp.getVerticalScrollBar$();
this.hsb=sp.getHorizontalScrollBar$();
this.rowHead=sp.getRowHeader$();
this.colHead=sp.getColumnHeader$();
this.lowerLeft=sp.getCorner$S("LOWER_LEFT_CORNER");
this.lowerRight=sp.getCorner$S("LOWER_RIGHT_CORNER");
this.upperLeft=sp.getCorner$S("UPPER_LEFT_CORNER");
this.upperRight=sp.getCorner$S("UPPER_RIGHT_CORNER");
this.vsbPolicy=sp.getVerticalScrollBarPolicy$();
this.hsbPolicy=sp.getHorizontalScrollBarPolicy$();
});
Clazz_newMeth(C$, 'addSingletonComponent$java_awt_Component$java_awt_Component', function (oldC, newC) {
if ((oldC != null ) && (oldC !== newC ) ) {
oldC.getParent$().remove$java_awt_Component(oldC);
}return newC;
});
Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (s, c) {
if (s.equals$O("VIEWPORT")) {
this.viewport=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.viewport, c);
} else if (s.equals$O("VERTICAL_SCROLLBAR")) {
this.vsb=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.vsb, c);
} else if (s.equals$O("HORIZONTAL_SCROLLBAR")) {
this.hsb=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.hsb, c);
} else if (s.equals$O("ROW_HEADER")) {
this.rowHead=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.rowHead, c);
} else if (s.equals$O("COLUMN_HEADER")) {
this.colHead=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.colHead, c);
} else if (s.equals$O("LOWER_LEFT_CORNER")) {
this.lowerLeft=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.lowerLeft, c);
} else if (s.equals$O("LOWER_RIGHT_CORNER")) {
this.lowerRight=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.lowerRight, c);
} else if (s.equals$O("UPPER_LEFT_CORNER")) {
this.upperLeft=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.upperLeft, c);
} else if (s.equals$O("UPPER_RIGHT_CORNER")) {
this.upperRight=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.upperRight, c);
} else {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid layout key " + s]);
}});
Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (c) {
if (c === this.viewport ) {
this.viewport=null;
} else if (c === this.vsb ) {
this.vsb=null;
} else if (c === this.hsb ) {
this.hsb=null;
} else if (c === this.rowHead ) {
this.rowHead=null;
} else if (c === this.colHead ) {
this.colHead=null;
} else if (c === this.lowerLeft ) {
this.lowerLeft=null;
} else if (c === this.lowerRight ) {
this.lowerRight=null;
} else if (c === this.upperLeft ) {
this.upperLeft=null;
} else if (c === this.upperRight ) {
this.upperRight=null;
}});
Clazz_newMeth(C$, 'getVerticalScrollBarPolicy$', function () {
return this.vsbPolicy;
});
Clazz_newMeth(C$, 'setVerticalScrollBarPolicy$I', function (x) {
switch (x) {
case 20:
case 21:
case 22:
this.vsbPolicy=x;
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid verticalScrollBarPolicy"]);
}
});
Clazz_newMeth(C$, 'getHorizontalScrollBarPolicy$', function () {
return this.hsbPolicy;
});
Clazz_newMeth(C$, 'setHorizontalScrollBarPolicy$I', function (x) {
switch (x) {
case 30:
case 31:
case 32:
this.hsbPolicy=x;
break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid horizontalScrollBarPolicy"]);
}
});
Clazz_newMeth(C$, 'getViewport$', function () {
return this.viewport;
});
Clazz_newMeth(C$, 'getHorizontalScrollBar$', function () {
return this.hsb;
});
Clazz_newMeth(C$, 'getVerticalScrollBar$', function () {
return this.vsb;
});
Clazz_newMeth(C$, 'getRowHeader$', function () {
return this.rowHead;
});
Clazz_newMeth(C$, 'getColumnHeader$', function () {
return this.colHead;
});
Clazz_newMeth(C$, 'getCorner$S', function (key) {
if (key.equals$O("LOWER_LEFT_CORNER")) {
return this.lowerLeft;
} else if (key.equals$O("LOWER_RIGHT_CORNER")) {
return this.lowerRight;
} else if (key.equals$O("UPPER_LEFT_CORNER")) {
return this.upperLeft;
} else if (key.equals$O("UPPER_RIGHT_CORNER")) {
return this.upperRight;
} else {
return null;
}});
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) {
var scrollPane=parent;
this.vsbPolicy=scrollPane.getVerticalScrollBarPolicy$();
this.hsbPolicy=scrollPane.getHorizontalScrollBarPolicy$();
var insets=parent.getInsets$();
var prefWidth=insets.left + insets.right;
var prefHeight=insets.top + insets.bottom;
var extentSize=null;
var viewSize=null;
var view=null;
if (this.viewport != null ) {
extentSize=this.viewport.getPreferredSize$();
view=this.viewport.getView$();
if (view != null ) {
viewSize=view.getPreferredSize$();
}}if (extentSize != null ) {
prefWidth+=extentSize.width;
prefHeight+=extentSize.height;
}var viewportBorder=scrollPane.getViewportBorder$();
if (viewportBorder != null ) {
var vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(parent);
prefWidth+=vpbInsets.left + vpbInsets.right;
prefHeight+=vpbInsets.top + vpbInsets.bottom;
}if ((this.rowHead != null ) && this.rowHead.isVisible$() ) {
prefWidth+=this.rowHead.getPreferredSize$().width;
}if ((this.colHead != null ) && this.colHead.isVisible$() ) {
prefHeight+=this.colHead.getPreferredSize$().height;
}if ((this.vsb != null ) && (this.vsbPolicy != 21) ) {
if (this.vsbPolicy == 22) {
prefWidth+=this.vsb.getPreferredSize$().width;
} else if ((viewSize != null ) && (extentSize != null ) ) {
var canScroll=true;
if (Clazz_instanceOf(view, "javax.swing.Scrollable")) {
canScroll=!(view).getScrollableTracksViewportHeight$();
}if (canScroll && (viewSize.height > extentSize.height) ) {
prefWidth+=this.vsb.getPreferredSize$().width;
}}}if ((this.hsb != null ) && (this.hsbPolicy != 31) ) {
if (this.hsbPolicy == 32) {
prefHeight+=this.hsb.getPreferredSize$().height;
} else if ((viewSize != null ) && (extentSize != null ) ) {
var canScroll=true;
if (Clazz_instanceOf(view, "javax.swing.Scrollable")) {
canScroll=!(view).getScrollableTracksViewportWidth$();
}if (canScroll && (viewSize.width > extentSize.width) ) {
prefHeight+=this.hsb.getPreferredSize$().height;
}}}return Clazz_new_($I$(1).c$$I$I,[prefWidth, prefHeight]);
});
Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) {
var scrollPane=parent;
this.vsbPolicy=scrollPane.getVerticalScrollBarPolicy$();
this.hsbPolicy=scrollPane.getHorizontalScrollBarPolicy$();
var insets=parent.getInsets$();
var minWidth=insets.left + insets.right;
var minHeight=insets.top + insets.bottom;
if (this.viewport != null ) {
var size=this.viewport.getMinimumSize$();
minWidth+=size.width;
minHeight+=size.height;
}var viewportBorder=scrollPane.getViewportBorder$();
if (viewportBorder != null ) {
var vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(parent);
minWidth+=vpbInsets.left + vpbInsets.right;
minHeight+=vpbInsets.top + vpbInsets.bottom;
}if ((this.rowHead != null ) && this.rowHead.isVisible$() ) {
var size=this.rowHead.getMinimumSize$();
minWidth+=size.width;
minHeight=Math.max(minHeight, size.height);
}if ((this.colHead != null ) && this.colHead.isVisible$() ) {
var size=this.colHead.getMinimumSize$();
minWidth=Math.max(minWidth, size.width);
minHeight+=size.height;
}if ((this.vsb != null ) && (this.vsbPolicy != 21) ) {
var size=this.vsb.getMinimumSize$();
minWidth+=size.width;
minHeight=Math.max(minHeight, size.height);
}if ((this.hsb != null ) && (this.hsbPolicy != 31) ) {
var size=this.hsb.getMinimumSize$();
minWidth=Math.max(minWidth, size.width);
minHeight+=size.height;
}return Clazz_new_($I$(1).c$$I$I,[minWidth, minHeight]);
});
Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) {
var scrollPane=parent;
this.vsbPolicy=scrollPane.getVerticalScrollBarPolicy$();
this.hsbPolicy=scrollPane.getHorizontalScrollBarPolicy$();
var availR=scrollPane.getBounds$();
availR.x=availR.y=0;
var insets=parent.getInsets$();
availR.x=insets.left;
availR.y=insets.top;
availR.width-=insets.left + insets.right;
availR.height-=insets.top + insets.bottom;
var leftToRight=$I$(2).isLeftToRight$java_awt_Component(scrollPane);
var colHeadR=Clazz_new_($I$(3).c$$I$I$I$I,[0, availR.y, 0, 0]);
if ((this.colHead != null ) && (this.colHead.isVisible$()) ) {
var colHeadHeight=Math.min(availR.height, this.colHead.getPreferredSize$().height);
colHeadR.height=colHeadHeight;
availR.y+=colHeadHeight;
availR.height-=colHeadHeight;
}var rowHeadR=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
if ((this.rowHead != null ) && (this.rowHead.isVisible$()) ) {
var rowHeadWidth=Math.min(availR.width, this.rowHead.getPreferredSize$().width);
rowHeadR.width=rowHeadWidth;
availR.width-=rowHeadWidth;
if (leftToRight) {
rowHeadR.x=availR.x;
availR.x+=rowHeadWidth;
} else {
rowHeadR.x=availR.x + availR.width;
}}var viewportBorder=scrollPane.getViewportBorder$();
var vpbInsets;
if (viewportBorder != null ) {
vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(parent);
availR.x+=vpbInsets.left;
availR.y+=vpbInsets.top;
availR.width-=vpbInsets.left + vpbInsets.right;
availR.height-=vpbInsets.top + vpbInsets.bottom;
} else {
vpbInsets=Clazz_new_($I$(4).c$$I$I$I$I,[0, 0, 0, 0]);
}var view=(this.viewport != null ) ? this.viewport.getView$() : null;
var viewPrefSize=(view != null ) ? view.getPreferredSize$() : Clazz_new_($I$(1).c$$I$I,[0, 0]);
var extentSize=(this.viewport != null ) ? this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()) : Clazz_new_($I$(1).c$$I$I,[0, 0]);
var viewTracksViewportWidth=false;
var viewTracksViewportHeight=false;
var isEmpty=(availR.width < 0 || availR.height < 0 );
var sv;
if (!isEmpty && Clazz_instanceOf(view, "javax.swing.Scrollable") ) {
sv=view;
viewTracksViewportWidth=sv.getScrollableTracksViewportWidth$();
viewTracksViewportHeight=sv.getScrollableTracksViewportHeight$();
} else {
sv=null;
}var vsbR=Clazz_new_($I$(3).c$$I$I$I$I,[0, availR.y - vpbInsets.top, 0, 0]);
var nobars=(Clazz_instanceOf(view, "javax.swing.JEditorPane") || Clazz_instanceOf(view, "javax.swing.JTextArea") );
var vsbNeeded;
if (isEmpty || nobars ) {
vsbNeeded=false;
} else if (this.vsbPolicy == 22) {
vsbNeeded=true;
} else if (this.vsbPolicy == 21) {
vsbNeeded=false;
} else {
vsbNeeded=!viewTracksViewportHeight && (viewPrefSize.height > extentSize.height) ;
}if ((this.vsb != null ) && vsbNeeded ) {
p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [true, availR, vsbR, vpbInsets, leftToRight]);
extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$());
}var hsbR=Clazz_new_($I$(3).c$$I$I$I$I,[availR.x - vpbInsets.left, 0, 0, 0]);
var hsbNeeded;
if (isEmpty || nobars ) {
hsbNeeded=false;
} else if (this.hsbPolicy == 32) {
hsbNeeded=true;
} else if (this.hsbPolicy == 31) {
hsbNeeded=false;
} else {
hsbNeeded=!viewTracksViewportWidth && (viewPrefSize.width > extentSize.width) ;
}if ((this.hsb != null ) && hsbNeeded ) {
p$1.adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets.apply(this, [true, availR, hsbR, vpbInsets]);
if ((this.vsb != null ) && !vsbNeeded && (this.vsbPolicy != 21) ) {
extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$());
vsbNeeded=viewPrefSize.height > extentSize.height;
if (vsbNeeded) {
p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [true, availR, vsbR, vpbInsets, leftToRight]);
}}}if (this.viewport != null ) {
this.viewport.setBounds$java_awt_Rectangle(availR);
if (sv != null ) {
extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$());
var oldHSBNeeded=hsbNeeded;
var oldVSBNeeded=vsbNeeded;
viewTracksViewportWidth=sv.getScrollableTracksViewportWidth$();
viewTracksViewportHeight=sv.getScrollableTracksViewportHeight$();
if (this.vsb != null && this.vsbPolicy == 20 ) {
var newVSBNeeded=!viewTracksViewportHeight && (viewPrefSize.height > extentSize.height) ;
if (newVSBNeeded != vsbNeeded ) {
vsbNeeded=newVSBNeeded;
p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [vsbNeeded, availR, vsbR, vpbInsets, leftToRight]);
extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$());
}}if (this.hsb != null && this.hsbPolicy == 30 ) {
var newHSBbNeeded=!viewTracksViewportWidth && (viewPrefSize.width > extentSize.width) ;
if (newHSBbNeeded != hsbNeeded ) {
hsbNeeded=newHSBbNeeded;
p$1.adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets.apply(this, [hsbNeeded, availR, hsbR, vpbInsets]);
if ((this.vsb != null ) && !vsbNeeded && (this.vsbPolicy != 21) ) {
extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$());
vsbNeeded=viewPrefSize.height > extentSize.height;
if (vsbNeeded) {
p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [true, availR, vsbR, vpbInsets, leftToRight]);
}}}}if (oldHSBNeeded != hsbNeeded || oldVSBNeeded != vsbNeeded ) {
this.viewport.setBounds$java_awt_Rectangle(availR);
}}}vsbR.height=availR.height + vpbInsets.top + vpbInsets.bottom ;
hsbR.width=availR.width + vpbInsets.left + vpbInsets.right ;
rowHeadR.height=availR.height + vpbInsets.top + vpbInsets.bottom ;
rowHeadR.y=availR.y - vpbInsets.top;
colHeadR.width=availR.width + vpbInsets.left + vpbInsets.right ;
colHeadR.x=availR.x - vpbInsets.left;
if (this.rowHead != null ) {
this.rowHead.setBounds$java_awt_Rectangle(rowHeadR);
}if (this.colHead != null ) {
this.colHead.setBounds$java_awt_Rectangle(colHeadR);
}if (this.vsb != null ) {
if (vsbNeeded) {
if (this.colHead != null && $I$(5).getBoolean$O("ScrollPane.fillUpperCorner") ) {
if ((leftToRight && this.upperRight == null ) || (!leftToRight && this.upperLeft == null ) ) {
vsbR.y=colHeadR.y;
vsbR.height+=colHeadR.height;
}}this.vsb.setVisible$Z(true);
this.vsb.setBounds$java_awt_Rectangle(vsbR);
} else {
this.vsb.setVisible$Z(false);
}}if (this.hsb != null ) {
if (hsbNeeded) {
if (this.rowHead != null && $I$(5).getBoolean$O("ScrollPane.fillLowerCorner") ) {
if ((leftToRight && this.lowerLeft == null ) || (!leftToRight && this.lowerRight == null ) ) {
if (leftToRight) {
hsbR.x=rowHeadR.x;
}hsbR.width+=rowHeadR.width;
}}this.hsb.setVisible$Z(true);
this.hsb.setBounds$java_awt_Rectangle(hsbR);
} else {
this.hsb.setVisible$Z(false);
}}if (this.lowerLeft != null ) {
this.lowerLeft.setBounds$I$I$I$I(leftToRight ? rowHeadR.x : vsbR.x, hsbR.y, leftToRight ? rowHeadR.width : vsbR.width, hsbR.height);
}if (this.lowerRight != null ) {
this.lowerRight.setBounds$I$I$I$I(leftToRight ? vsbR.x : rowHeadR.x, hsbR.y, leftToRight ? vsbR.width : rowHeadR.width, hsbR.height);
}if (this.upperLeft != null ) {
this.upperLeft.setBounds$I$I$I$I(leftToRight ? rowHeadR.x : vsbR.x, colHeadR.y, leftToRight ? rowHeadR.width : vsbR.width, colHeadR.height);
}if (this.upperRight != null ) {
this.upperRight.setBounds$I$I$I$I(leftToRight ? vsbR.x : rowHeadR.x, colHeadR.y, leftToRight ? vsbR.width : rowHeadR.width, colHeadR.height);
}});
Clazz_newMeth(C$, 'adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z', function (wantsVSB, available, vsbR, vpbInsets, leftToRight) {
var oldWidth=vsbR.width;
if (wantsVSB) {
var vsbWidth=Math.max(0, Math.min(this.vsb.getPreferredSize$().width, available.width));
available.width-=vsbWidth;
vsbR.width=vsbWidth;
if (leftToRight) {
vsbR.x=available.x + available.width + vpbInsets.right ;
} else {
vsbR.x=available.x - vpbInsets.left;
available.x+=vsbWidth;
}} else {
available.width+=oldWidth;
}}, p$1);
Clazz_newMeth(C$, 'adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets', function (wantsHSB, available, hsbR, vpbInsets) {
var oldHeight=hsbR.height;
if (wantsHSB) {
var hsbHeight=Math.max(0, Math.min(available.height, this.hsb.getPreferredSize$().height));
available.height-=hsbHeight;
hsbR.y=available.y + available.height + vpbInsets.bottom ;
hsbR.height=hsbHeight;
} else {
available.height+=oldHeight;
}}, p$1);
Clazz_newMeth(C$, 'getViewportBorderBounds$javax_swing_JScrollPane', function (scrollpane) {
return scrollpane.getViewportBorderBounds$();
});
;
(function(){var C$=Clazz_newClass(P$.ScrollPaneLayout, "UIResource", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.ScrollPaneLayout', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "SingleSelectionModel");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newClass(P$, "SizeRequirements");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.minimum=0;
this.preferred=0;
this.maximum=0;
this.alignment=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.minimum=0;
this.preferred=0;
this.maximum=0;
this.alignment=0.5;
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$F', function (min, pref, max, a) {
C$.$init$.apply(this);
this.minimum=min;
this.preferred=pref;
this.maximum=max;
this.alignment=a > 1.0 ? 1.0 : a < 0.0 ? 0.0 : a;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return "[" + this.minimum + "," + this.preferred + "," + this.maximum + "]@" + new Float(this.alignment).toString() ;
});
Clazz_newMeth(C$, 'getTiledSizeRequirements$javax_swing_SizeRequirementsA', function (children) {
var total=Clazz_new_(C$);
for (var i=0; i < children.length; i++) {
var req=children[i];
total.minimum=(Math.min(total.minimum + req.minimum, 2147483647)|0);
total.preferred=(Math.min(total.preferred + req.preferred, 2147483647)|0);
total.maximum=(Math.min(total.maximum + req.maximum, 2147483647)|0);
}
return total;
}, 1);
Clazz_newMeth(C$, 'getAlignedSizeRequirements$javax_swing_SizeRequirementsA', function (children) {
var totalAscent=Clazz_new_(C$);
var totalDescent=Clazz_new_(C$);
for (var i=0; i < children.length; i++) {
var req=children[i];
var ascent=((req.alignment * req.minimum)|0);
var descent=req.minimum - ascent;
totalAscent.minimum=Math.max(ascent, totalAscent.minimum);
totalDescent.minimum=Math.max(descent, totalDescent.minimum);
ascent=((req.alignment * req.preferred)|0);
descent=req.preferred - ascent;
totalAscent.preferred=Math.max(ascent, totalAscent.preferred);
totalDescent.preferred=Math.max(descent, totalDescent.preferred);
ascent=((req.alignment * req.maximum)|0);
descent=req.maximum - ascent;
totalAscent.maximum=Math.max(ascent, totalAscent.maximum);
totalDescent.maximum=Math.max(descent, totalDescent.maximum);
}
var min=(Math.min(totalAscent.minimum + totalDescent.minimum, 2147483647)|0);
var pref=(Math.min(totalAscent.preferred + totalDescent.preferred, 2147483647)|0);
var max=(Math.min(totalAscent.maximum + totalDescent.maximum, 2147483647)|0);
var alignment=0.0;
if (min > 0) {
alignment=totalAscent.minimum / min;
alignment=alignment > 1.0 ? 1.0 : alignment < 0.0 ? 0.0 : alignment;
}return Clazz_new_(C$.c$$I$I$I$F,[min, pref, max, alignment]);
}, 1);
Clazz_newMeth(C$, 'calculateTiledPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA', function (allocated, total, children, offsets, spans) {
C$.calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, true);
}, 1);
Clazz_newMeth(C$, 'calculateTiledPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, forward) {
C$.calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, forward);
}, 1);
Clazz_newMeth(C$, 'calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, forward) {
var min=0;
var pref=0;
var max=0;
for (var i=0; i < children.length; i++) {
min+=children[i].minimum;
pref+=children[i].preferred;
max+=children[i].maximum;
}
if (allocated >= pref) {
C$.expandedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, min, pref, max, children, offsets, spans, forward);
} else {
C$.compressedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, min, pref, max, children, offsets, spans, forward);
}}, 1);
Clazz_newMeth(C$, 'compressedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, min, pref, max, request, offsets, spans, forward) {
var totalPlay=Math.min(pref - allocated, pref - min);
var factor=(pref - min == 0) ? 0.0 : totalPlay / (pref - min);
var totalOffset;
if (forward) {
totalOffset=0;
for (var i=0; i < spans.length; i++) {
offsets[i]=totalOffset;
var req=request[i];
var play=factor * (req.preferred - req.minimum);
spans[i]=((req.preferred - play)|0);
totalOffset=(Math.min(totalOffset + spans[i], 2147483647)|0);
}
} else {
totalOffset=allocated;
for (var i=0; i < spans.length; i++) {
var req=request[i];
var play=factor * (req.preferred - req.minimum);
spans[i]=((req.preferred - play)|0);
offsets[i]=totalOffset - spans[i];
totalOffset=(Math.max(totalOffset - spans[i], 0)|0);
}
}}, 1);
Clazz_newMeth(C$, 'expandedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, min, pref, max, request, offsets, spans, forward) {
var totalPlay=Math.min(allocated - pref, max - pref);
var factor=(max - pref == 0) ? 0.0 : totalPlay / (max - pref);
var totalOffset;
if (forward) {
totalOffset=0;
for (var i=0; i < spans.length; i++) {
offsets[i]=totalOffset;
var req=request[i];
var play=((factor * (req.maximum - req.preferred))|0);
spans[i]=(Math.min(req.preferred + play, 2147483647)|0);
totalOffset=(Math.min(totalOffset + spans[i], 2147483647)|0);
}
} else {
totalOffset=allocated;
for (var i=0; i < spans.length; i++) {
var req=request[i];
var play=((factor * (req.maximum - req.preferred))|0);
spans[i]=(Math.min(req.preferred + play, 2147483647)|0);
offsets[i]=totalOffset - spans[i];
totalOffset=(Math.max(totalOffset - spans[i], 0)|0);
}
}}, 1);
Clazz_newMeth(C$, 'calculateAlignedPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA', function (allocated, total, children, offsets, spans) {
C$.calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, true);
}, 1);
Clazz_newMeth(C$, 'calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, normal) {
var totalAlignment=normal ? total.alignment : 1.0 - total.alignment;
var totalAscent=((allocated * totalAlignment)|0);
var totalDescent=allocated - totalAscent;
for (var i=0; i < children.length; i++) {
var req=children[i];
var alignment=normal ? req.alignment : 1.0 - req.alignment;
var maxAscent=((req.maximum * alignment)|0);
var maxDescent=req.maximum - maxAscent;
var ascent=Math.min(totalAscent, maxAscent);
var descent=Math.min(totalDescent, maxDescent);
offsets[i]=totalAscent - ascent;
spans[i]=(Math.min(ascent + descent, 2147483647)|0);
}
}, 1);
Clazz_newMeth(C$, 'calculateAlignedPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, normal) {
C$.calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, normal);
}, 1);
Clazz_newMeth(C$, 'adjustSizes$I$javax_swing_SizeRequirementsA', function (delta, children) {
return Clazz_array(Integer.TYPE, [0]);
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "SwingConstants");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newClass(P$, "SwingPaintEventDispatcher", null, 'sun.awt.PaintEventDispatcher');
C$.ERASE_BACKGROUND=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.ERASE_BACKGROUND=false;
{
C$.ERASE_BACKGROUND=true;
};
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'createPaintEvent$java_awt_Component$I$I$I$I', function (component, x, y, w, h) {
return C$.superclazz.prototype.createPaintEvent$java_awt_Component$I$I$I$I.apply(this, [component, x, y, w, h]);
});
Clazz_newMeth(C$, 'shouldDoNativeBackgroundErase$java_awt_Component', function (c) {
return C$.ERASE_BACKGROUND || !(Clazz_instanceOf(c, "javax.swing.RootPaneContainer")) ;
});
Clazz_newMeth(C$, 'queueSurfaceDataReplacing$java_awt_Component$Runnable', function (c, r) {
if (Clazz_instanceOf(c, "javax.swing.RootPaneContainer")) {
return true;
}return C$.superclazz.prototype.queueSurfaceDataReplacing$java_awt_Component$Runnable.apply(this, [c, r]);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.GraphicsEnvironment',['javax.swing.TransferHandler','.SwingDropTarget'],'java.awt.Rectangle','java.awt.Point','Error','java.awt.JSComponent','java.awt.event.MouseWheelEvent','javax.swing.event.MenuDragMouseEvent','java.awt.event.MouseEvent','swingjs.api.js.DOMNode','sun.swing.SwingUtilities2','swingjs.api.Interface','java.awt.EventQueue','java.awt.KeyboardFocusManager','javax.swing.JComponent','java.awt.event.ActionEvent','swingjs.JSUtil',['javax.swing.SwingUtilities','.SharedOwnerFrame'],'sun.awt.AppContext','Thread']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "SwingUtilities", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, 'javax.swing.SwingConstants');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler', function (c, t) {
var dropHandler=c.getDropTarget$();
if ((dropHandler == null ) || (Clazz_instanceOf(dropHandler, "javax.swing.plaf.UIResource")) ) {
if (t == null ) {
c.setDropTarget$java_awt_dnd_DropTarget(null);
} else if (!$I$(1).isHeadless$()) {
c.setDropTarget$java_awt_dnd_DropTarget(Clazz_new_($I$(2).c$$java_awt_Component,[c]));
}}}, 1);
Clazz_newMeth(C$, 'isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle', function (a, b) {
if (b.x >= a.x && (b.x + b.width) <= (a.x + a.width) && b.y >= a.y && (b.y + b.height) <= (a.y + a.height) ) {
return true;
}return false;
}, 1);
Clazz_newMeth(C$, 'getLocalBounds$java_awt_Component', function (aComponent) {
var b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[aComponent.getBounds$()]);
b.x=b.y=0;
return b;
}, 1);
Clazz_newMeth(C$, 'getWindowAncestor$java_awt_Component', function (c) {
for (var p=c.getParent$(); p != null ; p=p.getParent$()) {
if (p.isWindowOrJSApplet$()) {
return p;
}}
return null;
}, 1);
Clazz_newMeth(C$, 'convertScreenLocationToParent$java_awt_Container$I$I', function (parent, x, y) {
for (var p=parent; p != null ; p=p.getParent$()) {
if (p != null && p.isWindowOrJSApplet$() ) {
var point=Clazz_new_($I$(4).c$$I$I,[x, y]);
C$.convertPointFromScreen$java_awt_Point$java_awt_Component(point, parent);
return point;
}}
throw Clazz_new_($I$(5).c$$S,["convertScreenLocationToParent: no window ancestor"]);
}, 1);
Clazz_newMeth(C$, 'convertPoint$java_awt_Component$java_awt_Point$java_awt_Component', function (source, aPoint, destination) {
var p;
if (source == null && destination == null ) return aPoint;
if (source == null ) {
source=C$.getWindowAncestor$java_awt_Component(destination);
if (source == null ) throw Clazz_new_($I$(5).c$$S,["Source component not connected to component tree hierarchy"]);
}p=Clazz_new_($I$(4).c$$java_awt_Point,[aPoint]);
C$.convertPointToScreen$java_awt_Point$java_awt_Component(p, source);
if (destination == null ) {
destination=C$.getWindowAncestor$java_awt_Component(source);
if (destination == null ) throw Clazz_new_($I$(5).c$$S,["Destination component not connected to component tree hierarchy"]);
}C$.convertPointFromScreen$java_awt_Point$java_awt_Component(p, destination);
return p;
}, 1);
Clazz_newMeth(C$, 'convertPoint$java_awt_Component$I$I$java_awt_Component', function (source, x, y, destination) {
var point=Clazz_new_($I$(4).c$$I$I,[x, y]);
return C$.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(source, point, destination);
}, 1);
Clazz_newMeth(C$, 'convertRectangle$java_awt_Component$java_awt_Rectangle$java_awt_Component', function (source, aRectangle, destination) {
var point=Clazz_new_($I$(4).c$$I$I,[aRectangle.x, aRectangle.y]);
point=C$.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(source, point, destination);
return Clazz_new_($I$(3).c$$I$I$I$I,[point.x, point.y, aRectangle.width, aRectangle.height]);
}, 1);
Clazz_newMeth(C$, 'getAncestorOfClass$Class$java_awt_Component', function (c, comp) {
if (comp == null || c == null ) return null;
var parent=comp.getParent$();
while (parent != null && !(c.isInstance$O(parent)) )parent=parent.getParent$();
return parent;
}, 1);
Clazz_newMeth(C$, 'getAncestorNamed$S$java_awt_Component', function (name, comp) {
if (comp == null || name == null ) return null;
var parent=comp.getParent$();
while (parent != null && !(name.equals$O(parent.getName$())) )parent=parent.getParent$();
return parent;
}, 1);
Clazz_newMeth(C$, 'getDeepestComponentAt$java_awt_Component$I$I', function (parent, x, y) {
if (!parent.contains$I$I(x, y)) {
return null;
}if (Clazz_instanceOf(parent, "java.awt.Container")) {
var components=$I$(6).秘getChildArray$java_awt_Container(parent);
for (var i=0, n=(parent).getComponentCount$(); i < n; i++) {
var comp=components[i];
if (comp != null && comp.isVisible$() ) {
var loc=comp.getLocation$();
if (Clazz_instanceOf(comp, "java.awt.Container")) {
comp=C$.getDeepestComponentAt$java_awt_Component$I$I(comp, x - loc.x, y - loc.y);
} else {
comp=comp.getComponentAt$I$I(x - loc.x, y - loc.y);
}if (comp != null && comp.isVisible$() ) {
return comp;
}}}
}return parent;
}, 1);
Clazz_newMeth(C$, 'convertMouseEvent$java_awt_Component$java_awt_event_MouseEvent$java_awt_Component', function (source, sourceEvent, destination) {
var p=C$.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(source, Clazz_new_($I$(4).c$$I$I,[sourceEvent.getX$(), sourceEvent.getY$()]), destination);
var newSource;
if (destination != null ) newSource=destination;
else newSource=source;
var newEvent;
if (Clazz_instanceOf(sourceEvent, "java.awt.event.MouseWheelEvent")) {
var sourceWheelEvent=sourceEvent;
newEvent=Clazz_new_($I$(7).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I,[newSource, sourceWheelEvent.getID$(), sourceWheelEvent.getWhen$(), sourceWheelEvent.getModifiers$(), p.x, p.y, sourceWheelEvent.getXOnScreen$(), sourceWheelEvent.getYOnScreen$(), sourceWheelEvent.getClickCount$(), sourceWheelEvent.isPopupTrigger$(), sourceWheelEvent.getScrollType$(), sourceWheelEvent.getScrollAmount$(), sourceWheelEvent.getWheelRotation$()]);
} else if (Clazz_instanceOf(sourceEvent, "javax.swing.event.MenuDragMouseEvent")) {
var sourceMenuDragEvent=sourceEvent;
newEvent=Clazz_new_($I$(8).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[newSource, sourceMenuDragEvent.getID$(), sourceMenuDragEvent.getWhen$(), sourceMenuDragEvent.getModifiers$(), p.x, p.y, sourceMenuDragEvent.getXOnScreen$(), sourceMenuDragEvent.getYOnScreen$(), sourceMenuDragEvent.getClickCount$(), sourceMenuDragEvent.isPopupTrigger$(), sourceMenuDragEvent.getPath$(), sourceMenuDragEvent.getMenuSelectionManager$()]);
} else {
newEvent=Clazz_new_($I$(9).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[newSource, sourceEvent.getID$(), sourceEvent.getWhen$(), sourceEvent.getModifiers$(), p.x, p.y, sourceEvent.getXOnScreen$(), sourceEvent.getYOnScreen$(), sourceEvent.getClickCount$(), sourceEvent.isPopupTrigger$(), 0]);
}return newEvent;
}, 1);
Clazz_newMeth(C$, 'convertPointToScreen$java_awt_Point$java_awt_Component', function (p, c) {
var x;
var y;
var done=false;
do {
if ((done=c.isWindowOrJSApplet$())) {
try {
var pp=c.getLocationOnScreen$();
x=pp.x;
y=pp.y;
} catch (icse) {
if (Clazz_exceptionOf(icse,"java.awt.IllegalComponentStateException")){
x=c.getX$();
y=c.getY$();
} else {
throw icse;
}
}
} else {
x=c.getX$();
y=c.getY$();
}p.x+=x;
p.y+=y;
c=c.getParent$();
} while (c != null && !done );
}, 1);
Clazz_newMeth(C$, 'convertPointFromScreen$java_awt_Point$java_awt_Component', function (p, c) {
var x;
var y;
do {
if (c.isWindowOrJSApplet$()) {
try {
var pp=c.getLocationOnScreen$();
x=pp.x;
y=pp.y;
} catch (icse) {
if (Clazz_exceptionOf(icse,"java.awt.IllegalComponentStateException")){
x=c.getX$();
y=c.getY$();
} else {
throw icse;
}
}
} else {
x=c.getX$();
y=c.getY$();
}p.x-=x;
p.y-=y;
if (c.isWindowOrJSApplet$()) break;
c=c.getParent$();
} while (c != null );
}, 1);
Clazz_newMeth(C$, 'windowForComponent$java_awt_Component', function (c) {
return C$.getWindowAncestor$java_awt_Component(c);
}, 1);
Clazz_newMeth(C$, 'isDescendingFrom$java_awt_Component$java_awt_Component', function (a, b) {
if (a === b ) return true;
for (var p=a.getParent$(); p != null ; p=p.getParent$()) if (p === b ) return true;
return false;
}, 1);
Clazz_newMeth(C$, 'computeIntersection$I$I$I$I$java_awt_Rectangle', function (x, y, width, height, dest) {
var x1=(x > dest.x) ? x : dest.x;
var x2=((x + width) < (dest.x + dest.width)) ? (x + width) : (dest.x + dest.width);
var y1=(y > dest.y) ? y : dest.y;
var y2=((y + height) < (dest.y + dest.height) ? (y + height) : (dest.y + dest.height));
dest.x=x1;
dest.y=y1;
dest.width=x2 - x1;
dest.height=y2 - y1;
if (dest.width < 0 || dest.height < 0 ) {
dest.x=dest.y=dest.width=dest.height=0;
}return dest;
}, 1);
Clazz_newMeth(C$, 'computeUnion$I$I$I$I$java_awt_Rectangle', function (x, y, width, height, dest) {
var x1=(x < dest.x) ? x : dest.x;
var x2=((x + width) > (dest.x + dest.width)) ? (x + width) : (dest.x + dest.width);
var y1=(y < dest.y) ? y : dest.y;
var y2=((y + height) > (dest.y + dest.height)) ? (y + height) : (dest.y + dest.height);
dest.x=x1;
dest.y=y1;
dest.width=(x2 - x1);
dest.height=(y2 - y1);
return dest;
}, 1);
Clazz_newMeth(C$, 'computeDifference$java_awt_Rectangle$java_awt_Rectangle', function (rectA, rectB) {
if (rectB == null || !rectA.intersects$java_awt_Rectangle(rectB) || C$.isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle(rectB, rectA) ) {
return Clazz_array($I$(3), [0]);
}var t=Clazz_new_($I$(3));
var a=null;
var b=null;
var c=null;
var d=null;
var result;
var rectCount=0;
if (C$.isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle(rectA, rectB)) {
t.x=rectA.x;
t.y=rectA.y;
t.width=rectB.x - rectA.x;
t.height=rectA.height;
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.x=rectB.x;
t.y=rectA.y;
t.width=rectB.width;
t.height=rectB.y - rectA.y;
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.x=rectB.x;
t.y=rectB.y + rectB.height;
t.width=rectB.width;
t.height=rectA.y + rectA.height - (rectB.y + rectB.height);
if (t.width > 0 && t.height > 0 ) {
c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.x=rectB.x + rectB.width;
t.y=rectA.y;
t.width=rectA.x + rectA.width - (rectB.x + rectB.width);
t.height=rectA.height;
if (t.width > 0 && t.height > 0 ) {
d=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}} else {
if (rectB.x <= rectA.x && rectB.y <= rectA.y ) {
if ((rectB.x + rectB.width) > (rectA.x + rectA.width)) {
t.x=rectA.x;
t.y=rectB.y + rectB.height;
t.width=rectA.width;
t.height=rectA.y + rectA.height - (rectB.y + rectB.height);
if (t.width > 0 && t.height > 0 ) {
a=t;
rectCount++;
}} else if ((rectB.y + rectB.height) > (rectA.y + rectA.height)) {
t.setBounds$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height);
if (t.width > 0 && t.height > 0 ) {
a=t;
rectCount++;
}} else {
t.setBounds$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), (rectB.y + rectB.height) - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.setBounds$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height));
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}}} else if (rectB.x <= rectA.x && (rectB.y + rectB.height) >= (rectA.y + rectA.height) ) {
if ((rectB.x + rectB.width) > (rectA.x + rectA.width)) {
t.setBounds$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=t;
rectCount++;
}} else {
t.setBounds$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I((rectB.x + rectB.width), rectB.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), (rectA.y + rectA.height) - rectB.y);
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}}} else if (rectB.x <= rectA.x) {
if ((rectB.x + rectB.width) >= (rectA.x + rectA.width)) {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height));
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}} else {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I((rectB.x + rectB.width), rectB.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectB.height);
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height));
if (t.width > 0 && t.height > 0 ) {
c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}}} else if (rectB.x <= (rectA.x + rectA.width) && (rectB.x + rectB.width) > (rectA.x + rectA.width) ) {
if (rectB.y <= rectA.y && (rectB.y + rectB.height) > (rectA.y + rectA.height) ) {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height);
if (t.width > 0 && t.height > 0 ) {
a=t;
rectCount++;
}} else if (rectB.y <= rectA.y) {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, (rectB.y + rectB.height) - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height));
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}} else if ((rectB.y + rectB.height) > (rectA.y + rectA.height)) {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectA.x, rectB.y, rectB.x - rectA.x, (rectA.y + rectA.height) - rectB.y);
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}} else {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectA.x, rectB.y, rectB.x - rectA.x, rectB.height);
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height));
if (t.width > 0 && t.height > 0 ) {
c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}}} else if (rectB.x >= rectA.x && (rectB.x + rectB.width) <= (rectA.x + rectA.width) ) {
if (rectB.y <= rectA.y && (rectB.y + rectB.height) > (rectA.y + rectA.height) ) {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height);
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}} else if (rectB.y <= rectA.y) {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectB.x, (rectB.y + rectB.height), rectB.width, (rectA.y + rectA.height) - (rectB.y + rectB.height));
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height);
if (t.width > 0 && t.height > 0 ) {
c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}} else {
t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height);
if (t.width > 0 && t.height > 0 ) {
a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I(rectB.x, rectA.y, rectB.width, rectB.y - rectA.y);
if (t.width > 0 && t.height > 0 ) {
b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}t.reshape$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height);
if (t.width > 0 && t.height > 0 ) {
c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]);
rectCount++;
}}}}result=Clazz_array($I$(3), [rectCount]);
rectCount=0;
if (a != null ) result[rectCount++]=a;
if (b != null ) result[rectCount++]=b;
if (c != null ) result[rectCount++]=c;
if (d != null ) result[rectCount++]=d;
return result;
}, 1);
Clazz_newMeth(C$, 'isLeftMouseButton$java_awt_event_MouseEvent', function (anEvent) {
return ((anEvent.getModifiers$() & 16) != 0);
}, 1);
Clazz_newMeth(C$, 'isMiddleMouseButton$java_awt_event_MouseEvent', function (anEvent) {
return ((anEvent.getModifiers$() & 8) == 8);
}, 1);
Clazz_newMeth(C$, 'isRightMouseButton$java_awt_event_MouseEvent', function (anEvent) {
return ((anEvent.getModifiers$() & 4) == 4);
}, 1);
Clazz_newMeth(C$, 'layoutCompoundLabel$javax_swing_JComponent$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I', function (c, fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) {
var ui=c.getUI$();
var ltr=(c == null || c.getComponentOrientation$().isLeftToRight$() );
var hAlign;
var hTextPos;
if (ui.menuAnchorNode == null ) {
switch (horizontalAlignment) {
case 10:
hAlign=(ltr) ? 2 : 4;
break;
case 11:
hAlign=(ltr) ? 4 : 2;
break;
default:
hAlign=horizontalAlignment;
break;
}
switch (horizontalTextPosition) {
case 10:
hTextPos=(ltr) ? 2 : 4;
break;
case 11:
hTextPos=(ltr) ? 4 : 2;
break;
default:
hTextPos=horizontalTextPosition;
break;
}
} else {
hAlign=hTextPos=(ltr ? 2 : 4);
}return C$.layoutCompoundLabelImpl$javax_swing_JComponent$swingjs_plaf_JSComponentUI$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I(c, ui, fm, text, icon, verticalAlignment, hAlign, verticalTextPosition, hTextPos, viewR, iconR, textR, textIconGap);
}, 1);
Clazz_newMeth(C$, 'layoutCompoundLabel$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I', function (fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) {
return C$.layoutCompoundLabelImpl$javax_swing_JComponent$swingjs_plaf_JSComponentUI$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I(null, null, fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap);
}, 1);
Clazz_newMeth(C$, 'layoutCompoundLabelImpl$javax_swing_JComponent$swingjs_plaf_JSComponentUI$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I', function (c, ui, fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) {
if (icon != null ) {
iconR.width=icon.getIconWidth$();
iconR.height=icon.getIconHeight$();
}var textIsEmpty=(text == null ) || text.equals$O("") ;
var lsb=0;
var rsb=0;
var gap;
var v=null;
if (textIsEmpty) {
textR.width=textR.height=0;
text="";
gap=0;
} else {
var availTextWidth;
gap=(iconR.width == 0) ? 0 : textIconGap;
if (horizontalTextPosition == 0) {
availTextWidth=viewR.width;
} else {
availTextWidth=viewR.width - (iconR.width + gap);
}v=(c != null ? c.getClientProperty$O("html") : null);
if (v != null ) {
textR.width=Math.min(availTextWidth, (v.getPreferredSpan$I(0)|0));
textR.height=(v.getPreferredSpan$I(1)|0);
} else {
if (ui.textNode == null ) {
textR.width=fm.stringWidth$S(text);
textR.height=fm.getHeight$();
} else if (text.length$() == 0) {
textR.width=1;
textR.height=fm.getHeight$();
} else {
var t=text.replace$C$C(" ", "\u00a0");
if (t != text) $I$(10).setAttr(ui.textNode, "innerHTML", t);
var d=ui.getHTMLSize$swingjs_api_js_DOMNode(ui.textNode);
if (t != text) $I$(10).setAttr(ui.textNode, "innerHTML", text);
textR.width=(d.width == 0 ? 1 : d.width);
textR.height=(d.height == 0 ? fm.getHeight$() : d.height);
}if (textR.width > availTextWidth) {
text=$I$(11).clipString$javax_swing_JComponent$java_awt_FontMetrics$S$I(c, fm, text, availTextWidth);
textR.width=$I$(11).stringWidth$javax_swing_JComponent$java_awt_FontMetrics$S(c, fm, text);
}}}if (verticalTextPosition == 1) {
if (horizontalTextPosition != 0) {
textR.y=0;
} else {
textR.y=-(textR.height + gap);
}} else if (verticalTextPosition == 0) {
textR.y=((iconR.height/2|0)) - ((textR.height/2|0));
} else {
if (horizontalTextPosition != 0) {
textR.y=iconR.height - textR.height;
} else {
textR.y=(iconR.height + gap);
}}if (horizontalTextPosition == 2) {
textR.x=-(textR.width + gap);
} else if (horizontalTextPosition == 0) {
textR.x=((iconR.width/2|0)) - ((textR.width/2|0));
} else {
textR.x=(iconR.width + gap);
}var labelR_x=Math.min(iconR.x, textR.x);
var labelR_width=Math.max(iconR.x + iconR.width, textR.x + textR.width) - labelR_x;
var labelR_y=Math.min(iconR.y, textR.y);
var labelR_height=Math.max(iconR.y + iconR.height, textR.y + textR.height) - labelR_y;
var dx;
var dy;
if (verticalAlignment == 1) {
dy=viewR.y - labelR_y;
} else if (verticalAlignment == 0) {
dy=(viewR.y + ((viewR.height/2|0))) - (labelR_y + ((labelR_height/2|0)));
} else {
dy=(viewR.y + viewR.height) - (labelR_y + labelR_height);
}if (horizontalAlignment == 2) {
dx=viewR.x - labelR_x;
} else if (horizontalAlignment == 4) {
dx=(viewR.x + viewR.width) - (labelR_x + labelR_width);
} else {
dx=(viewR.x + ((viewR.width/2|0))) - (labelR_x + ((labelR_width/2|0)));
}textR.x+=dx;
textR.y+=dy;
iconR.x+=dx;
iconR.y+=dy;
if (viewR.width == 32767) {
viewR.width=labelR_width;
viewR.height=labelR_height;
}return text;
}, 1);
Clazz_newMeth(C$, 'paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I', function (g, c, p, x, y, w, h) {
C$.getCellRendererPane$java_awt_Component$java_awt_Container(c, p).paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I$Z(g, c, p, x, y, w, h, false);
}, 1);
Clazz_newMeth(C$, 'paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$java_awt_Rectangle', function (g, c, p, r) {
C$.paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I(g, c, p, r.x, r.y, r.width, r.height);
}, 1);
Clazz_newMeth(C$, 'getCellRendererPane$java_awt_Component$java_awt_Container', function (c, p) {
var shell=c.getParent$();
if (Clazz_instanceOf(shell, "javax.swing.CellRendererPane")) {
if (shell.getParent$() !== p ) {
p.add$java_awt_Component(shell);
}} else {
shell=$I$(12).getInstance$S$Z("javax.swing.CellRendererPane", false);
shell.add$java_awt_Component(c);
p.add$java_awt_Component(shell);
}return shell;
}, 1);
Clazz_newMeth(C$, 'updateComponentTreeUI$java_awt_Component', function (c) {
C$.updateComponentTreeUI0$java_awt_Component(c);
c.invalidate$();
c.validate$();
c.repaint$();
}, 1);
Clazz_newMeth(C$, 'updateComponentTreeUI0$java_awt_Component', function (c) {
if (Clazz_instanceOf(c, "javax.swing.JComponent")) {
var jc=c;
jc.updateUI$();
var jpm=jc.getComponentPopupMenu$();
if (jpm != null ) {
C$.updateComponentTreeUI$java_awt_Component(jpm);
}}var children=null;
var n=0;
if (Clazz_instanceOf(c, "javax.swing.JMenu")) {
children=(c).getMenuArray$();
n=(c).getMenuComponentCount$();
} else if (Clazz_instanceOf(c, "java.awt.Container")) {
children=$I$(6).秘getChildArray$java_awt_Container(c);
n=(c).getComponentCount$();
}for (var i=0; i < n; i++) {
C$.updateComponentTreeUI0$java_awt_Component(children[i]);
}
}, 1);
Clazz_newMeth(C$, 'invokeLater$Runnable', function (doRun) {
$I$(13).invokeLater$Runnable(doRun);
}, 1);
Clazz_newMeth(C$, 'invokeAndWait$Runnable', function (doRun) {
$I$(13).invokeAndWait$Runnable(doRun);
}, 1);
Clazz_newMeth(C$, 'isEventDispatchThread$', function () {
return $I$(13).isDispatchThread$();
}, 1);
Clazz_newMeth(C$, 'findFocusOwner$java_awt_Component', function (c) {
var focusOwner=$I$(14).getCurrentKeyboardFocusManager$().getFocusOwner$();
for (var temp=focusOwner; temp != null ; temp=(temp.isWindowOrJSApplet$() ? null : temp.getParent$())) {
if (temp === c ) {
return focusOwner;
}}
return null;
}, 1);
Clazz_newMeth(C$, 'getRootPane$java_awt_Component', function (c) {
if (Clazz_instanceOf(c, "javax.swing.RootPaneContainer")) {
return (c).getRootPane$();
}for (; c != null ; c=c.getParent$()) {
if (Clazz_instanceOf(c, "javax.swing.JRootPane")) {
return c;
}}
return null;
}, 1);
Clazz_newMeth(C$, 'getRoot$java_awt_Component', function (c) {
for (var p=c; p != null ; p=p.getParent$()) {
if (p.isWindowOrJSApplet$()) {
return p;
}}
return null;
}, 1);
Clazz_newMeth(C$, 'isValidKeyEventForKeyBindings$java_awt_event_KeyEvent', function (e) {
if (e.getID$() == 400) {
var mod=e.getModifiers$();
if (((mod & 8) != 0) && ((mod & 2) == 0) ) {
return false;
}} else {
switch (e.getKeyCode$()) {
case 16:
case 17:
case 18:
case 65406:
case 157:
return false;
}
}return true;
}, 1);
Clazz_newMeth(C$, 'notifyAction$javax_swing_Action$javax_swing_KeyStroke$java_awt_event_KeyEvent$O$I', function (action, ks, event, sender, modifiers) {
if (action == null ) {
return false;
}if (Clazz_instanceOf(action, "sun.swing.UIAction")) {
if (!(action).isEnabled$O(sender)) {
return false;
}} else if (!action.isEnabled$()) {
return false;
}var commandO;
var stayNull;
commandO=action.getValue$S("ActionCommandKey");
if (commandO == null && $I$(15).isActionStandin$javax_swing_Action(action) ) {
stayNull=true;
} else {
stayNull=false;
}var command;
if (commandO != null ) {
command=commandO.toString();
} else if (!stayNull && event.getKeyChar$() != "\uffff" ) {
command=String.valueOf$C(event.getKeyChar$());
} else {
command=null;
}action.actionPerformed$(Clazz_new_($I$(16).c$$O$I$S$J$I,[sender, 1001, command, event.getWhen$(), modifiers]));
return true;
}, 1);
Clazz_newMeth(C$, 'replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap', function (component, type, uiInputMap) {
var map=component.getInputMap$I$Z(type, (uiInputMap != null ));
while (map != null ){
var parent=map.getParent$();
if (parent == null || (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) ) {
map.setParent$javax_swing_InputMap(uiInputMap);
return;
}map=parent;
}
}, 1);
Clazz_newMeth(C$, 'replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap', function (component, uiActionMap) {
var map=component.getActionMap$Z((uiActionMap != null ));
while (map != null ){
var parent=map.getParent$();
if (parent == null || (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) && (!(Clazz_instanceOf(uiActionMap, "javax.swing.plaf.UIResource")) || (uiActionMap._key == parent._key ||false) ) ) {
map.setParent$javax_swing_ActionMap(uiActionMap);
return;
}map=parent;
}
}, 1);
Clazz_newMeth(C$, 'getUIInputMap$javax_swing_JComponent$I', function (component, condition) {
var map=component.getInputMap$I$Z(condition, false);
while (map != null ){
var parent=map.getParent$();
if (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) {
return parent;
}map=parent;
}
return null;
}, 1);
Clazz_newMeth(C$, 'getUIActionMap$javax_swing_JComponent', function (component) {
var map=component.getActionMap$Z(false);
while (map != null ){
var parent=map.getParent$();
if (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) {
return parent;
}map=parent;
}
return null;
}, 1);
Clazz_newMeth(C$, 'getSharedOwnerFrame$', function () {
var p=$I$(17).getAppletViewer$();
var f=p.sharedOwnerFrame;
return (f == null ? (p.sharedOwnerFrame=Clazz_new_($I$(18))) : f);
}, 1);
Clazz_newMeth(C$, 'getSharedOwnerFrameShutdownListener$', function () {
var sharedOwnerFrame=C$.getSharedOwnerFrame$();
return sharedOwnerFrame;
}, 1);
Clazz_newMeth(C$, 'appContextGet$O', function (key) {
return $I$(19).getAppContext$().get$O(key);
}, 1);
Clazz_newMeth(C$, 'appContextPut$O$O', function (key, value) {
$I$(19).getAppContext$().put$O$O(key, value);
}, 1);
Clazz_newMeth(C$, 'appContextRemove$O', function (key) {
$I$(19).getAppContext$().remove$O(key);
}, 1);
Clazz_newMeth(C$, 'loadSystemClass$S', function (className) {
return Clazz_forName(className, true, $I$(20).currentThread$().getContextClassLoader$());
}, 1);
Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) {
return c.getComponentOrientation$().isLeftToRight$();
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
throw Clazz_new_($I$(5).c$$S,["SwingUtilities is just a container for static methods"]);
}, 1);
Clazz_newMeth(C$, 'doesIconReferenceImage$javax_swing_Icon$java_awt_Image', function (icon, image) {
var iconImage=(icon != null && (Clazz_instanceOf(icon, "javax.swing.ImageIcon")) ) ? (icon).getImage$() : null;
return (iconImage === image );
}, 1);
Clazz_newMeth(C$, 'findDisplayedMnemonicIndex$S$I', function (text, mnemonic) {
if (text == null || mnemonic == 0 ) {
return -1;
}var uc=Character.toUpperCase$C(String.fromCharCode(mnemonic));
var lc=Character.toLowerCase$C(String.fromCharCode(mnemonic));
var uci=text.indexOf$I(uc);
var lci=text.indexOf$I(lc);
if (uci == -1) {
return lci;
} else if (lci == -1) {
return uci;
} else {
return (lci < uci) ? lci : uci;
}}, 1);
Clazz_newMeth(C$, 'calculateInnerArea$javax_swing_JComponent$java_awt_Rectangle', function (c, r) {
if (c == null ) {
return null;
}var rect=r;
var insets=c.getInsets$();
if (rect == null ) {
rect=Clazz_new_($I$(3));
}rect.x=insets.left;
rect.y=insets.top;
rect.width=c.getWidth$() - insets.left - insets.right ;
rect.height=c.getHeight$() - insets.top - insets.bottom ;
return rect;
}, 1);
Clazz_newMeth(C$, 'updateRendererOrEditorUI$O', function (rendererOrEditor) {
if (rendererOrEditor == null ) {
return;
}var component=null;
if (Clazz_instanceOf(rendererOrEditor, "java.awt.Component")) {
component=rendererOrEditor;
}if (Clazz_instanceOf(rendererOrEditor, "javax.swing.DefaultCellEditor")) {
component=(rendererOrEditor).getComponent$();
}if (component != null ) {
C$.updateComponentTreeUI$java_awt_Component(component);
}}, 1);
Clazz_newMeth(C$, 'getUnwrappedParent$java_awt_Component', function (component) {
var parent=component.getParent$();
while (Clazz_instanceOf(parent, "javax.swing.JLayer")){
parent=parent.getParent$();
}
return parent;
}, 1);
;
(function(){var C$=Clazz_newClass(P$.SwingUtilities, "SharedOwnerFrame", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.JFrame', 'java.awt.event.WindowListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$O$O$O$O.apply(this, [null, null, null, null]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'addNotify$', function () {
this.updateUI$();
this.getOrCreatePeer$();
C$.superclazz.prototype.addNotify$.apply(this, []);
this.installListeners$();
});
Clazz_newMeth(C$, 'installListeners$', function () {
var windows=this.getOwnedWindows$();
for (var ind=0; ind < windows.length; ind++) {
var window=windows[ind];
if (window != null ) {
window.removeWindowListener$java_awt_event_WindowListener(this);
window.addWindowListener$java_awt_event_WindowListener(this);
}}
});
Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) {
var windows=this.getOwnedWindows$();
for (var ind=0; ind < windows.length; ind++) {
var window=windows[ind];
if (window != null ) {
if (window.isDisplayable$()) {
return;
}window.removeWindowListener$java_awt_event_WindowListener(this);
}this.dispose$();
}
});
Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'show$', function () {
});
Clazz_newMeth(C$, 'dispose$', function () {
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},p$2={},I$=[[0,'javax.swing.text.StyleConstants',['javax.swing.text.AbstractDocument','.AbstractElement'],'java.util.Vector','javax.swing.text.StateInvariantError','java.util.Hashtable',['javax.swing.text.AbstractDocument','.UndoRedoDocumentEvent'],['javax.swing.event.DocumentEvent','.EventType'],'javax.swing.UIManager','javax.swing.event.EventListenerList','javax.swing.text.StyleContext','javax.swing.event.DocumentListener','javax.swing.event.UndoableEditListener',['javax.swing.text.AbstractDocument','.DefaultDocumentEvent'],'javax.swing.text.Utilities','javax.swing.event.UndoableEditEvent','javax.swing.text.Element',['javax.swing.text.AbstractDocument','.DefaultFilterBypass'],'Boolean','javax.swing.text.SegmentCache',['javax.swing.text.AbstractDocument','.LeafElement'],['javax.swing.text.AbstractDocument','.BranchElement']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractDocument", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, 'javax.swing.text.Document');
C$.MultiByteProperty=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.MultiByteProperty="multiByte";
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.documentProperties=null;
this.listenerList=null;
this.data=null;
this.context=null;
this.bidiRoot=null;
this.documentFilter=null;
this.filterBypass=null;
this.editor=null;
this.isAWT=false;
this.currentDot=0;
this.currentMark=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.documentProperties=null;
this.listenerList=Clazz_new_($I$(9));
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_Content', function (data) {
C$.c$$javax_swing_text_AbstractDocument_Content$javax_swing_text_AbstractDocument_AttributeContext.apply(this, [data, $I$(10).getDefaultStyleContext$()]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_Content$javax_swing_text_AbstractDocument_AttributeContext', function (data, context) {
C$.$init$.apply(this);
this.data=data;
this.context=context;
}, 1);
Clazz_newMeth(C$, 'getDocumentProperties$', function () {
if (this.documentProperties == null ) {
this.documentProperties=Clazz_new_($I$(5).c$$I,[2]);
}return this.documentProperties;
});
Clazz_newMeth(C$, 'setDocumentProperties$java_util_Dictionary', function (x) {
this.documentProperties=x;
});
Clazz_newMeth(C$, 'fireInsertUpdate$javax_swing_event_DocumentEvent', function (e) {
try {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']) ) {
(listeners[i + 1]).insertUpdate$javax_swing_event_DocumentEvent(e);
}}
} finally {
}
});
Clazz_newMeth(C$, 'fireChangedUpdate$javax_swing_event_DocumentEvent', function (e) {
try {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']) ) {
(listeners[i + 1]).changedUpdate$javax_swing_event_DocumentEvent(e);
}}
} finally {
}
});
Clazz_newMeth(C$, 'fireRemoveUpdate$javax_swing_event_DocumentEvent', function (e) {
try {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']) ) {
(listeners[i + 1]).removeUpdate$javax_swing_event_DocumentEvent(e);
}}
} finally {
}
});
Clazz_newMeth(C$, 'fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent', function (e) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']) ) {
(listeners[i + 1]).undoableEditHappened$(e);
}}
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
Clazz_newMeth(C$, 'getAsynchronousLoadPriority$', function () {
var loadPriority=this.getProperty$O("load priority");
if (loadPriority != null ) {
return loadPriority.intValue$();
}return -1;
});
Clazz_newMeth(C$, 'setAsynchronousLoadPriority$I', function (p) {
var loadPriority=(p >= 0) ? new Integer(p) : null;
this.putProperty$O$O("load priority", loadPriority);
});
Clazz_newMeth(C$, 'setDocumentFilter$javax_swing_text_DocumentFilter', function (filter) {
this.documentFilter=filter;
});
Clazz_newMeth(C$, 'getDocumentFilter$', function () {
return this.documentFilter;
});
Clazz_newMeth(C$, 'render$Runnable', function (r) {
try {
r.run$();
} finally {
}
});
Clazz_newMeth(C$, 'getLength$', function () {
return this.data.length$() - 1;
});
Clazz_newMeth(C$, 'addDocumentListener$javax_swing_event_DocumentListener', function (listener) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']), listener);
});
Clazz_newMeth(C$, 'removeDocumentListener$javax_swing_event_DocumentListener', function (listener) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']), listener);
});
Clazz_newMeth(C$, 'getDocumentListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']));
});
Clazz_newMeth(C$, 'addUndoableEditListener$javax_swing_event_UndoableEditListener', function (listener) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']), listener);
});
Clazz_newMeth(C$, 'removeUndoableEditListener$javax_swing_event_UndoableEditListener', function (listener) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']), listener);
});
Clazz_newMeth(C$, 'getUndoableEditListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']));
});
Clazz_newMeth(C$, 'getProperty$O', function (key) {
return this.getDocumentProperties$().get$O(key);
});
Clazz_newMeth(C$, 'putProperty$O$O', function (key, value) {
if (value != null ) {
this.getDocumentProperties$().put$TK$TV(key, value);
} else {
this.getDocumentProperties$().remove$O(key);
}});
Clazz_newMeth(C$, 'remove$I$I', function (offs, len) {
var filter=this.getDocumentFilter$();
this.writeLock$();
try {
if (filter != null ) {
filter.remove$javax_swing_text_DocumentFilter_FilterBypass$I$I(p$2.getFilterBypass.apply(this, []), offs, len);
} else {
this.handleRemove$I$I(offs, len);
}} finally {
this.writeUnlock$();
}
});
Clazz_newMeth(C$, 'handleRemove$I$I', function (offs, len) {
if (len > 0) {
if (offs < 0 || (offs + len) > this.getLength$() ) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid remove", this.getLength$() + 1]);
}var chng=Clazz_new_($I$(13).c$$I$I$javax_swing_event_DocumentEvent_EventType, [this, null, offs, len, $I$(7).REMOVE]);
var isComposedTextElement=false;
isComposedTextElement=$I$(14).isComposedTextElement$javax_swing_text_Document$I(this, offs);
this.removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent(chng);
var u=this.data.remove$I$I(offs, len);
if (u != null ) {
chng.addEdit$javax_swing_undo_UndoableEdit(u);
}this.postRemoveUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent(chng);
chng.end$();
this.fireRemoveUpdate$javax_swing_event_DocumentEvent(chng);
if ((u != null ) && !isComposedTextElement ) {
this.fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent(Clazz_new_($I$(15).c$$O$javax_swing_undo_UndoableEdit,[this, chng]));
}}});
Clazz_newMeth(C$, 'replace$I$I$S$javax_swing_text_AttributeSet', function (offset, length, text, attrs) {
if (length == 0 && (text == null || text.length$() == 0 ) ) {
return;
}var filter=this.getDocumentFilter$();
this.writeLock$();
try {
if (filter != null ) {
filter.replace$javax_swing_text_DocumentFilter_FilterBypass$I$I$S$javax_swing_text_AttributeSet(p$2.getFilterBypass.apply(this, []), offset, length, text, attrs);
} else {
if (length > 0) {
this.remove$I$I(offset, length);
}if (text != null && text.length$() > 0 ) {
this.insertString$I$S$javax_swing_text_AttributeSet(offset, text, attrs);
}}} finally {
this.writeUnlock$();
}
});
Clazz_newMeth(C$, 'insertString$I$S$javax_swing_text_AttributeSet', function (offs, str, a) {
if ((str == null ) || (str.length$() == 0) ) {
return;
}var filter=this.getDocumentFilter$();
this.writeLock$();
try {
if (filter != null ) {
filter.insertString$javax_swing_text_DocumentFilter_FilterBypass$I$S$javax_swing_text_AttributeSet(p$2.getFilterBypass.apply(this, []), offs, str, a);
} else {
this.handleInsertString$I$S$javax_swing_text_AttributeSet(offs, str, a);
}} finally {
this.writeUnlock$();
}
});
Clazz_newMeth(C$, 'handleInsertString$I$S$javax_swing_text_AttributeSet', function (offs, str, a) {
if ((str == null ) || (str.length$() == 0) ) {
return;
}var u=this.data.insertString$I$S(offs, str);
var e=Clazz_new_($I$(13).c$$I$I$javax_swing_event_DocumentEvent_EventType, [this, null, offs, str.length$(), $I$(7).INSERT]);
if (u != null ) {
e.addEdit$javax_swing_undo_UndoableEdit(u);
}this.insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet(e, a);
e.end$();
this.fireInsertUpdate$javax_swing_event_DocumentEvent(e);
if (u != null && (a == null || !a.isDefined$O($I$(1).ComposedTextAttribute) ) ) {
this.fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent(Clazz_new_($I$(15).c$$O$javax_swing_undo_UndoableEdit,[this, e]));
}});
Clazz_newMeth(C$, 'getText$I$I', function (offset, length) {
if (length < 0) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Length must be positive", length]);
}var str=this.data.getString$I$I(offset, length);
return str;
});
Clazz_newMeth(C$, 'getText$I$I$javax_swing_text_Segment', function (offset, length, txt) {
if (length < 0) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Length must be positive", length]);
}this.data.getChars$I$I$javax_swing_text_Segment(offset, length, txt);
});
Clazz_newMeth(C$, 'createPosition$I', function (offs) {
return this.data.createPosition$I(offs);
});
Clazz_newMeth(C$, 'getStartPosition$', function () {
var p;
try {
p=this.createPosition$I(0);
} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
p=null;
} else {
throw bl;
}
}
return p;
});
Clazz_newMeth(C$, 'getEndPosition$', function () {
var p;
try {
p=this.createPosition$I(this.data.length$());
} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
p=null;
} else {
throw bl;
}
}
return p;
});
Clazz_newMeth(C$, 'getRootElements$', function () {
var elems=Clazz_array($I$(16), [2]);
elems[0]=this.getDefaultRootElement$();
elems[1]=this.getBidiRootElement$();
return elems;
});
Clazz_newMeth(C$, 'getFilterBypass', function () {
if (this.filterBypass == null ) {
this.filterBypass=Clazz_new_($I$(17), [this, null]);
}return this.filterBypass;
}, p$2);
Clazz_newMeth(C$, 'getBidiRootElement$', function () {
return this.bidiRoot;
});
Clazz_newMeth(C$, 'isLeftToRight$I$I', function (p0, p1) {
return true;
});
Clazz_newMeth(C$, 'getAttributeContext$', function () {
return this.context;
});
Clazz_newMeth(C$, 'insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet', function (chng, attr) {
if (chng.type === $I$(7).INSERT && chng.getLength$() > 0 && !$I$(18).TRUE.equals$O(this.getProperty$O(C$.MultiByteProperty)) ) {
var segment=$I$(19).getSharedSegment$();
try {
this.getText$I$I$javax_swing_text_Segment(chng.getOffset$(), chng.getLength$(), segment);
segment.first$();
do {
if (segment.current$().$c() > 255) {
this.putProperty$O$O(C$.MultiByteProperty, $I$(18).TRUE);
break;
}} while (segment.next$() != "\uffff");
} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
} else {
throw ble;
}
}
$I$(19).releaseSharedSegment$javax_swing_text_Segment(segment);
}});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent', function (chng) {
});
Clazz_newMeth(C$, 'postRemoveUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent', function (chng) {
});
Clazz_newMeth(C$, 'getContent$', function () {
return this.data;
});
Clazz_newMeth(C$, 'createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I', function (parent, a, p0, p1) {
return Clazz_new_($I$(20).c$$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I, [this, null, parent, a, p0, p1]);
});
Clazz_newMeth(C$, 'createBranchElement$javax_swing_text_Element$javax_swing_text_AttributeSet', function (parent, a) {
return Clazz_new_($I$(21).c$$javax_swing_text_Element$javax_swing_text_AttributeSet, [this, null, parent, a]);
});
Clazz_newMeth(C$, 'writeLock$', function () {
});
Clazz_newMeth(C$, 'writeUnlock$', function () {
});
Clazz_newMeth(C$, 'readLock$', function () {
});
Clazz_newMeth(C$, 'readUnlock$', function () {
});
Clazz_newMeth(C$, 'replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent', function (offset, length, text, attrs, c) {
this.editor=c;
this.isAWT=c.isAWT$ ||false;
if (this.isAWT) {
this.currentDot=c.getCaret$().getDot$();
this.currentMark=c.getCaret$().getMark$();
}this.replace$I$I$S$javax_swing_text_AttributeSet(offset, length, text, attrs);
});
Clazz_newMeth(C$, 'resetAWTScroll$', function () {
if (this.isAWT) {
this.editor.getCaret$().setDot$I(this.currentMark);
this.editor.getCaret$().moveDot$I(this.currentDot);
}});
;
(function(){var C$=Clazz_newInterface(P$.AbstractDocument, "Content", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AbstractDocument, "AttributeContext", function(){
});
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "AbstractElement", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['javax.swing.text.Element', 'javax.swing.text.MutableAttributeSet', 'javax.swing.tree.TreeNode']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.parent=null;
this.attributes=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Element$javax_swing_text_AttributeSet', function (parent, a) {
C$.$init$.apply(this);
this.parent=parent;
this.attributes=this.this$0.getAttributeContext$.apply(this.this$0, []).getEmptySet$();
if (a != null ) {
this.addAttributes$javax_swing_text_AttributeSet(a);
}}, 1);
Clazz_newMeth(C$, 'getAttributeCount$', function () {
return this.attributes.getAttributeCount$();
});
Clazz_newMeth(C$, 'isDefined$O', function (attrName) {
return this.attributes.isDefined$O(attrName);
});
Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) {
return this.attributes.isEqual$javax_swing_text_AttributeSet(attr);
});
Clazz_newMeth(C$, 'copyAttributes$', function () {
return this.attributes.copyAttributes$();
});
Clazz_newMeth(C$, 'getAttribute$O', function (attrName) {
var value=this.attributes.getAttribute$O(attrName);
if (value == null ) {
var a=(this.parent != null ) ? this.parent.getAttributes$() : null;
if (a != null ) {
value=a.getAttribute$O(attrName);
}}return value;
});
Clazz_newMeth(C$, 'getAttributeNames$', function () {
return this.attributes.getAttributeNames$();
});
Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) {
return this.attributes.containsAttribute$O$O(name, value);
});
Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attrs) {
return this.attributes.containsAttributes$javax_swing_text_AttributeSet(attrs);
});
Clazz_newMeth(C$, 'getResolveParent$', function () {
var a=this.attributes.getResolveParent$();
if ((a == null ) && (this.parent != null ) ) {
a=this.parent.getAttributes$();
}return a;
});
Clazz_newMeth(C$, 'addAttribute$O$O', function (name, value) {
p$1.checkForIllegalCast.apply(this, []);
var context=this.this$0.getAttributeContext$.apply(this.this$0, []);
this.attributes=context.addAttribute$javax_swing_text_AttributeSet$O$O(this.attributes, name, value);
});
Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attr) {
p$1.checkForIllegalCast.apply(this, []);
var context=this.this$0.getAttributeContext$.apply(this.this$0, []);
this.attributes=context.addAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attr);
});
Clazz_newMeth(C$, 'removeAttribute$O', function (name) {
p$1.checkForIllegalCast.apply(this, []);
var context=this.this$0.getAttributeContext$.apply(this.this$0, []);
this.attributes=context.removeAttribute$javax_swing_text_AttributeSet$O(this.attributes, name);
});
Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) {
p$1.checkForIllegalCast.apply(this, []);
var context=this.this$0.getAttributeContext$.apply(this.this$0, []);
this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$java_util_Enumeration(this.attributes, names);
});
Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attrs) {
p$1.checkForIllegalCast.apply(this, []);
var context=this.this$0.getAttributeContext$.apply(this.this$0, []);
if (attrs === this ) {
this.attributes=context.getEmptySet$();
} else {
this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attrs);
}});
Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_AttributeSet', function (parent) {
p$1.checkForIllegalCast.apply(this, []);
var context=this.this$0.getAttributeContext$.apply(this.this$0, []);
if (parent != null ) {
this.attributes=context.addAttribute$javax_swing_text_AttributeSet$O$O(this.attributes, $I$(1).ResolveAttribute, parent);
} else {
this.attributes=context.removeAttribute$javax_swing_text_AttributeSet$O(this.attributes, $I$(1).ResolveAttribute);
}});
Clazz_newMeth(C$, 'checkForIllegalCast', function () {
}, p$1);
Clazz_newMeth(C$, 'getDocument$', function () {
return this.this$0;
});
Clazz_newMeth(C$, 'getParentElement$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'getAttributes$', function () {
return this;
});
Clazz_newMeth(C$, 'getName$', function () {
if (this.attributes.isDefined$O("$ename")) {
return this.attributes.getAttribute$O("$ename");
}return null;
});
Clazz_newMeth(C$, 'getChildAt$I', function (childIndex) {
return this.getElement$I(childIndex);
});
Clazz_newMeth(C$, 'getChildCount$', function () {
return this.getElementCount$();
});
Clazz_newMeth(C$, 'getParent$', function () {
return this.getParentElement$();
});
Clazz_newMeth(C$, 'getIndex$javax_swing_tree_TreeNode', function (node) {
for (var counter=this.getChildCount$() - 1; counter >= 0; counter--) if (this.getChildAt$I(counter) === node ) return counter;
return -1;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "BranchElement", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['javax.swing.text.AbstractDocument','.AbstractElement']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.children=null;
this.nchildren=0;
this.lastIndex=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Element$javax_swing_text_AttributeSet', function (parent, a) {
C$.superclazz.c$$javax_swing_text_Element$javax_swing_text_AttributeSet.apply(this, [parent, a]);
C$.$init$.apply(this);
this.children=Clazz_array($I$(2), [1]);
this.nchildren=0;
this.lastIndex=-1;
}, 1);
Clazz_newMeth(C$, 'positionToElement$I', function (pos) {
var index=this.getElementIndex$I(pos);
var child=this.children[index];
var p0=child.getStartOffset$();
var p1=child.getEndOffset$();
if ((pos >= p0) && (pos < p1) ) {
return child;
}return null;
});
Clazz_newMeth(C$, 'replace$I$I$javax_swing_text_ElementA', function (offset, length, elems) {
var delta=elems.length - length;
var src=offset + length;
var nmove=this.nchildren - src;
var dest=src + delta;
if ((this.nchildren + delta) >= this.children.length) {
var newLength=Math.max(2 * this.children.length, this.nchildren + delta);
var newChildren=Clazz_array($I$(2), [newLength]);
System.arraycopy$O$I$O$I$I(this.children, 0, newChildren, 0, offset);
System.arraycopy$O$I$O$I$I(elems, 0, newChildren, offset, elems.length);
System.arraycopy$O$I$O$I$I(this.children, src, newChildren, dest, nmove);
this.children=newChildren;
} else {
System.arraycopy$O$I$O$I$I(this.children, src, this.children, dest, nmove);
System.arraycopy$O$I$O$I$I(elems, 0, this.children, offset, elems.length);
}this.nchildren=this.nchildren + delta;
});
Clazz_newMeth(C$, 'toString', function () {
return "BranchElement(" + this.getName$() + ") " + this.getStartOffset$() + "," + this.getEndOffset$() + "\n" ;
});
Clazz_newMeth(C$, 'getName$', function () {
var nm=C$.superclazz.prototype.getName$.apply(this, []);
if (nm == null ) {
nm="paragraph";
}return nm;
});
Clazz_newMeth(C$, 'getStartOffset$', function () {
return this.children[0].getStartOffset$();
});
Clazz_newMeth(C$, 'getEndOffset$', function () {
var child=(this.nchildren > 0) ? this.children[this.nchildren - 1] : this.children[0];
return child.getEndOffset$();
});
Clazz_newMeth(C$, 'getElement$I', function (index) {
if (index < this.nchildren) {
return this.children[index];
}return null;
});
Clazz_newMeth(C$, 'getElementCount$', function () {
return this.nchildren;
});
Clazz_newMeth(C$, 'getElementIndex$I', function (offset) {
var index;
var lower=0;
var upper=this.nchildren - 1;
var mid=0;
var p0=this.getStartOffset$();
var p1;
if (this.nchildren == 0) {
return 0;
}if (offset >= this.getEndOffset$()) {
return this.nchildren - 1;
}if ((this.lastIndex >= lower) && (this.lastIndex <= upper) ) {
var lastHit=this.children[this.lastIndex];
p0=lastHit.getStartOffset$();
p1=lastHit.getEndOffset$();
if ((offset >= p0) && (offset < p1) ) {
return this.lastIndex;
}if (offset < p0) {
upper=this.lastIndex;
} else {
lower=this.lastIndex;
}}while (lower <= upper){
mid=lower + (((upper - lower)/2|0));
var elem=this.children[mid];
p0=elem.getStartOffset$();
p1=elem.getEndOffset$();
if ((offset >= p0) && (offset < p1) ) {
index=mid;
this.lastIndex=index;
return index;
} else if (offset < p0) {
upper=mid - 1;
} else {
lower=mid + 1;
}}
if (offset < p0) {
index=mid;
} else {
index=mid + 1;
}this.lastIndex=index;
return index;
});
Clazz_newMeth(C$, 'isLeaf$', function () {
return false;
});
Clazz_newMeth(C$, 'getAllowsChildren$', function () {
return true;
});
Clazz_newMeth(C$, 'children$', function () {
if (this.nchildren == 0) return null;
var tempVector=Clazz_new_($I$(3).c$$I,[this.nchildren]);
for (var counter=0; counter < this.nchildren; counter++) tempVector.addElement$TE(this.children[counter]);
return tempVector.elements$();
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "LeafElement", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['javax.swing.text.AbstractDocument','.AbstractElement']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.p0=null;
this.p1=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I', function (parent, a, offs0, offs1) {
C$.superclazz.c$$javax_swing_text_Element$javax_swing_text_AttributeSet.apply(this, [parent, a]);
C$.$init$.apply(this);
try {
this.p0=this.this$0.createPosition$I.apply(this.this$0, [offs0]);
this.p1=this.this$0.createPosition$I.apply(this.this$0, [offs1]);
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
this.p0=null;
this.p1=null;
throw Clazz_new_($I$(4).c$$S,["Can\'t create Position references"]);
} else {
throw e;
}
}
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return "LeafElement(" + this.getName$() + ") " + this.p0 + "," + this.p1 + "\n" ;
});
Clazz_newMeth(C$, 'getStartOffset$', function () {
return this.p0.getOffset$();
});
Clazz_newMeth(C$, 'getEndOffset$', function () {
return this.p1.getOffset$();
});
Clazz_newMeth(C$, 'getName$', function () {
var nm=C$.superclazz.prototype.getName$.apply(this, []);
if (nm == null ) {
nm="content";
}return nm;
});
Clazz_newMeth(C$, 'getElementIndex$I', function (pos) {
return -1;
});
Clazz_newMeth(C$, 'getElement$I', function (index) {
return null;
});
Clazz_newMeth(C$, 'getElementCount$', function () {
return 0;
});
Clazz_newMeth(C$, 'isLeaf$', function () {
return true;
});
Clazz_newMeth(C$, 'getAllowsChildren$', function () {
return false;
});
Clazz_newMeth(C$, 'children$', function () {
return null;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "DefaultDocumentEvent", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.undo.CompoundEdit', 'javax.swing.event.DocumentEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.offset=0;
this.length=0;
this.changeLookup=null;
this.type=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I$javax_swing_event_DocumentEvent_EventType', function (offs, len, type) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.offset=offs;
this.length=len;
this.type=type;
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.edits.toString();
});
Clazz_newMeth(C$, 'addEdit$javax_swing_undo_UndoableEdit', function (anEdit) {
if ((this.changeLookup == null ) && (this.edits.size$() > 10) ) {
this.changeLookup=Clazz_new_($I$(5));
var n=this.edits.size$();
for (var i=0; i < n; i++) {
var o=this.edits.elementAt$I(i);
if (Clazz_instanceOf(o, "javax.swing.event.DocumentEvent.ElementChange")) {
var ec=o;
this.changeLookup.put$TK$TV(ec.getElement$(), ec);
}}
}if ((this.changeLookup != null ) && (Clazz_instanceOf(anEdit, "javax.swing.event.DocumentEvent.ElementChange")) ) {
var ec=anEdit;
this.changeLookup.put$TK$TV(ec.getElement$(), ec);
}return C$.superclazz.prototype.addEdit$javax_swing_undo_UndoableEdit.apply(this, [anEdit]);
});
Clazz_newMeth(C$, 'redo$', function () {
this.this$0.writeLock$.apply(this.this$0, []);
try {
C$.superclazz.prototype.redo$.apply(this, []);
var ev=Clazz_new_($I$(6).c$$javax_swing_text_AbstractDocument_DefaultDocumentEvent$Z, [this, null, this, false]);
if (this.type === $I$(7).INSERT ) {
this.this$0.fireInsertUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]);
} else if (this.type === $I$(7).REMOVE ) {
this.this$0.fireRemoveUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]);
} else {
this.this$0.fireChangedUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]);
}} finally {
this.this$0.writeUnlock$.apply(this.this$0, []);
}
});
Clazz_newMeth(C$, 'undo$', function () {
this.this$0.writeLock$.apply(this.this$0, []);
try {
C$.superclazz.prototype.undo$.apply(this, []);
var ev=Clazz_new_($I$(6).c$$javax_swing_text_AbstractDocument_DefaultDocumentEvent$Z, [this, null, this, true]);
if (this.type === $I$(7).REMOVE ) {
this.this$0.fireInsertUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]);
} else if (this.type === $I$(7).INSERT ) {
this.this$0.fireRemoveUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]);
} else {
this.this$0.fireChangedUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]);
}} finally {
this.this$0.writeUnlock$.apply(this.this$0, []);
}
});
Clazz_newMeth(C$, 'isSignificant$', function () {
return true;
});
Clazz_newMeth(C$, 'getPresentationName$', function () {
var type=this.getType$();
if (type === $I$(7).INSERT ) return $I$(8).getString$O("AbstractDocument.additionText");
if (type === $I$(7).REMOVE ) return $I$(8).getString$O("AbstractDocument.deletionText");
return $I$(8).getString$O("AbstractDocument.styleChangeText");
});
Clazz_newMeth(C$, 'getUndoPresentationName$', function () {
return $I$(8).getString$O("AbstractDocument.undoText") + " " + this.getPresentationName$() ;
});
Clazz_newMeth(C$, 'getRedoPresentationName$', function () {
return $I$(8).getString$O("AbstractDocument.redoText") + " " + this.getPresentationName$() ;
});
Clazz_newMeth(C$, 'getType$', function () {
return this.type;
});
Clazz_newMeth(C$, 'getOffset$', function () {
return this.offset;
});
Clazz_newMeth(C$, 'getLength$', function () {
return this.length;
});
Clazz_newMeth(C$, 'getDocument$', function () {
return this.this$0;
});
Clazz_newMeth(C$, 'getChange$javax_swing_text_Element', function (elem) {
if (this.changeLookup != null ) {
return this.changeLookup.get$O(elem);
}var n=this.edits.size$();
for (var i=0; i < n; i++) {
var o=this.edits.elementAt$I(i);
if (Clazz_instanceOf(o, "javax.swing.event.DocumentEvent.ElementChange")) {
var c=o;
if (elem.equals$O(c.getElement$())) {
return c;
}}}
return null;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "UndoRedoDocumentEvent", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.DocumentEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.src=null;
this.type=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.src=null;
this.type=null;
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_DefaultDocumentEvent$Z', function (src, isUndo) {
C$.$init$.apply(this);
this.src=src;
if (isUndo) {
if (src.getType$().equals$O($I$(7).INSERT)) {
this.type=$I$(7).REMOVE;
} else if (src.getType$().equals$O($I$(7).REMOVE)) {
this.type=$I$(7).INSERT;
} else {
this.type=src.getType$();
}} else {
this.type=src.getType$();
}}, 1);
Clazz_newMeth(C$, 'getSource$', function () {
return this.src;
});
Clazz_newMeth(C$, 'getOffset$', function () {
return this.src.getOffset$();
});
Clazz_newMeth(C$, 'getLength$', function () {
return this.src.getLength$();
});
Clazz_newMeth(C$, 'getDocument$', function () {
return this.src.getDocument$();
});
Clazz_newMeth(C$, 'getType$', function () {
return this.type;
});
Clazz_newMeth(C$, 'getChange$javax_swing_text_Element', function (elem) {
return this.src.getChange$javax_swing_text_Element(elem);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "ElementEdit", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.undo.AbstractUndoableEdit', [['javax.swing.event.DocumentEvent','javax.swing.event.DocumentEvent.ElementChange']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.e=null;
this.index=0;
this.removed=null;
this.added=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA', function (e, index, removed, added) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.e=e;
this.index=index;
this.removed=removed;
this.added=added;
}, 1);
Clazz_newMeth(C$, 'getElement$', function () {
return this.e;
});
Clazz_newMeth(C$, 'getIndex$', function () {
return this.index;
});
Clazz_newMeth(C$, 'getChildrenRemoved$', function () {
return this.removed;
});
Clazz_newMeth(C$, 'getChildrenAdded$', function () {
return this.added;
});
Clazz_newMeth(C$, 'redo$', function () {
C$.superclazz.prototype.redo$.apply(this, []);
var tmp=this.removed;
this.removed=this.added;
this.added=tmp;
(this.e).replace$I$I$javax_swing_text_ElementA(this.index, this.removed.length, this.added);
});
Clazz_newMeth(C$, 'undo$', function () {
C$.superclazz.prototype.undo$.apply(this, []);
(this.e).replace$I$I$javax_swing_text_ElementA(this.index, this.added.length, this.removed);
var tmp=this.removed;
this.removed=this.added;
this.added=tmp;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.AbstractDocument, "DefaultFilterBypass", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['javax.swing.text.DocumentFilter','.FilterBypass']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getDocument$', function () {
return this.this$0;
});
Clazz_newMeth(C$, 'remove$I$I', function (offset, length) {
this.this$0.handleRemove$I$I.apply(this.this$0, [offset, length]);
});
Clazz_newMeth(C$, 'insertString$I$S$javax_swing_text_AttributeSet', function (offset, string, attr) {
this.this$0.handleInsertString$I$S$javax_swing_text_AttributeSet.apply(this.this$0, [offset, string, attr]);
});
Clazz_newMeth(C$, 'replace$I$I$S$javax_swing_text_AttributeSet', function (offset, length, text, attrs) {
this.this$0.handleRemove$I$I.apply(this.this$0, [offset, length]);
this.this$0.handleInsertString$I$S$javax_swing_text_AttributeSet.apply(this.this$0, [offset, text, attrs]);
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "AttributeSet", function(){
});
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "FontAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ColorAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "CharacterAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ParagraphAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "FontAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ColorAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "CharacterAttribute", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ParagraphAttribute", function(){
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "Caret");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'javax.swing.SwingUtilities','javax.swing.text.Segment',['javax.swing.text.Position','.Bias'],'Boolean','javax.swing.event.EventListenerList',['javax.swing.text.DefaultCaret','.Handler'],'javax.swing.event.ChangeListener',['javax.swing.text.DefaultCaret','.SafeScroller'],'java.awt.Point','javax.swing.event.ChangeEvent',['javax.swing.text.DefaultCaret','.DefaultFilterBypass']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultCaret", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.Rectangle', ['javax.swing.text.Caret', 'java.awt.event.FocusListener', 'java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener']);
C$.biasRet=null;
C$.selectWord=null;
C$.selectLine=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.biasRet=Clazz_array($I$(3), [1]);
C$.selectWord=null;
C$.selectLine=null;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.working=false;
this.listenerList=null;
this.changeEvent=null;
this.component=null;
this.updatePolicy=0;
this.visible=false;
this.active=false;
this.dot=0;
this.mark=0;
this.selectionTag=null;
this.selectionVisible=false;
this.magicCaretPosition=null;
this.dotBias=null;
this.markBias=null;
this.dotLTR=false;
this.markLTR=false;
this.handler=null;
this.flagXPoints=null;
this.flagYPoints=null;
this.filterBypass=null;
this.ownsSelection=false;
this.forceCaretPositionChange=false;
this.shouldHandleRelease=false;
this.selectedWordEvent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.listenerList=Clazz_new_($I$(5));
this.changeEvent=null;
this.updatePolicy=0;
this.handler=Clazz_new_($I$(6), [this, null]);
this.flagXPoints=Clazz_array(Integer.TYPE, [3]);
this.flagYPoints=Clazz_array(Integer.TYPE, [3]);
this.selectedWordEvent=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'install$javax_swing_text_JTextComponent', function (c) {
this.component=c;
var doc=c.getDocument$();
this.dot=this.mark=0;
this.dotLTR=this.markLTR=true;
this.dotBias=this.markBias=$I$(3).Forward;
if (doc != null ) {
doc.addDocumentListener$javax_swing_event_DocumentListener(this.handler);
}c.addPropertyChangeListener$java_beans_PropertyChangeListener(this.handler);
c.addFocusListener$java_awt_event_FocusListener(this);
c.addMouseListener$java_awt_event_MouseListener(this);
c.addMouseMotionListener$java_awt_event_MouseMotionListener(this);
if (this.component.hasFocus$()) {
this.focusGained$java_awt_event_FocusEvent(null);
}});
Clazz_newMeth(C$, 'deinstall$javax_swing_text_JTextComponent', function (c) {
c.removeMouseListener$java_awt_event_MouseListener(this);
c.removeMouseMotionListener$java_awt_event_MouseMotionListener(this);
c.removeFocusListener$java_awt_event_FocusListener(this);
c.removePropertyChangeListener$java_beans_PropertyChangeListener(this.handler);
var doc=c.getDocument$();
if (doc != null ) {
doc.removeDocumentListener$javax_swing_event_DocumentListener(this.handler);
}{
this.component=null;
}});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']));
});
Clazz_newMeth(C$, 'setUpdatePolicy$I', function (policy) {
this.updatePolicy=policy;
});
Clazz_newMeth(C$, 'getUpdatePolicy$', function () {
return this.updatePolicy;
});
Clazz_newMeth(C$, 'getComponent$', function () {
return this.component;
});
Clazz_newMeth(C$, 'repaint$', function () {
});
Clazz_newMeth(C$, 'adjustVisibility$java_awt_Rectangle', function (nloc) {
if (this.component == null ) {
return;
}if ($I$(1).isEventDispatchThread$()) {
this.component.scrollRectToVisible$java_awt_Rectangle(nloc);
} else {
$I$(1).invokeLater$Runnable(Clazz_new_($I$(8).c$$java_awt_Rectangle, [this, null, nloc]));
}});
Clazz_newMeth(C$, 'getSelectionPainter$', function () {
return null;
});
Clazz_newMeth(C$, 'positionCaret$java_awt_event_MouseEvent', function (e) {
var pt=Clazz_new_($I$(9).c$$I$I,[e.getX$(), e.getY$()]);
(this.component.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this.component, pt, C$.biasRet);
if (pt.x >= 0) {
if (C$.biasRet[0] == null ) C$.biasRet[0]=$I$(3).Forward;
this.setDot$I$javax_swing_text_Position_Bias(pt.x, C$.biasRet[0]);
if (pt.y != pt.x) this.moveDot$I$javax_swing_text_Position_Bias(pt.y, C$.biasRet[0]);
}});
Clazz_newMeth(C$, 'getPosition$java_awt_event_MouseEvent$javax_swing_text_Position_BiasA', function (e, biasret) {
var pt=Clazz_new_($I$(9).c$$I$I,[e.getX$(), e.getY$()]);
var pos=(this.component.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this.component, pt, C$.biasRet);
System.out.println$S("def caret getPos " + e.getID$() + " " + pt );
return pos;
}, p$1);
Clazz_newMeth(C$, 'moveCaret$java_awt_event_MouseEvent', function (e) {
this.positionCaret$java_awt_event_MouseEvent(e);
});
Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) {
if (this.component.isEnabled$()) {
if (this.component.isEditable$()) {
this.setVisible$Z(true);
}this.setSelectionVisible$Z(true);
}});
Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) {
this.setVisible$Z(false);
this.setSelectionVisible$Z(this.ownsSelection || e.isTemporary$() );
});
Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) {
if ($I$(1).isLeftMouseButton$java_awt_event_MouseEvent(e)) {
if (e.isConsumed$()) {
this.shouldHandleRelease=true;
} else {
this.shouldHandleRelease=false;
this.adjustCaretAndFocus$java_awt_event_MouseEvent(e);
}}this.working=false;
});
Clazz_newMeth(C$, 'adjustCaretAndFocus$java_awt_event_MouseEvent', function (e) {
this.working=true;
p$1.adjustCaret$java_awt_event_MouseEvent.apply(this, [e]);
p$1.adjustFocus$Z.apply(this, [false]);
this.working=false;
});
Clazz_newMeth(C$, 'adjustCaret$java_awt_event_MouseEvent', function (e) {
if ((e.getModifiers$() & 1) != 0 && this.getDot$() != -1 ) {
this.moveCaret$java_awt_event_MouseEvent(e);
} else {
this.positionCaret$java_awt_event_MouseEvent(e);
}}, p$1);
Clazz_newMeth(C$, 'adjustFocus$Z', function (inWindow) {
if ((this.component != null ) && this.component.isEnabled$() && this.component.isRequestFocusEnabled$() ) {
if (inWindow) {
this.component.requestFocusInWindow$();
} else {
this.component.requestFocus$();
}}}, p$1);
Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) {
var isLeft=$I$(1).isLeftMouseButton$java_awt_event_MouseEvent(e);
if (!e.isConsumed$() && this.shouldHandleRelease && isLeft ) {
this.adjustCaretAndFocus$java_awt_event_MouseEvent(e);
}});
Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) {
if ((!e.isConsumed$()) && $I$(1).isLeftMouseButton$java_awt_event_MouseEvent(e) ) {
this.moveCaret$java_awt_event_MouseEvent(e);
}});
Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
if (this.isVisible$()) {
}});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(10).c$$O,[this]);
(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
Clazz_newMeth(C$, 'setSelectionVisible$Z', function (vis) {
});
Clazz_newMeth(C$, 'isSelectionVisible$', function () {
return this.selectionVisible;
});
Clazz_newMeth(C$, 'isActive$', function () {
return this.active;
});
Clazz_newMeth(C$, 'isVisible$', function () {
return this.visible;
});
Clazz_newMeth(C$, 'setVisible$Z', function (e) {
if (this.component != null ) {
this.active=e;
var mapper=this.component.getUI$();
if (this.visible != e ) {
this.visible=e;
}}});
Clazz_newMeth(C$, 'setBlinkRate$I', function (rate) {
});
Clazz_newMeth(C$, 'getBlinkRate$', function () {
return 0;
});
Clazz_newMeth(C$, 'getDot$', function () {
return this.dot;
});
Clazz_newMeth(C$, 'getMark$', function () {
return this.mark;
});
Clazz_newMeth(C$, 'setDot$I', function (dot) {
this.setDot$I$javax_swing_text_Position_Bias(dot, $I$(3).Forward);
});
Clazz_newMeth(C$, 'moveDot$I', function (dot) {
this.moveDot$I$javax_swing_text_Position_Bias(dot, $I$(3).Forward);
});
Clazz_newMeth(C$, 'moveDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) {
if (dotBias == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null bias"]);
}if (!this.component.isEnabled$()) {
this.setDot$I$javax_swing_text_Position_Bias(dot, dotBias);
return;
}if (dot != this.dot) {
var filter=this.component.getNavigationFilter$();
if (filter == null ) {
this.handleMoveDot$I$javax_swing_text_Position_Bias(dot, dotBias);
} else {
filter.moveDot$javax_swing_text_NavigationFilter_FilterBypass$I$javax_swing_text_Position_Bias(p$1.getFilterBypass.apply(this, []), dot, dotBias);
}}});
Clazz_newMeth(C$, 'handleMoveDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) {
this.changeCaretPosition$I$javax_swing_text_Position_Bias(dot, dotBias);
});
Clazz_newMeth(C$, 'setDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) {
if (dotBias == null ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null bias"]);
}var filter=this.component.getNavigationFilter$();
if (filter != null ) {
filter.setDot$javax_swing_text_NavigationFilter_FilterBypass$I$javax_swing_text_Position_Bias(p$1.getFilterBypass.apply(this, []), dot, dotBias);
} else {
this.handleSetDot$I$javax_swing_text_Position_Bias(dot, dotBias);
}});
Clazz_newMeth(C$, 'handleSetDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) {
var doc=this.component.getDocument$();
if (doc != null ) {
dot=Math.min(dot, doc.getLength$());
}dot=Math.max(dot, 0);
if (dot == 0) dotBias=$I$(3).Forward;
this.mark=dot;
if (this.dot != dot || this.dotBias !== dotBias || this.selectionTag != null || this.forceCaretPositionChange ) {
this.changeCaretPosition$I$javax_swing_text_Position_Bias(dot, dotBias);
}this.markBias=this.dotBias;
this.markLTR=this.dotLTR;
});
Clazz_newMeth(C$, 'getDotBias$', function () {
return this.dotBias;
});
Clazz_newMeth(C$, 'getMarkBias$', function () {
return this.markBias;
});
Clazz_newMeth(C$, 'isDotLeftToRight$', function () {
return this.dotLTR;
});
Clazz_newMeth(C$, 'isMarkLeftToRight$', function () {
return this.markLTR;
});
Clazz_newMeth(C$, 'isPositionLTR$I$javax_swing_text_Position_Bias', function (position, bias) {
var doc=this.component.getDocument$();
if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) {
if (bias === $I$(3).Backward && --position < 0 ) position=0;
return (doc).isLeftToRight$I$I(position, position);
}return true;
});
Clazz_newMeth(C$, 'guessBiasForOffset$I$javax_swing_text_Position_Bias$Z', function (offset, lastBias, lastLTR) {
if (lastLTR != this.isPositionLTR$I$javax_swing_text_Position_Bias(offset, lastBias) ) {
lastBias=$I$(3).Backward;
} else if (lastBias !== $I$(3).Backward && lastLTR != this.isPositionLTR$I$javax_swing_text_Position_Bias(offset, $I$(3).Backward) ) {
lastBias=$I$(3).Backward;
}if (lastBias === $I$(3).Backward && offset > 0 ) {
try {
var s=Clazz_new_($I$(2));
this.component.getDocument$().getText$I$I$javax_swing_text_Segment(offset - 1, 1, s);
if (s.count > 0 && s.array[s.offset] == "\n" ) {
lastBias=$I$(3).Forward;
}} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
} else {
throw ble;
}
}
}return lastBias;
});
Clazz_newMeth(C$, 'changeCaretPosition$I$javax_swing_text_Position_Bias', function (dot, dotBias) {
this.dot=dot;
this.dotBias=dotBias;
this.dotLTR=this.isPositionLTR$I$javax_swing_text_Position_Bias(dot, dotBias);
this.fireStateChanged$();
if (false && !this.working ) p$1.updateSystemSelection.apply(this, []);
this.setMagicCaretPosition$java_awt_Point(null);
});
Clazz_newMeth(C$, 'repaintNewCaret$', function () {
});
Clazz_newMeth(C$, 'updateSystemSelection', function () {
(this.component.ui).updateJSCursorFromCaret$();
}, p$1);
Clazz_newMeth(C$, 'ensureValidPosition$', function () {
var length=this.component.getDocument$().getLength$();
if (this.dot > length || this.mark > length ) {
this.handleSetDot$I$javax_swing_text_Position_Bias(length, $I$(3).Forward);
}});
Clazz_newMeth(C$, 'setMagicCaretPosition$java_awt_Point', function (p) {
this.magicCaretPosition=p;
});
Clazz_newMeth(C$, 'getMagicCaretPosition$', function () {
return this.magicCaretPosition;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
return (this === obj );
});
Clazz_newMeth(C$, 'toString', function () {
var s="Dot=(" + this.dot + ", " + this.dotBias + ")" ;
s += " Mark=(" + this.mark + ", " + this.markBias + ")" ;
return s;
});
Clazz_newMeth(C$, 'getFilterBypass', function () {
if (this.filterBypass == null ) {
this.filterBypass=Clazz_new_($I$(11), [this, null]);
}return this.filterBypass;
}, p$1);
Clazz_newMeth(C$, '_contains$I$I$I$I', function (X, Y, W, H) {
var w=this.width;
var h=this.height;
if ((w | h | W | H ) < 0) {
return false;
}var x=this.x;
var y=this.y;
if (X < x || Y < y ) {
return false;
}if (W > 0) {
w+=x;
W+=X;
if (W <= X) {
if (w >= x || W > w ) return false;
} else {
if (w >= x && W > w ) return false;
}} else if ((x + w) < X) {
return false;
}if (H > 0) {
h+=y;
H+=Y;
if (H <= Y) {
if (h >= y || H > h ) return false;
} else {
if (h >= y && H > h ) return false;
}} else if ((y + h) < Y) {
return false;
}return true;
}, p$1);
Clazz_newMeth(C$, 'getCaretWidth$I', function (height) {
return 1;
});
;
(function(){var C$=Clazz_newClass(P$.DefaultCaret, "SafeScroller", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'Runnable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.r=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Rectangle', function (r) {
C$.$init$.apply(this);
this.r=r;
}, 1);
Clazz_newMeth(C$, 'run$', function () {
if (this.this$0.component != null ) {
this.this$0.component.scrollRectToVisible$java_awt_Rectangle(this.r);
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultCaret, "Handler", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['java.beans.PropertyChangeListener', 'javax.swing.event.DocumentListener', 'java.awt.event.ActionListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
if (this.this$0.width == 0 || this.this$0.height == 0 ) {
if (this.this$0.component != null ) {
}}this.this$0.visible=!this.this$0.visible;
});
Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent', function (e) {
if (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 1 || (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 0 && !$I$(1).isEventDispatchThread$() ) ) {
if ((e.getOffset$() <= this.this$0.dot || e.getOffset$() <= this.this$0.mark ) && this.this$0.selectionTag != null ) {
try {
this.this$0.component.getHighlighter$().changeHighlight$O$I$I(this.this$0.selectionTag, Math.min(this.this$0.dot, this.this$0.mark), Math.max(this.this$0.dot, this.this$0.mark));
} catch (e1) {
if (Clazz_exceptionOf(e1,"javax.swing.text.BadLocationException")){
e1.printStackTrace$();
} else {
throw e1;
}
}
}return;
}var adjust=0;
var offset=e.getOffset$();
var length=e.getLength$();
var newDot=this.this$0.dot;
var changed=($s$[0] = 0, $s$[0]);
if (Clazz_instanceOf(e, "javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")) {
this.this$0.setDot$I.apply(this.this$0, [offset + length]);
return;
}if (newDot >= offset) {
newDot+=length;
changed=($s$[0] = changed|(1), $s$[0]);
}var newMark=this.this$0.mark;
if (newMark >= offset) {
newMark+=length;
changed=($s$[0] = changed|(2), $s$[0]);
}if (changed != 0) {
var dotBias=this.this$0.dotBias;
if (this.this$0.dot == offset) {
var doc=this.this$0.component.getDocument$();
var isNewline;
try {
var s=Clazz_new_($I$(2));
doc.getText$I$I$javax_swing_text_Segment(newDot - 1, 1, s);
isNewline=(s.count > 0 && s.array[s.offset] == "\n" );
} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
isNewline=false;
} else {
throw ble;
}
}
if (isNewline) {
dotBias=$I$(3).Forward;
} else {
dotBias=$I$(3).Backward;
}}if (newMark == newDot) {
this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, dotBias]);
this.this$0.ensureValidPosition$.apply(this.this$0, []);
} else {
this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newMark, this.this$0.markBias]);
if (this.this$0.getDot$.apply(this.this$0, []) == newMark) {
this.this$0.moveDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, dotBias]);
}this.this$0.ensureValidPosition$.apply(this.this$0, []);
}}});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent', function (e) {
if (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 1 || (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 0 && !$I$(1).isEventDispatchThread$() ) ) {
var length=this.this$0.component.getDocument$().getLength$();
this.this$0.dot=Math.min(this.this$0.dot, length);
this.this$0.mark=Math.min(this.this$0.mark, length);
if ((e.getOffset$() < this.this$0.dot || e.getOffset$() < this.this$0.mark ) && this.this$0.selectionTag != null ) {
try {
this.this$0.component.getHighlighter$().changeHighlight$O$I$I(this.this$0.selectionTag, Math.min(this.this$0.dot, this.this$0.mark), Math.max(this.this$0.dot, this.this$0.mark));
} catch (e1) {
if (Clazz_exceptionOf(e1,"javax.swing.text.BadLocationException")){
e1.printStackTrace$();
} else {
throw e1;
}
}
}return;
}var offs0=e.getOffset$();
var offs1=offs0 + e.getLength$();
var adjust=0;
var newDot=this.this$0.dot;
var adjustDotBias=false;
var newMark=this.this$0.mark;
var adjustMarkBias=false;
if (Clazz_instanceOf(e, "javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")) {
this.this$0.setDot$I.apply(this.this$0, [offs0]);
return;
}if (newDot >= offs1) {
newDot-=(offs1 - offs0);
if (newDot == offs1) {
adjustDotBias=true;
}} else if (newDot >= offs0) {
newDot=offs0;
adjustDotBias=true;
}if (newMark >= offs1) {
newMark-=(offs1 - offs0);
if (newMark == offs1) {
adjustMarkBias=true;
}} else if (newMark >= offs0) {
newMark=offs0;
adjustMarkBias=true;
}if (newMark == newDot) {
this.this$0.forceCaretPositionChange=true;
try {
this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0, [newDot, this.this$0.dotBias, this.this$0.dotLTR])]);
} finally {
this.this$0.forceCaretPositionChange=false;
}
this.this$0.ensureValidPosition$.apply(this.this$0, []);
} else {
var dotBias=this.this$0.dotBias;
var markBias=this.this$0.markBias;
if (adjustDotBias) {
dotBias=this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0, [newDot, dotBias, this.this$0.dotLTR]);
}if (adjustMarkBias) {
markBias=this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0, [this.this$0.mark, markBias, this.this$0.markLTR]);
}this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newMark, markBias]);
if (this.this$0.getDot$.apply(this.this$0, []) == newMark) {
this.this$0.moveDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, dotBias]);
}this.this$0.ensureValidPosition$.apply(this.this$0, []);
}});
Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent', function (e) {
if (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 1 || (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 0 && !$I$(1).isEventDispatchThread$() ) ) {
return;
}if (Clazz_instanceOf(e, "javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")) {
this.this$0.setDot$I.apply(this.this$0, [e.getOffset$() + e.getLength$()]);
}});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (evt) {
var oldValue=evt.getOldValue$();
var newValue=evt.getNewValue$();
if ((Clazz_instanceOf(oldValue, "javax.swing.text.Document")) || (Clazz_instanceOf(newValue, "javax.swing.text.Document")) ) {
this.this$0.setDot$I.apply(this.this$0, [0]);
if (oldValue != null ) {
(oldValue).removeDocumentListener$javax_swing_event_DocumentListener(this);
}if (newValue != null ) {
(newValue).addDocumentListener$javax_swing_event_DocumentListener(this);
}} else if ("enabled".equals$O(evt.getPropertyName$())) {
var enabled=evt.getNewValue$();
if (this.this$0.component.isFocusOwner$()) {
if (enabled === $I$(4).TRUE ) {
if (this.this$0.component.isEditable$()) {
this.this$0.setVisible$Z.apply(this.this$0, [true]);
}this.this$0.setSelectionVisible$Z.apply(this.this$0, [true]);
} else {
this.this$0.setVisible$Z.apply(this.this$0, [false]);
this.this$0.setSelectionVisible$Z.apply(this.this$0, [false]);
}}}});
var $s$ = new Int16Array(1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultCaret, "DefaultFilterBypass", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, ['javax.swing.text.NavigationFilter','.FilterBypass']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getCaret$', function () {
return this.this$0;
});
Clazz_newMeth(C$, 'setDot$I$javax_swing_text_Position_Bias', function (dot, bias) {
this.this$0.handleSetDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [dot, bias]);
});
Clazz_newMeth(C$, 'moveDot$I$javax_swing_text_Position_Bias', function (dot, bias) {
this.this$0.handleMoveDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [dot, bias]);
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'javax.swing.UIManager','java.awt.Rectangle','java.awt.Point',['javax.swing.text.Position','.Bias'],'javax.swing.text.Utilities',['javax.swing.text.DefaultEditorKit','.BeginWordAction'],['javax.swing.text.DefaultEditorKit','.EndWordAction'],['javax.swing.text.DefaultEditorKit','.BeginLineAction'],['javax.swing.text.DefaultEditorKit','.EndLineAction'],['javax.swing.text.DefaultEditorKit','.BeginParagraphAction'],['javax.swing.text.DefaultEditorKit','.EndParagraphAction'],'java.awt.ComponentOrientation','javax.swing.Action',['javax.swing.text.DefaultEditorKit','.InsertContentAction'],['javax.swing.text.DefaultEditorKit','.DeletePrevCharAction'],['javax.swing.text.DefaultEditorKit','.DeleteNextCharAction'],['javax.swing.text.DefaultEditorKit','.ReadOnlyAction'],['javax.swing.text.DefaultEditorKit','.WritableAction'],['javax.swing.text.DefaultEditorKit','.CutAction'],['javax.swing.text.DefaultEditorKit','.CopyAction'],['javax.swing.text.DefaultEditorKit','.PasteAction'],['javax.swing.text.DefaultEditorKit','.VerticalPageAction'],['javax.swing.text.DefaultEditorKit','.PageAction'],['javax.swing.text.DefaultEditorKit','.InsertBreakAction'],['javax.swing.text.DefaultEditorKit','.BeepAction'],['javax.swing.text.DefaultEditorKit','.NextVisualPositionAction'],['javax.swing.text.DefaultEditorKit','.PreviousWordAction'],['javax.swing.text.DefaultEditorKit','.NextWordAction'],['javax.swing.text.DefaultEditorKit','.BeginAction'],['javax.swing.text.DefaultEditorKit','.EndAction'],['javax.swing.text.DefaultEditorKit','.DefaultKeyTypedAction'],['javax.swing.text.DefaultEditorKit','.InsertTabAction'],['javax.swing.text.DefaultEditorKit','.SelectWordAction'],['javax.swing.text.DefaultEditorKit','.SelectLineAction'],['javax.swing.text.DefaultEditorKit','.SelectParagraphAction'],['javax.swing.text.DefaultEditorKit','.SelectAllAction'],['javax.swing.text.DefaultEditorKit','.UnselectAction'],['javax.swing.text.DefaultEditorKit','.ToggleComponentOrientationAction'],'javax.swing.text.PlainDocument','java.io.InputStreamReader','swingjs.api.Interface','java.io.OutputStream','javax.swing.text.Segment']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultEditorKit", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.text.EditorKit');
C$.defaultActions=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.defaultActions=Clazz_array($I$(13), -1, [Clazz_new_($I$(14)), Clazz_new_($I$(15)), Clazz_new_($I$(16)), Clazz_new_($I$(17)), Clazz_new_($I$(18)), Clazz_new_($I$(19)), Clazz_new_($I$(20)), Clazz_new_($I$(21)), Clazz_new_($I$(22).c$$S$I$Z,["page-up", -1, false]), Clazz_new_($I$(22).c$$S$I$Z,["page-down", 1, false]), Clazz_new_($I$(22).c$$S$I$Z,["selection-page-up", -1, true]), Clazz_new_($I$(22).c$$S$I$Z,["selection-page-down", 1, true]), Clazz_new_($I$(23).c$$S$Z$Z,["selection-page-left", true, true]), Clazz_new_($I$(23).c$$S$Z$Z,["selection-page-right", false, true]), Clazz_new_($I$(24)), Clazz_new_($I$(25)), Clazz_new_($I$(26).c$$S$Z$I,["caret-forward", false, 3]), Clazz_new_($I$(26).c$$S$Z$I,["caret-backward", false, 7]), Clazz_new_($I$(26).c$$S$Z$I,["selection-forward", true, 3]), Clazz_new_($I$(26).c$$S$Z$I,["selection-backward", true, 7]), Clazz_new_($I$(26).c$$S$Z$I,["caret-up", false, 1]), Clazz_new_($I$(26).c$$S$Z$I,["caret-down", false, 5]), Clazz_new_($I$(26).c$$S$Z$I,["selection-up", true, 1]), Clazz_new_($I$(26).c$$S$Z$I,["selection-down", true, 5]), Clazz_new_($I$(6).c$$S$Z,["caret-begin-word", false]), Clazz_new_($I$(7).c$$S$Z,["caret-end-word", false]), Clazz_new_($I$(6).c$$S$Z,["selection-begin-word", true]), Clazz_new_($I$(7).c$$S$Z,["selection-end-word", true]), Clazz_new_($I$(27).c$$S$Z,["caret-previous-word", false]), Clazz_new_($I$(28).c$$S$Z,["caret-next-word", false]), Clazz_new_($I$(27).c$$S$Z,["selection-previous-word", true]), Clazz_new_($I$(28).c$$S$Z,["selection-next-word", true]), Clazz_new_($I$(8).c$$S$Z,["caret-begin-line", false]), Clazz_new_($I$(9).c$$S$Z,["caret-end-line", false]), Clazz_new_($I$(8).c$$S$Z,["selection-begin-line", true]), Clazz_new_($I$(9).c$$S$Z,["selection-end-line", true]), Clazz_new_($I$(10).c$$S$Z,["caret-begin-paragraph", false]), Clazz_new_($I$(11).c$$S$Z,["caret-end-paragraph", false]), Clazz_new_($I$(10).c$$S$Z,["selection-begin-paragraph", true]), Clazz_new_($I$(11).c$$S$Z,["selection-end-paragraph", true]), Clazz_new_($I$(29).c$$S$Z,["caret-begin", false]), Clazz_new_($I$(30).c$$S$Z,["caret-end", false]), Clazz_new_($I$(29).c$$S$Z,["selection-begin", true]), Clazz_new_($I$(30).c$$S$Z,["selection-end", true]), Clazz_new_($I$(31)), Clazz_new_($I$(32)), Clazz_new_($I$(33)), Clazz_new_($I$(34)), Clazz_new_($I$(35)), Clazz_new_($I$(36)), Clazz_new_($I$(37)), Clazz_new_($I$(38))]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'getContentType$', function () {
return "text/plain";
});
Clazz_newMeth(C$, 'getViewFactory$', function () {
return null;
});
Clazz_newMeth(C$, 'getActions$', function () {
return C$.defaultActions;
});
Clazz_newMeth(C$, 'createCaret$', function () {
return null;
});
Clazz_newMeth(C$, 'createDefaultDocument$', function () {
return Clazz_new_($I$(39));
});
Clazz_newMeth(C$, 'read$java_io_InputStream$javax_swing_text_Document$I', function ($in, doc, pos) {
this.read$java_io_Reader$javax_swing_text_Document$I(Clazz_new_($I$(40).c$$java_io_InputStream,[$in]), doc, pos);
});
Clazz_newMeth(C$, 'write$java_io_OutputStream$javax_swing_text_Document$I$I', function (out, doc, pos, len) {
var osw=$I$(41).getInstanceWithParams$S$ClassA$OA("java.io.OutputStreamWriter", Clazz_array(Class, -1, [Clazz_getClass($I$(42))]), Clazz_array(java.lang.Object, -1, [out]));
this.write$java_io_Writer$javax_swing_text_Document$I$I(osw, doc, pos, len);
osw.flush$();
});
Clazz_newMeth(C$, 'getInputAttributes$', function () {
return null;
});
Clazz_newMeth(C$, 'read$java_io_Reader$javax_swing_text_Document$I', function ($in, doc, pos) {
var buff=Clazz_array(Character.TYPE, [4096]);
var nch;
var lastWasCR=false;
var isCRLF=false;
var isCR=false;
var last;
var wasEmpty=(doc.getLength$() == 0);
var attr=this.getInputAttributes$();
while ((nch=$in.read$CA$I$I(buff, 0, buff.length)) != -1){
last=0;
for (var counter=0; counter < nch; counter++) {
switch ((buff[counter]).$c()) {
case 13:
if (lastWasCR) {
isCR=true;
if (counter == 0) {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, "\n", attr);
pos++;
} else {
buff[counter - 1]="\n";
}} else {
lastWasCR=true;
}break;
case 10:
if (lastWasCR) {
if (counter > (last + 1)) {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, String.instantialize(buff, last, counter - last - 1 ), attr);
pos+=(counter - last - 1 );
}lastWasCR=false;
last=counter;
isCRLF=true;
}break;
default:
if (lastWasCR) {
isCR=true;
if (counter == 0) {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, "\n", attr);
pos++;
} else {
buff[counter - 1]="\n";
}lastWasCR=false;
}break;
}
}
if (last < nch) {
if (lastWasCR) {
if (last < (nch - 1)) {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, String.instantialize(buff, last, nch - last - 1 ), attr);
pos+=(nch - last - 1 );
}} else {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, String.instantialize(buff, last, nch - last), attr);
pos+=(nch - last);
}}}
if (lastWasCR) {
doc.insertString$I$S$javax_swing_text_AttributeSet(pos, "\n", attr);
isCR=true;
}if (wasEmpty) {
if (isCRLF) {
doc.putProperty$O$O("__EndOfLine__", "\r\n");
} else if (isCR) {
doc.putProperty$O$O("__EndOfLine__", "\r");
} else {
doc.putProperty$O$O("__EndOfLine__", "\n");
}}});
Clazz_newMeth(C$, 'write$java_io_Writer$javax_swing_text_Document$I$I', function (out, doc, pos, len) {
if ((pos < 0) || ((pos + len) > doc.getLength$()) ) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["DefaultEditorKit.write", pos]);
}var data=Clazz_new_($I$(43));
var nleft=len;
var offs=pos;
var endOfLineProperty=doc.getProperty$O("__EndOfLine__");
if (endOfLineProperty == null ) {
try {
endOfLineProperty=System.getProperty$S("line.separator");
} catch (se) {
if (Clazz_exceptionOf(se,"SecurityException")){
} else {
throw se;
}
}
}var endOfLine;
if (Clazz_instanceOf(endOfLineProperty, "java.lang.String")) {
endOfLine=endOfLineProperty;
} else {
endOfLine=null;
}if (endOfLineProperty != null && !endOfLine.equals$O("\n") ) {
while (nleft > 0){
var n=Math.min(nleft, 4096);
doc.getText$I$I$javax_swing_text_Segment(offs, n, data);
var last=data.offset;
var array=data.array;
var maxCounter=last + data.count;
for (var counter=last; counter < maxCounter; counter++) {
if (array[counter] == "\n") {
if (counter > last) {
out.write$CA$I$I(array, last, counter - last);
}out.write$S(endOfLine);
last=counter + 1;
}}
if (maxCounter > last) {
out.write$CA$I$I(array, last, maxCounter - last);
}offs+=n;
nleft-=n;
}
} else {
while (nleft > 0){
var n=Math.min(nleft, 4096);
doc.getText$I$I$javax_swing_text_Segment(offs, n, data);
out.write$CA$I$I(data.array, data.offset, data.count);
offs+=n;
nleft-=n;
}
}out.flush$();
});
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "DefaultKeyTypedAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["default-typed"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if ((target != null ) && (e != null ) ) {
if ((!target.isEditable$()) || (!target.isEnabled$()) ) {
return;
}var content=e.getActionCommand$();
var mod=e.getModifiers$();
if ((content != null ) && (content.length$() > 0) && ((mod & 8) == (mod & 2)) ) {
var c=content.charAt$I(0);
if ((c.$c() >= 32 ) && (c.$c() != 127 ) ) {
target.replaceSelection$S(content);
}}}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "InsertContentAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["insert-content"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if ((target != null ) && (e != null ) ) {
if ((!target.isEditable$()) || (!target.isEnabled$()) ) {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
return;
}var content=e.getActionCommand$();
if (content != null ) {
target.replaceSelection$S(content);
} else {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
}}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "InsertBreakAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["insert-break"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
if ((!target.isEditable$()) || (!target.isEnabled$()) ) {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
return;
}target.replaceSelection$S("\n");
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "InsertTabAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["insert-tab"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
if ((!target.isEditable$()) || (!target.isEnabled$()) ) {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
return;
}target.replaceSelection$S("\t");
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "DeletePrevCharAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["delete-previous"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
var beep=true;
if ((target != null ) && (target.isEditable$()) ) {
try {
var doc=target.getDocument$();
var caret=target.getCaret$();
var dot=caret.getDot$();
var mark=caret.getMark$();
if (dot != mark) {
doc.remove$I$I(Math.min(dot, mark), Math.abs(dot - mark));
beep=false;
} else if (dot > 0) {
var delChars=1;
if (dot > 1) {
var dotChars=doc.getText$I$I(dot - 2, 2);
var c0=dotChars.charAt$I(0);
var c1=dotChars.charAt$I(1);
if (c0 >= "\ud800" && c0 <= "\udbff" && c1 >= "\udc00" && c1 <= "\udfff" ) {
delChars=2;
}}doc.remove$I$I(dot - delChars, delChars);
beep=false;
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
} else {
throw bl;
}
}
}if (beep) {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "DeleteNextCharAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["delete-next"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
var beep=true;
if ((target != null ) && (target.isEditable$()) ) {
try {
var doc=target.getDocument$();
var caret=target.getCaret$();
var dot=caret.getDot$();
var mark=caret.getMark$();
if (dot != mark) {
doc.remove$I$I(Math.min(dot, mark), Math.abs(dot - mark));
beep=false;
} else if (dot < doc.getLength$()) {
var delChars=1;
if (dot < doc.getLength$() - 1) {
var dotChars=doc.getText$I$I(dot, 2);
var c0=dotChars.charAt$I(0);
var c1=dotChars.charAt$I(1);
if (c0 >= "\ud800" && c0 <= "\udbff" && c1 >= "\udc00" && c1 <= "\udfff" ) {
delChars=2;
}}doc.remove$I$I(dot, delChars);
beep=false;
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
} else {
throw bl;
}
}
}if (beep) {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "ReadOnlyAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["set-read-only"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
target.setEditable$Z(false);
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "WritableAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["set-writable"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
target.setEditable$Z(true);
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "CutAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["cut-to-clipboard"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
target.cut$();
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "CopyAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["copy-to-clipboard"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
target.copy$();
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "PasteAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["paste-from-clipboard"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
target.paste$();
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeepAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["beep"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "VerticalPageAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
this.direction=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$I$Z', function (nm, direction, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
this.direction=direction;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var visible=target.getVisibleRect$();
var newVis=Clazz_new_($I$(2).c$$java_awt_Rectangle,[visible]);
var selectedIndex=target.getCaretPosition$();
var scrollAmount=this.direction * target.getScrollableBlockIncrement$java_awt_Rectangle$I$I(visible, 1, this.direction);
var initialY=visible.y;
var caret=target.getCaret$();
var magicPosition=caret.getMagicCaretPosition$();
if (selectedIndex != -1) {
try {
var dotBounds=target.modelToView$I(selectedIndex);
var x=(magicPosition != null ) ? magicPosition.x : dotBounds.x;
var h=dotBounds.height;
if (h > 0) {
scrollAmount=(scrollAmount/h|0) * h;
}newVis.y=p$1.constrainY$javax_swing_text_JTextComponent$I$I.apply(this, [target, initialY + scrollAmount, visible.height]);
var newIndex;
if (visible.contains$I$I(dotBounds.x, dotBounds.y)) {
newIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[x, p$1.constrainY$javax_swing_text_JTextComponent$I$I.apply(this, [target, dotBounds.y + scrollAmount, 0])]));
} else {
if (this.direction == -1) {
newIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[x, newVis.y]));
} else {
newIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[x, newVis.y + visible.height]));
}}newIndex=p$1.constrainOffset$javax_swing_text_JTextComponent$I.apply(this, [target, newIndex]);
if (newIndex != selectedIndex) {
p$1.adjustScrollIfNecessary$javax_swing_text_JTextComponent$java_awt_Rectangle$I$I.apply(this, [target, newVis, initialY, newIndex]);
if (this.select) {
target.moveCaretPosition$I(newIndex);
} else {
target.setCaretPosition$I(newIndex);
}}} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
} else {
throw ble;
}
}
} else {
newVis.y=p$1.constrainY$javax_swing_text_JTextComponent$I$I.apply(this, [target, initialY + scrollAmount, visible.height]);
}if (magicPosition != null ) {
caret.setMagicCaretPosition$java_awt_Point(magicPosition);
}target.scrollRectToVisible$java_awt_Rectangle(newVis);
}});
Clazz_newMeth(C$, 'constrainY$javax_swing_text_JTextComponent$I$I', function (target, y, vis) {
if (y < 0) {
y=0;
} else if (y + vis > target.getHeight$()) {
y=Math.max(0, target.getHeight$() - vis);
}return y;
}, p$1);
Clazz_newMeth(C$, 'constrainOffset$javax_swing_text_JTextComponent$I', function (text, offset) {
var doc=text.getDocument$();
if ((offset != 0) && (offset > doc.getLength$()) ) {
offset=doc.getLength$();
}if (offset < 0) {
offset=0;
}return offset;
}, p$1);
Clazz_newMeth(C$, 'adjustScrollIfNecessary$javax_swing_text_JTextComponent$java_awt_Rectangle$I$I', function (text, visible, initialY, index) {
try {
var dotBounds=text.modelToView$I(index);
if (dotBounds.y < visible.y || (dotBounds.y > (visible.y + visible.height)) || (dotBounds.y + dotBounds.height) > (visible.y + visible.height) ) {
var y;
if (dotBounds.y < visible.y) {
y=dotBounds.y;
} else {
y=dotBounds.y + dotBounds.height - visible.height;
}if ((this.direction == -1 && y < initialY ) || (this.direction == 1 && y > initialY ) ) {
visible.y=y;
}}} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
} else {
throw ble;
}
}
}, p$1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "PageAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
this.left=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z$Z', function (nm, left, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
this.left=left;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var selectedIndex;
var visible=Clazz_new_($I$(2));
target.computeVisibleRect$java_awt_Rectangle(visible);
if (this.left) {
visible.x=Math.max(0, visible.x - visible.width);
} else {
visible.x+=visible.width;
}selectedIndex=target.getCaretPosition$();
if (selectedIndex != -1) {
if (this.left) {
selectedIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[visible.x, visible.y]));
} else {
selectedIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[visible.x + visible.width - 1, visible.y + visible.height - 1]));
}var doc=target.getDocument$();
if ((selectedIndex != 0) && (selectedIndex > (doc.getLength$() - 1)) ) {
selectedIndex=doc.getLength$() - 1;
} else if (selectedIndex < 0) {
selectedIndex=0;
}if (this.select) target.moveCaretPosition$I(selectedIndex);
else target.setCaretPosition$I(selectedIndex);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "NextVisualPositionAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
this.direction=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z$I', function (nm, select, direction) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
this.direction=direction;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var caret=target.getCaret$();
var bidiCaret=(Clazz_instanceOf(caret, "javax.swing.text.DefaultCaret")) ? caret : null;
var dot=caret.getDot$();
var bias=Clazz_array($I$(4), [1]);
var magicPosition=caret.getMagicCaretPosition$();
try {
if (magicPosition == null && (this.direction == 1 || this.direction == 5 ) ) {
var r=(bidiCaret != null ) ? (target.getUI$()).modelToView$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias(target, dot, bidiCaret.getDotBias$()) : target.modelToView$I(dot);
magicPosition=Clazz_new_($I$(3).c$$I$I,[r.x, r.y]);
}var filter=target.getNavigationFilter$();
if (filter != null ) {
dot=filter.getNextVisualPositionFrom$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_BiasA(target, dot, (bidiCaret != null ) ? bidiCaret.getDotBias$() : $I$(4).Forward, this.direction, bias);
} else {
dot=(target.getUI$()).getNextVisualPositionFrom$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_BiasA(target, dot, (bidiCaret != null ) ? bidiCaret.getDotBias$() : $I$(4).Forward, this.direction, bias);
}if (bias[0] == null ) {
bias[0]=$I$(4).Forward;
}if (bidiCaret != null ) {
if (this.select) {
bidiCaret.moveDot$I$javax_swing_text_Position_Bias(dot, bias[0]);
} else {
bidiCaret.setDot$I$javax_swing_text_Position_Bias(dot, bias[0]);
}} else {
if (this.select) {
caret.moveDot$I(dot);
} else {
caret.setDot$I(dot);
}}if (magicPosition != null && (this.direction == 1 || this.direction == 5 ) ) {
target.getCaret$().setMagicCaretPosition$java_awt_Point(magicPosition);
}} catch (ex) {
if (Clazz_exceptionOf(ex,"javax.swing.text.BadLocationException")){
} else {
throw ex;
}
}
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginWordAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
try {
var offs=target.getCaretPosition$();
var begOffs=$I$(5).getWordStart$javax_swing_text_JTextComponent$I(target, offs);
if (this.select) {
target.moveCaretPosition$I(begOffs);
} else {
target.setCaretPosition$I(begOffs);
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
} else {
throw bl;
}
}
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndWordAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
try {
var offs=target.getCaretPosition$();
var endOffs=$I$(5).getWordEnd$javax_swing_text_JTextComponent$I(target, offs);
if (this.select) {
target.moveCaretPosition$I(endOffs);
} else {
target.setCaretPosition$I(endOffs);
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
} else {
throw bl;
}
}
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "PreviousWordAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var offs=target.getCaretPosition$();
var failed=false;
try {
var curPara=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs);
offs=$I$(5).getPreviousWord$javax_swing_text_JTextComponent$I(target, offs);
if (offs < curPara.getStartOffset$()) {
offs=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs).getEndOffset$() - 1;
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
if (offs != 0) {
offs=0;
} else {
failed=true;
}} else {
throw bl;
}
}
if (!failed) {
if (this.select) {
target.moveCaretPosition$I(offs);
} else {
target.setCaretPosition$I(offs);
}} else {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "NextWordAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var offs=target.getCaretPosition$();
var failed=false;
var oldOffs=offs;
var curPara=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs);
try {
offs=$I$(5).getNextWord$javax_swing_text_JTextComponent$I(target, offs);
if (offs >= curPara.getEndOffset$() && oldOffs != curPara.getEndOffset$() - 1 ) {
offs=curPara.getEndOffset$() - 1;
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
var end=target.getDocument$().getLength$();
if (offs != end) {
if (oldOffs != curPara.getEndOffset$() - 1) {
offs=curPara.getEndOffset$() - 1;
} else {
offs=end;
}} else {
failed=true;
}} else {
throw bl;
}
}
if (!failed) {
if (this.select) {
target.moveCaretPosition$I(offs);
} else {
target.setCaretPosition$I(offs);
}} else {
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginLineAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
try {
var offs=target.getCaretPosition$();
var begOffs=$I$(5).getRowStart$javax_swing_text_JTextComponent$I(target, offs);
if (this.select) {
target.moveCaretPosition$I(begOffs);
} else {
target.setCaretPosition$I(begOffs);
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
} else {
throw bl;
}
}
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndLineAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
try {
var offs=target.getCaretPosition$();
var endOffs=$I$(5).getRowEnd$javax_swing_text_JTextComponent$I(target, offs);
if (this.select) {
target.moveCaretPosition$I(endOffs);
} else {
target.setCaretPosition$I(endOffs);
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target);
} else {
throw bl;
}
}
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginParagraphAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var offs=target.getCaretPosition$();
var elem=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs);
offs=elem.getStartOffset$();
if (this.select) {
target.moveCaretPosition$I(offs);
} else {
target.setCaretPosition$I(offs);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndParagraphAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var offs=target.getCaretPosition$();
var elem=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs);
offs=Math.min(target.getDocument$().getLength$(), elem.getEndOffset$());
if (this.select) {
target.moveCaretPosition$I(offs);
} else {
target.setCaretPosition$I(offs);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
if (this.select) {
target.moveCaretPosition$I(0);
} else {
target.setCaretPosition$I(0);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.select=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) {
C$.superclazz.c$$S.apply(this, [nm]);
C$.$init$.apply(this);
this.select=select;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var doc=target.getDocument$();
var dot=doc.getLength$();
if (this.select) {
target.moveCaretPosition$I(dot);
} else {
target.setCaretPosition$I(dot);
}}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectWordAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.start=null;
this.end=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["select-word"]);
C$.$init$.apply(this);
this.start=Clazz_new_($I$(6).c$$S$Z,["pigdog", false]);
this.end=Clazz_new_($I$(7).c$$S$Z,["pigdog", true]);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
this.start.actionPerformed$(e);
this.end.actionPerformed$(e);
});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectLineAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.start=null;
this.end=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["select-line"]);
C$.$init$.apply(this);
this.start=Clazz_new_($I$(8).c$$S$Z,["pigdog", false]);
this.end=Clazz_new_($I$(9).c$$S$Z,["pigdog", true]);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
this.start.actionPerformed$(e);
this.end.actionPerformed$(e);
});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectParagraphAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.start=null;
this.end=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["select-paragraph"]);
C$.$init$.apply(this);
this.start=Clazz_new_($I$(10).c$$S$Z,["pigdog", false]);
this.end=Clazz_new_($I$(11).c$$S$Z,["pigdog", true]);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
this.start.actionPerformed$(e);
this.end.actionPerformed$(e);
});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectAllAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["select-all"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var doc=target.getDocument$();
target.setCaretPosition$I(0);
target.moveCaretPosition$I(doc.getLength$());
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "UnselectAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["unselect"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
target.setCaretPosition$I(target.getCaretPosition$());
}});
})()
;
(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "ToggleComponentOrientationAction", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$S.apply(this, ["toggle-componentOrientation"]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var target=this.getTextComponent$java_awt_event_ActionEvent(e);
if (target != null ) {
var last=target.getComponentOrientation$();
var next;
if (last === $I$(12).RIGHT_TO_LEFT ) next=$I$(12).LEFT_TO_RIGHT;
else next=$I$(12).RIGHT_TO_LEFT;
target.setComponentOrientation$java_awt_ComponentOrientation(next);
target.repaint$();
}});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "Document");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newClass(P$, "EditorKit", null, null, 'Cloneable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'clone$', function () {
var o;
try {
o=Clazz_clone(this);
} catch (cnse) {
if (Clazz_exceptionOf(cnse,"CloneNotSupportedException")){
o=null;
} else {
throw cnse;
}
}
return o;
});
Clazz_newMeth(C$, 'install$javax_swing_JEditorPane', function (c) {
});
Clazz_newMeth(C$, 'deinstall$javax_swing_JEditorPane', function (c) {
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "Element");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.GapContent','.MarkData'],['javax.swing.text.GapContent','.MarkVector'],['javax.swing.text.GapContent','.InsertUndo'],['javax.swing.text.GapContent','.RemoveUndo'],'javax.swing.text.Segment',['javax.swing.text.GapContent','.StickyPosition'],'java.util.Vector',['javax.swing.text.GapContent','.UndoPosRef']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "GapContent", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.text.GapVector', [['javax.swing.text.AbstractDocument','javax.swing.text.AbstractDocument.Content']]);
C$.empty=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.empty=Clazz_array(Character.TYPE, [0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.marks=null;
this.search=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [10]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialLength) {
C$.superclazz.c$$I.apply(this, [Math.max(initialLength, 2)]);
C$.$init$.apply(this);
var implied=Clazz_array(Character.TYPE, [1]);
implied[0]="\n";
this.replace$I$I$O$I(0, 0, implied, implied.length);
this.marks=Clazz_new_($I$(2));
this.search=Clazz_new_($I$(1).c$$I, [this, null, 0]);
}, 1);
Clazz_newMeth(C$, 'allocateArray$I', function (len) {
return Clazz_array(Character.TYPE, [len]);
});
Clazz_newMeth(C$, 'getArrayLength$', function () {
var carray=this.getArray$();
return carray.length;
});
Clazz_newMeth(C$, 'length$', function () {
var len=this.getArrayLength$() - (this.getGapEnd$() - this.getGapStart$());
return len;
});
Clazz_newMeth(C$, 'insertString$I$S', function (where, str) {
if (where > this.length$() || where < 0 ) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid insert", this.length$()]);
}var chars=str.toCharArray$();
this.replace$I$I$O$I(where, 0, chars, chars.length);
return Clazz_new_($I$(3).c$$I$I, [this, null, where, str.length$()]);
});
Clazz_newMeth(C$, 'remove$I$I', function (where, nitems) {
if (where + nitems >= this.length$()) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid remove", this.length$() + 1]);
}var removedString=this.getString$I$I(where, nitems);
var edit=Clazz_new_($I$(4).c$$I$S, [this, null, where, removedString]);
this.replace$I$I$O$I(where, nitems, C$.empty, 0);
return edit;
});
Clazz_newMeth(C$, 'getString$I$I', function (where, len) {
var s=Clazz_new_($I$(5));
this.getChars$I$I$javax_swing_text_Segment(where, len, s);
return String.instantialize(s.array, s.offset, s.count);
});
Clazz_newMeth(C$, 'getChars$I$I$javax_swing_text_Segment', function (where, len, chars) {
var end=where + len;
if (where < 0 || end < 0 ) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid location", -1]);
}if (end > this.length$() || where > this.length$() ) {
throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid location", this.length$() + 1]);
}var g0=this.getGapStart$();
var g1=this.getGapEnd$();
var array=this.getArray$();
if ((where + len) <= g0) {
chars.array=array;
chars.offset=where;
} else if (where >= g0) {
chars.array=array;
chars.offset=g1 + where - g0;
} else {
var before=g0 - where;
if (chars.isPartialReturn$()) {
chars.array=array;
chars.offset=where;
chars.count=before;
return;
}chars.array=Clazz_array(Character.TYPE, [len]);
chars.offset=0;
System.arraycopy$O$I$O$I$I(array, where, chars.array, 0, before);
System.arraycopy$O$I$O$I$I(array, g1, chars.array, before, len - before);
}chars.count=len;
});
Clazz_newMeth(C$, 'createPosition$I', function (offset) {
var g0=this.getGapStart$();
var g1=this.getGapEnd$();
var index=(offset < g0) ? offset : offset + (g1 - g0);
this.search.index=index;
var sortIndex=this.findSortIndex$javax_swing_text_GapContent_MarkData(this.search);
var m;
var position;
if (sortIndex < this.marks.size$() && (m=this.marks.elementAt$I(sortIndex)).index == index && (position=m.getPosition$()) != null ) {
} else {
position=Clazz_new_($I$(6), [this, null]);
m=Clazz_new_($I$(1).c$$I$javax_swing_text_GapContent_StickyPosition, [this, null, index, position]);
position.setMark$javax_swing_text_GapContent_MarkData(m);
this.marks.insertElementAt$javax_swing_text_GapContent_MarkData$I(m, sortIndex);
}return position;
});
Clazz_newMeth(C$, 'shiftEnd$I', function (newSize) {
var oldGapEnd=this.getGapEnd$();
C$.superclazz.prototype.shiftEnd$I.apply(this, [newSize]);
var dg=this.getGapEnd$() - oldGapEnd;
var adjustIndex=this.findMarkAdjustIndex$I(oldGapEnd);
var n=this.marks.size$();
for (var i=adjustIndex; i < n; i++) {
var mark=this.marks.elementAt$I(i);
mark.index+=dg;
}
});
Clazz_newMeth(C$, 'getNewArraySize$I', function (reqSize) {
if (reqSize < 524288) {
return C$.superclazz.prototype.getNewArraySize$I.apply(this, [reqSize]);
} else {
return reqSize + 524288;
}});
Clazz_newMeth(C$, 'shiftGap$I', function (newGapStart) {
var oldGapStart=this.getGapStart$();
var dg=newGapStart - oldGapStart;
var oldGapEnd=this.getGapEnd$();
var newGapEnd=oldGapEnd + dg;
var gapSize=oldGapEnd - oldGapStart;
C$.superclazz.prototype.shiftGap$I.apply(this, [newGapStart]);
if (dg > 0) {
var adjustIndex=this.findMarkAdjustIndex$I(oldGapStart);
var n=this.marks.size$();
for (var i=adjustIndex; i < n; i++) {
var mark=this.marks.elementAt$I(i);
if (mark.index >= newGapEnd) {
break;
}mark.index-=gapSize;
}
} else if (dg < 0) {
var adjustIndex=this.findMarkAdjustIndex$I(newGapStart);
var n=this.marks.size$();
for (var i=adjustIndex; i < n; i++) {
var mark=this.marks.elementAt$I(i);
if (mark.index >= oldGapEnd) {
break;
}mark.index+=gapSize;
}
}this.resetMarksAtZero$();
});
Clazz_newMeth(C$, 'resetMarksAtZero$', function () {
if (this.marks != null && this.getGapStart$() == 0 ) {
var g1=this.getGapEnd$();
for (var counter=0, maxCounter=this.marks.size$(); counter < maxCounter; counter++) {
var mark=this.marks.elementAt$I(counter);
if (mark.index <= g1) {
mark.index=0;
} else {
break;
}}
}});
Clazz_newMeth(C$, 'shiftGapStartDown$I', function (newGapStart) {
var adjustIndex=this.findMarkAdjustIndex$I(newGapStart);
var n=this.marks.size$();
var g0=this.getGapStart$();
var g1=this.getGapEnd$();
for (var i=adjustIndex; i < n; i++) {
var mark=this.marks.elementAt$I(i);
if (mark.index > g0) {
break;
}mark.index=g1;
}
C$.superclazz.prototype.shiftGapStartDown$I.apply(this, [newGapStart]);
this.resetMarksAtZero$();
});
Clazz_newMeth(C$, 'shiftGapEndUp$I', function (newGapEnd) {
var adjustIndex=this.findMarkAdjustIndex$I(this.getGapEnd$());
var n=this.marks.size$();
for (var i=adjustIndex; i < n; i++) {
var mark=this.marks.elementAt$I(i);
if (mark.index >= newGapEnd) {
break;
}mark.index=newGapEnd;
}
C$.superclazz.prototype.shiftGapEndUp$I.apply(this, [newGapEnd]);
this.resetMarksAtZero$();
});
Clazz_newMeth(C$, 'compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData', function (o1, o2) {
if (o1.index < o2.index) {
return -1;
} else if (o1.index > o2.index) {
return 1;
} else {
return 0;
}});
Clazz_newMeth(C$, 'findMarkAdjustIndex$I', function (searchIndex) {
this.search.index=Math.max(searchIndex, 1);
var index=this.findSortIndex$javax_swing_text_GapContent_MarkData(this.search);
for (var i=index - 1; i >= 0; i--) {
var d=this.marks.elementAt$I(i);
if (d.index != this.search.index) {
break;
}index-=1;
}
return index;
});
Clazz_newMeth(C$, 'findSortIndex$javax_swing_text_GapContent_MarkData', function (o) {
var lower=0;
var upper=this.marks.size$() - 1;
var mid=0;
if (upper == -1) {
return 0;
}var cmp=0;
var last=this.marks.elementAt$I(upper);
cmp=this.compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData(o, last);
if (cmp > 0) return upper + 1;
while (lower <= upper){
mid=lower + (((upper - lower)/2|0));
var entry=this.marks.elementAt$I(mid);
cmp=this.compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData(o, entry);
if (cmp == 0) {
return mid;
} else if (cmp < 0) {
upper=mid - 1;
} else {
lower=mid + 1;
}}
return (cmp < 0) ? mid : mid + 1;
});
Clazz_newMeth(C$, 'removeUnusedMarks$', function () {
var n=this.marks.size$();
var cleaned=Clazz_new_($I$(2).c$$I,[n]);
for (var i=0; i < n; i++) {
var mark=this.marks.elementAt$I(i);
if (mark != null ) {
cleaned.addElement$javax_swing_text_GapContent_MarkData(mark);
}}
this.marks=cleaned;
});
Clazz_newMeth(C$, 'getPositionsInRange$java_util_Vector$I$I', function (v, offset, length) {
var endOffset=offset + length;
var startIndex;
var endIndex;
var g0=this.getGapStart$();
var g1=this.getGapEnd$();
if (offset < g0) {
if (offset == 0) {
startIndex=0;
} else {
startIndex=this.findMarkAdjustIndex$I(offset);
}if (endOffset >= g0) {
endIndex=this.findMarkAdjustIndex$I(endOffset + (g1 - g0) + 1 );
} else {
endIndex=this.findMarkAdjustIndex$I(endOffset + 1);
}} else {
startIndex=this.findMarkAdjustIndex$I(offset + (g1 - g0));
endIndex=this.findMarkAdjustIndex$I(endOffset + (g1 - g0) + 1 );
}var placeIn=(v == null ) ? Clazz_new_($I$(7).c$$I,[Math.max(1, endIndex - startIndex)]) : v;
for (var counter=startIndex; counter < endIndex; counter++) {
placeIn.addElement$TE(Clazz_new_($I$(8).c$$javax_swing_text_GapContent_MarkData, [this, null, this.marks.elementAt$I(counter)]));
}
return placeIn;
});
Clazz_newMeth(C$, 'updateUndoPositions$java_util_Vector$I$I', function (positions, offset, length) {
var endOffset=offset + length;
var g1=this.getGapEnd$();
var startIndex;
var endIndex=this.findMarkAdjustIndex$I(g1 + 1);
if (offset != 0) {
startIndex=this.findMarkAdjustIndex$I(g1);
} else {
startIndex=0;
}for (var counter=positions.size$() - 1; counter >= 0; counter--) {
var ref=positions.elementAt$I(counter);
ref.resetLocation$I$I(endOffset, g1);
}
if (startIndex < endIndex) {
var sorted=Clazz_array(java.lang.Object, [endIndex - startIndex]);
var addIndex=0;
var counter;
if (offset == 0) {
for (counter=startIndex; counter < endIndex; counter++) {
var mark=this.marks.elementAt$I(counter);
if (mark.index == 0) {
sorted[addIndex++]=mark;
}}
for (counter=startIndex; counter < endIndex; counter++) {
var mark=this.marks.elementAt$I(counter);
if (mark.index != 0) {
sorted[addIndex++]=mark;
}}
} else {
for (counter=startIndex; counter < endIndex; counter++) {
var mark=this.marks.elementAt$I(counter);
if (mark.index != g1) {
sorted[addIndex++]=mark;
}}
for (counter=startIndex; counter < endIndex; counter++) {
var mark=this.marks.elementAt$I(counter);
if (mark.index == g1) {
sorted[addIndex++]=mark;
}}
}this.marks.replaceRange$I$I$OA(startIndex, endIndex, sorted);
}});
;
(function(){var C$=Clazz_newClass(P$.GapContent, "MarkData", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ref=null;
this.index=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I', function (index) {
C$.$init$.apply(this);
this.index=index;
}, 1);
Clazz_newMeth(C$, 'c$$I$javax_swing_text_GapContent_StickyPosition', function (index, position) {
C$.$init$.apply(this);
this.ref=position;
this.index=index;
}, 1);
Clazz_newMeth(C$, 'getOffset$', function () {
var g0=this.b$['javax.swing.text.GapVector'].getGapStart$.apply(this.b$['javax.swing.text.GapVector'], []);
var g1=this.b$['javax.swing.text.GapVector'].getGapEnd$.apply(this.b$['javax.swing.text.GapVector'], []);
var offs=(this.index < g0) ? this.index : this.index - (g1 - g0);
return Math.max(offs, 0);
});
Clazz_newMeth(C$, 'getPosition$', function () {
return this.ref;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.GapContent, "StickyPosition", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.text.Position');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.mark=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setMark$javax_swing_text_GapContent_MarkData', function (mark) {
this.mark=mark;
});
Clazz_newMeth(C$, 'getOffset$', function () {
return this.mark.getOffset$();
});
Clazz_newMeth(C$, 'toString', function () {
return Integer.toString$I(this.getOffset$());
});
})()
;
(function(){var C$=Clazz_newClass(P$.GapContent, "MarkVector", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.GapVector');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.oneMark=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.oneMark=Clazz_array($I$(1), [1]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (size) {
C$.superclazz.c$$I.apply(this, [size]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'allocateArray$I', function (len) {
return Clazz_array($I$(1), [len]);
});
Clazz_newMeth(C$, 'getArrayLength$', function () {
var marks=this.getArray$();
return marks.length;
});
Clazz_newMeth(C$, 'size$', function () {
var len=this.getArrayLength$() - (this.getGapEnd$() - this.getGapStart$());
return len;
});
Clazz_newMeth(C$, 'insertElementAt$javax_swing_text_GapContent_MarkData$I', function (m, index) {
this.oneMark[0]=m;
this.replace$I$I$O$I(index, 0, this.oneMark, 1);
});
Clazz_newMeth(C$, 'addElement$javax_swing_text_GapContent_MarkData', function (m) {
this.insertElementAt$javax_swing_text_GapContent_MarkData$I(m, this.size$());
});
Clazz_newMeth(C$, 'elementAt$I', function (index) {
var g0=this.getGapStart$();
var g1=this.getGapEnd$();
var array=this.getArray$();
if (index < g0) {
return array[index];
} else {
index+=g1 - g0;
return array[index];
}});
Clazz_newMeth(C$, 'replaceRange$I$I$OA', function (start, end, marks) {
var g0=this.getGapStart$();
var g1=this.getGapEnd$();
var index=start;
var newIndex=0;
var array=this.getArray$();
if (start >= g0) {
index+=(g1 - g0);
end+=(g1 - g0);
} else if (end >= g0) {
end+=(g1 - g0);
while (index < g0){
array[index++]=marks[newIndex++];
}
index=g1;
} else {
while (index < end){
array[index++]=marks[newIndex++];
}
}while (index < end){
array[index++]=marks[newIndex++];
}
});
})()
;
(function(){var C$=Clazz_newClass(P$.GapContent, "UndoPosRef", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.undoLocation=0;
this.rec=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_GapContent_MarkData', function (rec) {
C$.$init$.apply(this);
this.rec=rec;
this.undoLocation=rec.getOffset$();
}, 1);
Clazz_newMeth(C$, 'resetLocation$I$I', function (endOffset, g1) {
if (this.undoLocation != endOffset) {
this.rec.index=this.undoLocation;
} else {
this.rec.index=g1;
}});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.GapContent, "InsertUndo", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.undo.AbstractUndoableEdit');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.offset=0;
this.length=0;
this.string=null;
this.posRefs=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$I', function (offset, length) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.offset=offset;
this.length=length;
}, 1);
Clazz_newMeth(C$, 'undo$', function () {
C$.superclazz.prototype.undo$.apply(this, []);
try {
this.posRefs=this.this$0.getPositionsInRange$java_util_Vector$I$I.apply(this.this$0, [null, this.offset, this.length]);
this.string=this.this$0.getString$I$I.apply(this.this$0, [this.offset, this.length]);
this.this$0.remove$I$I.apply(this.this$0, [this.offset, this.length]);
} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('javax.swing.undo.CannotUndoException'));
} else {
throw bl;
}
}
});
Clazz_newMeth(C$, 'redo$', function () {
C$.superclazz.prototype.redo$.apply(this, []);
try {
this.this$0.insertString$I$S.apply(this.this$0, [this.offset, this.string]);
this.string=null;
if (this.posRefs != null ) {
this.this$0.updateUndoPositions$java_util_Vector$I$I.apply(this.this$0, [this.posRefs, this.offset, this.length]);
this.posRefs=null;
}} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('javax.swing.undo.CannotRedoException'));
} else {
throw bl;
}
}
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.GapContent, "RemoveUndo", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.undo.AbstractUndoableEdit');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.offset=0;
this.length=0;
this.string=null;
this.posRefs=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$I$S', function (offset, string) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.offset=offset;
this.string=string;
this.length=string.length$();
this.posRefs=this.this$0.getPositionsInRange$java_util_Vector$I$I.apply(this.this$0, [null, offset, this.length]);
}, 1);
Clazz_newMeth(C$, 'undo$', function () {
C$.superclazz.prototype.undo$.apply(this, []);
try {
this.this$0.insertString$I$S.apply(this.this$0, [this.offset, this.string]);
if (this.posRefs != null ) {
this.this$0.updateUndoPositions$java_util_Vector$I$I.apply(this.this$0, [this.posRefs, this.offset, this.length]);
this.posRefs=null;
}this.string=null;
} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('javax.swing.undo.CannotUndoException'));
} else {
throw bl;
}
}
});
Clazz_newMeth(C$, 'redo$', function () {
C$.superclazz.prototype.redo$.apply(this, []);
try {
this.string=this.this$0.getString$I$I.apply(this.this$0, [this.offset, this.length]);
this.posRefs=this.this$0.getPositionsInRange$java_util_Vector$I$I.apply(this.this$0, [null, this.offset, this.length]);
this.this$0.remove$I$I.apply(this.this$0, [this.offset, this.length]);
} catch (bl) {
if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('javax.swing.undo.CannotRedoException'));
} else {
throw bl;
}
}
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text");
var C$=Clazz_newClass(P$, "GapVector");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.array=null;
this.g0=0;
this.g1=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [10]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (initialLength) {
C$.$init$.apply(this);
this.array=this.allocateArray$I(initialLength);
this.g0=0;
this.g1=initialLength;
}, 1);
Clazz_newMeth(C$, 'getArray$', function () {
return this.array;
});
Clazz_newMeth(C$, 'getGapStart$', function () {
return this.g0;
});
Clazz_newMeth(C$, 'getGapEnd$', function () {
return this.g1;
});
Clazz_newMeth(C$, 'replace$I$I$O$I', function (position, rmSize, addItems, addSize) {
var addOffset=0;
if (addSize == 0) {
this.close$I$I(position, rmSize);
return;
} else if (rmSize > addSize) {
this.close$I$I(position + addSize, rmSize - addSize);
} else {
var endSize=addSize - rmSize;
var end=this.open$I$I(position + rmSize, endSize);
System.arraycopy$O$I$O$I$I(addItems, rmSize, this.array, end, endSize);
addSize=rmSize;
}System.arraycopy$O$I$O$I$I(addItems, addOffset, this.array, position, addSize);
});
Clazz_newMeth(C$, 'close$I$I', function (position, nItems) {
if (nItems == 0) return;
var end=position + nItems;
var new_gs=(this.g1 - this.g0) + nItems;
if (end <= this.g0) {
if (this.g0 != end) {
this.shiftGap$I(end);
}this.shiftGapStartDown$I(this.g0 - nItems);
} else if (position >= this.g0) {
if (this.g0 != position) {
this.shiftGap$I(position);
}this.shiftGapEndUp$I(this.g0 + new_gs);
} else {
this.shiftGapStartDown$I(position);
this.shiftGapEndUp$I(this.g0 + new_gs);
}});
Clazz_newMeth(C$, 'open$I$I', function (position, nItems) {
var gapSize=this.g1 - this.g0;
if (nItems == 0) {
if (position > this.g0) position+=gapSize;
return position;
}this.shiftGap$I(position);
if (nItems >= gapSize) {
this.shiftEnd$I(this.getArrayLength$() - gapSize + nItems);
gapSize=this.g1 - this.g0;
}this.g0=this.g0 + nItems;
return position;
});
Clazz_newMeth(C$, 'resize$I', function (nsize) {
var narray=this.allocateArray$I(nsize);
System.arraycopy$O$I$O$I$I(this.array, 0, narray, 0, Math.min(nsize, this.getArrayLength$()));
this.array=narray;
});
Clazz_newMeth(C$, 'shiftEnd$I', function (newSize) {
var oldSize=this.getArrayLength$();
var oldGapEnd=this.g1;
var upperSize=oldSize - oldGapEnd;
var arrayLength=this.getNewArraySize$I(newSize);
var newGapEnd=arrayLength - upperSize;
this.resize$I(arrayLength);
this.g1=newGapEnd;
if (upperSize != 0) {
System.arraycopy$O$I$O$I$I(this.array, oldGapEnd, this.array, newGapEnd, upperSize);
}});
Clazz_newMeth(C$, 'getNewArraySize$I', function (reqSize) {
return (reqSize + 1) * 2;
});
Clazz_newMeth(C$, 'shiftGap$I', function (newGapStart) {
if (newGapStart == this.g0) {
return;
}var oldGapStart=this.g0;
var dg=newGapStart - oldGapStart;
var oldGapEnd=this.g1;
var newGapEnd=oldGapEnd + dg;
this.g0=newGapStart;
this.g1=newGapEnd;
if (dg > 0) {
System.arraycopy$O$I$O$I$I(this.array, oldGapEnd, this.array, oldGapStart, dg);
} else if (dg < 0) {
System.arraycopy$O$I$O$I$I(this.array, newGapStart, this.array, newGapEnd, -dg);
}});
Clazz_newMeth(C$, 'shiftGapStartDown$I', function (newGapStart) {
this.g0=newGapStart;
});
Clazz_newMeth(C$, 'shiftGapEndUp$I', function (newGapEnd) {
this.g1=newGapEnd;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'java.awt.Point','java.util.Hashtable','javax.swing.KeyStroke','javax.swing.Action','java.util.Vector',['javax.swing.text.JTextComponent','.KeymapWrapper'],'sun.awt.AppContext','javax.swing.text.JTextComponent','javax.swing.DropMode',['javax.swing.text.JTextComponent','.MutableCaretEvent'],'javax.swing.event.CaretListener',['javax.swing.text.Position','.Bias'],['javax.swing.text.JTextComponent','.DropLocation'],'Boolean',['javax.swing.text.JTextComponent','.KeymapActionMap'],['javax.swing.text.JTextComponent','.DefaultKeymap'],'java.util.HashMap',['javax.swing.text.DefaultEditorKit','.DefaultKeyTypedAction'],'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JTextComponent", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'javax.swing.JComponent', ['java.awt.TextComponent', 'javax.swing.Scrollable']);
C$.overrideMap=null;
C$.KEYMAP_TABLE=null;
C$.FOCUSED_COMPONENT=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.KEYMAP_TABLE= Clazz_new_();
C$.FOCUSED_COMPONENT= Clazz_new_();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.model=null;
this.caret=null;
this.navigationFilter=null;
this.highlighter=null;
this.keymap=null;
this.caretEvent=null;
this.caretColor=null;
this.selectionColor=null;
this.selectedTextColor=null;
this.disabledTextColor=null;
this.editable=false;
this.margin=null;
this.focusAccelerator='\0';
this.dragEnabled=false;
this.dropMode=null;
this.dropLocation=null;
this.composedTextAttribute=null;
this.composedTextContent=null;
this.composedTextStart=null;
this.composedTextEnd=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.dropMode=$I$(9).USE_SELECTION;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.enableEvents$J(2056);
this.caretEvent=Clazz_new_($I$(10).c$$javax_swing_text_JTextComponent,[this]);
this.addMouseListener$java_awt_event_MouseListener(this.caretEvent);
this.addFocusListener$java_awt_event_FocusListener(this.caretEvent);
this.setEditable$Z(true);
this.setDragEnabled$Z(false);
this.setLayout$java_awt_LayoutManager(null);
this.updateUI$();
this.setOpaque$Z(true);
}, 1);
Clazz_newMeth(C$, 'updateUI$', function () {
C$.superclazz.prototype.updateUI$.apply(this, []);
this.invalidate$();
});
Clazz_newMeth(C$, 'addCaretListener$javax_swing_event_CaretListener', function (listener) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']), listener);
});
Clazz_newMeth(C$, 'removeCaretListener$javax_swing_event_CaretListener', function (listener) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']), listener);
});
Clazz_newMeth(C$, 'getCaretListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']));
});
Clazz_newMeth(C$, 'fireCaretUpdate$javax_swing_event_CaretEvent', function (e) {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']) ) {
(listeners[i + 1]).caretUpdate$(e);
}}
});
Clazz_newMeth(C$, 'setDocument$javax_swing_text_Document', function (doc) {
var old=this.model;
try {
this.model=doc;
this.firePropertyChange$S$O$O("document", old, doc);
} finally {
}
this.revalidate$();
this.repaint$();
});
Clazz_newMeth(C$, 'getDocument$', function () {
return this.model;
});
Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (o) {
C$.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this, [o]);
});
Clazz_newMeth(C$, 'getActions$', function () {
if (this.getUI$() == null ) return null;
return (this.getUI$()).getEditorKit$javax_swing_text_JTextComponent(this).getActions$();
});
Clazz_newMeth(C$, 'setMargin$java_awt_Insets', function (m) {
var old=this.margin;
this.margin=m;
this.firePropertyChange$S$O$O("margin", old, m);
this.invalidate$();
});
Clazz_newMeth(C$, 'getMargin$', function () {
return this.margin;
});
Clazz_newMeth(C$, 'setNavigationFilter$javax_swing_text_NavigationFilter', function (filter) {
this.navigationFilter=filter;
});
Clazz_newMeth(C$, 'getNavigationFilter$', function () {
return this.navigationFilter;
});
Clazz_newMeth(C$, 'getCaret$', function () {
return this.caret;
});
Clazz_newMeth(C$, 'setCaret$javax_swing_text_Caret', function (c) {
if (this.caret != null ) {
this.caret.removeChangeListener$javax_swing_event_ChangeListener(this.caretEvent);
this.caret.deinstall$javax_swing_text_JTextComponent(this);
}var old=this.caret;
this.caret=c;
if (this.caret != null ) {
this.caret.install$javax_swing_text_JTextComponent(this);
this.caret.addChangeListener$javax_swing_event_ChangeListener(this.caretEvent);
}this.firePropertyChange$S$O$O("caret", old, this.caret);
});
Clazz_newMeth(C$, 'getHighlighter$', function () {
return this.highlighter;
});
Clazz_newMeth(C$, 'setHighlighter$javax_swing_text_Highlighter', function (h) {
if (this.highlighter != null ) {
this.highlighter.deinstall$javax_swing_text_JTextComponent(this);
}var old=this.highlighter;
this.highlighter=h;
if (this.highlighter != null ) {
this.highlighter.install$javax_swing_text_JTextComponent(this);
}this.firePropertyChange$S$O$O("highlighter", old, h);
});
Clazz_newMeth(C$, 'setKeymap$javax_swing_text_Keymap', function (map) {
var old=this.keymap;
this.keymap=map;
this.firePropertyChange$S$O$O("keymap", old, this.keymap);
this.updateInputMap$javax_swing_text_Keymap$javax_swing_text_Keymap(old, map);
});
Clazz_newMeth(C$, 'setDragEnabled$Z', function (b) {
this.dragEnabled=b;
});
Clazz_newMeth(C$, 'getDragEnabled$', function () {
return this.dragEnabled;
});
Clazz_newMeth(C$, 'setDropMode$javax_swing_DropMode', function (dropMode) {
if (dropMode != null ) {
switch (dropMode) {
case $I$(9).USE_SELECTION:
case $I$(9).INSERT:
this.dropMode=dropMode;
return;
}
}throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[dropMode + ": Unsupported drop mode for text"]);
});
Clazz_newMeth(C$, 'getDropMode$', function () {
return this.dropMode;
});
Clazz_newMeth(C$, 'dropLocationForPoint$java_awt_Point', function (p) {
var bias=Clazz_array($I$(12), [1]);
var index=(this.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this, p, bias);
if (bias[0] == null ) {
bias[0]=$I$(12).Forward;
}return Clazz_new_($I$(13).c$$java_awt_Point$I$javax_swing_text_Position_Bias,[p, index, bias[0]]);
});
Clazz_newMeth(C$, 'setDropLocation$javax_swing_TransferHandler_DropLocation$O$Z', function (location, state, forDrop) {
var retVal=null;
var textLocation=location;
if (this.dropMode === $I$(9).USE_SELECTION ) {
if (textLocation == null ) {
if (state != null ) {
var vals=state;
if (!forDrop) {
if (Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret")) {
(this.caret).setDot$I$javax_swing_text_Position_Bias((vals[0]).intValue$(), vals[3]);
(this.caret).moveDot$I$javax_swing_text_Position_Bias((vals[1]).intValue$(), vals[4]);
} else {
this.caret.setDot$I((vals[0]).intValue$());
this.caret.moveDot$I((vals[1]).intValue$());
}}this.caret.setVisible$Z((vals[2]).booleanValue$());
}} else {
if (this.dropLocation == null ) {
var visible;
if (Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret")) {
var dc=this.caret;
visible=dc.isActive$();
retVal=Clazz_array(java.lang.Object, -1, [Integer.valueOf$I(dc.getMark$()), Integer.valueOf$I(dc.getDot$()), $I$(14).valueOf$Z(visible), dc.getMarkBias$(), dc.getDotBias$()]);
} else {
visible=this.caret.isVisible$();
retVal=Clazz_array(java.lang.Object, -1, [Integer.valueOf$I(this.caret.getMark$()), Integer.valueOf$I(this.caret.getDot$()), $I$(14).valueOf$Z(visible)]);
}this.caret.setVisible$Z(true);
} else {
retVal=state;
}if (Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret")) {
(this.caret).setDot$I$javax_swing_text_Position_Bias(textLocation.getIndex$(), textLocation.getBias$());
} else {
this.caret.setDot$I(textLocation.getIndex$());
}}} else {
if (textLocation == null ) {
if (state != null ) {
this.caret.setVisible$Z((state).booleanValue$());
}} else {
if (this.dropLocation == null ) {
var visible=Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret") ? (this.caret).isActive$() : this.caret.isVisible$();
retVal=$I$(14).valueOf$Z(visible);
this.caret.setVisible$Z(false);
} else {
retVal=state;
}}}var old=this.dropLocation;
this.dropLocation=textLocation;
this.firePropertyChange$S$O$O("dropLocation", old, this.dropLocation);
return retVal;
});
Clazz_newMeth(C$, 'getDropLocation$', function () {
return this.dropLocation;
});
Clazz_newMeth(C$, 'updateInputMap$javax_swing_text_Keymap$javax_swing_text_Keymap', function (oldKm, newKm) {
var km=this.getInputMap$I(0);
var last=km;
while (km != null && !(Clazz_instanceOf(km, "javax.swing.text.JTextComponent.KeymapWrapper")) ){
last=km;
km=km.getParent$();
}
if (km != null ) {
if (newKm == null ) {
if (last !== km ) {
last.setParent$javax_swing_InputMap(km.getParent$());
} else {
last.setParent$javax_swing_InputMap(null);
}} else {
var newKM=Clazz_new_($I$(6).c$$javax_swing_text_Keymap,[newKm]);
last.setParent$javax_swing_InputMap(newKM);
if (last !== km ) {
newKM.setParent$javax_swing_InputMap(km.getParent$());
}}} else if (newKm != null ) {
km=this.getInputMap$I(0);
if (km != null ) {
var newKM=Clazz_new_($I$(6).c$$javax_swing_text_Keymap,[newKm]);
newKM.setParent$javax_swing_InputMap(km.getParent$());
km.setParent$javax_swing_InputMap(newKM);
}}var am=this.getActionMap$();
var lastAM=am;
while (am != null && !(Clazz_instanceOf(am, "javax.swing.text.JTextComponent.KeymapActionMap")) ){
lastAM=am;
am=am.getParent$();
}
if (am != null ) {
if (newKm == null ) {
if (lastAM !== am ) {
lastAM.setParent$javax_swing_ActionMap(am.getParent$());
} else {
lastAM.setParent$javax_swing_ActionMap(null);
}} else {
var newAM=Clazz_new_($I$(15).c$$javax_swing_text_Keymap,[newKm]);
lastAM.setParent$javax_swing_ActionMap(newAM);
if (lastAM !== am ) {
newAM.setParent$javax_swing_ActionMap(am.getParent$());
}}} else if (newKm != null ) {
am=this.getActionMap$();
if (am != null ) {
var newAM=Clazz_new_($I$(15).c$$javax_swing_text_Keymap,[newKm]);
newAM.setParent$javax_swing_ActionMap(am.getParent$());
am.setParent$javax_swing_ActionMap(newAM);
}}});
Clazz_newMeth(C$, 'getKeymap$', function () {
return this.keymap;
});
Clazz_newMeth(C$, 'addKeymap$S$javax_swing_text_Keymap', function (nm, parent) {
var map=Clazz_new_($I$(16).c$$S$javax_swing_text_Keymap,[nm, parent]);
if (nm != null ) {
C$.getKeymapTable$().put$TK$TV(nm, map);
}return map;
}, 1);
Clazz_newMeth(C$, 'removeKeymap$S', function (nm) {
return C$.getKeymapTable$().remove$O(nm);
}, 1);
Clazz_newMeth(C$, 'getKeymap$S', function (nm) {
return C$.getKeymapTable$().get$O(nm);
}, 1);
Clazz_newMeth(C$, 'getKeymapTable$', function () {
{
var appContext=$I$(7).getAppContext$();
var keymapTable=appContext.get$O(C$.KEYMAP_TABLE);
if (keymapTable == null ) {
keymapTable=Clazz_new_($I$(17).c$$I,[17]);
appContext.put$O$O(C$.KEYMAP_TABLE, keymapTable);
var binding=C$.addKeymap$S$javax_swing_text_Keymap("default", null);
binding.setDefaultAction$javax_swing_Action(Clazz_new_($I$(18)));
}return keymapTable;
}}, 1);
Clazz_newMeth(C$, 'loadKeymap$javax_swing_text_Keymap$javax_swing_text_JTextComponent_KeyBindingA$javax_swing_ActionA', function (map, bindings, actions) {
var h=Clazz_new_($I$(2));
for (var i=0; i < actions.length; i++) {
var a=actions[i];
var value=a.getValue$S("Name");
h.put$TK$TV((value != null ? value : ""), a);
}
for (var i=0; i < bindings.length; i++) {
var a=h.get$O(bindings[i].actionName);
if (a != null ) {
map.addActionForKeyStroke$javax_swing_KeyStroke$javax_swing_Action(bindings[i].key, a);
}}
}, 1);
Clazz_newMeth(C$, 'getCaretColor$', function () {
return this.caretColor;
});
Clazz_newMeth(C$, 'setCaretColor$java_awt_Color', function (c) {
var old=this.caretColor;
this.caretColor=c;
this.firePropertyChange$S$O$O("caretColor", old, this.caretColor);
});
Clazz_newMeth(C$, 'getSelectionColor$', function () {
return this.selectionColor;
});
Clazz_newMeth(C$, 'setSelectionColor$java_awt_Color', function (c) {
var old=this.selectionColor;
this.selectionColor=c;
this.firePropertyChange$S$O$O("selectionColor", old, this.selectionColor);
});
Clazz_newMeth(C$, 'getSelectedTextColor$', function () {
return this.selectedTextColor;
});
Clazz_newMeth(C$, 'setSelectedTextColor$java_awt_Color', function (c) {
var old=this.selectedTextColor;
this.selectedTextColor=c;
this.firePropertyChange$S$O$O("selectedTextColor", old, this.selectedTextColor);
});
Clazz_newMeth(C$, 'getDisabledTextColor$', function () {
return this.disabledTextColor;
});
Clazz_newMeth(C$, 'setDisabledTextColor$java_awt_Color', function (c) {
var old=this.disabledTextColor;
this.disabledTextColor=c;
this.firePropertyChange$S$O$O("disabledTextColor", old, this.disabledTextColor);
});
Clazz_newMeth(C$, 'replaceSelection$S', function (content) {
var doc=this.getDocument$();
if (doc != null ) {
try {
var composedTextSaved=p$1.saveComposedText$I.apply(this, [this.caret.getDot$()]);
var p0=Math.min(this.caret.getDot$(), this.caret.getMark$());
var p1=Math.max(this.caret.getDot$(), this.caret.getMark$());
if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) {
(doc).replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(p0, p1 - p0, content, null, this);
} else {
if (p0 != p1) {
doc.remove$I$I(p0, p1 - p0);
}if (content != null && content.length$() > 0 ) {
doc.insertString$I$S$javax_swing_text_AttributeSet(p0, content, null);
}}if (composedTextSaved) {
p$1.restoreComposedText.apply(this, []);
}} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
$I$(19).alert$O("SWINGJS BAD LOCATION EXCEPTION (replace):" + e.getMessage$() + $I$(19).getStackTrace$I(-10) );
} else {
throw e;
}
}
}});
Clazz_newMeth(C$, 'getText$I$I', function (offs, len) {
return this.getDocument$().getText$I$I(offs, len);
});
Clazz_newMeth(C$, 'modelToView$I', function (pos) {
return (this.getUI$()).modelToView$javax_swing_text_JTextComponent$I(this, pos);
});
Clazz_newMeth(C$, 'viewToModel$java_awt_Point', function (pt) {
return (this.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point(this, pt);
});
Clazz_newMeth(C$, 'cut$', function () {
});
Clazz_newMeth(C$, 'copy$', function () {
});
Clazz_newMeth(C$, 'paste$', function () {
});
Clazz_newMeth(C$, 'moveCaretPosition$I', function (pos) {
var doc=this.getDocument$();
if (doc != null ) {
if (pos > doc.getLength$() || pos < 0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["bad position: " + pos]);
}this.caret.moveDot$I(pos);
}});
Clazz_newMeth(C$, 'setFocusAccelerator$C', function (aKey) {
aKey=Character.toUpperCase$C(aKey);
var old=this.focusAccelerator;
this.focusAccelerator=aKey;
this.firePropertyChange$S$C$C("focusAcceleratorKey", old, this.focusAccelerator);
this.firePropertyChange$S$C$C("focusAccelerator", old, this.focusAccelerator);
});
Clazz_newMeth(C$, 'getFocusAccelerator$', function () {
return this.focusAccelerator;
});
Clazz_newMeth(C$, 'read$java_io_Reader$O', function ($in, desc) {
var kit=(this.getUI$()).getEditorKit$javax_swing_text_JTextComponent(this);
var doc=kit.createDefaultDocument$();
if (desc != null ) {
doc.putProperty$O$O("stream", desc);
}try {
kit.read$java_io_Reader$javax_swing_text_Document$I($in, doc, 0);
this.setDocument$javax_swing_text_Document(doc);
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('java.io.IOException').c$$S,[e.getMessage$()]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'write$java_io_Writer', function (out) {
var doc=this.getDocument$();
try {
(this.getUI$()).getEditorKit$javax_swing_text_JTextComponent(this).write$java_io_Writer$javax_swing_text_Document$I$I(out, doc, 0, doc.getLength$());
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('java.io.IOException').c$$S,[e.getMessage$()]);
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'removeNotify$', function () {
C$.superclazz.prototype.removeNotify$.apply(this, []);
if (C$.getFocusedComponent$() === this ) {
$I$(7).getAppContext$().remove$O(C$.FOCUSED_COMPONENT);
}});
Clazz_newMeth(C$, 'setCaretPosition$I', function (position) {
var doc=this.getDocument$();
if (doc != null ) {
if (position > doc.getLength$() || position < 0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["bad position: " + position]);
}this.caret.setDot$I(position);
}});
Clazz_newMeth(C$, 'getCaretPosition$', function () {
return this.caret.getDot$();
});
Clazz_newMeth(C$, 'setText$S', function (t) {
try {
var doc=this.getDocument$();
if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) {
(doc).replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(0, doc.getLength$(), t, null, this);
} else {
doc.remove$I$I(0, doc.getLength$());
doc.insertString$I$S$javax_swing_text_AttributeSet(0, t, null);
}} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
$I$(19).alert$O("SWINGJS BAD LOCATION EXCEPTION (setText):" + e.getMessage$() + $I$(19).getStackTrace$I(-10) );
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'getText$', function () {
var doc=this.getDocument$();
var txt;
try {
txt=doc.getText$I$I(0, doc.getLength$());
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
txt=null;
} else {
throw e;
}
}
return txt;
});
Clazz_newMeth(C$, 'getSelectedText$', function () {
var txt=null;
var p0=Math.min(this.caret.getDot$(), this.caret.getMark$());
var p1=Math.max(this.caret.getDot$(), this.caret.getMark$());
if (p0 != p1) {
try {
var doc=this.getDocument$();
txt=doc.getText$I$I(p0, p1 - p0);
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[e.getMessage$()]);
} else {
throw e;
}
}
}return txt;
});
Clazz_newMeth(C$, 'isEditable$', function () {
return this.editable;
});
Clazz_newMeth(C$, 'setEditable$Z', function (b) {
if (b != this.editable ) {
var oldVal=this.editable;
this.editable=b;
this.firePropertyChange$S$O$O("editable", $I$(14).valueOf$Z(oldVal), $I$(14).valueOf$Z(this.editable));
this.repaint$();
}});
Clazz_newMeth(C$, 'getSelectionStart$', function () {
var start=Math.min(this.caret.getDot$(), this.caret.getMark$());
return start;
});
Clazz_newMeth(C$, 'setSelectionStart$I', function (selectionStart) {
this.select$I$I(selectionStart, this.getSelectionEnd$());
});
Clazz_newMeth(C$, 'getSelectionEnd$', function () {
var end=Math.max(this.caret.getDot$(), this.caret.getMark$());
return end;
});
Clazz_newMeth(C$, 'setSelectionEnd$I', function (selectionEnd) {
this.select$I$I(this.getSelectionStart$(), selectionEnd);
});
Clazz_newMeth(C$, 'select$I$I', function (selectionStart, selectionEnd) {
var docLength=this.getDocument$().getLength$();
if (selectionStart < 0) {
selectionStart=0;
}if (selectionStart > docLength) {
selectionStart=docLength;
}if (selectionEnd > docLength) {
selectionEnd=docLength;
}if (selectionEnd < selectionStart) {
selectionEnd=selectionStart;
}this.setCaretPosition$I(selectionStart);
this.moveCaretPosition$I(selectionEnd);
});
Clazz_newMeth(C$, 'selectAll$', function () {
var doc=this.getDocument$();
if (doc != null ) {
this.setCaretPosition$I(0);
this.moveCaretPosition$I(doc.getLength$());
}});
Clazz_newMeth(C$, 'getToolTipText$java_awt_event_MouseEvent', function (event) {
var retValue=C$.superclazz.prototype.getToolTipText$java_awt_event_MouseEvent.apply(this, [event]);
if (retValue == null ) {
var ui=(this.getUI$());
if (ui != null ) {
retValue=ui.getToolTipText$javax_swing_text_JTextComponent$java_awt_Point(this, Clazz_new_($I$(1).c$$I$I,[event.getX$(), event.getY$()]));
}}return retValue;
});
Clazz_newMeth(C$, 'getPreferredScrollableViewportSize$', function () {
return this.getPreferredSize$();
});
Clazz_newMeth(C$, 'getScrollableUnitIncrement$java_awt_Rectangle$I$I', function (visibleRect, orientation, direction) {
switch (orientation) {
case 1:
return (visibleRect.height/10|0);
case 0:
return (visibleRect.width/10|0);
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid orientation: " + orientation]);
}
});
Clazz_newMeth(C$, 'getScrollableBlockIncrement$java_awt_Rectangle$I$I', function (visibleRect, orientation, direction) {
switch (orientation) {
case 1:
return visibleRect.height;
case 0:
return visibleRect.width;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid orientation: " + orientation]);
}
});
Clazz_newMeth(C$, 'getScrollableTracksViewportWidth$', function () {
if (Clazz_instanceOf(this.getParent$(), "javax.swing.JViewport")) {
return ((this.getParent$()).getWidth$() > this.getPreferredSize$().width);
}return false;
});
Clazz_newMeth(C$, 'getScrollableTracksViewportHeight$', function () {
if (Clazz_instanceOf(this.getParent$(), "javax.swing.JViewport")) {
return ((this.getParent$()).getHeight$() > this.getPreferredSize$().height);
}return false;
});
Clazz_newMeth(C$, 'paramString$', function () {
var editableString=(this.editable ? "true" : "false");
var caretColorString=(this.caretColor != null ? this.caretColor.toString() : "");
var selectionColorString=(this.selectionColor != null ? this.selectionColor.toString() : "");
var selectedTextColorString=(this.selectedTextColor != null ? this.selectedTextColor.toString() : "");
var disabledTextColorString=(this.disabledTextColor != null ? this.disabledTextColor.toString() : "");
var marginString=(this.margin != null ? this.margin.toString() : "");
return C$.superclazz.prototype.paramString$.apply(this, []) + ",caretColor=" + caretColorString + ",disabledTextColor=" + disabledTextColorString + ",editable=" + editableString + ",margin=" + marginString + ",selectedTextColor=" + selectedTextColorString + ",selectionColor=" + selectionColorString ;
});
Clazz_newMeth(C$, 'getFocusedComponent$', function () {
return $I$(7).getAppContext$().get$O(C$.FOCUSED_COMPONENT);
}, 1);
Clazz_newMeth(C$, 'addInputMethodListener$java_awt_event_InputMethodListener', function (l) {
C$.superclazz.prototype.addInputMethodListener$java_awt_event_InputMethodListener.apply(this, [l]);
if (l != null ) {
}});
Clazz_newMeth(C$, 'saveComposedText$I', function (pos) {
if (this.composedTextExists$()) {
var start=this.composedTextStart.getOffset$();
var len=this.composedTextEnd.getOffset$() - this.composedTextStart.getOffset$();
if (pos >= start && pos <= start + len ) {
try {
this.getDocument$().remove$I$I(start, len);
return true;
} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
} else {
throw ble;
}
}
}}return false;
}, p$1);
Clazz_newMeth(C$, 'restoreComposedText', function () {
var doc=this.getDocument$();
try {
doc.insertString$I$S$javax_swing_text_AttributeSet(this.caret.getDot$(), this.composedTextContent, this.composedTextAttribute);
this.composedTextStart=doc.createPosition$I(this.caret.getDot$() - this.composedTextContent.length$());
this.composedTextEnd=doc.createPosition$I(this.caret.getDot$());
} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
} else {
throw ble;
}
}
}, p$1);
Clazz_newMeth(C$, 'composedTextExists$', function () {
return (this.composedTextStart != null );
});
Clazz_newMeth(C$, 'setTextFromUI$S', function (val) {
this.setText$S(val);
});
;
(function(){var C$=Clazz_newClass(P$.JTextComponent, "KeyBinding", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.key=null;
this.actionName=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_KeyStroke$S', function (key, actionName) {
C$.$init$.apply(this);
this.key=key;
this.actionName=actionName;
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JTextComponent, "DropLocation", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['javax.swing.TransferHandler','.DropLocation']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.index=0;
this.bias=null;
this.$dropPoint=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Point$I$javax_swing_text_Position_Bias', function (p, index, bias) {
C$.superclazz.c$$java_awt_Point.apply(this, [p]);
C$.$init$.apply(this);
this.$dropPoint=Clazz_new_($I$(1).c$$java_awt_Point,[p]);
this.index=index;
this.bias=bias;
}, 1);
Clazz_newMeth(C$, 'getIndex$', function () {
return this.index;
});
Clazz_newMeth(C$, 'getBias$', function () {
return this.bias;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[dropPoint=" + this.getDropPoint$() + "," + "index=" + this.index + "," + "bias=" + this.bias + "]" ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JTextComponent, "DefaultKeymap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'javax.swing.text.Keymap');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.nm=null;
this.parent=null;
this.bindings=null;
this.defaultAction=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_text_Keymap', function (nm, parent) {
C$.$init$.apply(this);
this.nm=nm;
this.parent=parent;
this.bindings=Clazz_new_($I$(2));
}, 1);
Clazz_newMeth(C$, 'getDefaultAction$', function () {
if (this.defaultAction != null ) {
return this.defaultAction;
}return (this.parent != null ) ? this.parent.getDefaultAction$() : null;
});
Clazz_newMeth(C$, 'setDefaultAction$javax_swing_Action', function (a) {
this.defaultAction=a;
});
Clazz_newMeth(C$, 'getName$', function () {
return this.nm;
});
Clazz_newMeth(C$, 'getAction$javax_swing_KeyStroke', function (key) {
var a=this.bindings.get$O(key);
if ((a == null ) && (this.parent != null ) ) {
a=this.parent.getAction$javax_swing_KeyStroke(key);
}return a;
});
Clazz_newMeth(C$, 'getBoundKeyStrokes$', function () {
var keys=Clazz_array($I$(3), [this.bindings.size$()]);
var i=0;
for (var e=this.bindings.keys$(); e.hasMoreElements$(); ) {
keys[i++]=e.nextElement$();
}
return keys;
});
Clazz_newMeth(C$, 'getBoundActions$', function () {
var actions=Clazz_array($I$(4), [this.bindings.size$()]);
var i=0;
for (var e=this.bindings.elements$(); e.hasMoreElements$(); ) {
actions[i++]=e.nextElement$();
}
return actions;
});
Clazz_newMeth(C$, 'getKeyStrokesForAction$javax_swing_Action', function (a) {
if (a == null ) {
return null;
}var retValue=null;
var keyStrokes=null;
for (var enum_=this.bindings.keys$(); enum_.hasMoreElements$(); ) {
var key=enum_.nextElement$();
if (this.bindings.get$O(key) === a ) {
if (keyStrokes == null ) {
keyStrokes=Clazz_new_($I$(5));
}keyStrokes.addElement$TE(key);
}}
if (this.parent != null ) {
var pStrokes=this.parent.getKeyStrokesForAction$javax_swing_Action(a);
if (pStrokes != null ) {
var rCount=0;
for (var counter=pStrokes.length - 1; counter >= 0; counter--) {
if (this.isLocallyDefined$javax_swing_KeyStroke(pStrokes[counter])) {
pStrokes[counter]=null;
rCount++;
}}
if (rCount > 0 && rCount < pStrokes.length ) {
if (keyStrokes == null ) {
keyStrokes=Clazz_new_($I$(5));
}for (var counter=pStrokes.length - 1; counter >= 0; counter--) {
if (pStrokes[counter] != null ) {
keyStrokes.addElement$TE(pStrokes[counter]);
}}
} else if (rCount == 0) {
if (keyStrokes == null ) {
retValue=pStrokes;
} else {
retValue=Clazz_array($I$(3), [keyStrokes.size$() + pStrokes.length]);
keyStrokes.copyInto$OA(retValue);
System.arraycopy$O$I$O$I$I(pStrokes, 0, retValue, keyStrokes.size$(), pStrokes.length);
keyStrokes=null;
}}}}if (keyStrokes != null ) {
retValue=Clazz_array($I$(3), [keyStrokes.size$()]);
keyStrokes.copyInto$OA(retValue);
}return retValue;
});
Clazz_newMeth(C$, 'isLocallyDefined$javax_swing_KeyStroke', function (key) {
return this.bindings.containsKey$O(key);
});
Clazz_newMeth(C$, 'addActionForKeyStroke$javax_swing_KeyStroke$javax_swing_Action', function (key, a) {
this.bindings.put$TK$TV(key, a);
});
Clazz_newMeth(C$, 'removeKeyStrokeBinding$javax_swing_KeyStroke', function (key) {
this.bindings.remove$O(key);
});
Clazz_newMeth(C$, 'removeBindings$', function () {
this.bindings.clear$();
});
Clazz_newMeth(C$, 'getResolveParent$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_Keymap', function (parent) {
this.parent=parent;
});
Clazz_newMeth(C$, 'toString', function () {
return "Keymap[" + this.nm + "]" + this.bindings ;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JTextComponent, "KeymapWrapper", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.InputMap');
C$.DefaultActionKey=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.DefaultActionKey= Clazz_new_();
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.keymap=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Keymap', function (keymap) {
Clazz_super_(C$, this,1);
this.keymap=keymap;
}, 1);
Clazz_newMeth(C$, 'keys$', function () {
var sKeys=C$.superclazz.prototype.keys$.apply(this, []);
var keymapKeys=this.keymap.getBoundKeyStrokes$();
var sCount=(sKeys == null ) ? 0 : sKeys.length;
var keymapCount=(keymapKeys == null ) ? 0 : keymapKeys.length;
if (sCount == 0) {
return keymapKeys;
}if (keymapCount == 0) {
return sKeys;
}var retValue=Clazz_array($I$(3), [sCount + keymapCount]);
System.arraycopy$O$I$O$I$I(sKeys, 0, retValue, 0, sCount);
System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, sCount, keymapCount);
return retValue;
});
Clazz_newMeth(C$, 'size$', function () {
var keymapStrokes=this.keymap.getBoundKeyStrokes$();
var keymapCount=(keymapStrokes == null ) ? 0 : keymapStrokes.length;
return C$.superclazz.prototype.size$.apply(this, []) + keymapCount;
});
Clazz_newMeth(C$, 'get$javax_swing_KeyStroke', function (keyStroke) {
var retValue=this.keymap.getAction$javax_swing_KeyStroke(keyStroke);
if (retValue == null ) {
retValue=C$.superclazz.prototype.get$javax_swing_KeyStroke.apply(this, [keyStroke]);
if (retValue == null && keyStroke.getKeyChar$() != "\uffff" && this.keymap.getDefaultAction$() != null ) {
retValue=C$.DefaultActionKey;
}}return retValue;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JTextComponent, "KeymapActionMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.ActionMap');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.keymap=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Keymap', function (keymap) {
Clazz_super_(C$, this,1);
this.keymap=keymap;
}, 1);
Clazz_newMeth(C$, 'keys$', function () {
var sKeys=C$.superclazz.prototype.keys$.apply(this, []);
var keymapKeys=this.keymap.getBoundActions$();
var sCount=(sKeys == null ) ? 0 : sKeys.length;
var keymapCount=(keymapKeys == null ) ? 0 : keymapKeys.length;
var hasDefault=(this.keymap.getDefaultAction$() != null );
if (hasDefault) {
keymapCount++;
}if (sCount == 0) {
if (hasDefault) {
var retValue=Clazz_array(java.lang.Object, [keymapCount]);
if (keymapCount > 1) {
System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, 0, keymapCount - 1);
}retValue[keymapCount - 1]=$I$(6).DefaultActionKey;
return retValue;
}return keymapKeys;
}if (keymapCount == 0) {
return sKeys;
}var retValue=Clazz_array(java.lang.Object, [sCount + keymapCount]);
System.arraycopy$O$I$O$I$I(sKeys, 0, retValue, 0, sCount);
if (hasDefault) {
if (keymapCount > 1) {
System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, sCount, keymapCount - 1);
}retValue[sCount + keymapCount - 1]=$I$(6).DefaultActionKey;
} else {
System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, sCount, keymapCount);
}return retValue;
});
Clazz_newMeth(C$, 'size$', function () {
var actions=this.keymap.getBoundActions$();
var keymapCount=(actions == null ) ? 0 : actions.length;
if (this.keymap.getDefaultAction$() != null ) {
keymapCount++;
}return C$.superclazz.prototype.size$.apply(this, []) + keymapCount;
});
Clazz_newMeth(C$, 'get$O', function (key) {
var retValue=C$.superclazz.prototype.get$O.apply(this, [key]);
if (retValue == null ) {
if (key === $I$(6).DefaultActionKey ) {
retValue=this.keymap.getDefaultAction$();
} else if (Clazz_instanceOf(key, "javax.swing.Action")) {
retValue=key;
}}return retValue;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JTextComponent, "MutableCaretEvent", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.event.CaretEvent', ['javax.swing.event.ChangeListener', 'java.awt.event.FocusListener', 'java.awt.event.MouseListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.dragActive=false;
this.dot=0;
this.mark=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_JTextComponent', function (c) {
C$.superclazz.c$$O.apply(this, [c]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'fire$', function () {
var c=this.getSource$();
if (c != null ) {
var caret=c.getCaret$();
if (caret != null ) {
this.dot=caret.getDot$();
this.mark=caret.getMark$();
c.fireCaretUpdate$javax_swing_event_CaretEvent(this);
}}});
Clazz_newMeth(C$, 'toString', function () {
return "dot=" + this.dot + "," + "mark=" + this.mark ;
});
Clazz_newMeth(C$, 'getDot$', function () {
return this.dot;
});
Clazz_newMeth(C$, 'getMark$', function () {
return this.mark;
});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
if (!this.dragActive) {
this.fire$();
}});
Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (fe) {
$I$(7).getAppContext$().put$O$O($I$(8).FOCUSED_COMPONENT, fe.getSource$());
});
Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (fe) {
});
Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) {
this.dragActive=true;
});
Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) {
this.dragActive=false;
this.fire$();
});
Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "MutableAttributeSet", null, null, 'javax.swing.text.AttributeSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'java.util.Vector','javax.swing.text.GapContent','Boolean','StringBuffer','javax.swing.text.Element','javax.swing.text.Segment',['javax.swing.text.AbstractDocument','.ElementEdit'],'javax.swing.text.Utilities','Error',['javax.swing.text.AbstractDocument','.BranchElement']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "PlainDocument", null, 'javax.swing.text.AbstractDocument');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.defaultRoot=null;
this.added=null;
this.removed=null;
this.s=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.added=Clazz_new_($I$(1));
this.removed=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$javax_swing_text_AbstractDocument_Content.apply(this, [Clazz_new_($I$(2))]);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_Content', function (c) {
C$.superclazz.c$$javax_swing_text_AbstractDocument_Content.apply(this, [c]);
C$.$init$.apply(this);
this.putProperty$O$O("tabSize", new Integer(8));
this.defaultRoot=this.createDefaultRoot$();
}, 1);
Clazz_newMeth(C$, 'insertString$I$S$javax_swing_text_AttributeSet', function (offs, str, a) {
var filterNewlines=this.getProperty$O("filterNewlines");
if ((Clazz_instanceOf(filterNewlines, "java.lang.Boolean")) && filterNewlines.equals$O($I$(3).TRUE) ) {
if ((str != null ) && (str.indexOf$I("\n") >= 0) ) {
var filtered=Clazz_new_($I$(4).c$$S,[str]);
var n=filtered.length$();
for (var i=0; i < n; i++) {
if (filtered.charAt$I(i) == "\n") {
filtered.setCharAt$I$C(i, " ");
}}
str=filtered.toString();
}}C$.superclazz.prototype.insertString$I$S$javax_swing_text_AttributeSet.apply(this, [offs, str, a]);
});
Clazz_newMeth(C$, 'getDefaultRootElement$', function () {
return this.defaultRoot;
});
Clazz_newMeth(C$, 'createDefaultRoot$', function () {
var map=this.createBranchElement$javax_swing_text_Element$javax_swing_text_AttributeSet(null, null);
var line=this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(map, null, 0, 1);
var lines=Clazz_array($I$(5), [1]);
lines[0]=line;
map.replace$I$I$javax_swing_text_ElementA(0, 0, lines);
return map;
});
Clazz_newMeth(C$, 'getParagraphElement$I', function (pos) {
var lineMap=this.getDefaultRootElement$();
return lineMap.getElement$I(lineMap.getElementIndex$I(pos));
});
Clazz_newMeth(C$, 'insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet', function (chng, attr) {
this.removed.removeAllElements$();
this.added.removeAllElements$();
var lineMap=this.getDefaultRootElement$();
var offset=chng.getOffset$();
var length=chng.getLength$();
if (offset > 0) {
offset-=1;
length+=1;
}var index=lineMap.getElementIndex$I(offset);
var rmCandidate=lineMap.getElement$I(index);
var rmOffs0=rmCandidate.getStartOffset$();
var rmOffs1=rmCandidate.getEndOffset$();
var lastOffset=rmOffs0;
try {
if (this.s == null ) {
this.s=Clazz_new_($I$(6));
}this.getContent$().getChars$I$I$javax_swing_text_Segment(offset, length, this.s);
var hasBreaks=false;
for (var i=0; i < length; i++) {
var c=this.s.array[this.s.offset + i];
if (c == "\n") {
var breakOffset=offset + i + 1 ;
this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(lineMap, null, lastOffset, breakOffset));
lastOffset=breakOffset;
hasBreaks=true;
}}
if (hasBreaks) {
this.removed.addElement$TE(rmCandidate);
if ((offset + length == rmOffs1) && (lastOffset != rmOffs1) && ((index + 1) < lineMap.getElementCount$()) ) {
var e=lineMap.getElement$I(index + 1);
this.removed.addElement$TE(e);
rmOffs1=e.getEndOffset$();
}if (lastOffset < rmOffs1) {
this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(lineMap, null, lastOffset, rmOffs1));
}var aelems=Clazz_array($I$(5), [this.added.size$()]);
this.added.copyInto$OA(aelems);
var relems=Clazz_array($I$(5), [this.removed.size$()]);
this.removed.copyInto$OA(relems);
var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[lineMap, index, relems, aelems]);
chng.addEdit$javax_swing_undo_UndoableEdit(ee);
lineMap.replace$I$I$javax_swing_text_ElementA(index, relems.length, aelems);
}if ($I$(8).isComposedTextAttributeDefined$javax_swing_text_AttributeSet(attr)) {
p$1.insertComposedTextUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet.apply(this, [chng, attr]);
}} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
throw Clazz_new_($I$(9).c$$S,["Internal error: " + e.toString()]);
} else {
throw e;
}
}
C$.superclazz.prototype.insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet.apply(this, [chng, attr]);
});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent', function (chng) {
this.removed.removeAllElements$();
var map=this.getDefaultRootElement$();
var offset=chng.getOffset$();
var length=chng.getLength$();
var line0=map.getElementIndex$I(offset);
var line1=map.getElementIndex$I(offset + length);
if (line0 != line1) {
for (var i=line0; i <= line1; i++) {
this.removed.addElement$TE(map.getElement$I(i));
}
var p0=map.getElement$I(line0).getStartOffset$();
var p1=map.getElement$I(line1).getEndOffset$();
var aelems=Clazz_array($I$(5), [1]);
aelems[0]=this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(map, null, p0, p1);
var relems=Clazz_array($I$(5), [this.removed.size$()]);
this.removed.copyInto$OA(relems);
var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[map, line0, relems, aelems]);
chng.addEdit$javax_swing_undo_UndoableEdit(ee);
map.replace$I$I$javax_swing_text_ElementA(line0, relems.length, aelems);
} else {
var line=map.getElement$I(line0);
if (!line.isLeaf$()) {
var leaf=line.getElement$I(line.getElementIndex$I(offset));
if ($I$(8).isComposedTextElement$javax_swing_text_Element(leaf)) {
var aelem=Clazz_array($I$(5), [1]);
aelem[0]=this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(map, null, line.getStartOffset$(), line.getEndOffset$());
var relem=Clazz_array($I$(5), [1]);
relem[0]=line;
var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[map, line0, relem, aelem]);
chng.addEdit$javax_swing_undo_UndoableEdit(ee);
map.replace$I$I$javax_swing_text_ElementA(line0, 1, aelem);
}}}C$.superclazz.prototype.removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent.apply(this, [chng]);
});
Clazz_newMeth(C$, 'insertComposedTextUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet', function (chng, attr) {
this.added.removeAllElements$();
var lineMap=this.getDefaultRootElement$();
var offset=chng.getOffset$();
var length=chng.getLength$();
var index=lineMap.getElementIndex$I(offset);
var elem=lineMap.getElement$I(index);
var elemStart=elem.getStartOffset$();
var elemEnd=elem.getEndOffset$();
var abelem=Clazz_array($I$(10), [1]);
abelem[0]=this.createBranchElement$javax_swing_text_Element$javax_swing_text_AttributeSet(lineMap, null);
var relem=Clazz_array($I$(5), [1]);
relem[0]=elem;
if (elemStart != offset) this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(abelem[0], null, elemStart, offset));
this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(abelem[0], attr, offset, offset + length));
if (elemEnd != offset + length) this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(abelem[0], null, offset + length, elemEnd));
var alelem=Clazz_array($I$(5), [this.added.size$()]);
this.added.copyInto$OA(alelem);
var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[lineMap, index, relem, abelem]);
chng.addEdit$javax_swing_undo_UndoableEdit(ee);
abelem[0].replace$I$I$javax_swing_text_ElementA(0, 0, alelem);
lineMap.replace$I$I$javax_swing_text_ElementA(index, 1, abelem);
}, p$1);
Clazz_newMeth(C$, 'render$Runnable', function (r) {
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'javax.swing.text.Segment','javax.swing.text.SegmentCache','javax.swing.text.Utilities',['javax.swing.text.Position','.Bias'],['javax.swing.event.DocumentEvent','.EventType'],'java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "PlainView", null, 'javax.swing.text.View', 'javax.swing.text.TabExpander');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.metrics=null;
this.longLine=null;
this.font=null;
this.lineBuffer=null;
this.tabSize=0;
this.tabBase=0;
this.sel0=0;
this.sel1=0;
this.unselected=null;
this.selected=null;
this.firstLineOffset=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Element', function (elem) {
C$.superclazz.c$$javax_swing_text_Element.apply(this, [elem]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getTabSize$', function () {
var i=this.getDocument$().getProperty$O("tabSize");
var size=(i != null ) ? i.intValue$() : 8;
return size;
});
Clazz_newMeth(C$, 'getLineBuffer$', function () {
if (this.lineBuffer == null ) {
this.lineBuffer=Clazz_new_($I$(1));
}return this.lineBuffer;
});
Clazz_newMeth(C$, 'updateMetrics$', function () {
var host=this.getContainer$();
var f=host.getFont$();
if (this.font !== f ) {
p$1.calculateLongestLine.apply(this, []);
this.tabSize=this.getTabSize$() * this.metrics.charWidth$C("m");
}});
Clazz_newMeth(C$, 'getPreferredSpan$I', function (axis) {
this.updateMetrics$();
switch (axis) {
case 0:
return p$1.getLineWidth$javax_swing_text_Element.apply(this, [this.longLine]);
case 1:
return this.getElement$().getElementCount$() * this.metrics.getHeight$();
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid axis: " + axis]);
}
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$java_awt_Shape', function (g, a) {
});
Clazz_newMeth(C$, 'adjustPaintRegion$java_awt_Shape', function (a) {
return a;
});
Clazz_newMeth(C$, 'modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias', function (pos, a, b) {
var doc=this.getDocument$();
var map=this.getElement$();
var lineIndex=map.getElementIndex$I(pos);
if (lineIndex < 0) {
return this.lineToRect$java_awt_Shape$I(a, 0);
}var lineArea=this.lineToRect$java_awt_Shape$I(a, lineIndex);
this.tabBase=lineArea.x;
var line=map.getElement$I(lineIndex);
var p0=line.getStartOffset$();
var s=$I$(2).getSharedSegment$();
doc.getText$I$I$javax_swing_text_Segment(p0, pos - p0, s);
var xOffs=$I$(3).getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I(s, this.metrics, this.tabBase, this, p0);
$I$(2).releaseSharedSegment$javax_swing_text_Segment(s);
lineArea.x+=xOffs;
lineArea.width=1;
lineArea.height=this.metrics.getHeight$();
return lineArea;
});
Clazz_newMeth(C$, 'viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA', function (fx, fy, a, bias) {
bias[0]=$I$(4).Forward;
var alloc=a.getBounds$();
var doc=this.getDocument$();
var x=(fx|0);
var y=(fy|0);
if (y < alloc.y) {
return this.getStartOffset$();
} else if (y > alloc.y + alloc.height) {
return this.getEndOffset$() - 1;
} else {
var map=doc.getDefaultRootElement$();
var fontHeight=this.metrics.getHeight$();
var lineIndex=(fontHeight > 0 ? Math.abs(((y - alloc.y)/fontHeight|0)) : map.getElementCount$() - 1);
if (lineIndex >= map.getElementCount$()) {
return this.getEndOffset$() - 1;
}var line=map.getElement$I(lineIndex);
if (lineIndex == 0) {
alloc.x+=this.firstLineOffset;
alloc.width-=this.firstLineOffset;
}if (x < alloc.x) {
return line.getStartOffset$();
} else if (x > alloc.x + alloc.width) {
return line.getEndOffset$() - 1;
} else {
try {
var p0=line.getStartOffset$();
var p1=line.getEndOffset$() - 1;
var s=$I$(2).getSharedSegment$();
doc.getText$I$I$javax_swing_text_Segment(p0, p1 - p0, s);
this.tabBase=alloc.x;
var offs=p0 + $I$(3).getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I(s, this.metrics, this.tabBase, x, this, p0);
$I$(2).releaseSharedSegment$javax_swing_text_Segment(s);
return offs;
} catch (e) {
if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){
return -1;
} else {
throw e;
}
}
}}});
Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) {
this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(changes, a, f);
});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) {
this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(changes, a, f);
});
Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) {
this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(changes, a, f);
});
Clazz_newMeth(C$, 'setSize$F$F', function (width, height) {
C$.superclazz.prototype.setSize$F$F.apply(this, [width, height]);
this.updateMetrics$();
});
Clazz_newMeth(C$, ['nextTabStop$F$I','nextTabStop$'], function (x, tabOffset) {
if (this.tabSize == 0) {
return x;
}var ntabs=((((x|0)) - this.tabBase)/this.tabSize|0);
return this.tabBase + ((ntabs + 1) * this.tabSize);
});
Clazz_newMeth(C$, 'updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) {
var host=this.getContainer$();
this.updateMetrics$();
var elem=this.getElement$();
var ec=changes.getChange$javax_swing_text_Element(elem);
var added=(ec != null ) ? ec.getChildrenAdded$() : null;
var removed=(ec != null ) ? ec.getChildrenRemoved$() : null;
if (((added != null ) && (added.length > 0) ) || ((removed != null ) && (removed.length > 0) ) ) {
if (added != null ) {
var currWide=p$1.getLineWidth$javax_swing_text_Element.apply(this, [this.longLine]);
for (var i=0; i < added.length; i++) {
var w=p$1.getLineWidth$javax_swing_text_Element.apply(this, [added[i]]);
if (w > currWide) {
currWide=w;
this.longLine=added[i];
}}
}if (removed != null ) {
for (var i=0; i < removed.length; i++) {
if (removed[i] === this.longLine ) {
p$1.calculateLongestLine.apply(this, []);
break;
}}
}this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, true);
host.repaint$();
} else {
var map=this.getElement$();
var line=map.getElementIndex$I(changes.getOffset$());
this.damageLineRange$I$I$java_awt_Shape$java_awt_Component(line, line, a, host);
if (changes.getType$() === $I$(5).INSERT ) {
var w=p$1.getLineWidth$javax_swing_text_Element.apply(this, [this.longLine]);
var e=map.getElement$I(line);
if (e === this.longLine ) {
this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, false);
} else if (p$1.getLineWidth$javax_swing_text_Element.apply(this, [e]) > w) {
this.longLine=e;
this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, false);
}} else if (changes.getType$() === $I$(5).REMOVE ) {
if (map.getElement$I(line) === this.longLine ) {
p$1.calculateLongestLine.apply(this, []);
this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, false);
}}}});
Clazz_newMeth(C$, 'damageLineRange$I$I$java_awt_Shape$java_awt_Component', function (line0, line1, a, host) {
if (a != null ) {
var area0=this.lineToRect$java_awt_Shape$I(a, line0);
var area1=this.lineToRect$java_awt_Shape$I(a, line1);
if ((area0 != null ) && (area1 != null ) ) {
var damage=area0.union$java_awt_Rectangle(area1);
host.repaint$I$I$I$I(damage.x, damage.y, damage.width, damage.height);
} else {
host.repaint$();
}}});
Clazz_newMeth(C$, 'lineToRect$java_awt_Shape$I', function (a, line) {
var r=null;
this.updateMetrics$();
if (this.metrics != null ) {
var alloc=a.getBounds$();
if (line == 0) {
alloc.x+=this.firstLineOffset;
alloc.width-=this.firstLineOffset;
}r=Clazz_new_($I$(6).c$$I$I$I$I,[alloc.x, alloc.y + (line * this.metrics.getHeight$()), alloc.width, this.metrics.getHeight$()]);
}return r;
});
Clazz_newMeth(C$, 'calculateLongestLine', function () {
var c=this.getContainer$();
this.font=c.getFont$();
this.metrics=c.getFontMetrics$java_awt_Font(this.font);
var lines=this.getElement$();
var n=lines.getElementCount$();
var maxWidth=-1;
for (var i=0; i < n; i++) {
var line=lines.getElement$I(i);
var w=p$1.getLineWidth$javax_swing_text_Element.apply(this, [line]);
if (w > maxWidth) {
maxWidth=w;
this.longLine=line;
}}
}, p$1);
Clazz_newMeth(C$, 'getLineWidth$javax_swing_text_Element', function (line) {
if (line == null ) {
return 0;
}var p0=line.getStartOffset$();
var p1=line.getEndOffset$();
var w;
var s=$I$(2).getSharedSegment$();
try {
line.getDocument$().getText$I$I$javax_swing_text_Segment(p0, p1 - p0, s);
w=$I$(3).getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I(s, this.metrics, this.tabBase, this, p0);
} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
w=0;
} else {
throw ble;
}
}
$I$(2).releaseSharedSegment$javax_swing_text_Segment(s);
return w;
}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "Position", function(){
});
;
(function(){var C$=Clazz_newClass(P$.Position, "Bias", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.Forward=null;
C$.Backward=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.Forward=Clazz_new_(C$.c$$S,["Forward"]);
C$.Backward=Clazz_new_(C$.c$$S,["Backward"]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.name=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.name;
});
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.$init$.apply(this);
this.name=name;
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.Position, "Bias", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.Forward=null;
C$.Backward=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.Forward=Clazz_new_(C$.c$$S,["Forward"]);
C$.Backward=Clazz_new_(C$.c$$S,["Backward"]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.name=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.name;
});
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.$init$.apply(this);
this.name=name;
}, 1);
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newClass(P$, "Segment", null, null, ['Cloneable', 'java.text.CharacterIterator', 'CharSequence']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.array=null;
this.offset=0;
this.count=0;
this.partialReturn=false;
this.pos=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$CA$I$I.apply(this, [null, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$CA$I$I', function (array, offset, count) {
C$.$init$.apply(this);
this.array=array;
this.offset=offset;
this.count=count;
this.partialReturn=false;
}, 1);
Clazz_newMeth(C$, 'setPartialReturn$Z', function (p) {
this.partialReturn=p;
});
Clazz_newMeth(C$, 'isPartialReturn$', function () {
return this.partialReturn;
});
Clazz_newMeth(C$, 'toString', function () {
if (this.array != null ) {
return String.instantialize(this.array, this.offset, this.count);
}return String.instantialize();
});
Clazz_newMeth(C$, 'first$', function () {
this.pos=this.offset;
if (this.count != 0) {
return this.array[this.pos];
}return "\uffff";
});
Clazz_newMeth(C$, 'last$', function () {
this.pos=this.offset + this.count;
if (this.count != 0) {
this.pos-=1;
return this.array[this.pos];
}return "\uffff";
});
Clazz_newMeth(C$, 'current$', function () {
if (this.count != 0 && this.pos < this.offset + this.count ) {
return this.array[this.pos];
}return "\uffff";
});
Clazz_newMeth(C$, 'next$', function () {
this.pos+=1;
var end=this.offset + this.count;
if (this.pos >= end) {
this.pos=end;
return "\uffff";
}return this.current$();
});
Clazz_newMeth(C$, 'previous$', function () {
if (this.pos == this.offset) {
return "\uffff";
}this.pos-=1;
return this.current$();
});
Clazz_newMeth(C$, 'setIndex$I', function (position) {
var end=this.offset + this.count;
if ((position < this.offset) || (position > end) ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["bad position: " + position]);
}this.pos=position;
if ((this.pos != end) && (this.count != 0) ) {
return this.array[this.pos];
}return "\uffff";
});
Clazz_newMeth(C$, 'getBeginIndex$', function () {
return this.offset;
});
Clazz_newMeth(C$, 'getEndIndex$', function () {
return this.offset + this.count;
});
Clazz_newMeth(C$, 'getIndex$', function () {
return this.pos;
});
Clazz_newMeth(C$, 'charAt$I', function (index) {
if (index < 0 || index >= this.count ) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]);
}return this.array[this.offset + index];
});
Clazz_newMeth(C$, 'length$', function () {
return this.count;
});
Clazz_newMeth(C$, 'subSequence$I$I', function (start, end) {
if (start < 0) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[start]);
}if (end > this.count) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[end]);
}if (start > end) {
throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[end - start]);
}var segment=Clazz_new_(C$);
segment.array=this.array;
segment.offset=this.offset + start;
segment.count=end - start;
return segment;
});
Clazz_newMeth(C$, 'clone$', function () {
var o;
try {
o=Clazz_clone(this);
} catch (cnse) {
if (Clazz_exceptionOf(cnse,"CloneNotSupportedException")){
o=null;
} else {
throw cnse;
}
}
return o;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,'javajs.util.Lst',['javax.swing.text.SegmentCache','.CachedSegment']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "SegmentCache", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.sharedCache=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.segments=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getSharedInstance$', function () {
if (C$.sharedCache == null ) C$.sharedCache=Clazz_new_(C$);
return C$.sharedCache;
}, 1);
Clazz_newMeth(C$, 'getSharedSegment$', function () {
return C$.getSharedInstance$().getSegment$();
}, 1);
Clazz_newMeth(C$, 'releaseSharedSegment$javax_swing_text_Segment', function (segment) {
C$.getSharedInstance$().releaseSegment$javax_swing_text_Segment(segment);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.segments=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'getSegment$', function () {
{
var size=this.segments.size$();
if (size > 0) {
return this.segments.removeItemAt$I(size - 1);
}}return Clazz_new_($I$(2));
});
Clazz_newMeth(C$, 'releaseSegment$javax_swing_text_Segment', function (segment) {
if (Clazz_instanceOf(segment, "javax.swing.text.SegmentCache.CachedSegment")) {
{
segment.array=null;
segment.count=0;
this.segments.add$TE(segment);
}}});
;
(function(){var C$=Clazz_newClass(P$.SegmentCache, "CachedSegment", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.Segment');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.SimpleAttributeSet','.EmptyAttributeSet'],'java.util.Hashtable','javax.swing.text.StyleConstants']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "SimpleAttributeSet", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['javax.swing.text.MutableAttributeSet', 'Cloneable']);
C$.EMPTY=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EMPTY=Clazz_new_($I$(1));
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.table=Clazz_new_($I$(2).c$$I,[3]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_AttributeSet', function (source) {
C$.$init$.apply(this);
this.addAttributes$javax_swing_text_AttributeSet(source);
}, 1);
Clazz_newMeth(C$, 'isEmpty$', function () {
return this.table.isEmpty$();
});
Clazz_newMeth(C$, 'getAttributeCount$', function () {
return this.table.size$();
});
Clazz_newMeth(C$, 'isDefined$O', function (attrName) {
return this.table.containsKey$O(attrName);
});
Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) {
return ((this.getAttributeCount$() == attr.getAttributeCount$()) && this.containsAttributes$javax_swing_text_AttributeSet(attr) );
});
Clazz_newMeth(C$, 'copyAttributes$', function () {
return this.clone$();
});
Clazz_newMeth(C$, 'getAttributeNames$', function () {
return this.table.keys$();
});
Clazz_newMeth(C$, 'getAttribute$O', function (name) {
var value=this.table.get$O(name);
if (value == null ) {
var parent=this.getResolveParent$();
if (parent != null ) {
value=parent.getAttribute$O(name);
}}return value;
});
Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) {
return value.equals$O(this.getAttribute$O(name));
});
Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attributes) {
var result=true;
var names=attributes.getAttributeNames$();
while (result && names.hasMoreElements$() ){
var name=names.nextElement$();
result=attributes.getAttribute$O(name).equals$O(this.getAttribute$O(name));
}
return result;
});
Clazz_newMeth(C$, 'addAttribute$O$O', function (name, value) {
this.table.put$TK$TV(name, value);
});
Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attributes) {
var names=attributes.getAttributeNames$();
while (names.hasMoreElements$()){
var name=names.nextElement$();
this.addAttribute$O$O(name, attributes.getAttribute$O(name));
}
});
Clazz_newMeth(C$, 'removeAttribute$O', function (name) {
this.table.remove$O(name);
});
Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) {
while (names.hasMoreElements$())this.removeAttribute$O(names.nextElement$());
});
Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attributes) {
if (attributes === this ) {
this.table.clear$();
} else {
var names=attributes.getAttributeNames$();
while (names.hasMoreElements$()){
var name=names.nextElement$();
var value=attributes.getAttribute$O(name);
if (value.equals$O(this.getAttribute$O(name))) this.removeAttribute$O(name);
}
}});
Clazz_newMeth(C$, 'getResolveParent$', function () {
return this.table.get$O($I$(3).ResolveAttribute);
});
Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_AttributeSet', function (parent) {
this.addAttribute$O$O($I$(3).ResolveAttribute, parent);
});
Clazz_newMeth(C$, 'clone$', function () {
var attr;
try {
attr=Clazz_clone(this);
attr.table=this.table.clone$();
} catch (cnse) {
if (Clazz_exceptionOf(cnse,"CloneNotSupportedException")){
attr=null;
} else {
throw cnse;
}
}
return attr;
});
Clazz_newMeth(C$, 'hashCode$', function () {
return this.table.hashCode$();
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (this === obj ) {
return true;
}if (Clazz_instanceOf(obj, "javax.swing.text.AttributeSet")) {
var attrs=obj;
return this.isEqual$javax_swing_text_AttributeSet(attrs);
}return false;
});
Clazz_newMeth(C$, 'toString', function () {
var s="";
var names=this.getAttributeNames$();
while (names.hasMoreElements$()){
var key=names.nextElement$();
var value=this.getAttribute$O(key);
if (Clazz_instanceOf(value, "javax.swing.text.AttributeSet")) {
s=s + key + "=**AttributeSet** " ;
} else {
s=s + key + "=" + value + " " ;
}}
return s;
});
;
(function(){var C$=Clazz_newClass(P$.SimpleAttributeSet, "EmptyAttributeSet", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, 'javax.swing.text.AttributeSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getAttributeCount$', function () {
return 0;
});
Clazz_newMeth(C$, 'isDefined$O', function (attrName) {
return false;
});
Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) {
return (attr.getAttributeCount$() == 0);
});
Clazz_newMeth(C$, 'copyAttributes$', function () {
return this;
});
Clazz_newMeth(C$, 'getAttribute$O', function (key) {
return null;
});
Clazz_newMeth(C$, 'getAttributeNames$', function () {
return ((P$.SimpleAttributeSet$EmptyAttributeSet$1||
(function(){var C$=Clazz_newClass(P$, "SimpleAttributeSet$EmptyAttributeSet$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'hasMoreElements$', function () {
return false;
});
Clazz_newMeth(C$, 'nextElement$', function () {
throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
});
})()
), Clazz_new_(P$.SimpleAttributeSet$EmptyAttributeSet$1.$init$, [this, null]));
});
Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) {
return false;
});
Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attributes) {
return (attributes.getAttributeCount$() == 0);
});
Clazz_newMeth(C$, 'getResolveParent$', function () {
return null;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (this === obj ) {
return true;
}return ((Clazz_instanceOf(obj, "javax.swing.text.AttributeSet")) && ((obj).getAttributeCount$() == 0) );
});
Clazz_newMeth(C$, 'hashCode$', function () {
return 0;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "Style", null, null, 'javax.swing.text.MutableAttributeSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.StyleConstants','.CharacterConstants'],['javax.swing.text.StyleConstants','.FontConstants'],['javax.swing.text.StyleConstants','.ColorConstants'],['javax.swing.text.StyleConstants','.ParagraphConstants'],'Boolean','java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "StyleConstants", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.NameAttribute=null;
C$.ResolveAttribute=null;
C$.ModelAttribute=null;
C$.BidiLevel=null;
C$.FontFamily=null;
C$.Family=null;
C$.FontSize=null;
C$.Size=null;
C$.Bold=null;
C$.Italic=null;
C$.Underline=null;
C$.StrikeThrough=null;
C$.Superscript=null;
C$.Subscript=null;
C$.Foreground=null;
C$.Background=null;
C$.ComponentAttribute=null;
C$.IconAttribute=null;
C$.ComposedTextAttribute=null;
C$.FirstLineIndent=null;
C$.LeftIndent=null;
C$.RightIndent=null;
C$.LineSpacing=null;
C$.SpaceAbove=null;
C$.SpaceBelow=null;
C$.Alignment=null;
C$.TabSet=null;
C$.Orientation=null;
C$.keys=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.NameAttribute=Clazz_new_(C$.c$$S,["name"]);
C$.ResolveAttribute=Clazz_new_(C$.c$$S,["resolver"]);
C$.ModelAttribute=Clazz_new_(C$.c$$S,["model"]);
C$.BidiLevel=Clazz_new_($I$(1).c$$S,["bidiLevel"]);
C$.FontFamily=Clazz_new_($I$(2).c$$S,["family"]);
C$.Family=C$.FontFamily;
C$.FontSize=Clazz_new_($I$(2).c$$S,["size"]);
C$.Size=C$.FontSize;
C$.Bold=Clazz_new_($I$(2).c$$S,["bold"]);
C$.Italic=Clazz_new_($I$(2).c$$S,["italic"]);
C$.Underline=Clazz_new_($I$(1).c$$S,["underline"]);
C$.StrikeThrough=Clazz_new_($I$(1).c$$S,["strikethrough"]);
C$.Superscript=Clazz_new_($I$(1).c$$S,["superscript"]);
C$.Subscript=Clazz_new_($I$(1).c$$S,["subscript"]);
C$.Foreground=Clazz_new_($I$(3).c$$S,["foreground"]);
C$.Background=Clazz_new_($I$(3).c$$S,["background"]);
C$.ComponentAttribute=Clazz_new_($I$(1).c$$S,["component"]);
C$.IconAttribute=Clazz_new_($I$(1).c$$S,["icon"]);
C$.ComposedTextAttribute=Clazz_new_(C$.c$$S,["composed text"]);
C$.FirstLineIndent=Clazz_new_($I$(4).c$$S,["FirstLineIndent"]);
C$.LeftIndent=Clazz_new_($I$(4).c$$S,["LeftIndent"]);
C$.RightIndent=Clazz_new_($I$(4).c$$S,["RightIndent"]);
C$.LineSpacing=Clazz_new_($I$(4).c$$S,["LineSpacing"]);
C$.SpaceAbove=Clazz_new_($I$(4).c$$S,["SpaceAbove"]);
C$.SpaceBelow=Clazz_new_($I$(4).c$$S,["SpaceBelow"]);
C$.Alignment=Clazz_new_($I$(4).c$$S,["Alignment"]);
C$.TabSet=Clazz_new_($I$(4).c$$S,["TabSet"]);
C$.Orientation=Clazz_new_($I$(4).c$$S,["Orientation"]);
C$.keys=Clazz_array(java.lang.Object, -1, [C$.NameAttribute, C$.ResolveAttribute, C$.BidiLevel, C$.FontFamily, C$.FontSize, C$.Bold, C$.Italic, C$.Underline, C$.StrikeThrough, C$.Superscript, C$.Subscript, C$.Foreground, C$.Background, C$.ComponentAttribute, C$.IconAttribute, C$.FirstLineIndent, C$.LeftIndent, C$.RightIndent, C$.LineSpacing, C$.SpaceAbove, C$.SpaceBelow, C$.Alignment, C$.TabSet, C$.Orientation, C$.ModelAttribute, C$.ComposedTextAttribute]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.representation=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return this.representation;
});
Clazz_newMeth(C$, 'getBidiLevel$javax_swing_text_AttributeSet', function (a) {
var o=a.getAttribute$O(C$.BidiLevel);
if (o != null ) {
return o.intValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setBidiLevel$javax_swing_text_MutableAttributeSet$I', function (a, o) {
a.addAttribute$O$O(C$.BidiLevel, new Integer(o));
}, 1);
Clazz_newMeth(C$, 'getComponent$javax_swing_text_AttributeSet', function (a) {
return a.getAttribute$O(C$.ComponentAttribute);
}, 1);
Clazz_newMeth(C$, 'setComponent$javax_swing_text_MutableAttributeSet$java_awt_Component', function (a, c) {
a.addAttribute$O$O("$ename", "component");
a.addAttribute$O$O(C$.ComponentAttribute, c);
}, 1);
Clazz_newMeth(C$, 'getIcon$javax_swing_text_AttributeSet', function (a) {
return a.getAttribute$O(C$.IconAttribute);
}, 1);
Clazz_newMeth(C$, 'setIcon$javax_swing_text_MutableAttributeSet$javax_swing_Icon', function (a, c) {
a.addAttribute$O$O("$ename", "icon");
a.addAttribute$O$O(C$.IconAttribute, c);
}, 1);
Clazz_newMeth(C$, 'getFontFamily$javax_swing_text_AttributeSet', function (a) {
var family=a.getAttribute$O(C$.FontFamily);
if (family == null ) {
family="Monospaced";
}return family;
}, 1);
Clazz_newMeth(C$, 'setFontFamily$javax_swing_text_MutableAttributeSet$S', function (a, fam) {
a.addAttribute$O$O(C$.FontFamily, fam);
}, 1);
Clazz_newMeth(C$, 'getFontSize$javax_swing_text_AttributeSet', function (a) {
var size=a.getAttribute$O(C$.FontSize);
if (size != null ) {
return size.intValue$();
}return 12;
}, 1);
Clazz_newMeth(C$, 'setFontSize$javax_swing_text_MutableAttributeSet$I', function (a, s) {
a.addAttribute$O$O(C$.FontSize, new Integer(s));
}, 1);
Clazz_newMeth(C$, 'isBold$javax_swing_text_AttributeSet', function (a) {
var bold=a.getAttribute$O(C$.Bold);
if (bold != null ) {
return bold.booleanValue$();
}return false;
}, 1);
Clazz_newMeth(C$, 'setBold$javax_swing_text_MutableAttributeSet$Z', function (a, b) {
a.addAttribute$O$O(C$.Bold, $I$(5).valueOf$Z(b));
}, 1);
Clazz_newMeth(C$, 'isItalic$javax_swing_text_AttributeSet', function (a) {
var italic=a.getAttribute$O(C$.Italic);
if (italic != null ) {
return italic.booleanValue$();
}return false;
}, 1);
Clazz_newMeth(C$, 'setItalic$javax_swing_text_MutableAttributeSet$Z', function (a, b) {
a.addAttribute$O$O(C$.Italic, $I$(5).valueOf$Z(b));
}, 1);
Clazz_newMeth(C$, 'isUnderline$javax_swing_text_AttributeSet', function (a) {
var underline=a.getAttribute$O(C$.Underline);
if (underline != null ) {
return underline.booleanValue$();
}return false;
}, 1);
Clazz_newMeth(C$, 'isStrikeThrough$javax_swing_text_AttributeSet', function (a) {
var strike=a.getAttribute$O(C$.StrikeThrough);
if (strike != null ) {
return strike.booleanValue$();
}return false;
}, 1);
Clazz_newMeth(C$, 'isSuperscript$javax_swing_text_AttributeSet', function (a) {
var superscript=a.getAttribute$O(C$.Superscript);
if (superscript != null ) {
return superscript.booleanValue$();
}return false;
}, 1);
Clazz_newMeth(C$, 'isSubscript$javax_swing_text_AttributeSet', function (a) {
var subscript=a.getAttribute$O(C$.Subscript);
if (subscript != null ) {
return subscript.booleanValue$();
}return false;
}, 1);
Clazz_newMeth(C$, 'setUnderline$javax_swing_text_MutableAttributeSet$Z', function (a, b) {
a.addAttribute$O$O(C$.Underline, $I$(5).valueOf$Z(b));
}, 1);
Clazz_newMeth(C$, 'setStrikeThrough$javax_swing_text_MutableAttributeSet$Z', function (a, b) {
a.addAttribute$O$O(C$.StrikeThrough, $I$(5).valueOf$Z(b));
}, 1);
Clazz_newMeth(C$, 'setSuperscript$javax_swing_text_MutableAttributeSet$Z', function (a, b) {
a.addAttribute$O$O(C$.Superscript, $I$(5).valueOf$Z(b));
}, 1);
Clazz_newMeth(C$, 'setSubscript$javax_swing_text_MutableAttributeSet$Z', function (a, b) {
a.addAttribute$O$O(C$.Subscript, $I$(5).valueOf$Z(b));
}, 1);
Clazz_newMeth(C$, 'getForeground$javax_swing_text_AttributeSet', function (a) {
var fg=a.getAttribute$O(C$.Foreground);
if (fg == null ) {
fg=$I$(6).none;
}return fg;
}, 1);
Clazz_newMeth(C$, 'setForeground$javax_swing_text_MutableAttributeSet$java_awt_Color', function (a, fg) {
a.addAttribute$O$O(C$.Foreground, fg);
}, 1);
Clazz_newMeth(C$, 'getBackground$javax_swing_text_AttributeSet', function (a) {
var fg=a.getAttribute$O(C$.Background);
if (fg == null ) {
fg=$I$(6).none;
}return fg;
}, 1);
Clazz_newMeth(C$, 'setBackground$javax_swing_text_MutableAttributeSet$java_awt_Color', function (a, fg) {
a.addAttribute$O$O(C$.Background, fg);
}, 1);
Clazz_newMeth(C$, 'getFirstLineIndent$javax_swing_text_AttributeSet', function (a) {
var indent=a.getAttribute$O(C$.FirstLineIndent);
if (indent != null ) {
return indent.floatValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setFirstLineIndent$javax_swing_text_MutableAttributeSet$F', function (a, i) {
a.addAttribute$O$O(C$.FirstLineIndent, new Float(i));
}, 1);
Clazz_newMeth(C$, 'getRightIndent$javax_swing_text_AttributeSet', function (a) {
var indent=a.getAttribute$O(C$.RightIndent);
if (indent != null ) {
return indent.floatValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setRightIndent$javax_swing_text_MutableAttributeSet$F', function (a, i) {
a.addAttribute$O$O(C$.RightIndent, new Float(i));
}, 1);
Clazz_newMeth(C$, 'getLeftIndent$javax_swing_text_AttributeSet', function (a) {
var indent=a.getAttribute$O(C$.LeftIndent);
if (indent != null ) {
return indent.floatValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setLeftIndent$javax_swing_text_MutableAttributeSet$F', function (a, i) {
a.addAttribute$O$O(C$.LeftIndent, new Float(i));
}, 1);
Clazz_newMeth(C$, 'getLineSpacing$javax_swing_text_AttributeSet', function (a) {
var space=a.getAttribute$O(C$.LineSpacing);
if (space != null ) {
return space.floatValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setLineSpacing$javax_swing_text_MutableAttributeSet$F', function (a, i) {
a.addAttribute$O$O(C$.LineSpacing, new Float(i));
}, 1);
Clazz_newMeth(C$, 'getSpaceAbove$javax_swing_text_AttributeSet', function (a) {
var space=a.getAttribute$O(C$.SpaceAbove);
if (space != null ) {
return space.floatValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setSpaceAbove$javax_swing_text_MutableAttributeSet$F', function (a, i) {
a.addAttribute$O$O(C$.SpaceAbove, new Float(i));
}, 1);
Clazz_newMeth(C$, 'getSpaceBelow$javax_swing_text_AttributeSet', function (a) {
var space=a.getAttribute$O(C$.SpaceBelow);
if (space != null ) {
return space.floatValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setSpaceBelow$javax_swing_text_MutableAttributeSet$F', function (a, i) {
a.addAttribute$O$O(C$.SpaceBelow, new Float(i));
}, 1);
Clazz_newMeth(C$, 'getAlignment$javax_swing_text_AttributeSet', function (a) {
var align=a.getAttribute$O(C$.Alignment);
if (align != null ) {
return align.intValue$();
}return 0;
}, 1);
Clazz_newMeth(C$, 'setAlignment$javax_swing_text_MutableAttributeSet$I', function (a, align) {
a.addAttribute$O$O(C$.Alignment, new Integer(align));
}, 1);
Clazz_newMeth(C$, 'getTabSet$javax_swing_text_AttributeSet', function (a) {
var tabs=a.getAttribute$O(C$.TabSet);
return tabs;
}, 1);
Clazz_newMeth(C$, 'setTabSet$javax_swing_text_MutableAttributeSet$javax_swing_text_TabSet', function (a, tabs) {
a.addAttribute$O$O(C$.TabSet, tabs);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (representation) {
C$.$init$.apply(this);
this.representation=representation;
}, 1);
;
(function(){var C$=Clazz_newClass(P$.StyleConstants, "ParagraphConstants", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.ParagraphAttribute']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (representation) {
C$.superclazz.c$$S.apply(this, [representation]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleConstants, "CharacterConstants", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.CharacterAttribute']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (representation) {
C$.superclazz.c$$S.apply(this, [representation]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleConstants, "ColorConstants", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.ColorAttribute'], ['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.CharacterAttribute']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (representation) {
C$.superclazz.c$$S.apply(this, [representation]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleConstants, "FontConstants", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.FontAttribute'], ['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.CharacterAttribute']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (representation) {
C$.superclazz.c$$S.apply(this, [representation]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},p$2={},I$=[[0,'javax.swing.text.StyleConstants',['javax.swing.text.StyleContext','.KeyEnumeration'],'java.util.Vector','javax.swing.event.EventListenerList','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent',['javax.swing.text.StyleContext','.FontKey'],'java.util.Hashtable','java.util.Collections','java.util.HashMap','javax.swing.text.SimpleAttributeSet',['javax.swing.text.StyleContext','.NamedStyle'],'java.awt.Font','javax.swing.SwingUtilities',['javax.swing.text.StyleContext','.SmallAttributeSet']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "StyleContext", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, [['javax.swing.text.AbstractDocument','javax.swing.text.AbstractDocument.AttributeContext']]);
C$.defaultContext=null;
C$.freezeKeyMap=null;
C$.thawKeyMap=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.styles=null;
this.fontSearch=null;
this.fontTable=null;
this.attributesPool=null;
this.search=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.fontSearch=Clazz_new_($I$(7).c$$S$I$I,[null, 0, 0]);
this.fontTable=Clazz_new_($I$(8));
this.attributesPool=$I$(9).synchronizedMap$java_util_Map(Clazz_new_($I$(10)));
this.search=Clazz_new_($I$(11));
}, 1);
Clazz_newMeth(C$, 'getDefaultStyleContext$', function () {
if (C$.defaultContext == null ) {
C$.defaultContext=Clazz_new_(C$);
}return C$.defaultContext;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.styles=Clazz_new_($I$(12).c$$javax_swing_text_Style, [this, null, null]);
this.addStyle$S$javax_swing_text_Style("default", null);
}, 1);
Clazz_newMeth(C$, 'addStyle$S$javax_swing_text_Style', function (nm, parent) {
var style=Clazz_new_($I$(12).c$$S$javax_swing_text_Style, [this, null, nm, parent]);
if (nm != null ) {
this.styles.addAttribute$O$O(nm, style);
}return style;
});
Clazz_newMeth(C$, 'removeStyle$S', function (nm) {
this.styles.removeAttribute$O(nm);
});
Clazz_newMeth(C$, 'getStyle$S', function (nm) {
return this.styles.getAttribute$O(nm);
});
Clazz_newMeth(C$, 'getStyleNames$', function () {
return this.styles.getAttributeNames$();
});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.styles.addChangeListener$javax_swing_event_ChangeListener(l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.styles.removeChangeListener$javax_swing_event_ChangeListener(l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return (this.styles).getChangeListeners$();
});
Clazz_newMeth(C$, 'getFont$javax_swing_text_AttributeSet', function (attr) {
var style=0;
if ($I$(1).isBold$javax_swing_text_AttributeSet(attr)) {
style|=1;
}if ($I$(1).isItalic$javax_swing_text_AttributeSet(attr)) {
style|=2;
}var family=$I$(1).getFontFamily$javax_swing_text_AttributeSet(attr);
var size=$I$(1).getFontSize$javax_swing_text_AttributeSet(attr);
if ($I$(1).isSuperscript$javax_swing_text_AttributeSet(attr) || $I$(1).isSubscript$javax_swing_text_AttributeSet(attr) ) {
size-=2;
}return this.getFont$S$I$I(family, style, size);
});
Clazz_newMeth(C$, 'getForeground$javax_swing_text_AttributeSet', function (attr) {
return $I$(1).getForeground$javax_swing_text_AttributeSet(attr);
});
Clazz_newMeth(C$, 'getBackground$javax_swing_text_AttributeSet', function (attr) {
return $I$(1).getBackground$javax_swing_text_AttributeSet(attr);
});
Clazz_newMeth(C$, 'getFont$S$I$I', function (family, style, size) {
this.fontSearch.setValue$S$I$I(family, style, size);
var f=this.fontTable.get$O(this.fontSearch);
if (f == null ) {
var defaultStyle=this.getStyle$S("default");
if (defaultStyle != null ) {
var FONT_ATTRIBUTE_KEY="FONT_ATTRIBUTE_KEY";
var defaultFont=defaultStyle.getAttribute$O("FONT_ATTRIBUTE_KEY");
if (defaultFont != null && defaultFont.getFamily$().equalsIgnoreCase$S(family) ) {
f=defaultFont.deriveFont$I$F(style, size);
}}if (f == null ) {
f=Clazz_new_($I$(13).c$$S$I$I,[family, style, size]);
}var key=Clazz_new_($I$(7).c$$S$I$I,[family, style, size]);
this.fontTable.put$TK$TV(key, f);
}return f;
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (f) {
return f.getFontMetrics$();
});
Clazz_newMeth(C$, 'addAttribute$javax_swing_text_AttributeSet$O$O', function (old, name, value) {
if ((old.getAttributeCount$() + 1) <= this.getCompressionThreshold$()) {
this.search.removeAttributes$javax_swing_text_AttributeSet(this.search);
this.search.addAttributes$javax_swing_text_AttributeSet(old);
this.search.addAttribute$O$O(name, value);
this.reclaim$javax_swing_text_AttributeSet(old);
return this.getImmutableUniqueSet$();
}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old);
ma.addAttribute$O$O(name, value);
return ma;
});
Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet', function (old, attr) {
if ((old.getAttributeCount$() + attr.getAttributeCount$()) <= this.getCompressionThreshold$()) {
this.search.removeAttributes$javax_swing_text_AttributeSet(this.search);
this.search.addAttributes$javax_swing_text_AttributeSet(old);
this.search.addAttributes$javax_swing_text_AttributeSet(attr);
this.reclaim$javax_swing_text_AttributeSet(old);
return this.getImmutableUniqueSet$();
}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old);
ma.addAttributes$javax_swing_text_AttributeSet(attr);
return ma;
});
Clazz_newMeth(C$, 'removeAttribute$javax_swing_text_AttributeSet$O', function (old, name) {
if ((old.getAttributeCount$() - 1) <= this.getCompressionThreshold$()) {
this.search.removeAttributes$javax_swing_text_AttributeSet(this.search);
this.search.addAttributes$javax_swing_text_AttributeSet(old);
this.search.removeAttribute$O(name);
this.reclaim$javax_swing_text_AttributeSet(old);
return this.getImmutableUniqueSet$();
}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old);
ma.removeAttribute$O(name);
return ma;
});
Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet$java_util_Enumeration', function (old, names) {
if (old.getAttributeCount$() <= this.getCompressionThreshold$()) {
this.search.removeAttributes$javax_swing_text_AttributeSet(this.search);
this.search.addAttributes$javax_swing_text_AttributeSet(old);
this.search.removeAttributes$java_util_Enumeration(names);
this.reclaim$javax_swing_text_AttributeSet(old);
return this.getImmutableUniqueSet$();
}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old);
ma.removeAttributes$java_util_Enumeration(names);
return ma;
});
Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet', function (old, attrs) {
if (old.getAttributeCount$() <= this.getCompressionThreshold$()) {
this.search.removeAttributes$javax_swing_text_AttributeSet(this.search);
this.search.addAttributes$javax_swing_text_AttributeSet(old);
this.search.removeAttributes$javax_swing_text_AttributeSet(attrs);
this.reclaim$javax_swing_text_AttributeSet(old);
return this.getImmutableUniqueSet$();
}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old);
ma.removeAttributes$javax_swing_text_AttributeSet(attrs);
return ma;
});
Clazz_newMeth(C$, 'getEmptySet$', function () {
return $I$(11).EMPTY;
});
Clazz_newMeth(C$, 'reclaim$javax_swing_text_AttributeSet', function (a) {
if ($I$(14).isEventDispatchThread$()) {
this.attributesPool.size$();
}});
Clazz_newMeth(C$, 'getCompressionThreshold$', function () {
return 9;
});
Clazz_newMeth(C$, 'createSmallAttributeSet$javax_swing_text_AttributeSet', function (a) {
return Clazz_new_($I$(15).c$$javax_swing_text_AttributeSet, [this, null, a]);
});
Clazz_newMeth(C$, 'createLargeAttributeSet$javax_swing_text_AttributeSet', function (a) {
return Clazz_new_($I$(11).c$$javax_swing_text_AttributeSet,[a]);
});
Clazz_newMeth(C$, 'removeUnusedSets$', function () {
this.attributesPool.size$();
});
Clazz_newMeth(C$, 'getImmutableUniqueSet$', function () {
var key=this.createSmallAttributeSet$javax_swing_text_AttributeSet(this.search);
return key;
});
Clazz_newMeth(C$, 'getMutableAttributeSet$javax_swing_text_AttributeSet', function (a) {
if (Clazz_instanceOf(a, "javax.swing.text.MutableAttributeSet") && a !== $I$(11).EMPTY ) {
return a;
}return this.createLargeAttributeSet$javax_swing_text_AttributeSet(a);
});
Clazz_newMeth(C$, 'toString', function () {
this.removeUnusedSets$();
var s="";
var iterator=this.attributesPool.keySet$().iterator$();
while (iterator.hasNext$()){
var set=iterator.next$();
s=s + set + "\n" ;
}
return s;
});
Clazz_newMeth(C$, 'registerStaticAttributeKey$O', function (key) {
var ioFmt=key.getClass$().getName$() + "." + key.toString() ;
if (C$.freezeKeyMap == null ) {
C$.freezeKeyMap=Clazz_new_($I$(8));
C$.thawKeyMap=Clazz_new_($I$(8));
}C$.freezeKeyMap.put$TK$TV(key, ioFmt);
C$.thawKeyMap.put$TK$TV(ioFmt, key);
}, 1);
Clazz_newMeth(C$, 'getStaticAttribute$O', function (key) {
if (C$.thawKeyMap == null || key == null ) {
return null;
}return C$.thawKeyMap.get$O(key);
}, 1);
Clazz_newMeth(C$, 'getStaticAttributeKey$O', function (key) {
return key.getClass$().getName$() + "." + key.toString() ;
}, 1);
;
(function(){var C$=Clazz_newClass(P$.StyleContext, "SmallAttributeSet", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.text.AttributeSet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.attributes=null;
this.resolveParent=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$OA', function (attributes) {
C$.$init$.apply(this);
this.attributes=attributes;
p$1.updateResolveParent.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_AttributeSet', function (attrs) {
C$.$init$.apply(this);
var n=attrs.getAttributeCount$();
var tbl=Clazz_array(java.lang.Object, [2 * n]);
var names=attrs.getAttributeNames$();
var i=0;
while (names.hasMoreElements$()){
tbl[i]=names.nextElement$();
tbl[i + 1]=attrs.getAttribute$O(tbl[i]);
i+=2;
}
this.attributes=tbl;
p$1.updateResolveParent.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'updateResolveParent', function () {
this.resolveParent=null;
var tbl=this.attributes;
for (var i=0; i < tbl.length; i+=2) {
if (tbl[i] === $I$(1).ResolveAttribute ) {
this.resolveParent=tbl[i + 1];
break;
}}
}, p$1);
Clazz_newMeth(C$, 'getLocalAttribute$O', function (nm) {
if (nm === $I$(1).ResolveAttribute ) {
return this.resolveParent;
}var tbl=this.attributes;
for (var i=0; i < tbl.length; i+=2) {
if (nm.equals$O(tbl[i])) {
return tbl[i + 1];
}}
return null;
});
Clazz_newMeth(C$, 'toString', function () {
var s="{";
var tbl=this.attributes;
for (var i=0; i < tbl.length; i+=2) {
if (Clazz_instanceOf(tbl[i + 1], "javax.swing.text.AttributeSet")) {
s=s + tbl[i] + "=" + "AttributeSet" + "," ;
} else {
s=s + tbl[i] + "=" + tbl[i + 1] + "," ;
}}
s=s + "}";
return s;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var code=0;
var tbl=this.attributes;
for (var i=1; i < tbl.length; i+=2) {
code^=tbl[i].hashCode$();
}
return code;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (Clazz_instanceOf(obj, "javax.swing.text.AttributeSet")) {
var attrs=obj;
return ((this.getAttributeCount$() == attrs.getAttributeCount$()) && this.containsAttributes$javax_swing_text_AttributeSet(attrs) );
}return false;
});
Clazz_newMeth(C$, 'clone$', function () {
return this;
});
Clazz_newMeth(C$, 'getAttributeCount$', function () {
return (this.attributes.length/2|0);
});
Clazz_newMeth(C$, 'isDefined$O', function (key) {
var a=this.attributes;
var n=a.length;
for (var i=0; i < n; i+=2) {
if (key.equals$O(a[i])) {
return true;
}}
return false;
});
Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) {
if (Clazz_instanceOf(attr, "javax.swing.text.StyleContext.SmallAttributeSet")) {
return attr === this ;
}return ((this.getAttributeCount$() == attr.getAttributeCount$()) && this.containsAttributes$javax_swing_text_AttributeSet(attr) );
});
Clazz_newMeth(C$, 'copyAttributes$', function () {
return this;
});
Clazz_newMeth(C$, 'getAttribute$O', function (key) {
var value=this.getLocalAttribute$O(key);
if (value == null ) {
var parent=this.getResolveParent$();
if (parent != null ) value=parent.getAttribute$O(key);
}return value;
});
Clazz_newMeth(C$, 'getAttributeNames$', function () {
return Clazz_new_($I$(2).c$$OA, [this, null, this.attributes]);
});
Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) {
return value.equals$O(this.getAttribute$O(name));
});
Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attrs) {
var result=true;
var names=attrs.getAttributeNames$();
while (result && names.hasMoreElements$() ){
var name=names.nextElement$();
result=attrs.getAttribute$O(name).equals$O(this.getAttribute$O(name));
}
return result;
});
Clazz_newMeth(C$, 'getResolveParent$', function () {
return this.resolveParent;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleContext, "KeyEnumeration", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.util.Enumeration');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.attr=null;
this.i=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$OA', function (attr) {
C$.$init$.apply(this);
this.attr=attr;
this.i=0;
}, 1);
Clazz_newMeth(C$, 'hasMoreElements$', function () {
return this.i < this.attr.length;
});
Clazz_newMeth(C$, 'nextElement$', function () {
if (this.i < this.attr.length) {
var o=this.attr[this.i];
this.i+=2;
return o;
}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException'));
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleContext, "KeyBuilder", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.keys=null;
this.data=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.keys=Clazz_new_($I$(3));
this.data=Clazz_new_($I$(3));
}, 1);
Clazz_newMeth(C$, 'initialize$javax_swing_text_AttributeSet', function (a) {
if (Clazz_instanceOf(a, "javax.swing.text.StyleContext.SmallAttributeSet")) {
p$2.initialize$OA.apply(this, [(a).attributes]);
} else {
this.keys.removeAllElements$();
this.data.removeAllElements$();
var names=a.getAttributeNames$();
while (names.hasMoreElements$()){
var name=names.nextElement$();
this.addAttribute$O$O(name, a.getAttribute$O(name));
}
}});
Clazz_newMeth(C$, 'initialize$OA', function (sorted) {
this.keys.removeAllElements$();
this.data.removeAllElements$();
var n=sorted.length;
for (var i=0; i < n; i+=2) {
this.keys.addElement$TE(sorted[i]);
this.data.addElement$TE(sorted[i + 1]);
}
}, p$2);
Clazz_newMeth(C$, 'createTable$', function () {
var n=this.keys.size$();
var tbl=Clazz_array(java.lang.Object, [2 * n]);
for (var i=0; i < n; i++) {
var offs=2 * i;
tbl[offs]=this.keys.elementAt$I(i);
tbl[offs + 1]=this.data.elementAt$I(i);
}
return tbl;
});
Clazz_newMeth(C$, 'getCount$', function () {
return this.keys.size$();
});
Clazz_newMeth(C$, 'addAttribute$O$O', function (key, value) {
this.keys.addElement$TE(key);
this.data.addElement$TE(value);
});
Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attr) {
if (Clazz_instanceOf(attr, "javax.swing.text.StyleContext.SmallAttributeSet")) {
var tbl=(attr).attributes;
var n=tbl.length;
for (var i=0; i < n; i+=2) {
this.addAttribute$O$O(tbl[i], tbl[i + 1]);
}
} else {
var names=attr.getAttributeNames$();
while (names.hasMoreElements$()){
var name=names.nextElement$();
this.addAttribute$O$O(name, attr.getAttribute$O(name));
}
}});
Clazz_newMeth(C$, 'removeAttribute$O', function (key) {
var n=this.keys.size$();
for (var i=0; i < n; i++) {
if (this.keys.elementAt$I(i).equals$O(key)) {
this.keys.removeElementAt$I(i);
this.data.removeElementAt$I(i);
return;
}}
});
Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) {
while (names.hasMoreElements$()){
var name=names.nextElement$();
this.removeAttribute$O(name);
}
});
Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attr) {
var names=attr.getAttributeNames$();
while (names.hasMoreElements$()){
var name=names.nextElement$();
var value=attr.getAttribute$O(name);
p$2.removeSearchAttribute$O$O.apply(this, [name, value]);
}
});
Clazz_newMeth(C$, 'removeSearchAttribute$O$O', function (ikey, value) {
var n=this.keys.size$();
for (var i=0; i < n; i++) {
if (this.keys.elementAt$I(i).equals$O(ikey)) {
if (this.data.elementAt$I(i).equals$O(value)) {
this.keys.removeElementAt$I(i);
this.data.removeElementAt$I(i);
}return;
}}
}, p$2);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleContext, "FontKey", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.family=null;
this.style=0;
this.size=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I', function (family, style, size) {
C$.$init$.apply(this);
this.setValue$S$I$I(family, style, size);
}, 1);
Clazz_newMeth(C$, 'setValue$S$I$I', function (family, style, size) {
this.family=(family != null ) ? family.intern$() : null;
this.style=style;
this.size=size;
});
Clazz_newMeth(C$, 'hashCode$', function () {
var fhash=(this.family != null ) ? this.family.hashCode$() : 0;
return fhash ^ this.style ^ this.size ;
});
Clazz_newMeth(C$, 'equals$O', function (obj) {
if (Clazz_instanceOf(obj, "javax.swing.text.StyleContext.FontKey")) {
var font=obj;
return (this.size == font.size) && (this.style == font.style) && (this.family == font.family) ;
}return false;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.StyleContext, "NamedStyle", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.text.Style');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.listenerList=null;
this.changeEvent=null;
this.attributes=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.listenerList=Clazz_new_($I$(4));
this.changeEvent=null;
}, 1);
Clazz_newMeth(C$, 'c$$S$javax_swing_text_Style', function (name, parent) {
C$.$init$.apply(this);
this.attributes=this.this$0.getEmptySet$.apply(this.this$0, []);
if (name != null ) {
this.setName$S(name);
}if (parent != null ) {
this.setResolveParent$javax_swing_text_AttributeSet(parent);
}}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Style', function (parent) {
C$.c$$S$javax_swing_text_Style.apply(this, [null, parent]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.attributes=this.this$0.getEmptySet$.apply(this.this$0, []);
}, 1);
Clazz_newMeth(C$, 'toString', function () {
return "NamedStyle:" + this.getName$() + " " + this.attributes ;
});
Clazz_newMeth(C$, 'getName$', function () {
if (this.isDefined$O($I$(1).NameAttribute)) {
return this.getAttribute$O($I$(1).NameAttribute).toString();
}return null;
});
Clazz_newMeth(C$, 'setName$S', function (name) {
if (name != null ) {
this.addAttribute$O$O($I$(1).NameAttribute, name);
}});
Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.add$Class$TT(Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) {
this.listenerList.remove$Class$TT(Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']), l);
});
Clazz_newMeth(C$, 'getChangeListeners$', function () {
return this.listenerList.getListeners$Class(Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']));
});
Clazz_newMeth(C$, 'fireStateChanged$', function () {
var listeners=this.listenerList.getListenerList$();
for (var i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] === Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']) ) {
if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(6).c$$O,[this]);
(listeners[i + 1]).stateChanged$(this.changeEvent);
}}
});
Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) {
return this.listenerList.getListeners$Class(listenerType);
});
Clazz_newMeth(C$, 'getAttributeCount$', function () {
return this.attributes.getAttributeCount$();
});
Clazz_newMeth(C$, 'isDefined$O', function (attrName) {
return this.attributes.isDefined$O(attrName);
});
Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) {
return this.attributes.isEqual$javax_swing_text_AttributeSet(attr);
});
Clazz_newMeth(C$, 'copyAttributes$', function () {
var a=Clazz_new_(C$, [this, null]);
a.attributes=this.attributes.copyAttributes$();
return a;
});
Clazz_newMeth(C$, 'getAttribute$O', function (attrName) {
return this.attributes.getAttribute$O(attrName);
});
Clazz_newMeth(C$, 'getAttributeNames$', function () {
return this.attributes.getAttributeNames$();
});
Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) {
return this.attributes.containsAttribute$O$O(name, value);
});
Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attrs) {
return this.attributes.containsAttributes$javax_swing_text_AttributeSet(attrs);
});
Clazz_newMeth(C$, 'getResolveParent$', function () {
return this.attributes.getResolveParent$();
});
Clazz_newMeth(C$, 'addAttribute$O$O', function (name, value) {
var context=this.this$0;
this.attributes=context.addAttribute$javax_swing_text_AttributeSet$O$O(this.attributes, name, value);
this.fireStateChanged$();
});
Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attr) {
var context=this.this$0;
this.attributes=context.addAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attr);
this.fireStateChanged$();
});
Clazz_newMeth(C$, 'removeAttribute$O', function (name) {
var context=this.this$0;
this.attributes=context.removeAttribute$javax_swing_text_AttributeSet$O(this.attributes, name);
this.fireStateChanged$();
});
Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) {
var context=this.this$0;
this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$java_util_Enumeration(this.attributes, names);
this.fireStateChanged$();
});
Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attrs) {
var context=this.this$0;
if (attrs === this ) {
this.attributes=context.getEmptySet$();
} else {
this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attrs);
}this.fireStateChanged$();
});
Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_AttributeSet', function (parent) {
if (parent != null ) {
this.addAttribute$O$O($I$(1).ResolveAttribute, parent);
} else {
this.removeAttribute$O($I$(1).ResolveAttribute);
}});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[];
var C$=Clazz_newInterface(P$, "TabExpander");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,'java.util.Hashtable','javax.swing.Action','javax.swing.text.JTextComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "TextAction", null, 'javax.swing.AbstractAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.superclazz.c$$S.apply(this, [name]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getTextComponent$java_awt_event_ActionEvent', function (e) {
if (e != null ) {
var o=e.getSource$();
if (Clazz_instanceOf(o, "javax.swing.text.JTextComponent")) {
return o;
}}return this.getFocusedComponent$();
});
Clazz_newMeth(C$, 'augmentList$javax_swing_ActionA$javax_swing_ActionA', function (list1, list2) {
var h=Clazz_new_($I$(1));
if (list1 != null ) for (var i=0; i < list1.length; i++) {
var a=list1[i];
var value=a.getValue$S("Name");
h.put$TK$TV((value != null ? value : ""), a);
}
for (var i=0; i < list2.length; i++) {
var a=list2[i];
var value=a.getValue$S("Name");
h.put$TK$TV((value != null ? value : ""), a);
}
var actions=Clazz_array($I$(2), [h.size$()]);
var index=0;
for (var e=h.elements$(); e.hasMoreElements$(); ) {
actions[index++]=e.nextElement$();
}
return actions;
}, 1);
Clazz_newMeth(C$, 'getFocusedComponent$', function () {
return $I$(3).getFocusedComponent$();
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,'javax.swing.text.StyleConstants',['javax.swing.text.Position','.Bias']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Utilities");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getJComponent$javax_swing_text_View', function (view) {
if (view != null ) {
var component=view.getContainer$();
if (Clazz_instanceOf(component, "javax.swing.JComponent")) {
return component;
}}return null;
}, 1);
Clazz_newMeth(C$, 'getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I', function (s, metrics, x, e, startOffset) {
return C$.getTabbedTextWidth$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I$IA(null, s, metrics, x, e, startOffset, null);
}, 1);
Clazz_newMeth(C$, 'getTabbedTextWidth$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I$IA', function (view, s, metrics, x, e, startOffset, justificationData) {
var nextX=x;
var txt=s.array;
var txtOffset=s.offset;
var n=s.offset + s.count;
var charCount=0;
var spaceAddon=0;
var spaceAddonLeftoverEnd=-1;
var startJustifiableContent=0;
var endJustifiableContent=0;
if (justificationData != null ) {
var offset=-startOffset + txtOffset;
var parent=null;
if (view != null && (parent=view.getParent$()) != null ) {
offset+=parent.getStartOffset$();
}spaceAddon=justificationData[0];
spaceAddonLeftoverEnd=justificationData[1] + offset;
startJustifiableContent=justificationData[2] + offset;
endJustifiableContent=justificationData[3] + offset;
}for (var i=txtOffset; i < n; i++) {
if (txt[i] == "\t" || ((spaceAddon != 0 || i <= spaceAddonLeftoverEnd ) && (txt[i] == " ") && startJustifiableContent <= i && i <= endJustifiableContent ) ) {
nextX+=metrics.charsWidth$CA$I$I(txt, i - charCount, charCount);
charCount=0;
if (txt[i] == "\t") {
if (e != null ) {
nextX=(e.nextTabStop$(nextX, startOffset + i - txtOffset)|0);
} else {
nextX+=metrics.charWidth$C(" ");
}} else if (txt[i] == " ") {
nextX+=metrics.charWidth$C(" ") + spaceAddon;
if (i <= spaceAddonLeftoverEnd) {
nextX++;
}}} else if (txt[i] == "\n") {
nextX+=metrics.charsWidth$CA$I$I(txt, i - charCount, charCount);
charCount=0;
} else {
charCount++;
}}
nextX+=metrics.charsWidth$CA$I$I(txt, n - charCount, charCount);
return nextX - x;
}, 1);
Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I', function (s, metrics, x0, x, e, startOffset) {
return C$.getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z(s, metrics, x0, x, e, startOffset, true);
}, 1);
Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$IA', function (view, s, metrics, x0, x, e, startOffset, justificationData) {
return C$.getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z$IA(view, s, metrics, x0, x, e, startOffset, true, justificationData);
}, 1);
Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z', function (s, metrics, x0, x, e, startOffset, round) {
return C$.getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z$IA(null, s, metrics, x0, x, e, startOffset, round, null);
}, 1);
Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z$IA', function (view, s, metrics, x0, x, e, startOffset, round, justificationData) {
if (x0 >= x) {
return 0;
}var currX=x0;
var nextX=currX;
var txt=s.array;
var txtOffset=s.offset;
var txtCount=s.count;
var spaceAddon=0;
var spaceAddonLeftoverEnd=-1;
var startJustifiableContent=0;
var endJustifiableContent=0;
if (justificationData != null ) {
var offset=-startOffset + txtOffset;
var parent=null;
if (view != null && (parent=view.getParent$()) != null ) {
offset+=parent.getStartOffset$();
}spaceAddon=justificationData[0];
spaceAddonLeftoverEnd=justificationData[1] + offset;
startJustifiableContent=justificationData[2] + offset;
endJustifiableContent=justificationData[3] + offset;
}var n=s.offset + s.count;
for (var i=s.offset; i < n; i++) {
if (txt[i] == "\t" || ((spaceAddon != 0 || i <= spaceAddonLeftoverEnd ) && (txt[i] == " ") && startJustifiableContent <= i && i <= endJustifiableContent ) ) {
if (txt[i] == "\t") {
if (e != null ) {
nextX=(e.nextTabStop$(nextX, startOffset + i - txtOffset)|0);
} else {
nextX+=metrics.charWidth$C(" ");
}} else if (txt[i] == " ") {
nextX+=metrics.charWidth$C(" ") + spaceAddon;
if (i <= spaceAddonLeftoverEnd) {
nextX++;
}}} else {
nextX+=metrics.charWidth$C(txt[i]);
}if ((x >= currX) && (x < nextX) ) {
if ((round == false ) || ((x - currX) < (nextX - x)) ) {
return i - txtOffset;
} else {
return i + 1 - txtOffset;
}}currX=nextX;
}
return txtCount;
}, 1);
Clazz_newMeth(C$, 'getBreakLocation$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I', function (s, metrics, x0, x, e, startOffset) {
return 0;
}, 1);
Clazz_newMeth(C$, 'getRowStart$javax_swing_text_JTextComponent$I', function (c, offs) {
var r=c.modelToView$I(offs);
if (r == null ) {
return -1;
}var lastOffs=offs;
var y=r.y;
while ((r != null ) && (y == r.y) ){
if (r.height != 0) {
offs=lastOffs;
}lastOffs-=1;
r=(lastOffs >= 0) ? c.modelToView$I(lastOffs) : null;
}
return offs;
}, 1);
Clazz_newMeth(C$, 'getRowEnd$javax_swing_text_JTextComponent$I', function (c, offs) {
var r=c.modelToView$I(offs);
if (r == null ) {
return -1;
}var n=c.getDocument$().getLength$();
var lastOffs=offs;
var y=r.y;
while ((r != null ) && (y == r.y) ){
if (r.height != 0) {
offs=lastOffs;
}lastOffs+=1;
r=(lastOffs <= n) ? c.modelToView$I(lastOffs) : null;
}
return offs;
}, 1);
Clazz_newMeth(C$, 'getPositionAbove$javax_swing_text_JTextComponent$I$I', function (c, offs, x) {
var lastOffs=C$.getRowStart$javax_swing_text_JTextComponent$I(c, offs) - 1;
if (lastOffs < 0) {
return -1;
}var bestSpan=2147483647;
var y=0;
var r=null;
if (lastOffs >= 0) {
r=c.modelToView$I(lastOffs);
y=r.y;
}while ((r != null ) && (y == r.y) ){
var span=Math.abs(r.x - x);
if (span < bestSpan) {
offs=lastOffs;
bestSpan=span;
}lastOffs-=1;
r=(lastOffs >= 0) ? c.modelToView$I(lastOffs) : null;
}
return offs;
}, 1);
Clazz_newMeth(C$, 'getPositionBelow$javax_swing_text_JTextComponent$I$I', function (c, offs, x) {
var lastOffs=C$.getRowEnd$javax_swing_text_JTextComponent$I(c, offs) + 1;
if (lastOffs <= 0) {
return -1;
}var bestSpan=2147483647;
var n=c.getDocument$().getLength$();
var y=0;
var r=null;
if (lastOffs <= n) {
r=c.modelToView$I(lastOffs);
y=r.y;
}while ((r != null ) && (y == r.y) ){
var span=Math.abs(x - r.x);
if (span < bestSpan) {
offs=lastOffs;
bestSpan=span;
}lastOffs+=1;
r=(lastOffs <= n) ? c.modelToView$I(lastOffs) : null;
}
return offs;
}, 1);
Clazz_newMeth(C$, 'getWordStart$javax_swing_text_JTextComponent$I', function (c, offs) {
return 0;
}, 1);
Clazz_newMeth(C$, 'getWordEnd$javax_swing_text_JTextComponent$I', function (c, offs) {
return 0;
}, 1);
Clazz_newMeth(C$, 'getNextWord$javax_swing_text_JTextComponent$I', function (c, offs) {
var nextWord;
var line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs);
for (nextWord=C$.getNextWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I$Z(c, line, offs, false); nextWord == -1; nextWord=C$.getNextWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I$Z(c, line, offs, true)) {
offs=line.getEndOffset$();
line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs);
}
return nextWord;
}, 1);
Clazz_newMeth(C$, 'getNextWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I$Z', function (c, line, offs, first) {
return 0;
}, 1);
Clazz_newMeth(C$, 'getPreviousWord$javax_swing_text_JTextComponent$I', function (c, offs) {
var prevWord;
var line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs);
for (prevWord=C$.getPrevWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I(c, line, offs); prevWord == -1; prevWord=C$.getPrevWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I(c, line, offs)) {
offs=line.getStartOffset$() - 1;
line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs);
}
return prevWord;
}, 1);
Clazz_newMeth(C$, 'getPrevWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I', function (c, line, offs) {
return 0;
}, 1);
Clazz_newMeth(C$, 'getParagraphElement$javax_swing_text_JTextComponent$I', function (c, offs) {
var doc=c.getDocument$();
if (Clazz_instanceOf(doc, "javax.swing.text.StyledDocument")) {
return (doc).getParagraphElement$I(offs);
}var map=doc.getDefaultRootElement$();
var index=map.getElementIndex$I(offs);
var paragraph=map.getElement$I(index);
if ((offs >= paragraph.getStartOffset$()) && (offs < paragraph.getEndOffset$()) ) {
return paragraph;
}return null;
}, 1);
Clazz_newMeth(C$, 'isComposedTextElement$javax_swing_text_Document$I', function (doc, offset) {
var elem=doc.getDefaultRootElement$();
while (!elem.isLeaf$()){
elem=elem.getElement$I(elem.getElementIndex$I(offset));
}
return C$.isComposedTextElement$javax_swing_text_Element(elem);
}, 1);
Clazz_newMeth(C$, 'isComposedTextElement$javax_swing_text_Element', function (elem) {
var as=elem.getAttributes$();
return C$.isComposedTextAttributeDefined$javax_swing_text_AttributeSet(as);
}, 1);
Clazz_newMeth(C$, 'isComposedTextAttributeDefined$javax_swing_text_AttributeSet', function (as) {
return ((as != null ) && (as.isDefined$O($I$(1).ComposedTextAttribute)) );
}, 1);
Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) {
return c.getComponentOrientation$().isLeftToRight$();
}, 1);
Clazz_newMeth(C$, 'getNextVisualPositionFrom$javax_swing_text_View$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA', function (v, pos, b, alloc, direction, biasRet) {
if (v.getViewCount$() == 0) {
return pos;
}var top=(direction == 1 || direction == 7 );
var retValue;
if (pos == -1) {
var childIndex=(top) ? v.getViewCount$() - 1 : 0;
var child=v.getView$I(childIndex);
var childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc);
retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(pos, b, childBounds, direction, biasRet);
if (retValue == -1 && !top && v.getViewCount$() > 1 ) {
child=v.getView$I(1);
childBounds=v.getChildAllocation$I$java_awt_Shape(1, alloc);
retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(-1, biasRet[0], childBounds, direction, biasRet);
}} else {
var increment=(top) ? -1 : 1;
var childIndex;
if (b === $I$(2).Backward && pos > 0 ) {
childIndex=v.getViewIndex$I$javax_swing_text_Position_Bias(pos - 1, $I$(2).Forward);
} else {
childIndex=v.getViewIndex$I$javax_swing_text_Position_Bias(pos, $I$(2).Forward);
}var child=v.getView$I(childIndex);
var childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc);
retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(pos, b, childBounds, direction, biasRet);
if ((direction == 3 || direction == 7 ) && (Clazz_instanceOf(v, "javax.swing.text.CompositeView")) && (v).flipEastAndWestAtEnds$I$javax_swing_text_Position_Bias(pos, b) ) {
increment*=-1;
}childIndex+=increment;
if (retValue == -1 && childIndex >= 0 && childIndex < v.getViewCount$() ) {
child=v.getView$I(childIndex);
childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc);
retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(-1, b, childBounds, direction, biasRet);
if (retValue == pos && biasRet[0] !== b ) {
return C$.getNextVisualPositionFrom$javax_swing_text_View$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(v, pos, biasRet[0], alloc, direction, biasRet);
}} else if (retValue != -1 && biasRet[0] !== b && ((increment == 1 && child.getEndOffset$() == retValue ) || (increment == -1 && child.getStartOffset$() == retValue ) ) && childIndex >= 0 && childIndex < v.getViewCount$() ) {
child=v.getView$I(childIndex);
childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc);
var originalBias=biasRet[0];
var nextPos=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(-1, b, childBounds, direction, biasRet);
if (biasRet[0] === b ) {
retValue=nextPos;
} else {
biasRet[0]=originalBias;
}}}return retValue;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.Position','.Bias'],'javax.swing.text.Utilities','java.awt.Rectangle',['javax.swing.event.DocumentEvent','.EventType']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "View", null, null, 'javax.swing.SwingConstants');
C$.sharedBiasReturn=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.sharedBiasReturn=Clazz_array($I$(1), [1]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.parent=null;
this.elem=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_Element', function (elem) {
C$.$init$.apply(this);
this.elem=elem;
}, 1);
Clazz_newMeth(C$, 'getParent$', function () {
return this.parent;
});
Clazz_newMeth(C$, 'isVisible$', function () {
return true;
});
Clazz_newMeth(C$, 'getMinimumSpan$I', function (axis) {
var w=this.getResizeWeight$I(axis);
if (w == 0) {
return this.getPreferredSpan$I(axis);
}return 0;
});
Clazz_newMeth(C$, 'getMaximumSpan$I', function (axis) {
var w=this.getResizeWeight$I(axis);
if (w == 0) {
return this.getPreferredSpan$I(axis);
}return 2147483647;
});
Clazz_newMeth(C$, 'preferenceChanged$javax_swing_text_View$Z$Z', function (child, width, height) {
var parent=this.getParent$();
if (parent != null ) {
parent.preferenceChanged$javax_swing_text_View$Z$Z(this, width, height);
}});
Clazz_newMeth(C$, 'getAlignment$I', function (axis) {
return 0.5;
});
Clazz_newMeth(C$, 'setParent$javax_swing_text_View', function (parent) {
if (parent == null ) {
for (var i=0; i < this.getViewCount$(); i++) {
if (this.getView$I(i).getParent$() === this ) {
this.getView$I(i).setParent$javax_swing_text_View(null);
}}
}this.parent=parent;
});
Clazz_newMeth(C$, 'getViewCount$', function () {
return 0;
});
Clazz_newMeth(C$, 'getView$I', function (n) {
return null;
});
Clazz_newMeth(C$, 'removeAll$', function () {
this.replace$I$I$javax_swing_text_ViewA(0, this.getViewCount$(), null);
});
Clazz_newMeth(C$, 'remove$I', function (i) {
this.replace$I$I$javax_swing_text_ViewA(i, 1, null);
});
Clazz_newMeth(C$, 'insert$I$javax_swing_text_View', function (offs, v) {
var one=Clazz_array(C$, [1]);
one[0]=v;
this.replace$I$I$javax_swing_text_ViewA(offs, 0, one);
});
Clazz_newMeth(C$, 'append$javax_swing_text_View', function (v) {
var one=Clazz_array(C$, [1]);
one[0]=v;
this.replace$I$I$javax_swing_text_ViewA(this.getViewCount$(), 0, one);
});
Clazz_newMeth(C$, 'replace$I$I$javax_swing_text_ViewA', function (offset, length, views) {
});
Clazz_newMeth(C$, 'getViewIndex$I$javax_swing_text_Position_Bias', function (pos, b) {
return -1;
});
Clazz_newMeth(C$, 'getChildAllocation$I$java_awt_Shape', function (index, a) {
return null;
});
Clazz_newMeth(C$, 'getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA', function (pos, b, a, direction, biasRet) {
biasRet[0]=$I$(1).Forward;
switch (direction) {
case 1:
case 5:
{
if (pos == -1) {
pos=(direction == 1) ? Math.max(0, this.getEndOffset$() - 1) : this.getStartOffset$();
break;
}var target=this.getContainer$();
var c=(target != null ) ? target.getCaret$() : null;
var mcp;
if (c != null ) {
mcp=c.getMagicCaretPosition$();
} else {
mcp=null;
}var x;
if (mcp == null ) {
var loc=target.modelToView$I(pos);
x=(loc == null ) ? 0 : loc.x;
} else {
x=mcp.x;
}if (direction == 1) {
pos=$I$(2).getPositionAbove$javax_swing_text_JTextComponent$I$I(target, pos, x);
} else {
pos=$I$(2).getPositionBelow$javax_swing_text_JTextComponent$I$I(target, pos, x);
}}break;
case 7:
if (pos == -1) {
pos=Math.max(0, this.getEndOffset$() - 1);
} else {
pos=Math.max(0, pos - 1);
}break;
case 3:
if (pos == -1) {
pos=this.getStartOffset$();
} else {
pos=Math.min(pos + 1, this.getDocument$().getLength$());
}break;
default:
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Bad direction: " + direction]);
}
return pos;
});
Clazz_newMeth(C$, 'modelToView$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_Bias$java_awt_Shape', function (p0, b0, p1, b1, a) {
var s0=this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(p0, a, b0);
var s1;
if (p1 == this.getEndOffset$()) {
try {
s1=this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(p1, a, b1);
} catch (ble) {
if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){
s1=null;
} else {
throw ble;
}
}
if (s1 == null ) {
var alloc=(Clazz_instanceOf(a, "java.awt.Rectangle")) ? a : a.getBounds$();
s1=Clazz_new_($I$(3).c$$I$I$I$I,[alloc.x + alloc.width - 1, alloc.y, 1, alloc.height]);
}} else {
s1=this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(p1, a, b1);
}var r0=s0.getBounds$();
var r1=(Clazz_instanceOf(s1, "java.awt.Rectangle")) ? s1 : s1.getBounds$();
if (r0.y != r1.y) {
var alloc=(Clazz_instanceOf(a, "java.awt.Rectangle")) ? a : a.getBounds$();
r0.x=alloc.x;
r0.width=alloc.width;
}r0.add$java_awt_Rectangle(r1);
return r0;
});
Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (e, a, f) {
if (this.getViewCount$() > 0) {
var elem=this.getElement$();
var ec=e.getChange$javax_swing_text_Element(elem);
if (ec != null ) {
if (!this.updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory(ec, e, f)) {
ec=null;
}}this.forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(ec, e, a, f);
this.updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape(ec, e, a);
}});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (e, a, f) {
if (this.getViewCount$() > 0) {
var elem=this.getElement$();
var ec=e.getChange$javax_swing_text_Element(elem);
if (ec != null ) {
if (!this.updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory(ec, e, f)) {
ec=null;
}}this.forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(ec, e, a, f);
this.updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape(ec, e, a);
}});
Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (e, a, f) {
if (this.getViewCount$() > 0) {
var elem=this.getElement$();
var ec=e.getChange$javax_swing_text_Element(elem);
if (ec != null ) {
if (!this.updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory(ec, e, f)) {
ec=null;
}}this.forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(ec, e, a, f);
this.updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape(ec, e, a);
}});
Clazz_newMeth(C$, 'getDocument$', function () {
return this.elem.getDocument$();
});
Clazz_newMeth(C$, 'getStartOffset$', function () {
return this.elem.getStartOffset$();
});
Clazz_newMeth(C$, 'getEndOffset$', function () {
return this.elem.getEndOffset$();
});
Clazz_newMeth(C$, 'getElement$', function () {
return this.elem;
});
Clazz_newMeth(C$, 'getGraphics$', function () {
var c=this.getContainer$();
return c.getGraphics$();
});
Clazz_newMeth(C$, 'getAttributes$', function () {
return this.elem.getAttributes$();
});
Clazz_newMeth(C$, 'breakView$I$I$F$F', function (axis, offset, pos, len) {
return this;
});
Clazz_newMeth(C$, 'createFragment$I$I', function (p0, p1) {
return this;
});
Clazz_newMeth(C$, 'getBreakWeight$I$F$F', function (axis, pos, len) {
if (len > this.getPreferredSpan$I(axis) ) {
return 1000;
}return 0;
});
Clazz_newMeth(C$, 'getResizeWeight$I', function (axis) {
return 0;
});
Clazz_newMeth(C$, 'setSize$F$F', function (width, height) {
});
Clazz_newMeth(C$, 'getContainer$', function () {
var v=this.getParent$();
return (v != null ) ? v.getContainer$() : null;
});
Clazz_newMeth(C$, 'getViewFactory$', function () {
var v=this.getParent$();
return (v != null ) ? v.getViewFactory$() : null;
});
Clazz_newMeth(C$, 'getToolTipText$F$F$java_awt_Shape', function (x, y, allocation) {
var viewIndex=this.getViewIndex$F$F$java_awt_Shape(x, y, allocation);
if (viewIndex >= 0) {
allocation=this.getChildAllocation$I$java_awt_Shape(viewIndex, allocation);
var rect=(Clazz_instanceOf(allocation, "java.awt.Rectangle")) ? allocation : allocation.getBounds$();
if (rect.contains$D$D(x, y)) {
return this.getView$I(viewIndex).getToolTipText$F$F$java_awt_Shape(x, y, allocation);
}}return null;
});
Clazz_newMeth(C$, 'getViewIndex$F$F$java_awt_Shape', function (x, y, allocation) {
for (var counter=this.getViewCount$() - 1; counter >= 0; counter--) {
var childAllocation=this.getChildAllocation$I$java_awt_Shape(counter, allocation);
if (childAllocation != null ) {
var rect=(Clazz_instanceOf(childAllocation, "java.awt.Rectangle")) ? childAllocation : childAllocation.getBounds$();
if (rect.contains$D$D(x, y)) {
return counter;
}}}
return -1;
});
Clazz_newMeth(C$, 'updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory', function (ec, e, f) {
var removedElems=ec.getChildrenRemoved$();
var addedElems=ec.getChildrenAdded$();
var added=null;
if (addedElems != null ) {
added=Clazz_array(C$, [addedElems.length]);
for (var i=0; i < addedElems.length; i++) {
added[i]=f.create$(addedElems[i]);
}
}var nremoved=0;
var index=ec.getIndex$();
if (removedElems != null ) {
nremoved=removedElems.length;
}this.replace$I$I$javax_swing_text_ViewA(index, nremoved, added);
return true;
});
Clazz_newMeth(C$, 'forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (ec, e, a, f) {
var pos=e.getOffset$();
var index0=this.getViewIndex$I$javax_swing_text_Position_Bias(pos, $I$(1).Forward);
if (index0 == -1 && e.getType$() === $I$(4).REMOVE && pos >= this.getEndOffset$() ) {
index0=this.getViewCount$() - 1;
}var index1=index0;
var v=(index0 >= 0) ? this.getView$I(index0) : null;
if (v != null ) {
if ((v.getStartOffset$() == pos) && (pos > 0) ) {
index0=Math.max(index0 - 1, 0);
}}if (e.getType$() !== $I$(4).REMOVE ) {
index1=this.getViewIndex$I$javax_swing_text_Position_Bias(pos + e.getLength$(), $I$(1).Forward);
if (index1 < 0) {
index1=this.getViewCount$() - 1;
}}var hole0=index1 + 1;
var hole1=hole0;
var addedElems=(ec != null ) ? ec.getChildrenAdded$() : null;
if ((addedElems != null ) && (addedElems.length > 0) ) {
hole0=ec.getIndex$();
hole1=hole0 + addedElems.length - 1;
}index0=Math.max(index0, 0);
for (var i=index0; i <= index1; i++) {
if (!((i >= hole0) && (i <= hole1) )) {
v=this.getView$I(i);
if (v != null ) {
var childAlloc=this.getChildAllocation$I$java_awt_Shape(i, a);
this.forwardUpdateToView$javax_swing_text_View$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(v, e, childAlloc, f);
}}}
});
Clazz_newMeth(C$, 'forwardUpdateToView$javax_swing_text_View$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (v, e, a, f) {
var type=e.getType$();
if (type === $I$(4).INSERT ) {
v.insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(e, a, f);
} else if (type === $I$(4).REMOVE ) {
v.removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(e, a, f);
} else {
v.changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(e, a, f);
}});
Clazz_newMeth(C$, 'updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape', function (ec, e, a) {
if ((ec != null ) && (a != null ) ) {
this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, true);
var host=this.getContainer$();
if (host != null ) {
host.repaint$();
}}});
Clazz_newMeth(C$, 'modelToView$I$java_awt_Shape', function (pos, a) {
return this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(pos, a, $I$(1).Forward);
});
Clazz_newMeth(C$, 'viewToModel$F$F$java_awt_Shape', function (x, y, a) {
C$.sharedBiasReturn[0]=$I$(1).Forward;
return this.viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA(x, y, a, C$.sharedBiasReturn);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.tree"),I$=[];
var C$=Clazz_newInterface(P$, "TreeNode");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.LookAndFeel','java.util.Locale','java.util.HashMap','javax.swing.SwingUtilities','Error','swingjs.JSToolkit','javax.swing.event.SwingPropertyChangeSupport','java.beans.PropertyChangeListener','java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "UIDefaults", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.util.Hashtable');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.changeSupport=null;
this.resourceBundles=null;
this.defaultLocale=null;
this.resourceCache=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.defaultLocale=$I$(2).getDefault$();
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I$F.apply(this, [700, 0.75]);
}, 1);
Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) {
C$.superclazz.c$$I$F.apply(this, [initialCapacity, loadFactor]);
C$.$init$.apply(this);
this.resourceCache=Clazz_new_($I$(3));
}, 1);
Clazz_newMeth(C$, 'c$$OA', function (keyValueList) {
C$.superclazz.c$$I.apply(this, [(keyValueList.length/2|0)]);
C$.$init$.apply(this);
for (var i=0; i < keyValueList.length; i+=2) {
C$.superclazz.prototype.put$TK$TV.apply(this, [keyValueList[i], keyValueList[i + 1]]);
}
}, 1);
Clazz_newMeth(C$, 'get$O', function (key) {
var value=p$1.getFromHashtable$O.apply(this, [key]);
return (value != null ) ? value : p$1.getFromResourceBundle$O$java_util_Locale.apply(this, [key, null]);
});
Clazz_newMeth(C$, 'getFromHashtable$O', function (key) {
var value=C$.superclazz.prototype.get$O.apply(this, [key]);
if (value == null && (Clazz_instanceOf(key, "java.lang.String")) ) {
var skey=key;
if (skey.endsWith$S(".font") || skey.endsWith$S(".background") || skey.endsWith$S(".foreground") ) value=C$.superclazz.prototype.get$O.apply(this, ["*" + skey.substring$I(skey.lastIndexOf$S("."))]);
}if (!(Clazz_instanceOf(value, "javax.swing.UIDefaults.ActiveValue")) && !(Clazz_instanceOf(value, "javax.swing.UIDefaults.LazyValue")) ) {
return value;
}if (Clazz_instanceOf(value, "javax.swing.UIDefaults.LazyValue")) {
try {
value=(value).createValue$(this);
} finally {
if (value == null ) {
C$.superclazz.prototype.remove$O.apply(this, [key]);
} else {
C$.superclazz.prototype.put$TK$TV.apply(this, [key, value]);
}}
} else {
value=(value).createValue$(this);
}return value;
}, p$1);
Clazz_newMeth(C$, 'get$O$java_util_Locale', function (key, l) {
var value=p$1.getFromHashtable$O.apply(this, [key]);
return (value != null ) ? value : p$1.getFromResourceBundle$O$java_util_Locale.apply(this, [key, l]);
});
Clazz_newMeth(C$, 'getFromResourceBundle$O$java_util_Locale', function (key, l) {
if (this.resourceBundles == null || this.resourceBundles.isEmpty$() || !(Clazz_instanceOf(key, "java.lang.String")) ) {
return null;
}if (l == null ) {
if (this.defaultLocale == null ) return null;
else l=this.defaultLocale;
}{
return p$1.getResourceCache$java_util_Locale.apply(this, [l]).get$O(key);
}}, p$1);
Clazz_newMeth(C$, 'getResourceCache$java_util_Locale', function (l) {
return null;
}, p$1);
Clazz_newMeth(C$, ['put$O$O','put$TK$TV'], function (key, value) {
var oldValue=(value == null ) ? C$.superclazz.prototype.remove$O.apply(this, [key]) : C$.superclazz.prototype.put$TK$TV.apply(this, [key, value]);
if (Clazz_instanceOf(key, "java.lang.String")) {
this.firePropertyChange$S$O$O(key, oldValue, value);
}return oldValue;
});
Clazz_newMeth(C$, 'putDefaults$OA', function (keyValueList) {
for (var i=0, max=keyValueList.length; i < max; i+=2) {
var value=keyValueList[i + 1];
if (value == null ) {
C$.superclazz.prototype.remove$O.apply(this, [keyValueList[i]]);
} else {
C$.superclazz.prototype.put$TK$TV.apply(this, [keyValueList[i], value]);
}}
this.firePropertyChange$S$O$O("UIDefaults", null, null);
});
Clazz_newMeth(C$, 'getFont$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.awt.Font")) ? value : null;
});
Clazz_newMeth(C$, 'getFont$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.awt.Font")) ? value : null;
});
Clazz_newMeth(C$, 'getColor$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.awt.Color")) ? value : null;
});
Clazz_newMeth(C$, 'getColor$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.awt.Color")) ? value : null;
});
Clazz_newMeth(C$, 'getIcon$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "javax.swing.Icon")) ? value : null;
});
Clazz_newMeth(C$, 'getIcon$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "javax.swing.Icon")) ? value : null;
});
Clazz_newMeth(C$, 'getBorder$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "javax.swing.border.Border")) ? value : null;
});
Clazz_newMeth(C$, 'getBorder$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "javax.swing.border.Border")) ? value : null;
});
Clazz_newMeth(C$, 'getString$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.lang.String")) ? value : null;
});
Clazz_newMeth(C$, 'getString$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.lang.String")) ? value : null;
});
Clazz_newMeth(C$, 'getInt$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.lang.Integer")) ? (value).intValue$() : 0;
});
Clazz_newMeth(C$, 'getInt$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.lang.Integer")) ? (value).intValue$() : 0;
});
Clazz_newMeth(C$, 'getBoolean$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.lang.Boolean")) ? (value).booleanValue$() : false;
});
Clazz_newMeth(C$, 'getBoolean$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.lang.Boolean")) ? (value).booleanValue$() : false;
});
Clazz_newMeth(C$, 'getInsets$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.awt.Insets")) ? value : null;
});
Clazz_newMeth(C$, 'getInsets$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.awt.Insets")) ? value : null;
});
Clazz_newMeth(C$, 'getDimension$O', function (key) {
var value=this.get$O(key);
return (Clazz_instanceOf(value, "java.awt.Dimension")) ? value : null;
});
Clazz_newMeth(C$, 'getDimension$O$java_util_Locale', function (key, l) {
var value=this.get$O$java_util_Locale(key, l);
return (Clazz_instanceOf(value, "java.awt.Dimension")) ? value : null;
});
Clazz_newMeth(C$, 'getUIClass$S$ClassLoader', function (uiClassID, uiClassLoader) {
try {
var className=this.get$O(uiClassID);
if (className != null ) {
var cls=this.get$O(className);
if (cls == null ) {
if (uiClassLoader == null ) {
cls=$I$(4).loadSystemClass$S(className);
} else {
cls=uiClassLoader.loadClass$S(className);
}if (cls != null ) {
this.put$O$O(className, cls);
}}return cls;
}} catch (e$$) {
if (Clazz_exceptionOf(e$$,"ClassNotFoundException")){
var e = e$$;
{
return null;
}
} else if (Clazz_exceptionOf(e$$,"ClassCastException")){
var e = e$$;
{
return null;
}
} else {
throw e$$;
}
}
return null;
});
Clazz_newMeth(C$, 'getUIClass$S', function (uiClassID) {
return this.getUIClass$S$ClassLoader(uiClassID, null);
});
Clazz_newMeth(C$, 'getUIError$S', function (msg) {
System.err.println$S("UIDefaults.getUI() failed: " + msg);
try {
throw Clazz_new_($I$(5));
} catch (e) {
e.printStackTrace$();
}
});
Clazz_newMeth(C$, 'getUI$javax_swing_JComponent', function (target) {
return $I$(6).getComponentUI$javax_swing_JComponent(target);
});
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(7).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener);
});
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
if (this.changeSupport != null ) {
this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
}});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
if (this.changeSupport == null ) {
return Clazz_array($I$(8), [0]);
}return this.changeSupport.getPropertyChangeListeners$();
});
Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) {
if (this.changeSupport != null ) {
this.changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue);
}});
Clazz_newMeth(C$, 'addResourceBundle$S', function (bundleName) {
if (bundleName == null ) {
return;
}if (this.resourceBundles == null ) {
this.resourceBundles=Clazz_new_($I$(9).c$$I,[5]);
}if (!this.resourceBundles.contains$O(bundleName)) {
this.resourceBundles.add$TE(bundleName);
this.resourceCache.clear$();
}});
Clazz_newMeth(C$, 'removeResourceBundle$S', function (bundleName) {
if (this.resourceBundles != null ) {
this.resourceBundles.remove$O(bundleName);
}this.resourceCache.clear$();
});
Clazz_newMeth(C$, 'setDefaultLocale$java_util_Locale', function (l) {
this.defaultLocale=l;
});
Clazz_newMeth(C$, 'getDefaultLocale$', function () {
return this.defaultLocale;
});
;
(function(){var C$=Clazz_newInterface(P$.UIDefaults, "LazyValue", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.UIDefaults, "ActiveValue", function(){
});
})()
;
(function(){var C$=Clazz_newClass(P$.UIDefaults, "LazyInputMap", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, null, [['javax.swing.UIDefaults','javax.swing.UIDefaults.LazyValue']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.bindings=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$OA', function (bindings) {
C$.$init$.apply(this);
this.bindings=bindings;
}, 1);
Clazz_newMeth(C$, ['createValue$javax_swing_UIDefaults','createValue$'], function (table) {
if (this.bindings != null ) {
var km=$I$(1).makeInputMap$OA(this.bindings);
return km;
}return null;
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.ArrayList',['javax.swing.UIManager','.LookAndFeelInfo'],'swingjs.JSUtil','javax.swing.SwingUtilities','java.util.Locale','java.beans.PropertyChangeListener','swingjs.JSToolkit','javax.swing.RepaintManager','sun.awt.PaintEventDispatcher','javax.swing.SwingPaintEventDispatcher']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "UIManager", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.installedLAFs=null;
C$.laf=null;
C$.uid=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
var iLAFs=Clazz_new_($I$(1).c$$I,[4]);
iLAFs.add$TE(Clazz_new_($I$(2).c$$S$S,["HTML5", "swingjs.plaf.HTML5LookAndFeel"]));
C$.installedLAFs=iLAFs.toArray$TTA(Clazz_array($I$(2), [iLAFs.size$()]));
};
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getLookAndFeelDefaults$', function () {
return C$.uid;
}, 1);
Clazz_newMeth(C$, 'getInstalledLookAndFeels$', function () {
return C$.installedLAFs;
}, 1);
Clazz_newMeth(C$, 'setInstalledLookAndFeels$javax_swing_UIManager_LookAndFeelInfoA', function (infos) {
$I$(3).notImplemented$S(null);
}, 1);
Clazz_newMeth(C$, 'installLookAndFeel$javax_swing_UIManager_LookAndFeelInfo', function (info) {
$I$(3).notImplemented$S(null);
}, 1);
Clazz_newMeth(C$, 'installLookAndFeel$S$S', function (name, className) {
$I$(3).notImplemented$S(null);
}, 1);
Clazz_newMeth(C$, 'getLookAndFeel$', function () {
return (C$.laf == null ? (C$.laf=$I$(3).getInstance$S("swingjs.plaf.HTML5LookAndFeel")) : C$.laf);
}, 1);
Clazz_newMeth(C$, 'setLookAndFeel$javax_swing_LookAndFeel', function (newLookAndFeel) {
}, 1);
Clazz_newMeth(C$, 'setLookAndFeel$S', function (className) {
var lnfClass=$I$(4).loadSystemClass$S(className);
C$.setLookAndFeel$javax_swing_LookAndFeel((lnfClass.newInstance$()));
}, 1);
Clazz_newMeth(C$, 'getSystemLookAndFeelClassName$', function () {
return C$.getCrossPlatformLookAndFeelClassName$();
}, 1);
Clazz_newMeth(C$, 'getCrossPlatformLookAndFeelClassName$', function () {
return "swingjs.plaf.HTML5LookAndFeel";
}, 1);
Clazz_newMeth(C$, 'getDefaults$', function () {
C$.maybeInitialize$();
return C$.uid;
}, 1);
Clazz_newMeth(C$, 'getFont$O', function (key) {
return C$.getDefaults$().getFont$O(key);
}, 1);
Clazz_newMeth(C$, 'getFont$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getFont$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getColor$O', function (key) {
return C$.getDefaults$().getColor$O(key);
}, 1);
Clazz_newMeth(C$, 'getColor$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getColor$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getIcon$O', function (key) {
return C$.getDefaults$().getIcon$O(key);
}, 1);
Clazz_newMeth(C$, 'getIcon$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getIcon$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getBorder$O', function (key) {
return C$.getDefaults$().getBorder$O(key);
}, 1);
Clazz_newMeth(C$, 'getBorder$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getBorder$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getString$O', function (key) {
return C$.getDefaults$().getString$O(key);
}, 1);
Clazz_newMeth(C$, 'getString$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getString$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getString$O$java_awt_Component', function (key, c) {
var l=(c == null ) ? $I$(5).getDefault$() : c.getLocale$();
return C$.getString$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getInt$O', function (key) {
return C$.getDefaults$().getInt$O(key);
}, 1);
Clazz_newMeth(C$, 'getInt$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getInt$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getBoolean$O', function (key) {
return C$.getDefaults$().getBoolean$O(key);
}, 1);
Clazz_newMeth(C$, 'getBoolean$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getBoolean$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getInsets$O', function (key) {
return C$.getDefaults$().getInsets$O(key);
}, 1);
Clazz_newMeth(C$, 'getInsets$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getInsets$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'getDimension$O', function (key) {
return C$.getDefaults$().getDimension$O(key);
}, 1);
Clazz_newMeth(C$, 'getDimension$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().getDimension$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'get$O', function (key) {
return C$.getDefaults$().get$O(key);
}, 1);
Clazz_newMeth(C$, 'get$O$java_util_Locale', function (key, l) {
return C$.getDefaults$().get$O$java_util_Locale(key, l);
}, 1);
Clazz_newMeth(C$, 'put$O$O', function (key, value) {
return C$.getDefaults$().put$O$O(key, value);
}, 1);
Clazz_newMeth(C$, 'getUI$java_awt_Component', function (target) {
C$.maybeInitialize$();
var ui=C$.getDefaults$().getUI$javax_swing_JComponent(target);
if (ui == null ) System.out.println$S("SwingJS interface has not been implemented for " + target.getClass$().getName$());
return ui;
}, 1);
Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
}, 1);
Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) {
}, 1);
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
return Clazz_array($I$(6), [0]);
}, 1);
Clazz_newMeth(C$, 'maybeInitialize$', function () {
if (C$.uid == null ) {
C$.uid=$I$(7).getLookAndFeelDefaults$();
C$.initialize$();
}}, 1);
Clazz_newMeth(C$, 'initialize$', function () {
if ($I$(8).HANDLE_TOP_LEVEL_PAINT) {
$I$(9).setPaintEventDispatcher$sun_awt_PaintEventDispatcher(Clazz_new_($I$(10)));
}}, 1);
;
(function(){var C$=Clazz_newClass(P$.UIManager, "LookAndFeelInfo", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.name=null;
this.className=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S$S', function (name, className) {
C$.$init$.apply(this);
this.name=name;
this.className=className;
}, 1);
Clazz_newMeth(C$, 'getName$', function () {
return this.name;
});
Clazz_newMeth(C$, 'getClassName$', function () {
return this.className;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[" + this.getName$() + " " + this.getClassName$() + "]" ;
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.undo"),I$=[[0,'javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AbstractUndoableEdit", null, null, 'javax.swing.undo.UndoableEdit');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.hasBeenDone=false;
this.alive=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
this.hasBeenDone=true;
this.alive=true;
}, 1);
Clazz_newMeth(C$, 'die$', function () {
this.alive=false;
});
Clazz_newMeth(C$, 'undo$', function () {
if (!this.canUndo$()) {
throw Clazz_new_(Clazz_load('javax.swing.undo.CannotUndoException'));
}this.hasBeenDone=false;
});
Clazz_newMeth(C$, 'canUndo$', function () {
return this.alive && this.hasBeenDone ;
});
Clazz_newMeth(C$, 'redo$', function () {
if (!this.canRedo$()) {
throw Clazz_new_(Clazz_load('javax.swing.undo.CannotRedoException'));
}this.hasBeenDone=true;
});
Clazz_newMeth(C$, 'canRedo$', function () {
return this.alive && !this.hasBeenDone ;
});
Clazz_newMeth(C$, 'addEdit$javax_swing_undo_UndoableEdit', function (anEdit) {
return false;
});
Clazz_newMeth(C$, 'replaceEdit$javax_swing_undo_UndoableEdit', function (anEdit) {
return false;
});
Clazz_newMeth(C$, 'isSignificant$', function () {
return true;
});
Clazz_newMeth(C$, 'getPresentationName$', function () {
return "";
});
Clazz_newMeth(C$, 'getUndoPresentationName$', function () {
var name=this.getPresentationName$();
if (!"".equals$O(name)) {
name=$I$(1).getString$O("AbstractUndoableEdit.undoText") + " " + name ;
} else {
name=$I$(1).getString$O("AbstractUndoableEdit.undoText");
}return name;
});
Clazz_newMeth(C$, 'getRedoPresentationName$', function () {
var name=this.getPresentationName$();
if (!"".equals$O(name)) {
name=$I$(1).getString$O("AbstractUndoableEdit.redoText") + " " + name ;
} else {
name=$I$(1).getString$O("AbstractUndoableEdit.redoText");
}return name;
});
Clazz_newMeth(C$, 'toString', function () {
return C$.superclazz.prototype.toString.apply(this, []) + " hasBeenDone: " + this.hasBeenDone + " alive: " + this.alive ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.undo"),I$=[[0,'java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "CompoundEdit", null, 'javax.swing.undo.AbstractUndoableEdit');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.inProgress=false;
this.edits=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.inProgress=true;
this.edits=Clazz_new_($I$(1));
}, 1);
Clazz_newMeth(C$, 'undo$', function () {
C$.superclazz.prototype.undo$.apply(this, []);
var i=this.edits.size$();
while (i-- > 0){
var e=this.edits.elementAt$I(i);
e.undo$();
}
});
Clazz_newMeth(C$, 'redo$', function () {
C$.superclazz.prototype.redo$.apply(this, []);
var cursor=this.edits.elements$();
while (cursor.hasMoreElements$()){
(cursor.nextElement$()).redo$();
}
});
Clazz_newMeth(C$, 'lastEdit$', function () {
var count=this.edits.size$();
if (count > 0) return this.edits.elementAt$I(count - 1);
else return null;
});
Clazz_newMeth(C$, 'die$', function () {
var size=this.edits.size$();
for (var i=size - 1; i >= 0; i--) {
var e=this.edits.elementAt$I(i);
e.die$();
}
C$.superclazz.prototype.die$.apply(this, []);
});
Clazz_newMeth(C$, 'addEdit$javax_swing_undo_UndoableEdit', function (anEdit) {
if (!this.inProgress) {
return false;
} else {
var last=this.lastEdit$();
if (last == null ) {
this.edits.addElement$TE(anEdit);
} else if (!last.addEdit$javax_swing_undo_UndoableEdit(anEdit)) {
if (anEdit.replaceEdit$javax_swing_undo_UndoableEdit(last)) {
this.edits.removeElementAt$I(this.edits.size$() - 1);
}this.edits.addElement$TE(anEdit);
}return true;
}});
Clazz_newMeth(C$, 'end$', function () {
this.inProgress=false;
});
Clazz_newMeth(C$, 'canUndo$', function () {
return !this.isInProgress$() && C$.superclazz.prototype.canUndo$.apply(this, []) ;
});
Clazz_newMeth(C$, 'canRedo$', function () {
return !this.isInProgress$() && C$.superclazz.prototype.canRedo$.apply(this, []) ;
});
Clazz_newMeth(C$, 'isInProgress$', function () {
return this.inProgress;
});
Clazz_newMeth(C$, 'isSignificant$', function () {
var cursor=this.edits.elements$();
while (cursor.hasMoreElements$()){
if ((cursor.nextElement$()).isSignificant$()) {
return true;
}}
return false;
});
Clazz_newMeth(C$, 'getPresentationName$', function () {
var last=this.lastEdit$();
if (last != null ) {
return last.getPresentationName$();
} else {
return C$.superclazz.prototype.getPresentationName$.apply(this, []);
}});
Clazz_newMeth(C$, 'getUndoPresentationName$', function () {
var last=this.lastEdit$();
if (last != null ) {
return last.getUndoPresentationName$();
} else {
return C$.superclazz.prototype.getUndoPresentationName$.apply(this, []);
}});
Clazz_newMeth(C$, 'getRedoPresentationName$', function () {
var last=this.lastEdit$();
if (last != null ) {
return last.getRedoPresentationName$();
} else {
return C$.superclazz.prototype.getRedoPresentationName$.apply(this, []);
}});
Clazz_newMeth(C$, 'toString', function () {
return C$.superclazz.prototype.toString.apply(this, []) + " inProgress: " + this.inProgress + " edits: " + this.edits ;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing.undo"),I$=[];
var C$=Clazz_newInterface(P$, "UndoableEdit");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ViewportLayout", null, null, 'java.awt.LayoutManager');
C$.SHARED_INSTANCE=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.SHARED_INSTANCE=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, c) {
});
Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (c) {
});
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) {
var view=(parent).getView$();
if (view == null ) {
return Clazz_new_($I$(1).c$$I$I,[0, 0]);
} else if (Clazz_instanceOf(view, "javax.swing.Scrollable")) {
return (view).getPreferredScrollableViewportSize$();
} else {
return view.getPreferredSize$();
}});
Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) {
return Clazz_new_($I$(1).c$$I$I,[4, 4]);
});
Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) {
var vp=parent;
var view=vp.getView$();
var scrollableView=null;
if (view == null ) {
return;
} else if (Clazz_instanceOf(view, "javax.swing.Scrollable")) {
scrollableView=view;
}var viewPrefSize=view.getPreferredSize$();
var vpSize=vp.getSize$();
var extentSize=vp.toViewCoordinates$java_awt_Dimension(vpSize);
var viewSize=Clazz_new_($I$(1).c$$java_awt_Dimension,[viewPrefSize]);
if (scrollableView != null ) {
if (scrollableView.getScrollableTracksViewportWidth$()) {
viewSize.width=vpSize.width;
}if (scrollableView.getScrollableTracksViewportHeight$()) {
viewSize.height=vpSize.height;
}}var viewPosition=vp.getViewPosition$();
if (scrollableView == null || vp.getParent$() == null || vp.getParent$().getComponentOrientation$().isLeftToRight$() ) {
if ((viewPosition.x + extentSize.width) > viewSize.width) {
viewPosition.x=Math.max(0, viewSize.width - extentSize.width);
}} else {
if (extentSize.width > viewSize.width) {
viewPosition.x=viewSize.width - extentSize.width;
} else {
viewPosition.x=Math.max(0, Math.min(viewSize.width - extentSize.width, viewPosition.x));
}}if ((viewPosition.y + extentSize.height) > viewSize.height) {
viewPosition.y=Math.max(0, viewSize.height - extentSize.height);
}if (scrollableView == null ) {
if ((viewPosition.x == 0) && (vpSize.width > viewPrefSize.width) ) {
viewSize.width=vpSize.width;
}if ((viewPosition.y == 0) && (vpSize.height > viewPrefSize.height) ) {
viewSize.height=vpSize.height;
}}vp.setViewPosition$java_awt_Point(viewPosition);
vp.setViewSize$java_awt_Dimension(viewSize);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("javax.swing"),I$=[];
var C$=Clazz_newInterface(P$, "WindowConstants");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:26 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'StringBuffer','java.util.Collections','java.util.IdentityHashMap','java.util.HashMap','java.util.HashSet','Thread','sun.awt.SunToolkit','sun.awt.MostRecentThreadAppContext','sun.awt.MostRecentKeyValue','java.beans.PropertyChangeListener','java.beans.PropertyChangeSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AppContext");
C$.EVENT_QUEUE_KEY=null;
C$.threadGroup2appContext=null;
C$.numAppContexts=0;
C$.mostRecentThreadAppContext=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.EVENT_QUEUE_KEY=Clazz_new_($I$(1).c$$S,["EventQueue"]);
C$.threadGroup2appContext=$I$(2).synchronizedMap$java_util_Map(Clazz_new_($I$(3)));
C$.numAppContexts=0;
C$.mostRecentThreadAppContext=null;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.table=null;
this.threadGroup=null;
this.changeSupport=null;
this.isDisposed=false;
this.contextClassLoader=null;
this.mostRecentKeyValue=null;
this.shadowMostRecentKeyValue=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.table=Clazz_new_($I$(4));
this.changeSupport=null;
this.isDisposed=false;
this.mostRecentKeyValue=null;
this.shadowMostRecentKeyValue=null;
}, 1);
Clazz_newMeth(C$, 'getAppContexts$', function () {
return Clazz_new_($I$(5).c$$java_util_Collection,[C$.threadGroup2appContext.values$()]);
}, 1);
Clazz_newMeth(C$, 'isDisposed$', function () {
return this.isDisposed;
});
Clazz_newMeth(C$, 'c$$ThreadGroup', function (threadGroup) {
C$.$init$.apply(this);
C$.numAppContexts++;
this.threadGroup=threadGroup;
C$.threadGroup2appContext.put$TK$TV(threadGroup, this);
this.contextClassLoader=this ||null;
}, 1);
Clazz_newMeth(C$, 'getAppContext$', function () {
var currentThread=$I$(6).currentThread$();
var appContext=null;
var recent=C$.mostRecentThreadAppContext;
if ((recent != null ) && (recent.thread === currentThread ) ) {
appContext=recent.appContext;
} else {
var currentThreadGroup=currentThread.getThreadGroup$();
var threadGroup=currentThreadGroup;
appContext=C$.threadGroup2appContext.get$O(threadGroup);
while (appContext == null ){
threadGroup=threadGroup.getParent$();
if (threadGroup == null ) {
appContext=$I$(7).createNewAppContext$();
break;
}appContext=C$.threadGroup2appContext.get$O(threadGroup);
}
for (var tg=currentThreadGroup; tg !== threadGroup ; tg=tg.getParent$()) {
C$.threadGroup2appContext.put$TK$TV(tg, appContext);
}
C$.mostRecentThreadAppContext=Clazz_new_($I$(8).c$$Thread$sun_awt_AppContext,[currentThread, appContext]);
}return appContext;
}, 1);
Clazz_newMeth(C$, 'isMainContext$sun_awt_AppContext', function (ctx) {
return false;
}, 1);
Clazz_newMeth(C$, 'dispose$', function () {
});
Clazz_newMeth(C$, 'get$O', function (key) {
{
var recent=this.mostRecentKeyValue;
if ((recent != null ) && (recent.key === key ) ) {
return recent.value;
}var value=this.table.get$O(key);
if (this.mostRecentKeyValue == null ) {
this.mostRecentKeyValue=Clazz_new_($I$(9).c$$O$O,[key, value]);
this.shadowMostRecentKeyValue=Clazz_new_($I$(9).c$$O$O,[key, value]);
} else {
var auxKeyValue=this.mostRecentKeyValue;
this.shadowMostRecentKeyValue.setPair$O$O(key, value);
this.mostRecentKeyValue=this.shadowMostRecentKeyValue;
this.shadowMostRecentKeyValue=auxKeyValue;
}return value;
}});
Clazz_newMeth(C$, 'put$O$O', function (key, value) {
{
var recent=this.mostRecentKeyValue;
if ((recent != null ) && (recent.key === key ) ) recent.value=value;
return this.table.put$TK$TV(key, value);
}});
Clazz_newMeth(C$, 'remove$O', function (key) {
{
var recent=this.mostRecentKeyValue;
if ((recent != null ) && (recent.key === key ) ) recent.value=null;
return this.table.remove$O(key);
}});
Clazz_newMeth(C$, 'getThreadGroup$', function () {
return this.threadGroup;
});
Clazz_newMeth(C$, 'getContextClassLoader$', function () {
return this.contextClassLoader;
});
Clazz_newMeth(C$, 'toString', function () {
return this.getClass$().getName$() + "[threadGroup=" + this.threadGroup.getName$() + "]" ;
});
Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () {
if (this.changeSupport == null ) {
return Clazz_array($I$(10), [0]);
}return this.changeSupport.getPropertyChangeListeners$();
});
Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
if (listener == null ) {
return;
}if (this.changeSupport == null ) {
this.changeSupport=Clazz_new_($I$(11).c$$O,[this]);
}this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener);
});
Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) {
if (listener == null || this.changeSupport == null ) {
return;
}this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener);
});
Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) {
if (this.changeSupport == null ) {
return Clazz_array($I$(10), [0]);
}return this.changeSupport.getPropertyChangeListeners$S(propertyName);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newClass(P$, "AWTAccessor", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.componentAccessor=null;
C$.kfmAccessor=null;
C$.windowAccessor=null;
C$.awtEventAccessor=null;
C$.eventQueueAccessor=null;
C$.defaultKeyboardFocusManagerAccessor=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setDefaultKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_DefaultKeyboardFocusManagerAccessor', function (dkfma) {
C$.defaultKeyboardFocusManagerAccessor=dkfma;
}, 1);
Clazz_newMeth(C$, 'setKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_KeyboardFocusManagerAccessor', function (kfma) {
C$.kfmAccessor=kfma;
}, 1);
Clazz_newMeth(C$, 'getKeyboardFocusManagerAccessor$', function () {
return C$.kfmAccessor;
}, 1);
Clazz_newMeth(C$, 'setWindowAccessor$sun_awt_AWTAccessor_WindowAccessor', function (wa) {
C$.windowAccessor=wa;
}, 1);
Clazz_newMeth(C$, 'getWindowAccessor$', function () {
return C$.windowAccessor;
}, 1);
Clazz_newMeth(C$, 'setComponentAccessor$sun_awt_AWTAccessor_ComponentAccessor', function (ca) {
C$.componentAccessor=ca;
}, 1);
Clazz_newMeth(C$, 'getComponentAccessor$', function () {
return C$.componentAccessor;
}, 1);
Clazz_newMeth(C$, 'setAWTEventAccessor$sun_awt_AWTAccessor_AWTEventAccessor', function (aea) {
C$.awtEventAccessor=aea;
}, 1);
Clazz_newMeth(C$, 'getAWTEventAccessor$', function () {
return C$.awtEventAccessor;
}, 1);
Clazz_newMeth(C$, 'setEventQueueAccessor$sun_awt_AWTAccessor_EventQueueAccessor', function (eqa) {
C$.eventQueueAccessor=eqa;
}, 1);
Clazz_newMeth(C$, 'getEventQueueAccessor$', function () {
return C$.eventQueueAccessor;
}, 1);
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "WindowAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "ComponentAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "KeyboardFocusManagerAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "AWTEventAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "EventQueueAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "CursorAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "ClientPropertyKeyAccessor", function(){
});
})()
;
(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "DefaultKeyboardFocusManagerAccessor", function(){
});
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),p$1={},I$=[[0,'java.util.HashSet','java.util.IdentityHashMap','java.awt.AWTEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "AWTAutoShutdown", null, null, 'Runnable');
C$.theInstance=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.busyThreadSet=null;
this.toolkitThreadBusy=false;
this.peerMap=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.busyThreadSet=Clazz_new_($I$(1).c$$I,[7]);
this.toolkitThreadBusy=false;
this.peerMap=Clazz_new_($I$(2));
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getInstance$', function () {
return (C$.theInstance == null ? (C$.theInstance=Clazz_new_(C$)) : C$.theInstance);
}, 1);
Clazz_newMeth(C$, 'notifyToolkitThreadBusy$', function () {
p$1.setToolkitBusy$Z.apply(C$.getInstance$(), [true]);
}, 1);
Clazz_newMeth(C$, 'notifyToolkitThreadFree$', function () {
p$1.setToolkitBusy$Z.apply(C$.getInstance$(), [false]);
}, 1);
Clazz_newMeth(C$, 'notifyThreadBusy$Thread', function (thread) {
this.busyThreadSet.add$TE(thread);
});
Clazz_newMeth(C$, 'notifyThreadFree$Thread', function (thread) {
this.busyThreadSet.remove$O(thread);
});
Clazz_newMeth(C$, 'notifyPeerMapUpdated$', function () {
if (!p$1.isReadyToShutdown.apply(this, [])) {
p$1.activateBlockerThread.apply(this, []);
}});
Clazz_newMeth(C$, 'isReadyToShutdown', function () {
return (!this.toolkitThreadBusy && this.peerMap.isEmpty$() && this.busyThreadSet.isEmpty$() );
}, p$1);
Clazz_newMeth(C$, 'setToolkitBusy$Z', function (busy) {
if (busy != this.toolkitThreadBusy ) {
if (busy != this.toolkitThreadBusy ) {
if (busy) {
this.toolkitThreadBusy=busy;
} else {
this.toolkitThreadBusy=busy;
}}}}, p$1);
Clazz_newMeth(C$, 'run$', function () {
});
Clazz_newMeth(C$, 'getShutdownEvent$', function () {
return ((P$.AWTAutoShutdown$1||
(function(){var C$=Clazz_newClass(P$, "AWTAutoShutdown$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.awt.AWTEvent'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
})()
), Clazz_new_($I$(3).c$$O$I, [this, null, C$.getInstance$(), 0],P$.AWTAutoShutdown$1));
}, 1);
Clazz_newMeth(C$, 'activateBlockerThread', function () {
}, p$1);
Clazz_newMeth(C$, 'registerPeer$O$O', function (target, peer) {
this.peerMap.put$TK$TV(target, peer);
this.notifyPeerMapUpdated$();
});
Clazz_newMeth(C$, 'unregisterPeer$O$O', function (target, peer) {
if (this.peerMap.get$O(target) === peer ) {
this.peerMap.remove$O(target);
}});
Clazz_newMeth(C$, 'getPeer$O', function (target) {
return this.peerMap.get$O(target);
});
Clazz_newMeth(C$, 'dumpPeers$java_util_logging_Logger', function (aLog) {
aLog.fine$S("Mapped peers:");
for (var key, $key = this.peerMap.keySet$().iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) {
aLog.fine$S(key + "->" + this.peerMap.get$O(key) );
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,['sun.awt.CausedFocusEvent','.Cause']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "CausedFocusEvent", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.event.FocusEvent');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.cause=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getCause$', function () {
return this.cause;
});
Clazz_newMeth(C$, 'toString', function () {
return "java.awt.FocusEvent[" + C$.superclazz.prototype.paramString$.apply(this, []) + ",cause=" + this.cause + "] on " + this.getSource$() ;
});
Clazz_newMeth(C$, 'c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause', function (source, id, temporary, opposite, cause) {
C$.superclazz.c$$java_awt_Component$I$Z$java_awt_Component.apply(this, [source, id, temporary, opposite]);
C$.$init$.apply(this);
if (cause == null ) {
cause=$I$(1).UNKNOWN;
}this.cause=cause;
}, 1);
Clazz_newMeth(C$, 'retarget$java_awt_event_FocusEvent$java_awt_Component', function (e, newSource) {
if (e == null ) return null;
return Clazz_new_(C$.c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[newSource, e.getID$(), e.isTemporary$(), e.getOppositeComponent$(), (Clazz_instanceOf(e, "sun.awt.CausedFocusEvent")) ? (e).getCause$() : $I$(1).RETARGETED]);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.CausedFocusEvent, "Cause", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'Enum');
C$.$clinit$ = function() {Clazz_load(C$, 1);
$vals=Clazz_array(C$,[0]);
Clazz_newEnumConst($vals, C$.c$, "UNKNOWN", 0, []);
Clazz_newEnumConst($vals, C$.c$, "MOUSE_EVENT", 1, []);
Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL", 2, []);
Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_UP", 3, []);
Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_DOWN", 4, []);
Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_FORWARD", 5, []);
Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_BACKWARD", 6, []);
Clazz_newEnumConst($vals, C$.c$, "MANUAL_REQUEST", 7, []);
Clazz_newEnumConst($vals, C$.c$, "AUTOMATIC_TRAVERSE", 8, []);
Clazz_newEnumConst($vals, C$.c$, "ROLLBACK", 9, []);
Clazz_newEnumConst($vals, C$.c$, "NATIVE_SYSTEM", 10, []);
Clazz_newEnumConst($vals, C$.c$, "ACTIVATION", 11, []);
Clazz_newEnumConst($vals, C$.c$, "CLEAR_GLOBAL_FOCUS_OWNER", 12, []);
Clazz_newEnumConst($vals, C$.c$, "RETARGETED", 13, []);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
var $vals=[];
Clazz_newMeth(C$, 'values$', function() { return $vals }, 1);
Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newInterface(P$, "ComponentFactory");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newInterface(P$, "KeyboardFocusManagerPeerProvider");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newClass(P$, "MostRecentKeyValue");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.key=null;
this.value=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O$O', function (k, v) {
C$.$init$.apply(this);
this.key=k;
this.value=v;
}, 1);
Clazz_newMeth(C$, 'setPair$O$O', function (k, v) {
this.key=k;
this.value=v;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newClass(P$, "MostRecentThreadAppContext");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.thread=null;
this.appContext=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$Thread$sun_awt_AppContext', function (key, value) {
C$.$init$.apply(this);
this.thread=key;
this.appContext=value;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'java.awt.event.PaintEvent','java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "PaintEventDispatcher");
C$.dispatcher=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'setPaintEventDispatcher$sun_awt_PaintEventDispatcher', function (dispatcher) {
{
C$.dispatcher=dispatcher;
}}, 1);
Clazz_newMeth(C$, 'getPaintEventDispatcher$', function () {
{
if (C$.dispatcher == null ) {
C$.dispatcher=Clazz_new_(C$);
}return C$.dispatcher;
}}, 1);
Clazz_newMeth(C$, 'createPaintEvent$java_awt_Component$I$I$I$I', function (target, x, y, w, h) {
return Clazz_new_($I$(1).c$$java_awt_Component$I$java_awt_Rectangle,[target, 800, Clazz_new_($I$(2).c$$I$I$I$I,[x, y, w, h])]);
});
Clazz_newMeth(C$, 'shouldDoNativeBackgroundErase$java_awt_Component', function (c) {
return true;
});
Clazz_newMeth(C$, 'queueSurfaceDataReplacing$java_awt_Component$Runnable', function (c, r) {
return false;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'sun.awt.EventQueueItem','sun.awt.SunToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "PostEventQueue");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.queueHead=null;
this.queueTail=null;
this.eventQueue=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.queueHead=null;
this.queueTail=null;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_EventQueue', function (eq) {
C$.$init$.apply(this);
this.eventQueue=eq;
}, 1);
Clazz_newMeth(C$, 'noEvents$', function () {
return this.queueHead == null ;
});
Clazz_newMeth(C$, 'flush$', function () {
if (this.queueHead != null ) {
var tempQueue;
{
tempQueue=this.queueHead;
this.queueHead=this.queueTail=null;
while (tempQueue != null ){
this.eventQueue.postEvent$java_awt_AWTEvent(tempQueue.event);
tempQueue=tempQueue.next;
}
}}});
Clazz_newMeth(C$, 'postEvent$java_awt_AWTEvent', function (event) {
var item=Clazz_new_($I$(1).c$$java_awt_AWTEvent,[event]);
{
if (this.queueHead == null ) {
this.queueHead=this.queueTail=item;
} else {
this.queueTail.next=item;
this.queueTail=item;
}}$I$(2).wakeupEventQueue$java_awt_EventQueue$Z(this.eventQueue, false);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newInterface(P$, "RequestFocusController");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),p$1={},I$=[[0,'java.util.HashMap','java.awt.EventQueue','sun.awt.AppContext','sun.awt.PostEventQueue','Thread','sun.awt.AWTAutoShutdown','sun.awt.AWTAccessor','sun.awt.PeerEvent','java.awt.Toolkit','java.awt.Dimension','sun.font.FontDesignMetrics','java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "SunToolkit", null, 'java.awt.Toolkit', ['sun.awt.WindowClosingSupport', 'sun.awt.WindowClosingListener', 'sun.awt.ComponentFactory']);
C$.appContextMap=null;
C$.imgCache=null;
C$.startupLocale=null;
C$.dataTransfererClassName=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.appContextMap=Clazz_new_($I$(1));
C$.imgCache=Clazz_new_($I$(1));
C$.startupLocale=null;
C$.dataTransfererClassName=null;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.windowClosingListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.windowClosingListener=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
var eventQueue;
eventQueue=Clazz_new_($I$(2));
var appContext=$I$(3).getAppContext$();
if (appContext != null ) {
appContext.put$O$O($I$(3).EVENT_QUEUE_KEY, eventQueue);
var postEventQueue=Clazz_new_($I$(4).c$$java_awt_EventQueue,[eventQueue]);
appContext.put$O$O("PostEventQueue", postEventQueue);
}}, 1);
Clazz_newMeth(C$, 'useBufferPerWindow$', function () {
return false;
});
Clazz_newMeth(C$, 'createNewAppContext$', function () {
var threadGroup=$I$(5).currentThread$().getThreadGroup$();
return C$.createNewAppContext$ThreadGroup(threadGroup);
}, 1);
Clazz_newMeth(C$, 'createNewAppContext$ThreadGroup', function (threadGroup) {
var eventQueue;
var eqName=System.getProperty$S$S("AWT.EventQueueClass", "java.awt.EventQueue");
try {
eventQueue=Clazz_forName(eqName).newInstance$();
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
System.err.println$S("Failed loading " + eqName + ": " + e );
eventQueue=Clazz_new_($I$(2));
} else {
throw e;
}
}
var appContext=Clazz_new_($I$(3).c$$ThreadGroup,[threadGroup]);
appContext.put$O$O($I$(3).EVENT_QUEUE_KEY, eventQueue);
var postEventQueue=Clazz_new_($I$(4).c$$java_awt_EventQueue,[eventQueue]);
appContext.put$O$O("PostEventQueue", postEventQueue);
return appContext;
}, 1);
Clazz_newMeth(C$, 'wakeupEventQueue$java_awt_EventQueue$Z', function (q, isShutdown) {
q.wakeup$Z(isShutdown);
}, 1);
Clazz_newMeth(C$, 'targetToPeer$O', function (target) {
if (target != null ) {
return $I$(6).getInstance$().getPeer$O(target);
}return null;
}, 1);
Clazz_newMeth(C$, 'targetCreatedPeer$O$O', function (target, peer) {
if (target != null && peer != null ) {
$I$(6).getInstance$().registerPeer$O$O(target, peer);
}}, 1);
Clazz_newMeth(C$, 'targetDisposedPeer$O$O', function (target, peer) {
if (target != null && peer != null ) {
$I$(6).getInstance$().unregisterPeer$O$O(target, peer);
}}, 1);
Clazz_newMeth(C$, 'setAppContext$O$sun_awt_AppContext', function (target, context) {
if (Clazz_instanceOf(target, "java.awt.Component")) {
$I$(7).getComponentAccessor$().setAppContext$java_awt_Component$sun_awt_AppContext(target, context);
} else {
return false;
}return true;
}, 1);
Clazz_newMeth(C$, 'getAppContext$O', function (target) {
if (Clazz_instanceOf(target, "java.awt.Component")) {
{
return target.appContext;
}
} else {
return null;
}}, 1);
Clazz_newMeth(C$, 'targetToAppContext$O', function (target) {
if (target == null ) {
return null;
}var context=C$.getAppContext$O(target);
if (context == null ) {
context=C$.appContextMap.get$O(target);
}return context;
}, 1);
Clazz_newMeth(C$, 'setLWRequestStatus$java_awt_Window$Z', function (changed, status) {
$I$(7).getWindowAccessor$().setLWRequestStatus$java_awt_Window$Z(changed, status);
}, 1);
Clazz_newMeth(C$, 'checkAndSetPolicy$java_awt_Container$Z', function (cont, isSwingCont) {
}, 1);
Clazz_newMeth(C$, 'insertTargetMapping$O$sun_awt_AppContext', function (target, appContext) {
if (!C$.setAppContext$O$sun_awt_AppContext(target, appContext)) {
C$.appContextMap.put$TK$TV(target, appContext);
}}, 1);
Clazz_newMeth(C$, 'postEvent$sun_awt_AppContext$java_awt_AWTEvent', function (appContext, event) {
if (event == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}var postEventQueue=appContext.get$O("PostEventQueue");
if (postEventQueue != null ) {
postEventQueue.postEvent$java_awt_AWTEvent(event);
}}, 1);
Clazz_newMeth(C$, 'postPriorityEvent$java_awt_AWTEvent', function (e) {
var pe=Clazz_new_($I$(8).c$$O$Runnable$J,[$I$(9).getDefaultToolkit$(), ((P$.SunToolkit$1||
(function(){var C$=Clazz_newClass(P$, "SunToolkit$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
$I$(7).getAWTEventAccessor$().setPosted$java_awt_AWTEvent(this.$finals$.e);
(this.$finals$.e.getSource$()).dispatchEvent$java_awt_AWTEvent(this.$finals$.e);
});
})()
), Clazz_new_(P$.SunToolkit$1.$init$, [this, {e: e}])), 2]);
C$.postEvent$sun_awt_AppContext$java_awt_AWTEvent(C$.targetToAppContext$O(e.getSource$()), pe);
}, 1);
Clazz_newMeth(C$, 'flushPendingEvents$', function () {
var appContext=$I$(3).getAppContext$();
var postEventQueue=appContext.get$O("PostEventQueue");
if (postEventQueue != null ) {
postEventQueue.flush$();
}}, 1);
Clazz_newMeth(C$, 'isPostEventQueueEmpty$', function () {
var appContext=$I$(3).getAppContext$();
var postEventQueue=appContext.get$O("PostEventQueue");
return (postEventQueue == null || postEventQueue.noEvents$() );
}, 1);
Clazz_newMeth(C$, 'executeOnEventHandlerThread$O$Runnable', function (target, runnable) {
C$.executeOnEventHandlerThread$sun_awt_PeerEvent(Clazz_new_($I$(8).c$$O$Runnable$J,[target, runnable, 1]));
}, 1);
Clazz_newMeth(C$, 'executeOnEventHandlerThread$O$Runnable$J', function (target, runnable, when) {
C$.executeOnEventHandlerThread$sun_awt_PeerEvent(((P$.SunToolkit$2||
(function(){var C$=Clazz_newClass(P$, "SunToolkit$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('sun.awt.PeerEvent'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getWhen$', function () {
return this.$finals$.when;
});
})()
), Clazz_new_($I$(8).c$$O$Runnable$J, [this, {when: when}, target, runnable, 1],P$.SunToolkit$2)));
}, 1);
Clazz_newMeth(C$, 'executeOnEventHandlerThread$sun_awt_PeerEvent', function (peerEvent) {
C$.postEvent$sun_awt_AppContext$java_awt_AWTEvent(C$.targetToAppContext$O(peerEvent.getSource$()), peerEvent);
}, 1);
Clazz_newMeth(C$, 'invokeLaterOnAppContext$sun_awt_AppContext$Runnable', function (appContext, dispatcher) {
C$.postEvent$sun_awt_AppContext$java_awt_AWTEvent(appContext, Clazz_new_($I$(8).c$$O$Runnable$J,[$I$(9).getDefaultToolkit$(), dispatcher, 1]));
}, 1);
Clazz_newMeth(C$, 'isDispatchThreadForAppContext$O', function (target) {
var appContext=C$.targetToAppContext$O(target);
var eq=appContext.get$O($I$(3).EVENT_QUEUE_KEY);
var next=$I$(7).getEventQueueAccessor$().getNextQueue$java_awt_EventQueue(eq);
while (next != null ){
eq=next;
next=$I$(7).getEventQueueAccessor$().getNextQueue$java_awt_EventQueue(eq);
}
return ($I$(5).currentThread$() === $I$(7).getEventQueueAccessor$().getDispatchThread$java_awt_EventQueue(eq) );
}, 1);
Clazz_newMeth(C$, 'getScreenSize$', function () {
return Clazz_new_($I$(10).c$$I$I,[this.getScreenWidth$(), this.getScreenHeight$()]);
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
return $I$(11).getMetrics$java_awt_Font(font);
});
Clazz_newMeth(C$, 'getFontList$', function () {
var hardwiredFontList=Clazz_array(String, -1, ["Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"]);
return hardwiredFontList;
});
Clazz_newMeth(C$, 'createPanel$java_awt_Panel', function (target) {
return this.createComponent$java_awt_Component(target);
});
Clazz_newMeth(C$, 'disableBackgroundErase$java_awt_Component', function (component) {
p$1.disableBackgroundEraseImpl$java_awt_Component.apply(this, [component]);
});
Clazz_newMeth(C$, 'disableBackgroundEraseImpl$java_awt_Component', function (component) {
$I$(7).getComponentAccessor$().setBackgroundEraseDisabled$java_awt_Component$Z(component, true);
}, p$1);
Clazz_newMeth(C$, 'getSunAwtNoerasebackground$', function () {
return false;
}, 1);
Clazz_newMeth(C$, 'getSunAwtErasebackgroundonresize$', function () {
return true;
}, 1);
Clazz_newMeth(C$, 'setOverrideRedirect$java_awt_Window', function (target) {
});
Clazz_newMeth(C$, 'getImageFromHash$java_awt_Toolkit$java_net_URL', function (tk, url) {
var img=C$.imgCache.get$O(url);
if (img == null ) {
try {
img=tk.createImage$java_net_URL(url);
C$.imgCache.put$TK$TV(url, img);
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
} else {
throw e;
}
}
}return img;
}, 1);
Clazz_newMeth(C$, 'getImageFromHash$java_awt_Toolkit$S', function (tk, filename) {
var img=C$.imgCache.get$O(filename);
if (img == null ) {
try {
tk.createImage$S(filename);
C$.imgCache.put$TK$TV(filename, img);
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
} else {
throw e;
}
}
}return img;
}, 1);
Clazz_newMeth(C$, 'getImage$S', function (filename) {
return C$.getImageFromHash$java_awt_Toolkit$S(this, filename);
});
Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) {
return C$.getImageFromHash$java_awt_Toolkit$java_net_URL(this, url);
});
Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) {
return 0;
});
Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) {
if (w == 0 || h == 0 ) {
return true;
}return true;
});
Clazz_newMeth(C$, 'getSystemEventQueueImpl$', function () {
return C$.getSystemEventQueueImplPP$sun_awt_AppContext($I$(3).getAppContext$());
});
Clazz_newMeth(C$, 'getSystemEventQueueImplPPS$', function () {
return C$.getSystemEventQueueImplPP$sun_awt_AppContext($I$(3).getAppContext$());
}, 1);
Clazz_newMeth(C$, 'getSystemEventQueueImplPP$sun_awt_AppContext', function (appContext) {
var theEventQueue=appContext.get$O($I$(3).EVENT_QUEUE_KEY);
return theEventQueue;
}, 1);
Clazz_newMeth(C$, 'getNativeContainer$java_awt_Component', function (c) {
return $I$(9).getNativeContainer$java_awt_Component(c);
}, 1);
Clazz_newMeth(C$, 'getFocusAcceleratorKeyMask$', function () {
return 8;
});
Clazz_newMeth(C$, 'enableInputMethodsForTextComponent$', function () {
return false;
});
Clazz_newMeth(C$, 'getStartupLocale$', function () {
if (C$.startupLocale == null ) {
C$.startupLocale=$I$(12).US;
}return C$.startupLocale;
}, 1);
Clazz_newMeth(C$, 'getDefaultKeyboardLocale$', function () {
return C$.getStartupLocale$();
});
Clazz_newMeth(C$, 'setDataTransfererClassName$S', function (className) {
C$.dataTransfererClassName=className;
}, 1);
Clazz_newMeth(C$, 'getDataTransfererClassName$', function () {
if (C$.dataTransfererClassName == null ) {
$I$(9).getDefaultToolkit$();
}return C$.dataTransfererClassName;
}, 1);
Clazz_newMeth(C$, 'getWindowClosingListener$', function () {
return this.windowClosingListener;
});
Clazz_newMeth(C$, 'setWindowClosingListener$sun_awt_WindowClosingListener', function (wcl) {
this.windowClosingListener=wcl;
});
Clazz_newMeth(C$, 'windowClosingNotify$java_awt_event_WindowEvent', function (event) {
if (this.windowClosingListener != null ) {
return this.windowClosingListener.windowClosingNotify$java_awt_event_WindowEvent(event);
} else {
return null;
}});
Clazz_newMeth(C$, 'windowClosingDelivered$java_awt_event_WindowEvent', function (event) {
if (this.windowClosingListener != null ) {
return this.windowClosingListener.windowClosingDelivered$java_awt_event_WindowEvent(event);
} else {
return null;
}});
Clazz_newMeth(C$, 'isModalExcluded$java_awt_Window', function (window) {
return true;
}, 1);
Clazz_newMeth(C$, 'getDesktopAAHints$', function () {
return null;
});
Clazz_newMeth(C$, 'getContainingWindow$java_awt_Component', function (comp) {
while (comp != null && !comp.isWindowOrJSApplet$() ){
comp=comp.getParent$();
}
return comp;
}, 1);
Clazz_newMeth(C$, 'isNativeGTKAvailable$', function () {
return false;
});
Clazz_newMeth(C$, 'isWindowOpacitySupported$', function () {
return false;
});
Clazz_newMeth(C$, 'isWindowShapingSupported$', function () {
return false;
});
Clazz_newMeth(C$, 'isWindowTranslucencySupported$', function () {
return false;
});
Clazz_newMeth(C$, 'isTranslucencyCapable$java_awt_GraphicsConfiguration', function (gc) {
return false;
});
Clazz_newMeth(C$, 'needUpdateWindow$', function () {
return false;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newInterface(P$, "WindowClosingListener");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.awt"),I$=[];
var C$=Clazz_newInterface(P$, "WindowClosingSupport");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.font"),p$1={},I$=[[0,'sun.font.FontDesignMetrics','java.util.Hashtable',['sun.font.FontDesignMetrics','.KeyReference'],'swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "FontDesignMetrics", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'java.awt.FontMetrics');
C$.roundingUpValue=0;
C$.metricsCache=null;
C$.recentMetrics=null;
C$.recentIndex=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.roundingUpValue=0.95;
C$.metricsCache=Clazz_new_($I$(2));
C$.recentMetrics=Clazz_array(C$, [5]);
C$.recentIndex=0;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ascent=0;
this.descent=0;
this.leading=0;
this.height=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.ascent=-1;
this.height=-1;
}, 1);
Clazz_newMeth(C$, 'getMetrics$java_awt_Font', function (font) {
var m=null;
var r;
r=C$.metricsCache.get$O(font);
if (r != null ) {
m=r.get$();
}if (m == null ) {
m=Clazz_new_(C$.c$$java_awt_Font,[font]);
C$.metricsCache.put$TK$TV(font, Clazz_new_($I$(3).c$$O$O,[font, m]));
}for (var i=0; i < C$.recentMetrics.length; i++) {
if (C$.recentMetrics[i] === m ) {
return m;
}}
{
C$.recentMetrics[C$.recentIndex++]=m;
if (C$.recentIndex == 5) {
C$.recentIndex=0;
}}return m;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) {
C$.superclazz.c$$java_awt_Font.apply(this, [font]);
C$.$init$.apply(this);
this.font=font;
p$1.initMatrixAndMetrics.apply(this, []);
}, 1);
Clazz_newMeth(C$, 'initMatrixAndMetrics', function () {
{
//need to calculate ascent, descent, leading, and maxAdvance
}
}, p$1);
Clazz_newMeth(C$, 'charWidth$C', function (ch) {
return this.stringWidth$S("" + ch);
});
Clazz_newMeth(C$, 'stringWidth$S', function (str) {
return ((0.5 + p$1.getWidth$S.apply(this, [str]))|0);
});
Clazz_newMeth(C$, 'getWidth$S', function (str) {
return $I$(4).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null, this.font, str);
}, p$1);
Clazz_newMeth(C$, 'charsWidth$CA$I$I', function (data, off, len) {
var width=0;
if (len < 0) {
throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["len=" + len]);
}var limit=off + len;
for (var i=off; i < limit; i++) {
var ch=data[i];
width += this.stringWidth$S("" + ch);
}
return ((0.5 + width)|0);
});
Clazz_newMeth(C$, 'getWidths$', function () {
var widths=Clazz_array(Integer.TYPE, [256]);
return widths;
});
Clazz_newMeth(C$, 'getAscent$', function () {
p$1._getMetrics.apply(this, []);
return ((C$.roundingUpValue + this.ascent)|0);
});
Clazz_newMeth(C$, 'getDescent$', function () {
p$1._getMetrics.apply(this, []);
return ((C$.roundingUpValue + this.descent)|0);
});
Clazz_newMeth(C$, '_getMetrics', function () {
if (this.ascent >= 0 ) return;
this.ascent=this.font.getFontMetrics$().getAscent$();
this.descent=this.font.getFontMetrics$().getDescent$();
this.leading=this.font.getFontMetrics$().getLeading$();
}, p$1);
Clazz_newMeth(C$, 'getLeading$', function () {
p$1._getMetrics.apply(this, []);
return ((C$.roundingUpValue + this.descent + this.leading )|0) - ((C$.roundingUpValue + this.descent)|0);
});
Clazz_newMeth(C$, 'getHeight$', function () {
if (this.height < 0) {
this.height=this.getAscent$() + ((C$.roundingUpValue + this.descent + this.leading )|0);
}return this.height;
});
Clazz_newMeth(C$, 'charWidth$I', function (codePoint) {
if (!Character.isValidCodePoint$I(codePoint)) {
codePoint=65535;
}if (codePoint < 256) {
return this.getWidths$()[codePoint];
} else {
var buffer=Clazz_array(Character.TYPE, [2]);
var len=Character.toChars$I$CA$I(codePoint, buffer, 0);
return this.charsWidth$CA$I$I(buffer, 0, len);
}});
;
(function(){var C$=Clazz_newClass(P$.FontDesignMetrics, "KeyReference", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.key=null;
this.val=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O$O', function (key, value) {
C$.$init$.apply(this);
this.key=key;
this.val=value;
}, 1);
Clazz_newMeth(C$, 'get$', function () {
return this.val;
});
Clazz_newMeth(C$, 'dispose$', function () {
if ($I$(1).metricsCache.get$O(this.key) === this ) {
$I$(1).metricsCache.remove$O(this.key);
}});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:48 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.swing"),I$=[[0,'sun.awt.AppContext','Thread','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultLookup");
C$.DEFAULT_LOOKUP_KEY=null;
C$.currentDefaultThread=null;
C$.currentDefaultLookup=null;
C$.isLookupSet=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.DEFAULT_LOOKUP_KEY= Clazz_new_();
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'setDefaultLookup$sun_swing_DefaultLookup', function (lookup) {
{
if (!C$.isLookupSet && lookup == null ) {
return;
} else if (lookup == null ) {
lookup=Clazz_new_(C$);
}C$.isLookupSet=true;
$I$(1).getAppContext$().put$O$O(C$.DEFAULT_LOOKUP_KEY, lookup);
C$.currentDefaultThread=$I$(2).currentThread$();
C$.currentDefaultLookup=lookup;
}}, 1);
Clazz_newMeth(C$, 'get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
var lookupSet;
{
lookupSet=C$.isLookupSet;
}if (!lookupSet) {
return $I$(3).get$O$java_util_Locale(key, c.getLocale$());
}var thisThread=$I$(2).currentThread$();
var lookup;
{
if (thisThread === C$.currentDefaultThread ) {
lookup=C$.currentDefaultLookup;
} else {
lookup=$I$(1).getAppContext$().get$O(C$.DEFAULT_LOOKUP_KEY);
if (lookup == null ) {
lookup=Clazz_new_(C$);
$I$(1).getAppContext$().put$O$O(C$.DEFAULT_LOOKUP_KEY, lookup);
}C$.currentDefaultThread=thisThread;
C$.currentDefaultLookup=lookup;
}}return lookup.getDefault$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
}, 1);
Clazz_newMeth(C$, 'getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$I', function (c, ui, key, defaultValue) {
var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
if (iValue == null || !(Clazz_instanceOf(iValue, "java.lang.Number")) ) {
return defaultValue;
}return (iValue).intValue$();
}, 1);
Clazz_newMeth(C$, 'getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return C$.getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$I(c, ui, key, -1);
}, 1);
Clazz_newMeth(C$, 'getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Insets', function (c, ui, key, defaultValue) {
var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
if (iValue == null || !(Clazz_instanceOf(iValue, "java.awt.Insets")) ) {
return defaultValue;
}return iValue;
}, 1);
Clazz_newMeth(C$, 'getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return C$.getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Insets(c, ui, key, null);
}, 1);
Clazz_newMeth(C$, 'getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z', function (c, ui, key, defaultValue) {
var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
if (iValue == null || !(Clazz_instanceOf(iValue, "java.lang.Boolean")) ) {
return defaultValue;
}return (iValue).booleanValue$();
}, 1);
Clazz_newMeth(C$, 'getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return C$.getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z(c, ui, key, false);
}, 1);
Clazz_newMeth(C$, 'getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color', function (c, ui, key, defaultValue) {
var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
if (iValue == null || !(Clazz_instanceOf(iValue, "java.awt.Color")) ) {
return defaultValue;
}return iValue;
}, 1);
Clazz_newMeth(C$, 'getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return C$.getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color(c, ui, key, null);
}, 1);
Clazz_newMeth(C$, 'getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_Icon', function (c, ui, key, defaultValue) {
var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
if (iValue == null || !(Clazz_instanceOf(iValue, "javax.swing.Icon")) ) {
return defaultValue;
}return iValue;
}, 1);
Clazz_newMeth(C$, 'getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return C$.getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_Icon(c, ui, key, null);
}, 1);
Clazz_newMeth(C$, 'getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_border_Border', function (c, ui, key, defaultValue) {
var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key);
if (iValue == null || !(Clazz_instanceOf(iValue, "javax.swing.border.Border")) ) {
return defaultValue;
}return iValue;
}, 1);
Clazz_newMeth(C$, 'getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return C$.getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_border_Border(c, ui, key, null);
}, 1);
Clazz_newMeth(C$, 'getDefault$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) {
return $I$(3).get$O$java_util_Locale(key, c.getLocale$());
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:53 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.swing"),p$1={},I$=[[0,'Boolean','java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "SwingLazyValue", null, null, [['javax.swing.UIDefaults','javax.swing.UIDefaults.LazyValue']]);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.className=null;
this.methodName=null;
this.args=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (c) {
C$.c$$S$S$OA.apply(this, [c, null, null]);
}, 1);
Clazz_newMeth(C$, 'c$$S$S', function (c, m) {
C$.c$$S$S$OA.apply(this, [c, m, null]);
}, 1);
Clazz_newMeth(C$, 'c$$S$OA', function (c, o) {
C$.c$$S$S$OA.apply(this, [c, null, o]);
}, 1);
Clazz_newMeth(C$, 'c$$S$S$OA', function (c, m, o) {
C$.$init$.apply(this);
this.className=c;
this.methodName=m;
if (o != null ) {
this.args=o.clone$();
}}, 1);
Clazz_newMeth(C$, ['createValue$javax_swing_UIDefaults','createValue$'], function (table) {
try {
if (this.className.indexOf$S("$") > 0) {
var cname=this.className;
Clazz_load(cname.replace("$","$.").split("$"));
}var c=Clazz_forName(this.className, true, null);
if (this.methodName != null ) {
var types=p$1.getClassArray$OA.apply(this, [this.args]);
var m=c.getMethod$S$ClassA(this.methodName, types);
return m.invoke$O$OA(c, this.args);
} else {
var types=p$1.getClassArray$OA.apply(this, [this.args]);
var constructor=c.getConstructor$ClassA(types);
return constructor.newInstance$OA(this.args);
}} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
System.out.println$S("Error in sun.swing.SwingLazyValue.createValue for " + this.className);
} else {
throw e;
}
}
return null;
});
Clazz_newMeth(C$, 'getClassArray$OA', function (args) {
var types=null;
if (args != null ) {
types=Clazz_array(Class, [args.length]);
for (var i=0; i < args.length; i++) {
if (Clazz_instanceOf(args[i], "java.lang.Integer")) {
types[i]=Integer.TYPE;
} else if (Clazz_instanceOf(args[i], "java.lang.Boolean")) {
types[i]=$I$(1).TYPE;
} else if (Clazz_instanceOf(args[i], "javax.swing.plaf.ColorUIResource")) {
types[i]=Clazz_getClass($I$(2));
} else {
types[i]=args[i].getClass$();
}}
}return types;
}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:53 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.text.resources"),I$=[];
var C$=Clazz_newClass(P$, "FormatData", null, 'java.util.ListResourceBundle');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getContents$', function () {
return Clazz_array(java.lang.Object, -2, [Clazz_array(java.lang.Object, -1, ["MonthNames", Clazz_array(String, -1, ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""])]), Clazz_array(java.lang.Object, -1, ["MonthAbbreviations", Clazz_array(String, -1, ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""])]), Clazz_array(java.lang.Object, -1, ["DayNames", Clazz_array(String, -1, ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"])]), Clazz_array(java.lang.Object, -1, ["DayAbbreviations", Clazz_array(String, -1, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])]), Clazz_array(java.lang.Object, -1, ["AmPmMarkers", Clazz_array(String, -1, ["AM", "PM"])]), Clazz_array(java.lang.Object, -1, ["Eras", Clazz_array(String, -1, ["BC", "AD"])]), Clazz_array(java.lang.Object, -1, ["NumberPatterns", Clazz_array(String, -1, ["#,##0.###;-#,##0.###", "\u00a4#,##0.00;\'-\u00a4#,##0.00", "#,##0%"])]), Clazz_array(java.lang.Object, -1, ["NumberElements", Clazz_array(String, -1, [".", ",", ";", "%", "0", "#", "-", "E", "\u2030", "\u221e", "\ufffd"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatterns", Clazz_array(String, -1, ["h:mm:ss a z", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, MMMM d, yyyy", "MMMM d, yyyy", "MMM d, yyyy", "M/d/yy", "{1} {0}"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ"])]);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:53 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.text.resources"),I$=[];
var C$=Clazz_newClass(P$, "FormatData_en", null, 'java.util.ListResourceBundle');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getContents$', function () {
return Clazz_array(java.lang.Object, -2, [Clazz_array(java.lang.Object, -1, ["MonthNames", Clazz_array(String, -1, ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""])]), Clazz_array(java.lang.Object, -1, ["MonthAbbreviations", Clazz_array(String, -1, ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""])]), Clazz_array(java.lang.Object, -1, ["DayNames", Clazz_array(String, -1, ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"])]), Clazz_array(java.lang.Object, -1, ["DayAbbreviations", Clazz_array(String, -1, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])]), Clazz_array(java.lang.Object, -1, ["AmPmMarkers", Clazz_array(String, -1, ["AM", "PM"])]), Clazz_array(java.lang.Object, -1, ["Eras", Clazz_array(String, -1, ["BC", "AD"])]), Clazz_array(java.lang.Object, -1, ["NumberPatterns", Clazz_array(String, -1, ["#,##0.###;-#,##0.###", "\u00a4#,##0.00;(\u00a4#,##0.00)", "#,##0%"])]), Clazz_array(java.lang.Object, -1, ["NumberElements", Clazz_array(String, -1, [".", ",", ";", "%", "0", "#", "-", "E", "\u2030", "\u221e", "\ufffd"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatterns", Clazz_array(String, -1, ["h:mm:ss a z", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, MMMM d, yyyy", "MMMM d, yyyy", "MMM d, yyyy", "M/d/yy", "{1} {0}"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ"])]);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:53 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("sun.util.resources"),I$=[[0,['java.util.ResourceBundle','.Control'],['sun.util.resources.LocaleData','.AvailableLocales'],'java.util.ResourceBundle',['sun.util.resources.LocaleData','.LocaleDataResourceBundleControl'],'java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LocaleData", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getAvailableLocales$', function () {
return $I$(2).localeList.clone$();
}, 1);
Clazz_newMeth(C$, 'getCalendarData$java_util_Locale', function (locale) {
return C$.getBundle$S$java_util_Locale("sun.util.resources.CalendarData", locale);
}, 1);
Clazz_newMeth(C$, 'getDateFormatData$java_util_Locale', function (locale) {
return C$.getBundle$S$java_util_Locale("sun.text.resources.FormatData", locale);
}, 1);
Clazz_newMeth(C$, 'getNumberFormatData$java_util_Locale', function (locale) {
return C$.getBundle$S$java_util_Locale("sun.text.resources.FormatData", locale);
}, 1);
Clazz_newMeth(C$, 'getBundle$S$java_util_Locale', function (baseName, locale) {
return $I$(3).getBundle$S$java_util_Locale$java_util_ResourceBundle_Control(baseName, locale, $I$(4).getRBControlInstance$());
}, 1);
Clazz_newMeth(C$, 'createLocaleList$', function () {
return Clazz_array($I$(5), -1, [Clazz_new_($I$(5).c$$S$S$S,["en", "", ""])]);
}, 1);
;
(function(){var C$=Clazz_newClass(P$.LocaleData, "AvailableLocales", function(){
Clazz_newInstance(this, arguments[0],false,C$);
});
C$.localeList=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.localeList=P$.LocaleData.createLocaleList$();
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.LocaleData, "LocaleDataResourceBundleControl", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, ['java.util.ResourceBundle','.Control']);
C$.rbControlInstance=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.rbControlInstance=Clazz_new_(C$);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getRBControlInstance$', function () {
return C$.rbControlInstance;
}, 1);
Clazz_newMeth(C$, 'getFormats$S', function (baseName) {
if (baseName == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return (baseName.indexOf$S("sun.util.resources.Calendar") >= 0 ? $I$(1).FORMAT_PROPERTIES : $I$(1).FORMAT_CLASS);
});
Clazz_newMeth(C$, 'getCandidateLocales$S$java_util_Locale', function (baseName, locale) {
var candidates=C$.superclazz.prototype.getCandidateLocales$S$java_util_Locale.apply(this, [baseName, locale]);
var localeString=" en ";
if (localeString.length$() == 0) {
return candidates;
}for (var l=candidates.iterator$(); l.hasNext$(); ) {
var lstr=l.next$().toString();
if (lstr.length$() != 0 && localeString.indexOf$S(" " + lstr + " " ) == -1 ) {
l.remove$();
}}
return candidates;
});
Clazz_newMeth(C$, 'getFallbackLocale$S$java_util_Locale', function (baseName, locale) {
if (baseName == null || locale == null ) {
throw Clazz_new_(Clazz_load('NullPointerException'));
}return null;
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[];
var C$=Clazz_newInterface(P$, "A2SContainer");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Event','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "A2SEvent", null, null, 'Runnable');
C$.actionKeyCodes=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.actionKeyCodes=Clazz_array(Integer.TYPE, -2, [Clazz_array(Integer.TYPE, -1, [36, 1000]), Clazz_array(Integer.TYPE, -1, [35, 1001]), Clazz_array(Integer.TYPE, -1, [33, 1002]), Clazz_array(Integer.TYPE, -1, [34, 1003]), Clazz_array(Integer.TYPE, -1, [38, 1004]), Clazz_array(Integer.TYPE, -1, [40, 1005]), Clazz_array(Integer.TYPE, -1, [37, 1006]), Clazz_array(Integer.TYPE, -1, [39, 1007]), Clazz_array(Integer.TYPE, -1, [112, 1008]), Clazz_array(Integer.TYPE, -1, [113, 1009]), Clazz_array(Integer.TYPE, -1, [114, 1010]), Clazz_array(Integer.TYPE, -1, [115, 1011]), Clazz_array(Integer.TYPE, -1, [116, 1012]), Clazz_array(Integer.TYPE, -1, [117, 1013]), Clazz_array(Integer.TYPE, -1, [118, 1014]), Clazz_array(Integer.TYPE, -1, [119, 1015]), Clazz_array(Integer.TYPE, -1, [120, 1016]), Clazz_array(Integer.TYPE, -1, [121, 1017]), Clazz_array(Integer.TYPE, -1, [122, 1018]), Clazz_array(Integer.TYPE, -1, [123, 1019]), Clazz_array(Integer.TYPE, -1, [154, 1020]), Clazz_array(Integer.TYPE, -1, [145, 1021]), Clazz_array(Integer.TYPE, -1, [20, 1022]), Clazz_array(Integer.TYPE, -1, [144, 1023]), Clazz_array(Integer.TYPE, -1, [19, 1024]), Clazz_array(Integer.TYPE, -1, [155, 1025])]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.e=null;
this.target=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_AWTEvent', function (e) {
C$.$init$.apply(this);
this.target=e.getSource$();
this.e=C$.convertToOld$java_awt_AWTEvent(e);
}, 1);
Clazz_newMeth(C$, 'run$', function () {
var e=this.e;
var target=this.target;
if (Clazz_instanceOf(target, "swingjs.a2s.A2SContainer")) {
var parent=(target).getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(e.x, e.y, true, null, false);
if (parent != null ) target=parent;
while (parent != null && parent !== this.target ){
e.x-=parent.getX$();
e.y-=parent.getY$();
parent=parent.getParent$();
}
}
setTimeout(function() {
target.postEvent$java_awt_Event(e);
});
});
Clazz_newMeth(C$, 'getOldEventKey$java_awt_event_KeyEvent', function (e) {
var keyCode=e.getKeyCode$();
for (var i=0; i < C$.actionKeyCodes.length; i++) {
if (C$.actionKeyCodes[i][0] == keyCode) {
return C$.actionKeyCodes[i][1];
}}
return e.getKeyChar$().$c();
}, 1);
Clazz_newMeth(C$, 'convertToOld$java_awt_AWTEvent', function (e) {
var src=e.getSource$();
var id=e.getID$();
var newid=id;
switch (id) {
case 401:
case 402:
var ke=e;
if (ke.isActionKey$()) {
newid=(id == 401 ? 403 : 404);
}var keyCode=ke.getKeyCode$();
if (keyCode == 16 || keyCode == 17 || keyCode == 18 ) {
return null;
}return Clazz_new_($I$(1).c$$O$J$I$I$I$I$I,[src, ke.getWhen$(), newid, 0, 0, C$.getOldEventKey$java_awt_event_KeyEvent(ke), (ke.getModifiers$() & ~16)]);
case 500:
case 501:
case 502:
case 503:
case 506:
case 504:
case 505:
var me=e;
var olde=Clazz_new_($I$(1).c$$O$J$I$I$I$I$I,[src, me.getWhen$(), newid, me.getX$(), me.getY$(), 0, (me.getModifiers$() & ~16)]);
olde.clickCount=me.getClickCount$();
return olde;
case 1004:
return Clazz_new_($I$(1).c$$O$I$O,[src, 1004, null]);
case 1005:
return Clazz_new_($I$(1).c$$O$I$O,[src, 1005, null]);
case 201:
case 203:
case 204:
return Clazz_new_($I$(1).c$$O$I$O,[src, newid, null]);
case 100:
if (Clazz_instanceOf(src, "swingjs.a2s.Frame") || Clazz_instanceOf(src, "swingjs.a2s.Dialog") ) {
var p=(src).getLocation$();
return Clazz_new_($I$(1).c$$O$J$I$I$I$I$I,[src, 0, 205, p.x, p.y, 0, 0]);
}break;
case 1001:
var ae=e;
var cmd;
if (Clazz_instanceOf(src, "javax.swing.AbstractButton")) {
cmd=(src).getText$();
} else if (Clazz_instanceOf(src, "swingjs.a2s.MenuItem")) {
cmd=(src).getText$();
} else {
cmd=ae.getActionCommand$();
}return Clazz_new_($I$(1).c$$O$J$I$I$I$I$I$O,[src, 0, newid, 0, 0, 0, ae.getModifiers$(), cmd]);
case 701:
var ie=e;
var arg;
if (Clazz_instanceOf(src, "swingjs.a2s.List")) {
newid=(ie.getStateChange$() == 1 ? 701 : 702);
arg=ie.getItem$();
} else if (Clazz_instanceOf(src, "swingjs.a2s.Choice")) {
arg=ie.getItem$();
} else {
newid=1001;
arg=$I$(2).valueOf$Z(ie.getStateChange$() == 1);
}return Clazz_new_($I$(1).c$$O$I$O,[src, newid, arg]);
case 601:
var aje=e;
switch (aje.getAdjustmentType$()) {
case 1:
newid=602;
break;
case 2:
newid=601;
break;
case 4:
newid=604;
break;
case 3:
newid=603;
break;
case 5:
if (aje.getValueIsAdjusting$()) {
newid=605;
} else {
newid=607;
}break;
default:
return null;
}
return Clazz_new_($I$(1).c$$O$I$O,[src, newid, Integer.valueOf$I(aje.getValue$())]);
default:
}
return null;
}, 1);
Clazz_newMeth(C$, 'addListener$java_awt_Component', function (comp) {
var jc=(comp).getTopLevelAncestor$();
if (jc == null || !(Clazz_instanceOf(jc, "swingjs.a2s.A2SContainer")) ) return;
var top=jc;
var listener=top.getA2SListener$();
if (Clazz_instanceOf(comp, "javax.swing.AbstractButton")) {
if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getActionListeners$(), listener)) (comp).addActionListener$java_awt_event_ActionListener(listener);
} else if (Clazz_instanceOf(comp, "swingjs.a2s.TextField")) {
if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getActionListeners$(), listener)) (comp).addActionListener$java_awt_event_ActionListener(listener);
} else if (Clazz_instanceOf(comp, "javax.swing.JComboBox")) {
if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getActionListeners$(), listener)) (comp).addActionListener$java_awt_event_ActionListener(listener);
if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getItemListeners$(), listener)) (comp).addItemListener$java_awt_event_ItemListener(listener);
} else if (Clazz_instanceOf(comp, "javax.swing.JScrollBar")) {
if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getAdjustmentListeners$(), listener)) (comp).addAdjustmentListener$java_awt_event_AdjustmentListener(listener);
}}, 1);
Clazz_newMeth(C$, 'isListener$java_util_EventListenerA$java_util_EventListener', function (listeners, listener) {
if (listener == null ) return true;
for (var i=listeners.length; --i >= 0; ) if (listeners[i] === listener ) return true;
return false;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "A2SListener", null, null, ['java.awt.event.AdjustmentListener', 'java.awt.event.ActionListener', 'java.awt.event.KeyListener', 'java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener', 'java.awt.event.TextListener', 'javax.swing.event.ChangeListener', 'java.awt.event.ItemListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
});
Clazz_newMeth(C$, ['adjustmentValueChanged$java_awt_event_AdjustmentEvent','adjustmentValueChanged$'], function (e) {
Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$();
if (Clazz_instanceOf(e.getSource$(), "swingjs.a2s.Scrollbar")) (e.getSource$()).processAdjustmentEventA2S$java_awt_event_AdjustmentEvent(e);
});
Clazz_newMeth(C$, ['textValueChanged$java_awt_event_TextEvent','textValueChanged$'], function (e) {
System.out.println$S("AHAH! a2sListener textvalue changed " + e);
});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
System.out.println$S("Ahah a2slistener state changed " + e.getSource$());
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.a2s.A2SListener','java.awt.FlowLayout','swingjs.JSUtil','java.net.URL']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Applet", null, 'javax.swing.JApplet', 'swingjs.a2s.A2SContainer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.listener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
C$.fixAWTPaint$java_awt_Component$Class(this, Clazz_getClass(C$));
this.listener=Clazz_new_($I$(1));
this.addMouseListener$java_awt_event_MouseListener(this.listener);
this.addMouseMotionListener$java_awt_event_MouseMotionListener(this.listener);
this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(2)));
(this.getContentPane$()).setOpaque$Z(false);
}, 1);
Clazz_newMeth(C$, 'fixAWTPaint$java_awt_Component$Class', function (c, cl) {
var f=$I$(3).getJ2SAlias$O$S(c, "paint$java_awt_Graphics");
if ($I$(3).isOverridden$O$Class(f, cl) && f.toString().indexOf$S("C$.superclazz.prototype.paint$java_awt_Graphics.apply(this") < 0 ) {
c.paint$java_awt_Graphics = function(g) { cl.$clazz$.prototype.paint$java_awt_Graphics.apply(c,[g]);
f.apply(c,[g]);
}
}}, 1);
Clazz_newMeth(C$, ['setBackground$java_awt_Color','setBackground'], function (c) {
C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [c]);
this.getContentPane$().setBackground$java_awt_Color(c);
});
Clazz_newMeth(C$, ['getA2SListener$','getA2SListener'], function () {
return this.listener;
});
Clazz_newMeth(C$, ['getCodeBase$','getCodeBase'], function () {
var codeBase=C$.superclazz.prototype.getCodeBase$.apply(this, []).toString();
if (codeBase.endsWith$S("/bin/")) {
var appletPath=this.getClass$().getName$();
codeBase += appletPath.substring$I$I(0, appletPath.lastIndexOf$S(".") + 1).replace$C$C(".", "/");
}try {
return Clazz_new_($I$(4).c$$S,[codeBase]);
} catch (e) {
if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){
return null;
} else {
throw e;
}
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Color','java.awt.Insets','swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Button", null, 'javax.swing.JButton');
C$.bgcolor=null;
C$.awtInsets=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.bgcolor=Clazz_new_($I$(1).c$$I$I$I,[238, 238, 238]);
C$.awtInsets=Clazz_new_($I$(2).c$$I$I$I$I,[5, 6, 5, 6]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S.apply(this, [null]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.superclazz.c$$S.apply(this, [text]);
C$.$init$.apply(this);
if (!this.isBackgroundSet$()) this.setBackground$java_awt_Color(C$.bgcolor);
}, 1);
Clazz_newMeth(C$, 'getMargin$', function () {
return C$.awtInsets;
});
Clazz_newMeth(C$, 'fireActionPerformed$java_awt_event_ActionEvent', function (event) {
$I$(3).addListener$java_awt_Component(this);
C$.superclazz.prototype.fireActionPerformed$java_awt_event_ActionEvent.apply(this, [event]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Label", null, 'javax.swing.JLabel');
C$.awtInsets=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.awtInsets=Clazz_new_($I$(1).c$$I$I$I$I,[3, 6, 2, 6]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$I.apply(this, ["", 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$I.apply(this, [text, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I', function (text, center) {
C$.superclazz.c$$S.apply(this, [text]);
C$.$init$.apply(this);
this.getUI$().isAWT = true;
C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [null]);
this.setAlignment$I(center);
}, 1);
Clazz_newMeth(C$, 'setText$S', function (text) {
C$.superclazz.prototype.setText$S.apply(this, [text]);
});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [c]);
this.setOpaque$Z(c != null );
});
Clazz_newMeth(C$, 'getInsets$', function () {
return C$.awtInsets;
});
Clazz_newMeth(C$, 'getInsets$java_awt_Insets', function (s) {
s.top=C$.awtInsets.top;
s.left=C$.awtInsets.left;
s.bottom=C$.awtInsets.bottom;
s.right=C$.awtInsets.right;
return s;
});
Clazz_newMeth(C$, 'setAlignment$I', function (alignment) {
var xAlignment=0.0;
var yAlignment=0.5;
switch (alignment) {
case 0:
alignment=2;
xAlignment=0;
break;
case 2:
alignment=4;
xAlignment=1;
break;
case 1:
alignment=0;
xAlignment=0.5;
break;
}
this.setAlignmentX$F(xAlignment);
this.setAlignmentY$F(yAlignment);
this.setHorizontalAlignment$I(alignment);
this.setVerticalAlignment$I(0);
this.setVerticalTextPosition$I(0);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.FlowLayout','swingjs.a2s.Applet']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Panel", null, 'javax.swing.JPanel');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'isAWTContainer$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$java_awt_LayoutManager.apply(this, [Clazz_new_($I$(1))]);
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) {
C$.superclazz.c$$java_awt_LayoutManager.apply(this, [layout]);
C$.$init$.apply(this);
this.subclassSetup$();
this.setBackground$java_awt_Color(null);
this.setOpaque$Z(false);
$I$(2).fixAWTPaint$java_awt_Component$Class(this, Clazz_getClass(C$));
}, 1);
Clazz_newMeth(C$, 'subclassSetup$', function () {
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]);
});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [c]);
this.setOpaque$Z(c != null );
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Scrollbar", null, 'javax.swing.JScrollBar');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.fromUI=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [1]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (direction) {
C$.c$$I$I$I$I$I.apply(this, [direction, 0, 10, 0, 100]);
}, 1);
Clazz_newMeth(C$, 'c$$I$I$I$I$I', function (orientation, value, extent, min, max) {
C$.superclazz.c$$I$I$I$I$I.apply(this, [orientation, Math.max(Math.min(value, max), min), extent, min, max]);
C$.$init$.apply(this);
this.setOpaque$Z(true);
this.setBlockIncrement$I(10);
}, 1);
Clazz_newMeth(C$, 'fireAdjustmentValueChanged$I$I$I$Z', function (id, type, value, adjusting) {
$I$(1).addListener$java_awt_Component(this);
if (!this.fromUI) return;
C$.superclazz.prototype.fireAdjustmentValueChanged$I$I$I$Z.apply(this, [id, type, value, adjusting]);
});
Clazz_newMeth(C$, 'setValueFromUI$I', function (val) {
this.fromUI=true;
this.setValue$I(val);
this.fromUI=false;
});
Clazz_newMeth(C$, 'processAdjustmentEventA2S$java_awt_event_AdjustmentEvent', function (e) {
if (this.fromUI) this.processAdjustmentEvent$java_awt_event_AdjustmentEvent(e);
});
Clazz_newMeth(C$, 'processAdjustmentEvent$java_awt_event_AdjustmentEvent', function (e) {
});
Clazz_newMeth(C$, 'setValueIsAdjustingFromUI$Z', function (b) {
this.fromUI=true;
this.setValueIsAdjusting$Z(b);
this.fromUI=false;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Color','java.awt.Point','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ScrollPane", null, 'javax.swing.JScrollPane');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'isAWTContainer$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$I.apply(this, [0]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (scrollbars) {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
switch (scrollbars) {
case 2:
this.setVerticalScrollBarPolicy$I(21);
this.setHorizontalScrollBarPolicy$I(31);
break;
case 1:
this.setVerticalScrollBarPolicy$I(22);
this.setHorizontalScrollBarPolicy$I(32);
break;
case 0:
break;
}
this.setBackground$java_awt_Color($I$(1).LIGHT_GRAY);
this.setOpaque$Z(true);
}, 1);
Clazz_newMeth(C$, 'add$java_awt_Component', function (c) {
this.getViewport$().add$java_awt_Component(c);
return c;
});
Clazz_newMeth(C$, 'getVAdjustable$', function () {
return this.getVerticalScrollBar$();
});
Clazz_newMeth(C$, 'getHAdjustable$', function () {
return this.getHorizontalScrollBar$();
});
Clazz_newMeth(C$, 'setScrollPosition$I$I', function (x, y) {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (this.getComponentCount$() == 0) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["child is null"]);
}this.getHorizontalScrollBar$().setValue$I(x);
this.getVerticalScrollBar$().setValue$I(y);
}});
Clazz_newMeth(C$, 'setScrollPosition$java_awt_Point', function (p) {
this.setScrollPosition$I$I(p.x, p.y);
});
Clazz_newMeth(C$, 'getScrollPosition$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
if (this.getComponentCount$() == 0) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["child is null"]);
}return Clazz_new_($I$(2).c$$I$I,[this.getHorizontalScrollBar$().getValue$(), this.getVerticalScrollBar$().getValue$()]);
}});
Clazz_newMeth(C$, 'getViewportSize$', function () {
var i=this.getInsets$();
return Clazz_new_($I$(3).c$$I$I,[this.width - i.right - i.left , this.height - i.top - i.bottom ]);
});
Clazz_newMeth(C$, 'getInsets$', function () {
return this.秘getInsetsC$();
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),p$1={},I$=[[0,'java.awt.AWTEventMulticaster','java.awt.event.TextListener']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "TextArea", null, 'javax.swing.JTextArea');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.textListener=null;
this.horizontalScrollBarPolicy=0;
this.verticalScrollBarPolicy=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'c$$I$I', function (rows, cols) {
C$.c$$S$I$I$I.apply(this, [null, rows, cols, 0]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$I$I$I.apply(this, [null, 0, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$I$I$I.apply(this, [text, 0, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I', function (text, rows, cols) {
C$.c$$S$I$I$I.apply(this, [text, rows, cols, 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I$I$I', function (text, rows, columns, scrollbars) {
C$.superclazz.c$$S$I$I.apply(this, [text, rows < 0 ? 0 : rows, columns < 0 ? 0 : columns]);
C$.$init$.apply(this);
this.setWrapStyleWord$Z(false);
this.setLineWrap$Z(false);
switch (scrollbars) {
case 0:
p$1.setVerticalScrollBarPolicy$I.apply(this, [20]);
p$1.setHorizontalScrollBarPolicy$I.apply(this, [30]);
break;
case 1:
this.setLineWrap$Z(true);
p$1.setVerticalScrollBarPolicy$I.apply(this, [20]);
p$1.setHorizontalScrollBarPolicy$I.apply(this, [31]);
break;
case 2:
p$1.setVerticalScrollBarPolicy$I.apply(this, [21]);
p$1.setHorizontalScrollBarPolicy$I.apply(this, [30]);
break;
case 3:
p$1.setVerticalScrollBarPolicy$I.apply(this, [21]);
p$1.setHorizontalScrollBarPolicy$I.apply(this, [31]);
break;
}
}, 1);
Clazz_newMeth(C$, 'getVerticalScrollBarPolicy$', function () {
return this.verticalScrollBarPolicy;
});
Clazz_newMeth(C$, 'setVerticalScrollBarPolicy$I', function (policy) {
var old=this.verticalScrollBarPolicy;
this.verticalScrollBarPolicy=policy;
this.firePropertyChange$S$I$I("verticalScrollBarPolicy", old, policy);
this.revalidate$();
this.repaint$();
}, p$1);
Clazz_newMeth(C$, 'getHorizontalScrollBarPolicy$', function () {
return this.horizontalScrollBarPolicy;
});
Clazz_newMeth(C$, 'setHorizontalScrollBarPolicy$I', function (policy) {
var old=this.horizontalScrollBarPolicy;
this.horizontalScrollBarPolicy=policy;
this.firePropertyChange$S$I$I("horizontalScrollBarPolicy", old, policy);
this.revalidate$();
this.repaint$();
}, p$1);
Clazz_newMeth(C$, 'getScrollbarVisibility$', function () {
var v=(this.getVerticalScrollBarPolicy$() != 21);
var h=(this.getHorizontalScrollBarPolicy$() != 31);
return (v && h ? 0 : v ? 1 : h ? 2 : 3);
});
Clazz_newMeth(C$, 'addTextListener$java_awt_event_TextListener', function (l) {
if (l == null ) {
return;
}this.textListener=$I$(1).add$java_awt_event_TextListener$java_awt_event_TextListener(this.textListener, l);
this.newEventsOnly=true;
});
Clazz_newMeth(C$, 'removeTextListener$java_awt_event_TextListener', function (l) {
if (l == null ) {
return;
}this.textListener=$I$(1).remove$java_awt_event_TextListener$java_awt_event_TextListener(this.textListener, l);
});
Clazz_newMeth(C$, 'getTextListeners$', function () {
return this.getListeners$Class(Clazz_getClass($I$(2),['textValueChanged$java_awt_event_TextEvent']));
});
Clazz_newMeth(C$, 'getPreferredSize$I$I', function (rows, columns) {
return this.preferredSize$I$I(rows, columns);
});
Clazz_newMeth(C$, 'preferredSize$I$I', function (rows, columns) {
return C$.superclazz.prototype.getSizeJS$java_awt_Dimension$I$I$I.apply(this, [null, 400, rows, columns]);
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.preferredSize$();
});
Clazz_newMeth(C$, 'preferredSize$', function () {
return ((this.rows > 0) && (this.columns > 0) ) ? this.preferredSize$I$I(this.rows, this.columns) : C$.superclazz.prototype.preferredSize$.apply(this, []);
});
Clazz_newMeth(C$, 'getColumnWidth$', function () {
if (this.columnWidth == 0) {
var metrics=this.getFontMetrics$java_awt_Font(this.getFont$());
this.columnWidth=metrics.charWidth$C("n");
}return this.columnWidth;
});
Clazz_newMeth(C$, 'getMinimumSize$I$I', function (rows, columns) {
return this.minimumSize$I$I(rows, columns);
});
Clazz_newMeth(C$, 'minimumSize$I$I', function (rows, columns) {
return C$.superclazz.prototype.getSizeJS$java_awt_Dimension$I$I$I.apply(this, [null, 100, rows, columns]);
});
Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) {
return columns * this.getColumnWidth$() + 24;
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
return this.minimumSize$();
});
Clazz_newMeth(C$, 'minimumSize$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
return ((this.rows > 0) && (this.columns > 0) ) ? this.minimumSize$I$I(this.rows, this.columns) : C$.superclazz.prototype.minimumSize$.apply(this, []);
}});
Clazz_newMeth(C$, 'getInputMethodRequests$', function () {
return null;
});
Clazz_newMeth(C$, 'setCaretPosition$I', function (pos) {
C$.superclazz.prototype.setCaretPosition$I.apply(this, [pos]);
C$.superclazz.prototype.requestFocusInWindow$.apply(this, []);
});
Clazz_newMeth(C$, 'awtDefaults$', function () {
});
Clazz_newMeth(C$, 'setTextFromUI$S', function (t) {
C$.superclazz.prototype.setText$S.apply(this, [t]);
});
Clazz_newMeth(C$, 'appendText$S', function (str) {
C$.superclazz.prototype.append$S.apply(this, [str]);
p$1.toEnd.apply(this, []);
});
Clazz_newMeth(C$, 'append$S', function (str) {
C$.superclazz.prototype.append$S.apply(this, [str]);
p$1.toEnd.apply(this, []);
});
Clazz_newMeth(C$, 'toEnd', function () {
C$.superclazz.prototype.setCaretPosition$I.apply(this, [C$.superclazz.prototype.getText$.apply(this, []).length$()]);
C$.superclazz.prototype.requestFocusInWindow$.apply(this, []);
}, p$1);
Clazz_newMeth(C$, 'replaceText$S$I$I', function (str, start, end) {
C$.superclazz.prototype.replaceRange$S$I$I.apply(this, [str, start, end]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Insets','java.awt.event.TextEvent','swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "TextField", null, 'javax.swing.JTextField');
C$.awtInsets=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.awtInsets=Clazz_new_($I$(1).c$$I$I$I$I,[0, 1, 0, 1]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'isAWT$', function () {
});
Clazz_newMeth(C$, 'c$', function () {
C$.c$$S$I.apply(this, ["", 0]);
}, 1);
Clazz_newMeth(C$, 'c$$S', function (text) {
C$.c$$S$I.apply(this, [text, (text != null ) ? text.length$() : 0]);
}, 1);
Clazz_newMeth(C$, 'c$$I', function (width) {
C$.c$$S$I.apply(this, ["", width]);
}, 1);
Clazz_newMeth(C$, 'c$$S$I', function (text, width) {
C$.superclazz.c$$S$I.apply(this, [text, width]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getMargin$', function () {
return C$.awtInsets;
});
Clazz_newMeth(C$, 'addTextListener$java_awt_event_TextListener', function (textListener) {
this.getDocument$().addDocumentListener$javax_swing_event_DocumentListener(((P$.TextField$1||
(function(){var C$=Clazz_newClass(P$, "TextField$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'javax.swing.event.DocumentListener', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent', function (e) {
this.$finals$.textListener.textValueChanged$(Clazz_new_($I$(2).c$$O$I,[this, 0]));
});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent', function (e) {
this.$finals$.textListener.textValueChanged$(Clazz_new_($I$(2).c$$O$I,[this, 0]));
});
Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent', function (e) {
this.$finals$.textListener.textValueChanged$(Clazz_new_($I$(2).c$$O$I,[this, 0]));
});
})()
), Clazz_new_(P$.TextField$1.$init$, [this, {textListener: textListener}])));
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.preferredSize$I(this.columns);
});
Clazz_newMeth(C$, 'preferredSize$', function () {
return this.preferredSize$I(this.columns);
});
Clazz_newMeth(C$, 'getPreferredSize$I', function (columns) {
return this.preferredSize$I(columns);
});
Clazz_newMeth(C$, 'preferredSize$I', function (columns) {
return this.getPrefSizeJTF$I(columns);
});
Clazz_newMeth(C$, 'getMinimumSize$I', function (columns) {
return this.minimumSize$I(columns);
});
Clazz_newMeth(C$, 'minimumSize$I', function (columns) {
return this.getMinimumSizeJTF$I(columns);
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
return this.minimumSize$();
});
Clazz_newMeth(C$, 'minimumSize$', function () {
/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$());
{
return (this.columns > 0) ? this.minimumSize$I(this.columns) : C$.superclazz.prototype.minimumSize$.apply(this, []);
}});
Clazz_newMeth(C$, 'getColumnWidth$', function () {
if (this.columnWidth == 0) {
var metrics=this.getFontMetrics$java_awt_Font(this.getFont$());
this.columnWidth=metrics.charWidth$C("_");
}return this.columnWidth;
});
Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) {
return columns * this.getColumnWidth$() + 24;
});
Clazz_newMeth(C$, 'fireActionPerformed$', function () {
$I$(3).addListener$java_awt_Component(this);
C$.superclazz.prototype.fireActionPerformed$.apply(this, []);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.api"),I$=[];
var C$=Clazz_newClass(P$, "Interface");
C$.instances=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.instances="";
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getInstanceWithParams$S$ClassA$OA', function (name, classes, params) {
try {
var cl=Clazz_forName(name);
return cl.getConstructor$ClassA(classes).newInstance$OA(params);
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
return null;
} else {
throw e;
}
}
}, 1);
Clazz_newMeth(C$, 'getInstance$S$Z', function (name, isQuiet) {
var x=null;
{
Clazz._isQuiet = isQuiet;
}
try {
if (!isQuiet && C$.instances.indexOf$S(name + ";") <= 0 ) {
System.out.println$S("swingjs.api.Interface creating instance of " + name);
C$.instances += name + ";";
}var y=Clazz_forName(name);
if (y != null ) x=y.newInstance$();
} catch (e) {
System.out.println$S("Swingjs.api.Interface Error creating instance for " + name + ": \n" + e );
{
if (e.stack)System.out.println(e.stack);
}
} finally {
{
Clazz._isQuiet = false;
}
}
return x;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.api.js"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DOMNode");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'createElement', function (key, id) {
var node=null;
node = document.createElement(key);
id && (node.id = id);
return node;
}, 1);
Clazz_newMeth(C$, 'getElement', function (id) {
return (document.getElementById(id) ||null);
}, 1);
Clazz_newMeth(C$, 'createTextNode', function (text) {
return (document.createTextNode(text) ||null);
}, 1);
Clazz_newMeth(C$, 'getParent', function (node) {
return (node.parentNode ||null);
}, 1);
Clazz_newMeth(C$, 'getPreviousSibling', function (node) {
return (node.previousSibling ||null);
}, 1);
Clazz_newMeth(C$, 'firstChild', function (node) {
return (node.firstChild ||null);
}, 1);
Clazz_newMeth(C$, 'lastChild', function (node) {
return (node.lastChild ||null);
}, 1);
Clazz_newMeth(C$, 'setZ', function (node, z) {
return C$.setStyles(node, ["z-index", "" + z]);
}, 1);
Clazz_newMeth(C$, 'getAttr', function (node, attr) {
{
if (!node) return null;
var a = node[attr];
return (typeof a == "undefined" ? null : a);
}
}, 1);
Clazz_newMeth(C$, 'getAttrInt', function (node, attr) {
return (node && node[attr] ||0);
}, 1);
Clazz_newMeth(C$, 'getStyle', function (node, style) {
return (node && node.style[style] ||null);
}, 1);
Clazz_newMeth(C$, 'getCSSRectangle', function (node, r) {
r.x = parseInt(node.style.left.split("p")[0]);
r.y = parseInt(node.style.top.split("p")[0]);
r.width = parseInt(node.style.width.split("p")[0]);
r.height = parseInt(node.style.height.split("p")[0]);
}, 1);
Clazz_newMeth(C$, 'setAttr', function (node, attr, val) {
node[attr] = (val == "TRUE" ? true : val == "FALSE" ? false : val);
return node;
}, 1);
Clazz_newMeth(C$, 'setAttrInt', function (node, attr, val) {
node[attr] = val;
}, 1);
Clazz_newMeth(C$, 'setAttrs', function (node, attr) {
for (var i = 0; i < attr.length;) { var key = attr[i++];
var val = attr[i++];
key && (node[key] = val);
}
return node;
}, 1);
Clazz_newMeth(C$, 'setStyles', function (node, attr) {
if (node) for (var i = 0; i < attr.length;) { //
node.style[attr[i++]] = attr[i++];
//
}
return node;
}, 1);
Clazz_newMeth(C$, 'setSize', function (node, width, height) {
return C$.setStyles(node, ["width", width + "px", "height", height + "px"]);
}, 1);
Clazz_newMeth(C$, 'setPositionAbsolute', function (node) {
return C$.setStyles(node, ["position", "absolute"]);
}, 1);
Clazz_newMeth(C$, 'setVisible', function (node, visible) {
C$.setStyles(node, ["display", visible ? "block" : "none"]);
}, 1);
Clazz_newMeth(C$, 'setTopLeftAbsolute', function (node, top, left) {
C$.setStyles(node, ["top", top + "px"]);
C$.setStyles(node, ["left", left + "px"]);
return C$.setStyles(node, ["position", "absolute"]);
}, 1);
Clazz_newMeth(C$, 'setCursor', function (c, comp) {
var ui=(comp == null ? null : (comp).getUI$());
var node=(ui == null ? null : ui.getDOMNode$());
if (node == null) {document.body.style.cursor = c} else { node.style.cursor = c }
}, 1);
Clazz_newMeth(C$, 'getImageNode', function (img) {
return (img.秘canvas || img.秘imgNode ||null);
}, 1);
Clazz_newMeth(C$, 'addHorizontalGap', function (domNode, gap) {
var label=C$.setStyles(C$.createElement("label", null), ["letter-spacing", gap + "px", "font-size", "0pt"]);
label.appendChild(C$.createTextNode("."));
domNode.appendChild(label);
}, 1);
Clazz_newMeth(C$, 'appendChildSafely', function (parent, node) {
if (!parent || node.parentElement == parent) return;
parent.appendChild(node);
}, 1);
Clazz_newMeth(C$, 'getAudioElement', function (filePath, isLoop) {
var clip=C$.setAttrs(C$.createElement("audio", null), ["controls", "true", (isLoop ? "loop" : null), (isLoop ? "true" : null), "src", filePath]);
clip.play$ = clip.play;
clip.stop$ = clip.stop;
clip.loop$ = clip.loop;
return clip;
}, 1);
Clazz_newMeth(C$, 'getHeight', function (node) {
return $I$(1).jQuery.$(node).height();
}, 1);
Clazz_newMeth(C$, 'getWidth', function (node) {
return $I$(1).jQuery.$(node).width();
}, 1);
Clazz_newMeth(C$, 'dispose', function (node) {
if (node != null ) $I$(1).jQuery.$(node).remove();
}, 1);
Clazz_newMeth(C$, 'remove', function (node) {
var p=C$.getParent(node);
if (p != null ) p.removeChild(node);
}, 1);
Clazz_newMeth(C$, 'detachAll', function (node) {
if(node) while(node.lastChild) node.removeChild(node.lastChild);
}, 1);
Clazz_newMeth(C$, 'transferTo', function (node, container) {
if (node == null ) return null;
var p=C$.getParent(node);
try {
if (p != null ) $I$(1).jQuery.$(node).detach();
} catch (e) {
}
if (container == null ) return p;
$I$(1).jQuery.$(container).append(node);
return container;
}, 1);
Clazz_newMeth(C$, 'getComponentFor', function (node) {
if (node == null ) return null;
var ui=(node.ui || node["data-ui"] || node["data-component"] || node["data-textcomponent"] ||null);
return (ui == null ? null : ui.jc);
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.api.js"),I$=[];
var C$=Clazz_newClass(P$, "HTML5CanvasContext2D", function(){
Clazz_newInstance(this, arguments,0,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.imageData=null;
this._aSaved=null;
this.lineWidth=0;
this.font=null;
this.fillStyle=null;
this.strokeStyle=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'push', function (ctx, map) {
{
(ctx._aSaved || (ctx._aSaved = [])).push(map);
return ctx._aSaved.length;
}
}, 1);
Clazz_newMeth(C$, 'pop', function (ctx) {
{
return (ctx._aSaved && ctx._aSaved.length > 0 ? ctx._aSaved.pop() : null);
}
}, 1);
Clazz_newMeth(C$, 'getSavedLevel', function (ctx) {
{
return (ctx._aSaved ? ctx._aSaved.length : 0);
}
}, 1);
Clazz_newMeth(C$, 'getMatrix', function (ctx, transform) {
var m=ctx._m ||null;
if (m == null ) {
m=Clazz_array(Double.TYPE, [6]);
ctx._m = m;
transform.getMatrix$DA(m);
}return m;
}, 1);
;
(function(){var C$=Clazz_newClass(P$.HTML5CanvasContext2D, "ImageData", function(){
Clazz_newInstance(this, arguments[0],true,C$);
});
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.data=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.api.js"),I$=[];
var C$=Clazz_newInterface(P$, "JSInterface");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.api"),I$=[];
var C$=Clazz_newInterface(P$, "JSMinimalAbstractDocument", null, null, 'javax.swing.text.Document');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-04-17 18:03:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.jquery"),I$=[];
var C$=Clazz_newClass(P$, "JQueryUI");
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
{
if (!jQuery.ui) try{ (function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));n.offsetHeight,e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)}}(e.fn.removeData)),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=parseFloat(t[1],10)===6}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)},isOverAxis:function(e,t,n){return e>t&&e",options:{disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetName,this),e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}}) })(jQuery);
}catch (e) { System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?");
} if (!jQuery.ui.position) try{ (function(e,t){function h(e,t,n){return[parseInt(e[0],10)*(l.test(e[0])?t/100:1),parseInt(e[1],10)*(l.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}e.ui=e.ui||{};var n,r=Math.max,i=Math.abs,s=Math.round,o=/left|center|right/,u=/top|center|bottom/,a=/[\+\-]\d+%?/,f=/^\w+/,l=/%$/,c=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var r,i,s=e(""),o=s.children()[0];return e("body").append(s),r=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,r===i&&(i=s[0].clientWidth),s.remove(),n=r-i},getScrollInfo:function(t){var n=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};lr(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(C,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)a&&(v<0||v0&&(d=e.top-t.collisionPosition.marginTop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)10&&i<11,t.innerHTML="",n.removeChild(t)}(),e.uiBackCompat!==!1&&function(e){var n=e.fn.position;e.fn.position=function(r){if(!r||!r.offset)return n.call(this,r);var i=r.offset.split(" "),s=r.at.split(" ");return i.length===1&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),s.length===1&&(/left|center|right/.test(s[0])?s[1]="center":(s[1]=s[0],s[0]="center")),n.call(this,e.extend(r,{at:s[0]+i[0]+" "+s[1]+i[1],offset:t}))}}(jQuery) })(jQuery);
}catch (e) { System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?");
}
}
};
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.util.Hashtable','swingjs.JSUtil','java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSApp");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.params=null;
this.appletCodeBase=null;
this.appletIdiomaBase=null;
this.appletDocumentBase=null;
this.appletName=null;
this.htmlName=null;
this.main=null;
this.syncId=null;
this.testAsync=false;
this.async=false;
this.strJavaVersion=null;
this.strJavaVendor=null;
this.isApplet=false;
this.isFrame=false;
this.html5Applet=null;
this.fullName=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.fullName="Main";
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$$java_util_Hashtable', function (params) {
C$.$init$.apply(this);
this.setAppParams$java_util_Hashtable(params);
}, 1);
Clazz_newMeth(C$, 'getParameter$S', function (name) {
var s=this.params.get$O(name.toLowerCase$());
return (s == null ? null : "" + s);
});
Clazz_newMeth(C$, 'setAppParams$java_util_Hashtable', function (params0) {
this.params=params0;
this.params=Clazz_new_($I$(1));
for (var e, $e = params0.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.params.put$TK$TV(e.getKey$().toLowerCase$(), e.getValue$());
var language=this.getParameter$S("language");
if (language == null ) language=$I$(2).J2S.getDefaultLanguage(false);
$I$(3).setDefault$java_util_Locale($I$(2).getDefaultLocale$S(language));
this.htmlName=p$1.extract$S$S.apply(this, ["" + this.getParameter$S("name"), "_object"]);
this.appletName=p$1.extract$S$S.apply(this, [this.htmlName + "_", "_"]);
this.syncId=this.getParameter$S("syncId");
this.fullName=this.htmlName + "__" + this.syncId + "__" ;
this.params.put$TK$TV("fullname", this.fullName);
var o=this.params.get$O("codepath");
if (o == null ) o="../java/";
this.appletCodeBase=o.toString();
this.appletIdiomaBase=this.appletCodeBase.substring$I$I(0, this.appletCodeBase.lastIndexOf$S$I("/", this.appletCodeBase.length$() - 2) + 1) + "idioma";
o=this.params.get$O("documentbase");
this.appletDocumentBase=(o == null ? "" : o.toString());
if (this.params.containsKey$O("maximumsize")) Math.max((this.params.get$O("maximumsize")).intValue$(), 100);
this.async=(this.testAsync || this.params.containsKey$O("async") );
var applet=$I$(2).J2S.findApplet(this.htmlName);
var javaver=$I$(2).J2S.getJavaVersion();
this.html5Applet=applet;
this.strJavaVersion=javaver;
this.strJavaVendor="Java2Script/Java 1.6 (HTML5)";
o=this.params.get$O("assets");
if (o != null ) $I$(2).loadJavaResourcesFromZip$ClassLoader$S$java_util_Map(this.getClass$().getClassLoader$(), o, null);
System.out.println$S("JSApp initialized");
});
Clazz_newMeth(C$, 'extract$S$S', function (string, key) {
{
return string.split(key)[0];
}
return null;
}, p$1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSApplet", null, 'javax.swing.JApplet');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['runMain$S$SA','runMain'], function (className, args) {
var theClass=null;
try {
theClass=Clazz_forName(className);
} catch (e) {
if (Clazz_exceptionOf(e,"ClassNotFoundException")){
System.out.println$S("Running main but cannot find class " + className);
$I$(1).alert$O("Cannot find class " + className + " for running main(args)" );
e.printStackTrace$();
return null;
} else {
throw e;
}
}
System.out.println$S("Running main(args) in class " + className);
{
setTimeout(function(){theClass.$clazz$.main$SA.call(null, args || []);},1);
}
return theClass;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-02-06 18:31:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'javax.swing.SwingUtilities']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSAppletThread", null, 'javajs.util.JSThread');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.秘appletViewer=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$swingjs_JSAppletViewer$ThreadGroup$S', function (ap, group, name) {
C$.superclazz.c$$ThreadGroup$S.apply(this, [group, name]);
C$.$init$.apply(this);
this.秘appletViewer=ap;
}, 1);
Clazz_newMeth(C$, 'run1$I', function (mode) {
mode=this.秘appletViewer.run1$I(mode);
if (mode != 2) this.dispatchAndReturn$Runnable$I(null, mode);
});
Clazz_newMeth(C$, 'dispatchAndReturn$Runnable$I', function (r, mode) {
var m=mode;
$I$(1).invokeLater$Runnable(((P$.JSAppletThread$1||
(function(){var C$=Clazz_newClass(P$, "JSAppletThread$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
this.b$['swingjs.JSAppletThread'].run1$I.apply(this.b$['swingjs.JSAppletThread'], [this.$finals$.m]);
});
})()
), Clazz_new_(P$.JSAppletThread$1.$init$, [this, {m: m}])));
});
Clazz_newMeth(C$, 'myInit$', function () {
return false;
});
Clazz_newMeth(C$, 'isLooping$', function () {
return false;
});
Clazz_newMeth(C$, 'myLoop$', function () {
return false;
});
Clazz_newMeth(C$, 'whenDone$', function () {
});
Clazz_newMeth(C$, 'getDelayMillis$', function () {
return 0;
});
Clazz_newMeth(C$, 'onException$Exception', function (e) {
});
Clazz_newMeth(C$, 'doFinally$', function () {
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.net.URL','swingjs.api.Interface','java.awt.Dimension','javajs.util.Lst','java.awt.Insets','swingjs.JSThreadGroup','swingjs.JSAppletThread','Thread','sun.awt.SunToolkit','java.awt.Toolkit','swingjs.JSGraphicsConfiguration','sun.applet.AppletEventMulticaster','sun.applet.AppletEvent','javax.swing.JFrame','javax.swing.SwingUtilities','javax.imageio.ImageIO','swingjs.JSUtil','java.awt.Font','swingjs.JSFocusPeer','javajs.util.PT','swingjs.JSFrameViewer','java.util.ArrayList','swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSAppletViewer", null, 'swingjs.JSFrameViewer', ['java.applet.AppletStub', 'java.applet.AppletContext']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
try {
$I$(1).setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory($I$(2).getInstance$S$Z("javajs.util.AjaxURLStreamHandlerFactory", false));
} catch (e) {
}
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.maximumSize=0;
this.graphicsConfig=null;
this.threadGroup=null;
this.myThread=null;
this.haveFrames=false;
this.defaultAppletSize=null;
this.currentAppletSize=null;
this.nextStatus=0;
this.status=0;
this.listeners=null;
this.allWindows=null;
this.sharedOwnerFrame=null;
this.appContext=null;
this.timerQueue=null;
this.isResizable=false;
this.haveResizable=false;
this.addFrame=false;
this.jAppletFrame=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.maximumSize=2147483647;
this.haveFrames=false;
this.defaultAppletSize=Clazz_new_($I$(3).c$$I$I,[10, 10]);
this.currentAppletSize=Clazz_new_($I$(3).c$$I$I,[10, 10]);
this.status=0;
this.allWindows=Clazz_new_($I$(4));
}, 1);
Clazz_newMeth(C$, 'addWindow$java_awt_Window', function (window) {
this.allWindows.removeObj$O(window);
this.allWindows.addLast$TV(window);
});
Clazz_newMeth(C$, 'c$$java_util_Hashtable', function (params) {
C$.superclazz.c$$java_util_Hashtable.apply(this, [params]);
C$.$init$.apply(this);
System.out.println$S("JSAppletViewer initializing2");
this.isApplet=true;
this.appletViewer=this;
p$1.setDisplayParams$java_util_Hashtable.apply(this, [params]);
}, 1);
Clazz_newMeth(C$, 'setDisplayParams$java_util_Hashtable', function (params) {
this.display=params.get$O("display");
var s="" + params.get$O("isResizable");
this.isResizable="true".equalsIgnoreCase$S(s);
this.haveResizable=(this.isResizable || "false".equalsIgnoreCase$S(s) );
this.addFrame="true".equalsIgnoreCase$S("" + params.get$O("addFrame"));
this.insets=Clazz_new_($I$(5).c$$I$I$I$I,[0, 0, 0, 0]);
this.threadGroup=Clazz_new_($I$(6).c$$S,[this.appletName]);
this.myThread=Clazz_new_($I$(7).c$$swingjs_JSAppletViewer$ThreadGroup$S,[this, this.threadGroup, this.appletName]);
$I$(8).thisThread=(this.myThread);
this.appContext=$I$(9).createNewAppContext$();
$I$(10).getDefaultToolkit$();
Clazz_new_($I$(11)).getDevice$();
}, p$1);
Clazz_newMeth(C$, 'start$', function () {
if (this.status == 0) this.myThread.start$();
else this.showStatus$S("already started");
});
Clazz_newMeth(C$, 'addAppletListener$sun_applet_AppletListener', function (l) {
this.listeners=$I$(12).add$sun_applet_AppletListener$sun_applet_AppletListener(this.listeners, l);
});
Clazz_newMeth(C$, 'removeAppletListener$sun_applet_AppletListener', function (l) {
this.listeners=$I$(12).remove$sun_applet_AppletListener$sun_applet_AppletListener(this.listeners, l);
});
Clazz_newMeth(C$, 'dispatchAppletEvent$I$O', function (id, argument) {
if (this.listeners != null ) {
var evt=Clazz_new_($I$(13).c$$O$I$O,[this, id, argument]);
this.listeners.appletStateChanged$(evt);
}});
Clazz_newMeth(C$, 'isActive$', function () {
return true;
});
Clazz_newMeth(C$, 'appletResize$I$I', function (width, height) {
var currentSize=Clazz_new_($I$(3).c$$I$I,[this.currentAppletSize.width, this.currentAppletSize.height]);
this.currentAppletSize.width=width;
this.currentAppletSize.height=height;
this.applet.getRootPane$().setBounds$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$());
this.applet.getContentPane$().setBounds$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$());
this.applet.setBounds$I$I$I$I(0, 0, width, height);
(this.applet.getContentPane$()).revalidate$();
if (this.addFrame) {
this.jAppletFrame=Clazz_new_($I$(14).c$$S,["SwingJS Applet Viewer"]);
var pane=this.applet.getContentPane$();
this.jAppletFrame.setContentPane$java_awt_Container(pane);
this.applet.setVisible$Z(false);
this.jAppletFrame.pack$();
this.jAppletFrame.setDefaultCloseOperation$I(2);
}$I$(15).invokeLater$Runnable(((P$.JSAppletViewer$1||
(function(){var C$=Clazz_newClass(P$, "JSAppletViewer$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
this.b$['swingjs.JSAppletViewer'].applet.repaint$I$I$I$I(0, 0, this.b$['swingjs.JSAppletViewer'].getWidth$.apply(this.b$['swingjs.JSAppletViewer'], []), this.b$['swingjs.JSAppletViewer'].getHeight$.apply(this.b$['swingjs.JSAppletViewer'], []));
this.b$['swingjs.JSAppletViewer'].dispatchAppletEvent$I$O.apply(this.b$['swingjs.JSAppletViewer'], [51234, this.$finals$.currentSize]);
});
})()
), Clazz_new_(P$.JSAppletViewer$1.$init$, [this, {currentSize: currentSize}])));
});
Clazz_newMeth(C$, 'getDocumentBase$', function () {
try {
return Clazz_new_($I$(1).c$$S,[this.params.get$O("documentbase")]);
} catch (e) {
if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){
return null;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'getCodeBase$', function () {
try {
return Clazz_new_($I$(1).c$$S,[this.params.get$O("codepath")]);
} catch (e) {
if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){
return null;
} else {
throw e;
}
}
});
Clazz_newMeth(C$, 'getParameter$S', function (name) {
var s=C$.superclazz.prototype.getParameter$S.apply(this, [name]);
System.out.println$S("JSApp get parameter: " + name + " = " + s );
return s;
});
Clazz_newMeth(C$, 'getAppletContext$', function () {
return this;
});
Clazz_newMeth(C$, 'getHeight$', function () {
return this.html5Applet._getHeight();
});
Clazz_newMeth(C$, 'getWidth$', function () {
return this.html5Applet._getWidth();
});
Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) {
this.applet.reshape$I$I$I$I(x, y, width, height);
this.currentAppletSize.width=width;
this.currentAppletSize.height=height;
});
Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) {
try {
return $I$(16).read$java_net_URL(url);
} catch (t) {
return null;
}
});
Clazz_newMeth(C$, 'getApplet$S', function (name) {
var applet=null;
{
applet = SwingJS._applets[name]; applet && (applet = applet._applet);
}
return applet;
});
Clazz_newMeth(C$, 'getApplets$', function () {
return null;
});
Clazz_newMeth(C$, 'showDocument$java_net_URL', function (url) {
$I$(17).showWebPage$java_net_URL$O(url, null);
});
Clazz_newMeth(C$, 'showDocument$java_net_URL$S', function (url, target) {
$I$(17).showWebPage$java_net_URL$O(url, target);
});
Clazz_newMeth(C$, 'showStatus$S', function (status) {
$I$(17).log$S(status);
{
Clazz._LoaderProgressMonitor.showStatus(status, true);
}
});
Clazz_newMeth(C$, 'showAppletStatus$S', function (status) {
this.getAppletContext$().showStatus$S(this.htmlName + " " + status );
}, p$1);
Clazz_newMeth(C$, 'showAppletException$Throwable', function (t) {
{
this.showAppletStatus$S("error " + (t.getMessage ? t.getMessage$() : t));
if (t.printStackTrace$) t.printStackTrace$();
else System.out.println(t.stack);
}
}, p$1);
Clazz_newMeth(C$, 'run1$I', function (mode) {
System.out.println$S("JSAppletViewer thread run1 mode=" + mode + " status=" + this.nextStatus );
var ok=false;
switch (mode) {
case 0:
this.currentAppletSize.width=this.defaultAppletSize.width=this.getWidth$();
this.currentAppletSize.height=this.defaultAppletSize.height=this.getHeight$();
this.nextStatus=1;
ok=true;
break;
case 1:
switch (this.nextStatus) {
case 1:
if (this.status != 0) {
p$1.showAppletStatus$S.apply(this, ["notdisposed"]);
this.status=7;
break;
}System.out.println$S("JSAppletViewer runloader");
p$1.runLoader.apply(this, []);
this.nextStatus=(this.main == null ? 2 : 76);
ok=true;
break;
case 2:
if (this.status != 1 && this.status != 5 ) {
p$1.showAppletStatus$S.apply(this, ["notloaded"]);
break;
}System.out.println$S("JSAppletViewer init");
this.applet.setFont$java_awt_Font(Clazz_new_($I$(18).c$$S$I$I,["Dialog", 0, 12]));
this.applet.秘resizeOriginal$I$I(this.defaultAppletSize.width, this.defaultAppletSize.height);
this.applet.init$();
this.applet.validate$();
this.status=2;
p$1.showAppletStatus$S.apply(this, ["initialized"]);
this.nextStatus=3;
ok=true;
break;
case 3:
if (this.status != 2 && this.status != 4 ) {
p$1.showAppletStatus$S.apply(this, ["notstarted"]);
this.status=7;
break;
}this.applet.getRootPane$().addNotify$();
System.out.println$S("JSAppletViewer start" + this.currentAppletSize);
this.applet.秘resizeOriginal$I$I(this.currentAppletSize.width, this.currentAppletSize.height);
this.applet.start$();
this.status=3;
p$1.showAppletStatus$S.apply(this, ["started"]);
this.nextStatus=35;
ok=true;
break;
case 35:
this.applet.getContentPane$().setBounds$java_awt_Rectangle(this.applet.getBounds$());
this.applet.setVisible$Z(true);
this.applet.validate$();
p$1.showAppletStatus$S.apply(this, ["ready"]);
$I$(17).readyCallback$S$S$java_awt_JSComponent$swingjs_JSAppletViewer(this.appletName, this.fullName, this.applet, this);
if (this.isResizable && !this.addFrame && this.resizer == null ) {
this.resizer=($I$(17).getInstance$S("swingjs.plaf.Resizer")).set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer(this, this.top);
if (this.resizer != null ) this.resizer.show$();
}$I$(19).setFocusLast$java_applet_JSApplet(this.applet);
this.applet.repaint$();
break;
case 4:
if (this.status == 3) {
this.status=4;
this.applet.setVisible$Z(false);
this.applet.stop$();
p$1.showAppletStatus$S.apply(this, ["stopped"]);
} else {
p$1.showAppletStatus$S.apply(this, ["notstopped"]);
this.status=7;
}break;
case 5:
if (this.status == 4 || this.status == 2 ) {
this.status=5;
this.applet.destroy$();
p$1.showAppletStatus$S.apply(this, ["destroyed"]);
} else {
p$1.showAppletStatus$S.apply(this, ["notdestroyed"]);
this.status=7;
}break;
case 75:
if (this.status == 5 || this.status == 1 ) {
p$1.showAppletStatus$S.apply(this, ["notdisposed"]);
this.status=7;
} else {
this.status=0;
this.applet=null;
p$1.showAppletStatus$S.apply(this, ["disposed"]);
}break;
case 76:
p$1.showAppletStatus$S.apply(this, ["running " + this.main]);
var args=this.params.get$O("args");
if (Clazz_instanceOf(args, "java.lang.String")) args=$I$(20).split$S$S(args, " ");
(this.applet).runMain$swingjs_JSAppletViewer$SA(this, args);
break;
case 6:
break;
default:
System.out.println$S("unrecognized JSAppletViewer status: " + this.nextStatus);
break;
}
break;
default:
System.out.println$S("unrecognized JSAppletThread mode: " + mode);
break;
}
return (ok ? 1 : 2);
});
Clazz_newMeth(C$, 'runLoader', function () {
this.dispatchAppletEvent$I$O(51235, null);
this.status=1;
this.main=this.getParameter$S("main");
var code=(this.main == null ? this.getParameter$S("code") : null);
try {
if (code == null && this.main == null ) {
System.err.println$S("runloader.err-- \"code\" or \"main\" must be specified.");
throw Clazz_new_(Clazz_load('InstantiationException').c$$S,["\"code\" or \"main\" must be specified."]);
}if (code == null ) code="swingjs.JSDummyApplet";
else if (code.indexOf$S(".") < 0) code="_." + code;
this.top=this.applet=$I$(17).getInstance$S(code);
if (this.applet == null ) {
System.out.println$S(code + " could not be launched");
this.status=7;
} else if (!(Clazz_instanceOf(this.applet, "javax.swing.JApplet"))) {
$I$(17).alert$O(code + " is not a JApplet!?");
this.status=7;
}} catch (e$$) {
if (Clazz_exceptionOf(e$$,"InstantiationException")){
var e = e$$;
{
this.status=7;
p$1.showAppletException$Throwable.apply(this, [e]);
return;
}
} else if (Clazz_exceptionOf(e$$,"Exception")){
var e = e$$;
{
this.status=7;
p$1.showAppletException$Throwable.apply(this, [e]);
return;
}
} else if (Clazz_exceptionOf(e$$,"ThreadDeath")){
var e = e$$;
{
this.status=7;
p$1.showAppletStatus$S.apply(this, ["death"]);
return;
}
} else if (Clazz_exceptionOf(e$$,"Error")){
var e = e$$;
{
this.status=7;
p$1.showAppletException$Throwable.apply(this, [e]);
return;
}
} else {
throw e$$;
}
} finally {
this.dispatchAppletEvent$I$O(51236, null);
}
if (this.applet != null ) {
this.applet.setStub$java_applet_AppletStub(this);
this.applet.setVisible$Z(false);
this.applet.setDispatcher$();
p$1.showAppletStatus$S.apply(this, ["loaded"]);
}}, p$1);
Clazz_newMeth(C$, 'newFrameViewer$Z', function (forceNew) {
return (this.haveFrames || forceNew ? Clazz_new_($I$(21)) : null);
});
Clazz_newMeth(C$, 'getTimerQueue$', function () {
return (this.timerQueue == null ? (this.timerQueue=Clazz_new_($I$(22))) : this.timerQueue);
});
Clazz_newMeth(C$, 'exit$', function () {
for (var i=this.allWindows.size$(); --i >= 0; ) try {
this.allWindows.get$I(i).dispose$();
} catch (e) {
}
});
Clazz_newMeth(C$, 'getAudioClip$java_net_URL', function (url) {
return $I$(23).getAudioClip$java_net_URL(url);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'swingjs.JSUtil','Thread','java.awt.event.FocusEvent','swingjs.JSToolkit','java.awt.JSComponent','java.awt.event.WindowEvent','java.awt.KeyboardFocusManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSFocusPeer", null, null, 'java.awt.peer.KeyboardFocusManagerPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.currentWindow=null;
this.currentFocusOwner=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'setCurrentFocusedWindow$java_awt_Window', function (win) {
this.currentWindow=win;
});
Clazz_newMeth(C$, 'clearGlobalFocusOwner$java_awt_Window', function (activeWindow) {
this.currentFocusOwner=null;
});
Clazz_newMeth(C$, 'getCurrentFocusedWindow$', function () {
var active=p$1.getAccessibleActiveElement.apply(this, []);
var o=$I$(1).jQuery.$(active).closest("swingjs-window");
return this.currentWindow=C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(o[0] ||null);
});
Clazz_newMeth(C$, 'getCurrentFocusOwner$O', function (related) {
this.currentFocusOwner=C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(related == null ? p$1.getAccessibleActiveElement.apply(this, []) : related);
if (this.currentFocusOwner == null ) this.currentWindow=null;
return this.currentFocusOwner;
});
Clazz_newMeth(C$, 'setCurrentFocusOwner$java_awt_Component', function (comp) {
this.currentFocusOwner=comp;
if (comp == null ) return;
((comp).ui).focus$();
});
Clazz_newMeth(C$, 'getAccessibleActiveElement', function () {
var node=C$.getActiveElement$();
return (node == null || C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(node) == null ? null : node);
}, p$1);
Clazz_newMeth(C$, 'getActiveElement$', function () {
{
var node = document.activeElement;
return (!node || node == document.body || !node.ui && !node["data-component"] ? null : node);
}
}, 1);
Clazz_newMeth(C$, 'getAccessibleComponentFor$swingjs_api_js_DOMNode', function (node) {
var c=node && node.ui && node.ui.jc || node && node["data-component"]||null;
return (c != null && c.getAppContext$().getThreadGroup$() === $I$(2).currentThread$().getThreadGroup$() ? c : null);
}, 1);
Clazz_newMeth(C$, 'handleJSMouseEventFocus$java_awt_AWTEvent', function (e) {
System.out.println$S("handling mouseeventfocus event " + e);
});
Clazz_newMeth(C$, 'getCurrentFocusOwner$', function () {
return this.getCurrentFocusOwner$O(null);
});
Clazz_newMeth(C$, 'handleJSFocus$O$O$Z', function (jco, related, focusGained) {
var c0=jco;
var e;
if (related == null ) {
e=Clazz_new_($I$(3).c$$java_awt_Component$I,[c0, focusGained ? 1004 : 1005]);
c0.dispatchEvent$java_awt_AWTEvent(e);
return;
}var other;
if (focusGained) {
other=C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(related);
if (other != null && other !== c0 ) {
other.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[other, 1005, false, c0]));
}c0.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[c0, 1004, false, other]));
} else {
other=$I$(4).getCurrentFocusOwner$O(related);
c0.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[c0, 1005, false, other]));
if (other != null && other !== c0 ) other.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[other, 1004, false, c0]));
}}, 1);
Clazz_newMeth(C$, 'checkFrameFocusOnMouseDown$java_awt_AWTEvent', function (e) {
var p=$I$(5).秘getTopInvokableAncestor$java_awt_Component$Z(e.getSource$(), true);
if (this.getCurrentFocusOwner$() != null && p === this.currentWindow ) return;
var w=this.currentWindow;
p.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(6).c$$java_awt_Window$I,[p, 205]));
this.setCurrentFocusedWindow$java_awt_Window(p);
if (Clazz_instanceOf(p, "javax.swing.JInternalFrame")) {
try {
(p).setSelected$Z(true);
} catch (e1) {
if (Clazz_exceptionOf(e1,"java.beans.PropertyVetoException")){
e1.printStackTrace$();
} else {
throw e1;
}
}
} else if (Clazz_instanceOf(p, "java.awt.Window")) {
(p).toFront$();
}if (p.秘isFocusSetAndEnabled$()) {
((p).ui).focus$();
C$.handleJSFocus$O$O$Z(p, w, true);
}});
Clazz_newMeth(C$, 'focus$swingjs_api_js_DOMNode', function (focusNode) {
focusNode.focus();
}, 1);
Clazz_newMeth(C$, 'setFocusLast$java_applet_JSApplet', function (applet) {
var c=$I$(7).getMostRecentFocusOwner$java_awt_Window(applet);
if (c != null ) c.requestFocus$();
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSFontMetrics", null, 'java.awt.FontMetrics');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.fwidths=null;
this.iwidths=null;
this.FIRST_PRINTABLE=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.FIRST_PRINTABLE=32;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$java_awt_Font.apply(this, [null]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
this.font=f;
});
Clazz_newMeth(C$, 'getLeading$', function () {
return (this.font.getSize$()/20|0) + 1;
});
Clazz_newMeth(C$, 'getAscent$', function () {
return this.font.getSize$();
});
Clazz_newMeth(C$, 'getDescent$', function () {
return (this.font.getSize$()/4|0) + 1;
});
Clazz_newMeth(C$, 'charWidth$C', function (pt) {
return (pt.$c() < 256 ? (this.getWidthsFloat$()[pt.$c()]|0) : this.stringWidth$S("" + pt));
});
Clazz_newMeth(C$, 'charWidth$I', function (pt) {
{
var spt;
return ((pt + 0 == pt ? pt : (pt = (spt = pt).charCodeAt(0))) < 256 ? (this.getWidthsFloat$()[pt] | 0) : this.stringWidth$S(isChar ? spt : String.fromCharCode(pt)));
}
});
Clazz_newMeth(C$, 'stringWidth$S', function (s) {
return ($I$(1).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null, this.font, s)|0);
});
Clazz_newMeth(C$, 'getWidths$', function () {
if (this.iwidths != null ) return this.iwidths;
this.iwidths=Clazz_array(Integer.TYPE, [256]);
this.getWidthsFloat$();
for (var ch=this.FIRST_PRINTABLE; ch < 256; ch++) {
this.iwidths[ch]=(this.fwidths[ch]|0);
}
return this.iwidths;
});
Clazz_newMeth(C$, 'getWidthsFloat$', function () {
if (this.fwidths != null ) return this.fwidths;
this.fwidths=Clazz_array(Float.TYPE, [256]);
for (var ch=this.FIRST_PRINTABLE; ch < 256; ch++) {
this.fwidths[ch]=$I$(1).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null, this.font, "" + String.fromCharCode(ch));
}
return this.fwidths;
});
Clazz_newMeth(C$, 'getLineMetrics$S$java_awt_Graphics', function (str, context) {
return this.font.getLineMetrics$S$O(str, null);
});
Clazz_newMeth(C$, 'getLineMetrics$S$I$I$java_awt_Graphics', function (str, beginIndex, limit, context) {
return this.font.getLineMetrics$S$I$I$O(str, beginIndex, limit, null);
});
Clazz_newMeth(C$, 'getLineMetrics$CA$I$I$java_awt_Graphics', function (chars, beginIndex, limit, context) {
return this.font.getLineMetrics$CA$I$I$O(chars, beginIndex, limit, null);
});
Clazz_newMeth(C$, 'getLineMetrics$java_text_CharacterIterator$I$I$java_awt_Graphics', function (ci, beginIndex, limit, context) {
return this.font.getLineMetrics$java_text_CharacterIterator$I$I$O(ci, beginIndex, limit, null);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.awt.Insets','swingjs.JSMouse','swingjs.JSGraphics2D','swingjs.api.js.DOMNode','swingjs.plaf.Resizer']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSFrameViewer", null, 'swingjs.JSApp', 'swingjs.api.js.JSInterface');
C$.canvasCount=0;
C$.canvas00=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.jsgraphics=null;
this.top=null;
this.appletViewer=null;
this.resizer=null;
this.insets=null;
this.display=null;
this.applet=null;
this.mouse=null;
this.canvas=null;
this.frameID=null;
this.canvasId=null;
this.resizable=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.resizable=true;
}, 1);
Clazz_newMeth(C$, 'getTopComponent$', function () {
return this.top;
});
Clazz_newMeth(C$, 'getInsets$', function () {
return this.insets;
});
Clazz_newMeth(C$, 'c$$java_util_Hashtable', function (params) {
C$.superclazz.c$$java_util_Hashtable.apply(this, [params]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'setForWindow$javax_swing_RootPaneContainer', function (c) {
this.isFrame=true;
this.top=c;
this.appletViewer=(this.top).秘appletViewer;
if (Clazz_instanceOf(c, "javax.swing.JApplet")) this.applet=c;
this.fullName=this.appletViewer.fullName;
this.canvas=null;
this.jsgraphics=null;
this.insets=Clazz_new_($I$(1).c$$I$I$I$I,[20, 0, 0, 0]);
this.getGraphics$I$I$javax_swing_RootPaneContainer(0, 0, c);
return this;
});
Clazz_newMeth(C$, 'cacheFileByName$S$Z', function (fileName, isAdd) {
return 0;
});
Clazz_newMeth(C$, 'cachePut$S$O', function (key, data) {
});
Clazz_newMeth(C$, 'destroy$', function () {
});
Clazz_newMeth(C$, 'getFullName$', function () {
return this.fullName;
});
Clazz_newMeth(C$, 'openFileAsyncSpecial$S$I', function (fileName, flags) {
});
Clazz_newMeth(C$, 'processMouseEvent$I$I$I$I$J$O$I', function (id, x, y, modifiers, time, jqevent, scroll) {
p$1.getMouse.apply(this, []).processEvent$I$I$I$I$J$O$I(id, x, y, modifiers, time, jqevent, scroll);
return false;
});
Clazz_newMeth(C$, 'getMouse', function () {
return (this.mouse == null ? this.mouse=Clazz_new_($I$(2).c$$swingjs_JSFrameViewer,[this]) : this.mouse);
}, p$1);
Clazz_newMeth(C$, 'processTwoPointGesture$FAAA', function (touches) {
p$1.getMouse.apply(this, []).processTwoPointGesture$FAAA(touches);
});
Clazz_newMeth(C$, 'setDisplay$swingjs_api_js_HTML5Canvas', function (canvas) {
this.canvas=canvas;
this.jsgraphics=null;
});
Clazz_newMeth(C$, 'setScreenDimension$I$I', function (width, height) {
this.setGraphics$java_awt_Graphics$I$I$javax_swing_RootPaneContainer((this.jsgraphics=null), width, height, this.top);
if (this.top != null ) (this.top).秘resizeOriginal$I$I(width, height);
});
Clazz_newMeth(C$, 'setGraphics$java_awt_Graphics$I$I$javax_swing_RootPaneContainer', function (g, width, height, window) {
return (g == null ? this.getGraphics$I$I$javax_swing_RootPaneContainer(width, height, window) : g);
});
Clazz_newMeth(C$, 'setStatusDragDropped$I$I$I$S', function (mode, x, y, fileName) {
return false;
});
Clazz_newMeth(C$, 'startHoverWatcher$Z', function (enable) {
});
Clazz_newMeth(C$, 'getGraphics$', function () {
return this.getGraphics$I$I$javax_swing_RootPaneContainer(0, 0, this.top);
});
Clazz_newMeth(C$, 'getGraphics$I$I$javax_swing_RootPaneContainer', function (wNew, hNew, window) {
if (window == null ) window=this.top;
if (window == null ) return null;
var c=window;
if (wNew == 0) {
wNew=Math.max(0, window.getContentPane$().getWidth$());
hNew=Math.max(0, window.getContentPane$().getHeight$());
}var wOld=0;
var hOld=0;
if (c.秘canvas != null ) {
wOld = c.秘canvas.width; hOld = c.秘canvas.height;
}if (wNew >= 0 && hNew >= 0 && (wOld != wNew || hOld != hNew || c.秘canvas == null || this.jsgraphics == null ) ) {
this.jsgraphics=Clazz_new_($I$(3).c$$O,[c.秘canvas=p$1.newCanvas$I$I$javax_swing_RootPaneContainer.apply(this, [wNew, hNew, window])]);
}return this.jsgraphics;
});
Clazz_newMeth(C$, 'newCanvas$I$I$javax_swing_RootPaneContainer', function (width, height, window) {
if (this.isApplet) {
var c=this.html5Applet._getHtml5Canvas();
if (c != null ) {
return this.canvas=c;
}}if (width == 0 || height == 0 ) {
width=height=0;
if (C$.canvas00 != null ) return C$.canvas00;
}var userFramedApplet=null;
var root=window.getRootPane$();
var contentPane=window.getContentPane$();
if (contentPane.getComponentCount$() > 0) {
var app=contentPane.getComponent$I(0);
if (Clazz_instanceOf(app, "javax.swing.JApplet")) root=(userFramedApplet=app).getRootPane$();
}var rootNode=(root == null ? null : (root.getUI$()).domNode);
if (rootNode != null ) $I$(4).dispose(this.canvas);
this.display=this.canvasId=this.appletViewer.appletName + "秘canvas" + ++C$.canvasCount ;
this.canvas=$I$(4).createElement("canvas", this.canvasId);
if (userFramedApplet != null ) {
var appViewer=userFramedApplet.getFrameViewer$();
appViewer.setDisplay$swingjs_api_js_HTML5Canvas(this.canvas);
}var iTop=(root == null ? 0 : root.getContentPane$().getY$());
$I$(4).setTopLeftAbsolute(this.canvas, iTop, 0);
$I$(4).setStyles(this.canvas, ["width", width + "px", "height", height + "px"]);
if (width > 0) {
var ui=root.getParent$().getUI$();
if (ui != null ) ui.updateDOMNode$();
if (this.resizer != null ) this.resizer.setPosition$I$I(0, 0);
if (rootNode != null ) {
rootNode.appendChild(this.canvas);
}} else {
C$.canvas00=this.canvas;
}
this.canvas.width = width; this.canvas.height = height;
return this.canvas;
}, p$1);
Clazz_newMeth(C$, 'setResizable$Z', function (tf) {
this.resizable=tf;
if (!this.isResizable$()) this.resizable=false;
if (this.resizer != null ) this.resizer.setEnabled$Z(this.resizable);
else if (this.resizable && p$1.newResizer.apply(this, []) != null ) this.resizer.setPosition$I$I(0, 0);
});
Clazz_newMeth(C$, 'isResizable$', function () {
return this.resizable && (!this.appletViewer.haveResizable || this.appletViewer.isResizable ) ;
});
Clazz_newMeth(C$, 'getResizer$', function () {
return (this.resizer != null || !this.isResizable$() ? this.resizer : p$1.newResizer.apply(this, []));
});
Clazz_newMeth(C$, 'newResizer', function () {
this.resizer=Clazz_new_($I$(5)).set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer(this, this.top);
if (this.resizer != null ) this.resizer.show$();
return this.resizer;
}, p$1);
Clazz_newMeth(C$, 'getDiv$S', function (id) {
{
return J2S.$(this.html5Applet, id)[0];
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.awt.RenderingHints','java.util.Hashtable','java.awt.geom.AffineTransform','java.awt.BasicStroke','java.awt.Color','swingjs.JSToolkit',['java.awt.geom.RoundRectangle2D','.Double'],'swingjs.api.js.DOMNode','swingjs.JSGraphicsCompositor','swingjs.JSUtil','swingjs.api.js.HTML5CanvasContext2D','java.awt.Font','java.awt.Toolkit','java.awt.Rectangle','java.awt.AlphaComposite']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSGraphics2D", null, null, 'Cloneable');
C$.pixelRatio=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.pixelRatio=(function () { var ctx = document.createElement("canvas").getContext("2d"), dpr = window.devicePixelRatio || 1, bsr = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1; return dpr / bsr; })() ||1;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.constrainX=0;
this.constrainY=0;
this.width=0;
this.height=0;
this.canvas=null;
this.ctx=null;
this.gc=null;
this.currentStroke=null;
this.currentClip=null;
this.alphaComposite=null;
this.initialState=0;
this.isShifted=false;
this.font=null;
this.hints=null;
this.transform=null;
this.backgroundColor=null;
this.inPath=false;
this.foregroundColor=null;
this.rrect=null;
this.imageData=null;
this.buf8=null;
this.lastx=0;
this.lasty=0;
this.nx=0;
this.ny=0;
this.clearColorSaved=null;
this.clearing=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$O', function (canvas) {
C$.$init$.apply(this);
this.hints=Clazz_new_($I$(1).c$$java_util_Map,[Clazz_new_($I$(2))]);
this.canvas=canvas;
this.ctx=this.canvas.getContext("2d");
this.transform=Clazz_new_($I$(3));
this.setStroke$java_awt_Stroke(Clazz_new_($I$(4)));
{
this.gc = SwingJS; this.width = canvas.width; this.height = canvas.height;
}
this.setAntialias$Z(true);
this.setClip$I$I$I$I(0, 0, this.width, this.height);
}, 1);
Clazz_newMeth(C$, 'setAntialias$Z', function (tf) {
this.ctx.mozImageSmoothingEnabled = false;
this.ctx.webkitImageSmoothingEnabled = false;
this.ctx.msImageSmoothingEnabled = false;
this.ctx.imageSmoothingEnabled = false;
this.isShifted=tf;
});
Clazz_newMeth(C$, 'getDeviceConfiguration$', function () {
return this.gc;
});
Clazz_newMeth(C$, 'drawLine$I$I$I$I', function (x0, y0, x1, y1) {
var inPath=this.inPath;
if (!inPath) {
if (x0 == x1 && y0 == y1 ) {
this.ctx.fillRect(x0, y0, 1, 1);
return;
}this.doStroke$Z(true);
}this.ctx.moveTo(x0, y0);
this.ctx.lineTo(x1, y1);
if (!inPath) this.doStroke$Z(false);
});
Clazz_newMeth(C$, 'drawOval$I$I$I$I', function (left, top, width, height) {
this.doStroke$Z(true);
if (width == height) p$1.doCirc$I$I$I.apply(this, [left, top, width]);
else p$1.doArc$D$D$D$D$D$D$I.apply(this, [left, top, width, height, 0, 360, 0]);
this.doStroke$Z(false);
});
Clazz_newMeth(C$, 'fillOval$I$I$I$I', function (left, top, width, height) {
this.ctx.beginPath();
if (width == height) p$1.doCirc$I$I$I.apply(this, [left, top, width]);
else p$1.doArc$D$D$D$D$D$D$I.apply(this, [left, top, width, height, 0, 360, 1]);
this.ctx.fill();
});
Clazz_newMeth(C$, 'doCirc$I$I$I', function (left, top, diameter) {
if (diameter <= 0) return;
var r=diameter / 2.0;
this.ctx.arc(left + r, top + r, r, 0, 6.283185307179586, false);
}, p$1);
Clazz_newMeth(C$, 'drawArc$I$I$I$I$I$I', function (x, y, width, height, startAngle, arcAngle) {
this.doStroke$Z(true);
p$1.doArc$D$D$D$D$D$D$I.apply(this, [x, y, width, height, startAngle, arcAngle, 0]);
this.doStroke$Z(false);
});
Clazz_newMeth(C$, 'fillArc$I$I$I$I$I$I', function (centerX, centerY, width, height, startAngle, arcAngle) {
this.ctx.beginPath();
p$1.doArc$D$D$D$D$D$D$I.apply(this, [centerX, centerY, width, height, startAngle, arcAngle, 1]);
this.ctx.fill();
});
Clazz_newMeth(C$, 'doArc$D$D$D$D$D$D$I', function (x, y, width, height, startAngle, arcAngle, mode) {
if (width <= 0 || height <= 0 ) return;
this.ctx.save();
{
if (arcAngle < 0 ) {
startAngle += arcAngle;
arcAngle=-arcAngle;
}this.ctx.translate(x, y);
this.ctx.scale(width / 2, height / 2);
this.ctx.beginPath();
this.ctx.arc(1, 1, 1, p$1.toRad$D.apply(this, [360 - startAngle]), p$1.toRad$D.apply(this, [360 - arcAngle - startAngle ]), true);
if (mode == 1) this.ctx.lineTo(1, 1);
}this.ctx.restore();
}, p$1);
Clazz_newMeth(C$, 'toRad$D', function (a) {
return a * (0.017453292519943295);
}, p$1);
Clazz_newMeth(C$, 'clearRect$I$I$I$I', function (x, y, width, height) {
p$1.clearRectPriv$I$I$I$I.apply(this, [x, y, width, height]);
});
Clazz_newMeth(C$, 'clearRectPriv$I$I$I$I', function (x, y, w, h) {
this.ctx.clearRect(x, y, w, h);
if (!this.clearing) p$1.setGraphicsColor$java_awt_Color.apply(this, [this.backgroundColor == null ? $I$(5).WHITE : this.backgroundColor]);
this.fillRect$I$I$I$I(x, y, w, h);
if (!this.clearing) p$1.setGraphicsColor$java_awt_Color.apply(this, [this.foregroundColor]);
}, p$1);
Clazz_newMeth(C$, 'drawPolygon$java_awt_Polygon', function (p) {
p$1.doPoly$IA$IA$I$I.apply(this, [p.xpoints, p.ypoints, p.npoints, 1]);
});
Clazz_newMeth(C$, 'drawPolygon$IA$IA$I', function (axPoints, ayPoints, nPoints) {
p$1.doPoly$IA$IA$I$I.apply(this, [axPoints, ayPoints, nPoints, 1]);
});
Clazz_newMeth(C$, 'drawPolyline$IA$IA$I', function (xPoints, yPoints, nPoints) {
p$1.doPoly$IA$IA$I$I.apply(this, [xPoints, yPoints, nPoints, 0]);
});
Clazz_newMeth(C$, 'fillPolygon$java_awt_Polygon', function (p) {
p$1.doPoly$IA$IA$I$I.apply(this, [p.xpoints, p.ypoints, p.npoints, 2]);
});
Clazz_newMeth(C$, 'fillPolygon$IA$IA$I', function (axPoints, ayPoints, nPoints) {
p$1.doPoly$IA$IA$I$I.apply(this, [axPoints, ayPoints, nPoints, 2]);
});
Clazz_newMeth(C$, 'doPoly$IA$IA$I$I', function (axPoints, ayPoints, nPoints, mode) {
this.ctx.beginPath();
if (mode != 2) this.ctx.translate(0.5, 0.5);
this.ctx.moveTo(axPoints[0], ayPoints[0]);
for (var i=1; i < nPoints; i++) {
this.ctx.lineTo(axPoints[i], ayPoints[i]);
}
if (mode != 0) this.ctx.lineTo(axPoints[0], ayPoints[0]);
if (mode != 2) {
this.ctx.stroke();
this.ctx.translate(-0.5, -0.5);
} else {
this.ctx.fill();
}}, p$1);
Clazz_newMeth(C$, 'drawRect$I$I$I$I', function (x, y, width, height) {
if (width <= 0 || height <= 0 ) return;
this.ctx.translate(0.5, 0.5);
this.ctx.beginPath();
this.ctx.rect(x, y, width, height);
this.ctx.stroke();
this.ctx.translate(-0.5, -0.5);
});
Clazz_newMeth(C$, 'fillRect$I$I$I$I', function (x, y, width, height) {
if (width <= 0 || height <= 0 ) return;
this.ctx.fillRect(x, y, width, height);
});
Clazz_newMeth(C$, 'draw3DRect$I$I$I$I$Z', function (x, y, width, height, raised) {
p$1.do3DRect$I$I$I$I$Z$I.apply(this, [x, y, width, height, raised, 1]);
});
Clazz_newMeth(C$, 'fill3DRect$I$I$I$I$Z', function (x, y, width, height, raised) {
p$1.do3DRect$I$I$I$I$Z$I.apply(this, [x, y, width, height, raised, 2]);
});
Clazz_newMeth(C$, 'do3DRect$I$I$I$I$Z$I', function (x, y, width, height, raised, mode) {
if (width <= 0 || height <= 0 ) return;
var p=this.getPaint$();
var c=this.getColor$();
var brighter=c.brighter$();
var darker=c.darker$();
if (!raised) {
this.setColor$java_awt_Color(darker);
} else if (p !== c ) {
this.setColor$java_awt_Color(c);
}if (mode == 2) this.fillRect$I$I$I$I(x + 1, y + 1, width - 2, height - 2);
this.setColor$java_awt_Color(raised ? brighter : darker);
this.fillRect$I$I$I$I(x, y, 1, height);
this.fillRect$I$I$I$I(x + 1, y, width - 2, 1);
this.setColor$java_awt_Color(raised ? darker : brighter);
this.fillRect$I$I$I$I(x + 1, y + height - 1, width - 1, 1);
this.fillRect$I$I$I$I(x + width - 1, y, 1, height - 1);
this.setPaint$java_awt_Paint(p);
}, p$1);
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (font) {
if (font === this.font ) return;
this.font=font;
if (font != null ) this.ctx.font=$I$(6).getCanvasFont$java_awt_Font(font);
});
Clazz_newMeth(C$, 'setStrokeBold$Z', function (tf) {
p$1.setLineWidth$D.apply(this, [tf ? 2.0 : 1.0]);
});
Clazz_newMeth(C$, 'setLineWidth$D', function (d) {
this.ctx.lineWidth=d;
}, p$1);
Clazz_newMeth(C$, 'canDoLineTo$', function () {
return true;
});
Clazz_newMeth(C$, 'doStroke$Z', function (isBegin) {
this.inPath=isBegin;
if (isBegin) {
this.ctx.translate(0.5, 0.5);
this.ctx.beginPath();
} else {
this.ctx.stroke();
this.ctx.translate(-0.5, -0.5);
}});
Clazz_newMeth(C$, 'lineTo$I$I', function (x2, y2) {
if (this.inPath) {
this.ctx.lineTo(x2, y2);
} else {
this.ctx.translate(0.5, 0.5);
this.ctx.lineTo(x2, y2);
this.ctx.translate(-0.5, -0.5);
}});
Clazz_newMeth(C$, 'clip$java_awt_Shape', function (s) {
this.ctx.beginPath();
p$1.doShape$java_awt_Shape.apply(this, [s]);
this.currentClip=s;
this.ctx.clip();
});
Clazz_newMeth(C$, 'draw$java_awt_Shape', function (s) {
this.doStroke$Z(true);
p$1.doShape$java_awt_Shape.apply(this, [s]);
this.doStroke$Z(false);
});
Clazz_newMeth(C$, 'doShape$java_awt_Shape', function (s) {
var pts=Clazz_array(Double.TYPE, [6]);
var pi=s.getPathIterator$java_awt_geom_AffineTransform(null);
while (!pi.isDone$()){
switch (pi.currentSegment$DA(pts)) {
case 0:
this.ctx.moveTo(pts[0], pts[1]);
break;
case 1:
this.ctx.lineTo(pts[0], pts[1]);
break;
case 2:
this.ctx.quadraticCurveTo(pts[0], pts[1], pts[2], pts[3]);
break;
case 3:
this.ctx.bezierCurveTo(pts[0], pts[1], pts[2], pts[3], pts[4], pts[5]);
break;
case 4:
this.ctx.closePath();
break;
}
pi.next$();
}
return pi.getWindingRule$();
}, p$1);
Clazz_newMeth(C$, 'fill$java_awt_Shape', function (s) {
this.ctx.beginPath();
if (p$1.doShape$java_awt_Shape.apply(this, [s]) == 0) {
this.ctx.fill("evenodd");
}
else this.ctx.fill();
});
Clazz_newMeth(C$, 'drawRoundRect$I$I$I$I$I$I', function (x, y, width, height, arcWidth, arcHeight) {
p$1.doRoundRect$I$I$I$I$I$I$I.apply(this, [x, y, width, height, arcWidth, arcHeight, 1]);
});
Clazz_newMeth(C$, 'fillRoundRect$I$I$I$I$I$I', function (x, y, width, height, arcWidth, arcHeight) {
p$1.doRoundRect$I$I$I$I$I$I$I.apply(this, [x, y, width, height, arcWidth, arcHeight, 2]);
});
Clazz_newMeth(C$, 'doRoundRect$I$I$I$I$I$I$I', function (x, y, w, h, aw, ah, mode) {
if (this.rrect == null || this.rrect.getX$() != x || this.rrect.getY$() != y || this.rrect.getWidth$() != w || this.rrect.getHeight$() != h || this.rrect.getArcWidth$() != aw || this.rrect.getArcHeight$() != ah ) {
this.rrect=Clazz_new_($I$(7).c$$D$D$D$D$D$D,[x, y, w, h, aw, ah]);
}if (mode == 2) this.fill$java_awt_Shape(this.rrect);
else this.draw$java_awt_Shape(this.rrect);
}, p$1);
Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, x, y, observer) {
return this.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(img, x, y, observer);
});
Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$java_awt_image_ImageObserver', function (img, x, y, width, height, observer) {
if (width <= 0 || height <= 0 ) return true;
if (img != null ) {
var imgNode=p$1.getImageNode$java_awt_Image.apply(this, [img]);
if (imgNode != null ) this.ctx.drawImage(imgNode, x, y, width, height);
if (observer != null ) p$1.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this, [img, observer, imgNode != null ]);
}return true;
});
Clazz_newMeth(C$, 'getImageNode$java_awt_Image', function (img) {
var imgNode=$I$(8).getImageNode(img);
return (imgNode == null ? $I$(9).createImageNode$java_awt_Image(img) : imgNode);
}, p$1);
Clazz_newMeth(C$, 'observe$java_awt_Image$java_awt_image_ImageObserver$Z', function (img, observer, isOK) {
observer.imageUpdate$(img, (isOK ? 0 : 192), -1, -1, -1, -1);
}, p$1);
Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$java_awt_Color$java_awt_image_ImageObserver', function (img, x, y, bgcolor, observer) {
return this.drawImage$java_awt_Image$I$I$java_awt_image_ImageObserver(img, x, y, observer);
});
Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$java_awt_Color$java_awt_image_ImageObserver', function (img, x, y, width, height, bgcolor, observer) {
if (width <= 0 || height <= 0 ) return false;
return this.drawImage$java_awt_Image$I$I$I$I$java_awt_image_ImageObserver(img, x, y, width, height, observer);
});
Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_image_ImageObserver', function (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer) {
if (img != null ) {
var bytes=null;
var imgNode=p$1.getImageNode$java_awt_Image.apply(this, [img]);
if (imgNode != null ) this.ctx.drawImage(imgNode, sx1, sy1, sx2 - sx1, sy2 - sy1, dx1, dy1, dx2 - dx1, dy2 - dy1);
if (observer != null ) p$1.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this, [img, observer, imgNode != null ]);
}return true;
});
Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_Color$java_awt_image_ImageObserver', function (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, bgcolor, observer) {
$I$(10).notImplemented$S(null);
return this.drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_image_ImageObserver(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer);
});
Clazz_newMeth(C$, 'drawImage$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver', function (img, xform, obs) {
return p$1.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, [img, xform, obs]);
});
Clazz_newMeth(C$, 'drawRenderedImage$java_awt_image_RenderedImage$java_awt_geom_AffineTransform', function (img, xform) {
p$1.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, [img, xform, null]);
});
Clazz_newMeth(C$, 'drawRenderableImage$java_awt_image_renderable_RenderableImage$java_awt_geom_AffineTransform', function (img, xform) {
p$1.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, [img, xform, null]);
});
Clazz_newMeth(C$, 'drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver', function (img, xform, obs) {
this.ctx.save();
p$1.transformCTX$java_awt_geom_AffineTransform.apply(this, [xform]);
var ret=this.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(img, 0, 0, obs);
this.ctx.restore();
return ret;
}, p$1);
Clazz_newMeth(C$, 'drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, x, y, observer) {
if (img != null ) {
var pixels=null;
var isRGB=false;
pixels = img.秘pix; isRGB = (img.imageType == 1);
var imgNode=null;
var width=(img).getRaster$().getWidth$();
var height=(img).getRaster$().getHeight$();
if (pixels == null ) {
if ((imgNode=p$1.getImageNode$java_awt_Image.apply(this, [img])) != null ) this.ctx.drawImage(imgNode, x, y, width, height);
} else {
p$1.drawDirect$IA$I$I$I$I$Z.apply(this, [pixels, x, y, width, height, isRGB]);
}if (observer != null ) p$1.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this, [img, observer, imgNode != null ]);
}return true;
});
Clazz_newMeth(C$, 'drawDirectRGBA$IA', function (pixels) {
p$1.drawDirect$IA$I$I$I$I$Z.apply(this, [pixels, 0, 0, this.width, this.height, false]);
});
Clazz_newMeth(C$, 'drawDirect$IA$I$I$I$I$Z', function (pixels, x, y, width, height, isRGB) {
if (this.buf8 == null || x != this.lastx || y != this.lasty || this.nx != width || this.ny != height ) {
this.imageData=this.ctx.getImageData(x, y, width, height);
this.buf8=this.imageData.data;
this.lastx=x;
this.lasty=y;
this.nx=width;
this.ny=height;
}for (var pt=0, i=0, n=Math.min((this.buf8.length/4|0), pixels.length); i < n; i++) {
var argb=pixels[i];
this.buf8[pt++]=(argb >> 16) & 255;
this.buf8[pt++]=(argb >> 8) & 255;
this.buf8[pt++]=argb & 255;
this.buf8[pt++]=(isRGB ? 255 : (argb >> 24) & 255);
}
var m=$I$(11).getMatrix(this.ctx, this.transform);
if (m[0] != 1 || m[1] != 0 || m[2] != 0 || m[3] != 1 ) System.err.println$S("Unsupported transform");
x=(x+(m[4])|0);
y=(y+(m[5])|0);
this.ctx.putImageData(this.imageData, x, y);
}, p$1);
Clazz_newMeth(C$, 'hit$java_awt_Rectangle$java_awt_Shape$Z', function (rect, s, onStroke) {
$I$(10).notImplemented$S(null);
return false;
});
Clazz_newMeth(C$, 'getStroke$', function () {
return this.currentStroke;
});
Clazz_newMeth(C$, 'setStroke$java_awt_Stroke', function (s) {
if (!(Clazz_instanceOf(s, "java.awt.BasicStroke"))) return;
var b=this.currentStroke=s;
var dash=b.getDashArray$();
var idash=Clazz_array(Integer.TYPE, [dash == null ? 0 : dash.length]);
for (var i=idash.length; --i >= 0; ) idash[i]=(dash[i]|0);
this.ctx.setLineDash(idash);
p$1.setLineWidth$D.apply(this, [b.getLineWidth$()]);
var lineCap;
var lineJoin;
var miterLimit=-1;
switch (b.getEndCap$()) {
case 0:
lineCap="butt";
break;
case 2:
lineCap="square";
break;
case 1:
default:
lineCap="round";
}
switch (b.getLineJoin$()) {
case 2:
lineJoin="bevel";
break;
case 0:
lineJoin="miter";
miterLimit=b.getMiterLimit$();
break;
case 1:
lineJoin="round";
}
{
this.ctx.lineCap = lineCap; this.ctx.lineJoin = lineJoin; if (miterLimit >= 0) this.ctx.miterLimit = miterLimit;
}
});
Clazz_newMeth(C$, 'setRenderingHint$java_awt_RenderingHints_Key$O', function (hintKey, hintValue) {
this.hints.put$O$O(hintKey, hintValue);
});
Clazz_newMeth(C$, 'getRenderingHint$java_awt_RenderingHints_Key', function (hintKey) {
return this.hints.get$O(hintKey);
});
Clazz_newMeth(C$, 'setRenderingHints$java_util_Map', function (hints) {
this.hints=Clazz_new_($I$(1).c$$java_util_Map,[hints]);
});
Clazz_newMeth(C$, 'addRenderingHints$java_util_Map', function (hints) {
for (var e, $e = hints.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.hints.put$O$O(e.getKey$(), e.getValue$());
});
Clazz_newMeth(C$, 'getRenderingHints$', function () {
return this.hints;
});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
this.backgroundColor=c;
});
Clazz_newMeth(C$, 'getBackground$', function () {
return this.backgroundColor;
});
Clazz_newMeth(C$, 'getColor$', function () {
return this.foregroundColor;
});
Clazz_newMeth(C$, 'setColor$java_awt_Color', function (c) {
if (this.clearing) {
this.clearColorSaved=c;
} else {
this.foregroundColor=c;
p$1.setGraphicsColor$java_awt_Color.apply(this, [c]);
}});
Clazz_newMeth(C$, 'setPaint$java_awt_Paint', function (paint) {
this.setColor$java_awt_Color(paint);
});
Clazz_newMeth(C$, 'getFont$', function () {
if (this.font == null ) this.font=Clazz_new_($I$(12).c$$S$I$I,["Arial", 0, 12]);
return this.font;
});
Clazz_newMeth(C$, 'getFontMetrics$', function () {
return this.getFontMetrics$java_awt_Font(this.getFont$());
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (f) {
return $I$(13).getDefaultToolkit$().getFontMetrics$java_awt_Font(f);
});
Clazz_newMeth(C$, 'clipRect$I$I$I$I', function (x, y, width, height) {
this.ctx.beginPath();
this.ctx.rect(x, y, width, height);
p$1.setCurrentClip$I$I$I$I.apply(this, [x, y, width, height]);
this.ctx.clip();
});
Clazz_newMeth(C$, 'setClip$I$I$I$I', function (x, y, width, height) {
p$1.setCurrentClip$I$I$I$I.apply(this, [x, y, width, height]);
this.ctx.beginPath();
this.ctx.rect(x, y, width, height);
this.ctx.clip();
});
Clazz_newMeth(C$, 'setCurrentClip$I$I$I$I', function (x, y, width, height) {
var r=(Clazz_instanceOf(this.currentClip, "java.awt.Rectangle") ? this.currentClip : null);
if (r == null || r.x != x || r.y != y || r.width != width || r.height != height ) this.currentClip=Clazz_new_($I$(14).c$$I$I$I$I,[x, y, width, height]);
}, p$1);
Clazz_newMeth(C$, 'setClip$java_awt_Shape', function (clip) {
if (clip == null ) {
this.setClip$I$I$I$I(0, 0, this.width, this.height);
return;
}this.currentClip=clip;
this.ctx.beginPath();
p$1.doShape$java_awt_Shape.apply(this, [clip]);
this.ctx.clip();
});
Clazz_newMeth(C$, 'hitClip$I$I$I$I', function (x, y, width, height) {
var clipRect=this.getClipBounds$();
if (clipRect == null ) {
return true;
}return clipRect.intersects$D$D$D$D(x, y, width, height);
});
Clazz_newMeth(C$, 'setGraphicsColor$java_awt_Color', function (c) {
if (c == null ) return;
this.ctx.fillStyle=this.ctx.strokeStyle=$I$(6).getCSSColor$java_awt_Color(c);
}, p$1);
Clazz_newMeth(C$, 'copyArea$I$I$I$I$I$I', function (x, y, width, height, dx, dy) {
this.ctx.putImageData(this.ctx.getImageData(x, y, width, height), x + dx, y + dy);
});
Clazz_newMeth(C$, 'getClip$', function () {
return this.currentClip == null ? p$1.getClipBoundsImpl.apply(this, []) : this.currentClip;
});
Clazz_newMeth(C$, 'drawString$S$I$I', function (s, x, y) {
p$1.fillText$S$F$F.apply(this, [s, x, y]);
});
Clazz_newMeth(C$, 'drawChars$CA$I$I', function (chars, x, y) {
p$1.fillText$S$F$F.apply(this, [String.valueOf$CA(chars), x, y]);
});
Clazz_newMeth(C$, 'drawChars$CA$I$I$I$I', function (data, offset, length, x, y) {
this.drawString$S$I$I( String.instantialize(data, offset, length), x, y);
});
Clazz_newMeth(C$, 'drawBytes$BA$I$I$I$I', function (data, offset, length, x, y) {
this.drawString$S$I$I( String.instantialize(data, offset, length), x, y);
});
Clazz_newMeth(C$, 'drawString$S$F$F', function (str, x, y) {
p$1.fillText$S$F$F.apply(this, [str, x, y]);
});
Clazz_newMeth(C$, 'fillText$S$F$F', function (str, x, y) {
this.ctx.fillText(str, x, y);
}, p$1);
Clazz_newMeth(C$, 'drawString$java_text_AttributedCharacterIterator$I$I', function (iterator, x, y) {
$I$(10).notImplemented$S(null);
});
Clazz_newMeth(C$, 'drawString$java_text_AttributedCharacterIterator$F$F', function (iterator, x, y) {
$I$(10).notImplemented$S(null);
});
Clazz_newMeth(C$, 'translate$D$D', function (tx, ty) {
$I$(10).notImplemented$S(null);
});
Clazz_newMeth(C$, 'shear$D$D', function (shx, shy) {
$I$(10).notImplemented$S(null);
});
Clazz_newMeth(C$, 'translate$I$I', function (x, y) {
this.ctx.translate(x, y);
this.transform.translate$D$D(x, y);
});
Clazz_newMeth(C$, 'rotate$D', function (radians) {
this.ctx.rotate(radians);
this.transform.rotate$D(radians);
});
Clazz_newMeth(C$, 'rotate$D$D$D', function (theta, x, y) {
this.ctx.translate(x, y);
this.ctx.rotate(theta);
this.ctx.translate(-x, -y);
this.transform.rotate$D$D$D(theta, x, y);
});
Clazz_newMeth(C$, 'scale$D$D', function (sx, sy) {
this.ctx.scale(sx, sy);
this.transform.scale$D$D(sx, sy);
});
Clazz_newMeth(C$, 'transform$java_awt_geom_AffineTransform', function (t) {
p$1.transformCTX$java_awt_geom_AffineTransform.apply(this, [t]);
this.transform.concatenate$java_awt_geom_AffineTransform(t);
});
Clazz_newMeth(C$, 'transformCTX$java_awt_geom_AffineTransform', function (t) {
{
this.ctx.transform (t.m00, t.m10, t.m01, t.m11, t.m02, t.m12);
}
}, p$1);
Clazz_newMeth(C$, 'setTransform$java_awt_geom_AffineTransform', function (t) {
{
this.ctx.setTransform (t.m00, t.m10, t.m01, t.m11, t.m02, t.m12);
}
this.transform.setTransform$java_awt_geom_AffineTransform(t);
});
Clazz_newMeth(C$, 'getTransform$', function () {
return this.transform.clone$();
});
Clazz_newMeth(C$, 'getPaint$', function () {
return this.getColor$();
});
Clazz_newMeth(C$, 'getFontRenderContext$', function () {
return this.getFontMetrics$java_awt_Font(this.getFont$()).getFontRenderContext$();
});
Clazz_newMeth(C$, 'setPaintMode$', function () {
this.setComposite$java_awt_Composite($I$(15).SrcOver);
});
Clazz_newMeth(C$, 'setXORMode$java_awt_Color', function (c) {
if (c == null ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null XORColor"]);
this.setComposite$java_awt_Composite($I$(15).Xor);
});
Clazz_newMeth(C$, 'getClipRect$', function () {
return this.getClipBounds$();
});
Clazz_newMeth(C$, 'getClipBounds$', function () {
return this.getClipBounds$java_awt_Rectangle(null);
});
Clazz_newMeth(C$, 'getClipBounds$java_awt_Rectangle', function (r) {
var clipRect=p$1.getClipBoundsImpl.apply(this, []);
if (r == null ) {
r=clipRect;
} else {
r.x=clipRect.x;
r.y=clipRect.y;
r.width=clipRect.width;
r.height=clipRect.height;
}return r;
});
Clazz_newMeth(C$, 'getClipBoundsImpl', function () {
if (this.currentClip == null ) {
this.currentClip=Clazz_new_($I$(14).c$$I$I$I$I,[0, 0, this.width, this.height]);
}return this.currentClip.getBounds$();
}, p$1);
Clazz_newMeth(C$, 'setComposite$java_awt_Composite', function (comp) {
if (comp === this.alphaComposite ) return;
var isAlpha=Clazz_instanceOf(comp, "java.awt.AlphaComposite");
var newRule=(!isAlpha ? 0 : (comp).getRule$());
var isValid=(isAlpha && this.alphaComposite == null || newRule != this.alphaComposite.getRule$() );
if (isValid && $I$(9).setGraphicsCompositeAlpha$swingjs_JSGraphics2D$I(this, newRule) ) {
this.alphaComposite=comp;
}if (newRule == 1) {
this.clearColorSaved=this.foregroundColor;
this.setColor$java_awt_Color($I$(5).black);
this.clearing=true;
} else if (this.clearing) {
this.clearing=false;
this.setColor$java_awt_Color(this.clearColorSaved);
this.clearColorSaved=null;
}this.setAlpha$F(comp == null ? 1 : (comp).getAlpha$());
});
Clazz_newMeth(C$, 'getComposite$', function () {
return this.alphaComposite;
});
Clazz_newMeth(C$, 'drawImage$java_awt_image_BufferedImage$java_awt_image_BufferedImageOp$I$I', function (img, op, x, y) {
$I$(9).drawImageOp$swingjs_JSGraphics2D$java_awt_image_BufferedImage$java_awt_image_BufferedImageOp$I$I(this, img, op, x, y);
});
Clazz_newMeth(C$, 'setAlpha$F', function (f) {
{
this.ctx.globalAlpha = f;
}
});
Clazz_newMeth(C$, 'getCanvas$', function () {
return this.canvas;
});
Clazz_newMeth(C$, 'mark$', function () {
this.ctx.save();
var map=Clazz_array(java.lang.Object, [7]);
var alpha=0;
{
alpha = this.ctx.globalAlpha;
}
map[0]=Float.valueOf$F(alpha);
map[1]=this.alphaComposite;
map[2]=this.currentStroke;
map[3]=this.transform;
map[4]=this.font;
map[5]=this.currentClip;
return $I$(11).push(this.ctx, map);
});
Clazz_newMeth(C$, 'reset$I', function (n0) {
if (n0 < 1) n0=1;
while ($I$(11).getSavedLevel(this.ctx) >= n0){
var map=$I$(11).pop(this.ctx);
this.setComposite$java_awt_Composite(map[1]);
var alpha=map[0];
if (alpha != null ) this.setAlpha$F(alpha.floatValue$());
this.setStroke$java_awt_Stroke(map[2]);
this.setTransform$java_awt_geom_AffineTransform(map[3]);
this.setFont$java_awt_Font(map[4]);
this.currentClip=map[5];
this.ctx.restore();
}
});
Clazz_newMeth(C$, 'create$I$I$I$I', function (x, y, width, height) {
var g=this.create$();
if (g == null ) return null;
g.translate$I$I(x, y);
g.clipRect$I$I$I$I(0, 0, width, height);
return g;
});
Clazz_newMeth(C$, 'create$', function () {
return this.clone$();
});
Clazz_newMeth(C$, 'clone$', function () {
var n=this.mark$();
var g=this;
{
g = Clazz_clone(this);
}
g.transform=Clazz_new_($I$(3).c$$java_awt_geom_AffineTransform,[this.transform]);
if (this.hints != null ) {
g.hints=this.hints.clone$();
}g.setStroke$java_awt_Stroke(this.currentStroke.clone$());
g.initialState=n;
return g;
});
Clazz_newMeth(C$, 'dispose$', function () {
this.reset$I(this.initialState);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.awt.GraphicsEnvironment','swingjs.api.Interface','java.awt.image.ColorModel','java.awt.image.WritableRaster','Boolean','java.util.Hashtable','swingjs.JSUtil','java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSGraphicsConfiguration", null, 'java.awt.GraphicsConfiguration');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
System.out.println$S("JSGraphicsConfiguration initialized");
}, 1);
Clazz_newMeth(C$, 'getDevice$', function () {
return $I$(1).getLocalGraphicsEnvironment$().getDefaultScreenDevice$();
});
Clazz_newMeth(C$, 'createCompatibleImage$I$I', function (width, height) {
var cm=this.getColorModel$();
var wr=cm.createCompatibleWritableRaster$I$I(width, height);
return this.newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable(cm, wr, false, null);
});
Clazz_newMeth(C$, 'newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable', function (cm, wr, alphaPremultiplied, properties) {
return $I$(2).getInstanceWithParams$S$ClassA$OA("java.awt.image.BufferedImage", Clazz_array(Class, -1, [Clazz_getClass($I$(3)), Clazz_getClass($I$(4)), Clazz_getClass($I$(5)), Clazz_getClass($I$(6))]), Clazz_array(java.lang.Object, -1, [cm, wr, alphaPremultiplied ? $I$(5).TRUE : $I$(5).FALSE, properties]));
});
Clazz_newMeth(C$, 'getColorModel$', function () {
return $I$(3).getRGBdefault$();
});
Clazz_newMeth(C$, 'getColorModel$I', function (transparency) {
return this.getColorModel$();
});
Clazz_newMeth(C$, 'getDefaultTransform$', function () {
return $I$(2).getInstance$S$Z("java.awt.geom.AffineTransform", true);
});
Clazz_newMeth(C$, 'getNormalizingTransform$', function () {
return this.getDefaultTransform$();
});
Clazz_newMeth(C$, 'getBounds$', function () {
var doc=document ||null;
var d=$I$(7).jQuery.$(doc);
return Clazz_new_($I$(8).c$$I$I,[d.width(), d.height()]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.awt.Font','java.awt.Toolkit','swingjs.JSUtil','java.awt.Point','java.awt.GraphicsDevice']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSGraphicsEnvironment", null, 'java.awt.GraphicsEnvironment');
C$.device=null;
C$.availableFonts=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
System.out.println$S("JSGraphicsEnvironment initialized");
}, 1);
Clazz_newMeth(C$, 'createGraphics$java_awt_image_BufferedImage', function (img) {
return img.getImageGraphic$().create$();
});
Clazz_newMeth(C$, 'getAllFonts$', function () {
if (C$.availableFonts == null ) {
var names=this.getAvailableFontFamilyNames$();
C$.availableFonts=Clazz_array($I$(1), [names.length]);
for (var i=names.length; --i >= 0; ) C$.availableFonts[i]=Clazz_new_($I$(1).c$$S$I$I,[names[i], 0, 1]);
}return C$.availableFonts;
});
Clazz_newMeth(C$, 'getAvailableFontFamilyNames$', function () {
return $I$(2).getDefaultToolkit$().getFontList$();
});
Clazz_newMeth(C$, 'getAvailableFontFamilyNames$java_util_Locale', function (l) {
return $I$(2).getDefaultToolkit$().getFontList$();
});
Clazz_newMeth(C$, 'getDefaultScreenDevice$', function () {
if (C$.device == null ) C$.device=$I$(3).getInstance$S("swingjs.JSScreenDevice");
return C$.device;
});
Clazz_newMeth(C$, 'getCenterPoint$', function () {
var d=$I$(2).getDefaultToolkit$().getScreenSize$();
return Clazz_new_($I$(4).c$$I$I,[(d.width/2|0), (d.height/2|0)]);
});
Clazz_newMeth(C$, 'getScreenDevices$', function () {
return Clazz_array($I$(5), -1, [this.getDefaultScreenDevice$()]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'swingjs.JSUtil','swingjs.JSToolkit','java.awt.event.MouseWheelEvent','java.awt.event.MouseEvent','java.awt.Toolkit','swingjs.JSKeyEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSMouse");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.viewer=null;
this.jqevent=null;
this.mouse2=null;
this.isCtrlShiftMouseDown=false;
this.wheeling=false;
this.xWhenPressed=0;
this.yWhenPressed=0;
this.modifiersWhenPressed10=0;
this.lasttime=0;
this.lastx=0;
this.lasty=0;
this.clickCount=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$swingjs_JSFrameViewer', function (v) {
C$.$init$.apply(this);
this.viewer=v;
}, 1);
Clazz_newMeth(C$, 'processEvent$I$I$I$I$J$O$I', function (id, x, y, modifiers, time, jqevent, scroll) {
this.jqevent=jqevent;
switch (id) {
case 401:
case 400:
case 402:
return p$1.keyAction$I$I$O$J.apply(this, [id, modifiers, jqevent, time]);
}
if (id != 507 && id != 503 ) modifiers=C$.applyLeftMouse$I(modifiers);
switch (id) {
case 507:
this.wheeled$J$I$I$I$I(time, x, y, scroll, modifiers);
break;
case 501:
this.xWhenPressed=x;
this.yWhenPressed=y;
this.modifiersWhenPressed10=modifiers & ~16320;
p$1.pressed$J$I$I$I$Z.apply(this, [time, x, y, modifiers, false]);
break;
case 506:
p$1.dragged$J$I$I$I.apply(this, [time, x, y, modifiers]);
break;
case 504:
case 505:
p$1.entry$J$I$I$I.apply(this, [time, x, y, id]);
break;
case 503:
p$1.moved$J$I$I$I.apply(this, [time, x, y, modifiers]);
break;
case 502:
p$1.released$J$I$I$I.apply(this, [time, x, y, modifiers & ~16320]);
if (x == this.xWhenPressed && y == this.yWhenPressed && (modifiers & ~16320) == this.modifiersWhenPressed10 && p$1.getButton$I.apply(this, [id]) != 1 ) {
jqevent.type = jqevent.originalEvent.j2stype = "click";
p$1.clicked$J$I$I$I$I.apply(this, [time, x, y, modifiers & ~16320, 1]);
}break;
case 500:
var n=jqevent.originalEvent.detail ||0;
p$1.clicked$J$I$I$I$I.apply(this, [time, x, y, modifiers & ~16320, n]);
break;
default:
return false;
}
return true;
});
Clazz_newMeth(C$, 'processTwoPointGesture$FAAA', function (touches) {
p$1.getMouse2.apply(this, []).processTwoPointGesture$FAAA(touches);
});
Clazz_newMeth(C$, 'getMouse2', function () {
return (this.mouse2 == null ? (this.mouse2=$I$(1).getInstance$S("swingjs.JSMouse2")).set$swingjs_JSMouse(this) : this.mouse2);
}, p$1);
Clazz_newMeth(C$, 'translateXYBy$I$I', function (deltaX, deltaY) {
});
Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) {
p$1.clicked$J$I$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$(), e.getClickCount$()]);
});
Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) {
p$1.entry$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), 504]);
});
Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) {
p$1.entry$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), 505]);
});
Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) {
p$1.pressed$J$I$I$I$Z.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$(), e.isPopupTrigger$()]);
});
Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) {
p$1.released$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$()]);
});
Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) {
var modifiers=e.getModifiers$();
if ((modifiers & 28) == 0) modifiers|=16;
p$1.dragged$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), modifiers]);
});
Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) {
p$1.moved$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$()]);
});
Clazz_newMeth(C$, 'mouseWheelMoved$java_awt_event_MouseWheelEvent', function (e) {
e.consume$();
this.wheeled$J$I$I$I$I(e.getWhen$(), 0, 0, e.getWheelRotation$(), e.getModifiers$());
});
Clazz_newMeth(C$, 'entry$J$I$I$I', function (time, x, y, id) {
this.wheeling=false;
p$1.mouseEnterExit$J$I$I$I.apply(this, [time, x, y, id]);
}, p$1);
Clazz_newMeth(C$, 'clicked$J$I$I$I$I', function (time, x, y, modifiers, clickCount) {
p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [500, time, x, y, clickCount, modifiers, 0]);
}, p$1);
Clazz_newMeth(C$, 'moved$J$I$I$I', function (time, x, y, modifiers) {
if (this.isCtrlShiftMouseDown) p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [506, time, x, y, 0, C$.applyLeftMouse$I(modifiers), 0]);
else p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [503, time, x, y, 0, modifiers, 0]);
}, p$1);
Clazz_newMeth(C$, 'wheeled$J$I$I$I$I', function (time, x, y, rotation, modifiers) {
this.wheeling=true;
p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [507, time, x, y, 0, modifiers & ~28 | 32, rotation]);
});
Clazz_newMeth(C$, 'pressed$J$I$I$I$Z', function (time, x, y, modifiers, isPopupTrigger) {
this.isCtrlShiftMouseDown=((modifiers & (3)) == (3));
this.wheeling=false;
p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [501, time, x, y, 0, modifiers, 0]);
}, p$1);
Clazz_newMeth(C$, 'released$J$I$I$I', function (time, x, y, modifiers) {
this.isCtrlShiftMouseDown=false;
this.wheeling=false;
p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [502, time, x, y, 0, modifiers & ~16320, 0]);
}, p$1);
Clazz_newMeth(C$, 'dragged$J$I$I$I', function (time, x, y, modifiers) {
if (this.wheeling) return;
if ((modifiers & 20) == 20) modifiers=modifiers & ~4 | 2;
p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [506, time, x, y, 0, modifiers, 0]);
}, p$1);
Clazz_newMeth(C$, 'applyLeftMouse$I', function (modifiers) {
return ((modifiers & 28) == 0) ? (modifiers | 16) : modifiers;
}, 1);
Clazz_newMeth(C$, 'getButton$I', function (id) {
if (id != 503) {
var e=this.jqevent;
switch (e.button || e.buttons && (8 << e.buttons) ||1) {
case 1:
case 16:
return 1;
case 3:
case 128:
return 2;
case 2:
case 32:
return 3;
}
}return 0;
}, p$1);
Clazz_newMeth(C$, 'mouseEnterExit$J$I$I$I', function (time, x, y, id) {
p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [id, time, x, y, 0, 0, 0]);
}, p$1);
Clazz_newMeth(C$, 'updateClickCount$I$J$I$I', function (id, time, x, y) {
var reset=(time - this.lasttime > 500 || Math.abs(x - this.lastx) > 3 || Math.abs(y - this.lasty) > 3 );
this.lasttime=time;
this.lastx=x;
this.lasty=y;
var ret=this.clickCount;
switch (id) {
case 501:
ret=this.clickCount=(reset ? 1 : this.clickCount + 1);
break;
case 504:
case 505:
this.clickCount=0;
break;
case 503:
if (reset) this.clickCount=0;
break;
case 502:
case 506:
case -1:
break;
}
return ret;
}, p$1);
Clazz_newMeth(C$, 'mouseAction$I$J$I$I$I$I$I', function (id, time, x, y, xcount, modifiers, dy) {
var button=p$1.getButton$I.apply(this, [id]);
var count=(xcount > 1 && id == 500 ? xcount : p$1.updateClickCount$I$J$I$I.apply(this, [id, time, x, y]));
var popupTrigger=C$.isPopupTrigger$I$I$Z(id, modifiers, $I$(2).isWin);
var source=this.viewer.getTopComponent$();
var e;
if (id == 507) {
e=Clazz_new_($I$(3).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I,[source, id, time, modifiers, x, y, x, y, count, popupTrigger, 0, 1, dy]);
} else {
e=Clazz_new_($I$(4).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[source, id, time, modifiers, x, y, x, y, count, popupTrigger, button]);
}var bdata=Clazz_array(Byte.TYPE, [0]);
e.setBData$BA(bdata);
var jqevent=this.jqevent;
var c=null;
bdata.jqevent = jqevent; bdata.source = c = jqevent.target["data-component"]; bdata.doPropagate = c && c.ui.j2sDoPropagate;
if (c == null ) {
$I$(5).getDefaultToolkit$().getSystemEventQueue$().postEvent$java_awt_AWTEvent(e);
} else {
(e.getSource$()).dispatchEvent$java_awt_AWTEvent(e);
}}, p$1);
Clazz_newMeth(C$, 'isPopupTrigger$I$I$Z', function (id, mods, isWin) {
var rt=((mods & 4) != 0);
if (isWin) {
if (id != 502) return false;
return rt;
} else {
if (id != 501) return false;
var lt=((mods & 16) != 0);
var ctrl=((mods & 2) != 0);
return rt || (ctrl && lt ) ;
}}, 1);
Clazz_newMeth(C$, 'keyAction$I$I$O$J', function (id, modifiers, jqevent2, time) {
return $I$(6).dispatchKeyEvent$I$I$O$J(id, modifiers, this.jqevent, time);
}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[];
var C$=Clazz_newClass(P$, "JSNullComponentPeer", null, null, 'java.awt.peer.LightweightPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.target=null;
this.isNull=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.isNull=true;
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Component', function (target) {
C$.$init$.apply(this);
this.target=target;
}, 1);
Clazz_newMeth(C$, 'isObscured$', function () {
return false;
});
Clazz_newMeth(C$, 'canDetermineObscurity$', function () {
return false;
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) {
});
Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'setBounds$I$I$I$I$I', function (x, y, width, height, op) {
});
Clazz_newMeth(C$, 'handleEvent$java_awt_AWTEvent', function (e) {
});
Clazz_newMeth(C$, 'coalescePaintEvent$java_awt_event_PaintEvent', function (e) {
});
Clazz_newMeth(C$, 'getLocationOnScreen$', function () {
return null;
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return null;
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
return null;
});
Clazz_newMeth(C$, 'getColorModel$', function () {
return null;
});
Clazz_newMeth(C$, 'getToolkit$', function () {
return null;
});
Clazz_newMeth(C$, 'getGraphics$', function () {
return null;
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
return null;
});
Clazz_newMeth(C$, 'dispose$', function () {
});
Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) {
});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
});
Clazz_newMeth(C$, 'updateCursorImmediately$', function () {
});
Clazz_newMeth(C$, 'requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) {
return false;
});
Clazz_newMeth(C$, 'isFocusable$', function () {
return false;
});
Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) {
return null;
});
Clazz_newMeth(C$, 'createImage$I$I', function (width, height) {
return null;
});
Clazz_newMeth(C$, 'createVolatileImage$I$I', function (width, height) {
return null;
});
Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) {
return false;
});
Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) {
return 0;
});
Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () {
return null;
});
Clazz_newMeth(C$, 'handlesWheelScrolling$', function () {
return false;
});
Clazz_newMeth(C$, 'getBackBuffer$', function () {
return null;
});
Clazz_newMeth(C$, 'destroyBuffers$', function () {
});
Clazz_newMeth(C$, 'reparent$java_awt_peer_ContainerPeer', function (newContainer) {
});
Clazz_newMeth(C$, 'isReparentSupported$', function () {
return false;
});
Clazz_newMeth(C$, 'layout$', function () {
});
Clazz_newMeth(C$, 'getBounds$', function () {
return null;
});
Clazz_newMeth(C$, 'getInsets$', function () {
return null;
});
Clazz_newMeth(C$, 'beginValidate$', function () {
});
Clazz_newMeth(C$, 'endValidate$', function () {
});
Clazz_newMeth(C$, 'beginLayout$', function () {
});
Clazz_newMeth(C$, 'endLayout$', function () {
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.awt.GraphicsConfiguration','swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSScreenDevice", null, 'java.awt.GraphicsDevice');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
System.out.println$S("JSScreenDevice initialized");
}, 1);
Clazz_newMeth(C$, 'getType$', function () {
return 0;
});
Clazz_newMeth(C$, 'getIDstring$', function () {
return "swingjs.JSScreenDevice";
});
Clazz_newMeth(C$, 'getConfigurations$', function () {
return Clazz_array($I$(1), -1, [this.getDefaultConfiguration$()]);
});
Clazz_newMeth(C$, 'getDefaultConfiguration$', function () {
return $I$(2).getGraphicsConfiguration$();
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs");
var C$=Clazz_newClass(P$, "JSThreadGroup", null, 'ThreadGroup');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.superclazz.c$$S.apply(this, [name]);
C$.$init$.apply(this);
this.秘html5Applet=J2S._applets[name] ||null;
}, 1);
Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (parent, name) {
C$.superclazz.c$$ThreadGroup$S.apply(this, [parent, name]);
C$.$init$.apply(this);
this.秘html5Applet=J2S._applets[name] ||null;
}, 1);
Clazz_newMeth(C$, 'getHtmlApplet$', function () {
return this.秘html5Applet;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'sun.awt.AppContext','swingjs.JSUtil','java.awt.image.ColorModel','javax.swing.UIManager','swingjs.api.Interface','Thread','javajs.util.PT','swingjs.JSNullComponentPeer','swingjs.JSImagekit','java.io.BufferedInputStream','java.io.ByteArrayInputStream','swingjs.JSFocusPeer','java.awt.Point']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSToolkit", null, 'sun.awt.SunToolkit', 'sun.awt.KeyboardFocusManagerPeerProvider');
C$.isMac=false;
C$.isLinux=false;
C$.isUnix=false;
C$.isWin=false;
C$.defaultContext=null;
C$.uid=null;
C$.dispatchID=0;
C$.audioPlayer=null;
C$.systemClipboard=null;
C$.hardwiredFontList=null;
C$.focusManager=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
{
C$.isMac = (J2S.featureDetection.os == "mac");
C$.isLinux = (J2S.featureDetection.os == "linux");
C$.isUnix = (J2S.featureDetection.os == "unix");
C$.isWin = (J2S.featureDetection.os == "win");
}
};
C$.dispatchID=0;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.imageKit=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
System.out.println$S("JSToolkit initialized");
}, 1);
Clazz_newMeth(C$, 'getPostEventQueue$Z', function (isPost) {
return (isPost ? $I$(1).getAppContext$().get$O("PostEventQueue") : $I$(1).getAppContext$().get$O($I$(1).EVENT_QUEUE_KEY));
}, 1);
Clazz_newMeth(C$, 'exit$', function () {
Thread.thisThread.group.systemExited = true;
$I$(2).getAppletViewer$().exit$();
}, 1);
Clazz_newMeth(C$, 'getScreenSize$java_awt_Dimension', function (d) {
var jq=$I$(2).jQuery;
d.width=jq.$(window).width() ||0;
d.height=jq.$(window).height() ||0;
}, 1);
Clazz_newMeth(C$, 'getScreenWidth$', function () {
var jq=$I$(2).jQuery;
return jq.$(window).width() ||0;
});
Clazz_newMeth(C$, 'getScreenHeight$', function () {
var jq=$I$(2).jQuery;
return jq.$(window).height() ||0;
});
Clazz_newMeth(C$, 'getScreenResolution$', function () {
return 96;
});
Clazz_newMeth(C$, 'getColorModel$', function () {
return $I$(3).getRGBdefault$();
});
Clazz_newMeth(C$, 'sync$', function () {
});
Clazz_newMeth(C$, 'isModalExclusionTypeSupported$java_awt_Dialog_ModalExclusionType', function (modalExclusionType) {
return true;
});
Clazz_newMeth(C$, 'isModalityTypeSupported$java_awt_Dialog_ModalityType', function (modalityType) {
return true;
});
Clazz_newMeth(C$, 'isTraySupported$', function () {
return false;
});
Clazz_newMeth(C$, 'grab$java_awt_Window', function (w) {
});
Clazz_newMeth(C$, 'ungrab$java_awt_Window', function (w) {
});
Clazz_newMeth(C$, 'getPropertyObject$O$S$O', function (t, key, def) {
return def;
}, 1);
Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () {
var ap=$I$(2).getAppletViewer$();
var gc=ap.graphicsConfig;
return (gc == null ? (gc=ap.graphicsConfig=$I$(2).getInstance$S("swingjs.JSGraphicsConfiguration")) : gc);
}, 1);
Clazz_newMeth(C$, 'isFocused$java_awt_Window', function (window) {
return false;
}, 1);
Clazz_newMeth(C$, 'getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S', function (context, font, text) {
if (text == null || text.length$() == 0 ) return 0;
var fontInfo=C$.getCanvasFont$java_awt_Font(font);
if (context == null ) context=C$.getDefaultCanvasContext2d$();
var w=0;
{
context.font = fontInfo;
w = Math.ceil(context.measureText(text).width);
}
return w;
}, 1);
Clazz_newMeth(C$, 'getDefaultCanvasContext2d$', function () {
{
if (this.defaultContext == null) this.defaultContext = document.createElement( 'canvas' ).getContext('2d');
}
return C$.defaultContext;
}, 1);
Clazz_newMeth(C$, 'getCSSColor$java_awt_Color', function (c) {
var i=c.getRGB$() & 16777215;
var s=(i == 0 ? "000" : "000000" + Integer.toHexString$I(i));
return "#" + s.substring$I(s.length$() - 6);
}, 1);
Clazz_newMeth(C$, 'getLookAndFeelDefaults$', function () {
if (C$.uid == null ) C$.uid=$I$(4).getLookAndFeel$().getDefaults$();
return C$.uid;
}, 1);
Clazz_newMeth(C$, 'getComponentUI$javax_swing_JComponent', function (target) {
var id=(target).getUIClassID$();
var ui=$I$(5).getInstance$S$Z("swingjs.plaf.JS" + id, true);
if (ui != null ) ui.set$javax_swing_JComponent(target);
return ui;
}, 1);
Clazz_newMeth(C$, 'getSwingDivId$', function () {
return $I$(6).currentThread$().getName$() + "_swingdiv";
}, 1);
Clazz_newMeth(C$, 'dispatchSystemEvent$Runnable', function (runnable) {
var f=null;
{
System.out.println("JST dispatchSystemEvent " + runnable.run$.toString()); f = function(_JSToolkit_dispatchSystemEvent) { System.out.println("JST running " + runnable.run$.toString());runnable.run$()};
}
C$.dispatch$O$I$I(f, 0, 0);
}, 1);
Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent$O$Z', function (event, src, andWait) {
var f=null;
var id=++C$.dispatchID;
f = function() { if (src == null) event.dispatch$(); else src.dispatchEvent$java_awt_AWTEvent(event);
};
if (andWait) {
C$.invokeAndWait$javajs_api_JSFunction$I(f, id);
} else {
var ms=(C$.isMouseEvent$I(event.getID$()) ? -1 : 0);
C$.dispatch$O$I$I(f, ms, id);
}}, 1);
Clazz_newMeth(C$, 'isMouseEvent$I', function (id) {
return (id >= 500 && id <= 507 );
}, 1);
Clazz_newMeth(C$, 'dispatch$O$I$I', function (f, msDelay, id) {
{
var thread = Thread.thisThread;
if (thread.group.systemExited) return;
var thread0 = thread;
var id0 = SwingJS.eventID || 0;
var ff = function(_JSToolkit_setTimeout) { SwingJS.eventID = id;
java.lang.Thread.thisThread = thread;
try { if (f.run$) f.run$();
else f();
} catch (e) { var s = "JSToolkit.dispatch$I(" + id +"): " + e + "\n" + (e.getStackTrace$ ? e.getStackTrace$() + "\n" : "") + (!!e.stack ? e.stack : "");
System.out.println(s);
alert(s);
} SwingJS.eventID = id0;
Thread.thisThread = thread0;
};
return (msDelay == -1 ? ff() : setTimeout(ff, msDelay));
}
}, 1);
Clazz_newMeth(C$, 'invokeAndWait$javajs_api_JSFunction$I', function (f, id) {
{
var thread = Thread.thisThread;
if (thread.group.systemExited) return;
var thread0 = thread;
(function(_JSToolkit_setTimeout) { var id0 = SwingJS.eventID || 0;
SwingJS.eventID = id;
java.lang.Thread.thisThread = thread;
if (f.run$) f.run$();
else f();
SwingJS.eventID = id0;
Thread.thisThread = thread0;
})();
}
}, 1);
Clazz_newMeth(C$, 'isDispatchThread$', function () {
{
return (!!SwingJS.eventID);
}
}, 1);
Clazz_newMeth(C$, 'setIsDispatchThread$Z', function (b) {
SwingJS.eventID = (b ? 1 : 0);
}, 1);
Clazz_newMeth(C$, 'getHTML5Applet$java_awt_Component', function (c) {
return (c.getAppContext$().getThreadGroup$()).getHtmlApplet$();
}, 1);
Clazz_newMeth(C$, 'taintUI$java_awt_Component', function (c) {
{
c.getUI$ && c.getUI$() && c.getUI$().setTainted$();
}
}, 1);
Clazz_newMeth(C$, 'createComponent$java_awt_Component', function (target) {
var peer=C$.getUI$java_awt_Component$Z(target, true);
if ($I$(2).debugging) System.out.println$S("JSToolkit creating UI-Peer for " + target.getClass$().getName$() + ": " + peer.getClass$().getName$() );
return peer;
});
Clazz_newMeth(C$, 'createDialog$java_awt_Dialog', function (target) {
var ui=target.getUI$();
if (ui == null ) return null;
if ($I$(2).debugging) System.out.println$S("JSToolkit creating Dialog Peer for " + target.getClass$().getName$() + ": " + target.getClass$().getName$() );
return (ui).setFrame$java_awt_Window$Z(target, true);
});
Clazz_newMeth(C$, 'createFrame$java_awt_JSFrame', function (target) {
var ui=target.getUI$();
if (ui == null ) return null;
if ($I$(2).debugging) System.out.println$S("JSToolkit creating Frame Peer for " + target.getClass$().getName$() + ": " + target.getClass$().getName$() );
return (ui).setFrame$java_awt_Window$Z(target, true);
});
Clazz_newMeth(C$, 'createFrame$java_awt_Frame', function (target) {
var ui=target.getUI$();
if (ui == null ) return null;
if ($I$(2).debugging) System.out.println$S("JSToolkit creating Frame Peer for " + target.getClass$().getName$() + ": " + target.getClass$().getName$() );
return (ui).setFrame$java_awt_Window$Z(target, true);
});
Clazz_newMeth(C$, 'createWindow$java_awt_Window', function (target) {
var ui=target.getUI$();
if (ui == null ) return null;
if ($I$(2).debugging) System.out.println$S("JSToolkit creating Window Peer for " + target.getClass$().getName$() + ": " + target.getClass$().getName$() );
return (ui).setFrame$java_awt_Window$Z(target, false);
});
Clazz_newMeth(C$, 'getUI$java_awt_Component$Z', function (c, isQuiet) {
var ui=(c).getUI$();
if (ui == null ) {
(c).updateUI$();
ui=(c).getUI$();
}if (ui == null ) {
var s=c.getClass$().getName$();
if (!$I$(7).isOneOf$S$S(s, ";javax.swing.Box$Filler;")) System.out.println$S("[JSToolkit] Component " + s + " has no corresponding JSComponentUI, class " + c.getClass$().getName$() );
ui=Clazz_new_($I$(8).c$$java_awt_Component,[c]);
}return ui;
}, 1);
Clazz_newMeth(C$, 'getImagekit', function () {
return (this.imageKit == null ? this.imageKit=$I$(5).getInstance$S$Z("swingjs.JSImagekit", false) : this.imageKit);
}, p$1);
Clazz_newMeth(C$, 'getImage$S', function (filename) {
return this.createImage$S(filename);
});
Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) {
return this.createImage$java_net_URL(url);
});
Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) {
var kit=$I$(5).getInstance$S$Z("swingjs.JSImagekit", true);
producer.startProduction$java_awt_image_ImageConsumer(kit);
return kit.getCreatedImage$();
});
Clazz_newMeth(C$, 'createImage$java_awt_Component$java_awt_image_ImageProducer', function (c, producer) {
return (this.createImage$java_awt_image_ImageProducer(producer)).setComponent$java_awt_Component(c);
});
Clazz_newMeth(C$, 'createImageIcon$java_awt_Component$javax_swing_Icon$S', function (c, icon, id) {
return $I$(9).createImageIcon$java_awt_Component$javax_swing_Icon$S(c, icon, id);
}, 1);
Clazz_newMeth(C$, 'createImage$S', function (filename) {
return p$1.getImagekit.apply(this, []).createImageFromBytes$BA$I$I$S($I$(2).getSignedStreamBytes$java_io_BufferedInputStream(Clazz_new_($I$(10).c$$java_io_InputStream,[Clazz_new_($I$(11).c$$BA,[$I$(2).getFileAsBytes$O(filename)])])), 0, -1, filename);
});
Clazz_newMeth(C$, 'createImage$java_net_URL', function (url) {
var b=$I$(2).getURLInputStream$java_net_URL$Z(url, true);
return (b == null ? null : p$1.getImagekit.apply(this, []).createImageFromBytes$BA$I$I$S($I$(2).getSignedStreamBytes$java_io_BufferedInputStream(b), 0, -1, url.toString()));
});
Clazz_newMeth(C$, 'createImage$BA$I$I', function (data, imageoffset, imagelength) {
return p$1.getImagekit.apply(this, []).createImageFromBytes$BA$I$I$S(data, imageoffset, imagelength, null);
});
Clazz_newMeth(C$, 'createImage$java_awt_Component$I$I', function (c, width, height) {
return (this.createImage$BA$I$I(null, width, height)).setComponent$java_awt_Component(c);
});
Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) {
return 63;
});
Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) {
return true;
});
Clazz_newMeth(C$, 'hasFocus$java_awt_Component', function (c) {
var ui=C$.getUI$java_awt_Component$Z(c, false);
return (ui != null && !ui.isNull && ui.hasFocus$() );
}, 1);
Clazz_newMeth(C$, 'requestFocus$java_awt_Component', function (c) {
var ui=C$.getUI$java_awt_Component$Z(c, false);
if (ui == null || ui.isNull || !ui.isFocusable$() ) return false;
var r=((P$.JSToolkit$1||
(function(){var C$=Clazz_newClass(P$, "JSToolkit$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'run$', function () {
this.$finals$.ui.requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(null, false, false, 0, null);
});
})()
), Clazz_new_(P$.JSToolkit$1.$init$, [this, {ui: ui}]));
C$.dispatch$O$I$I(r, 50, 0);
return true;
}, 1);
Clazz_newMeth(C$, 'getAudioPlayer$', function () {
return (C$.audioPlayer == null ? C$.audioPlayer=$I$(2).getInstance$S("swingjs.JSAudio") : C$.audioPlayer);
}, 1);
Clazz_newMeth(C$, 'playAudio$BA$javax_sound_sampled_AudioFormat', function (data, audioFormat) {
C$.getAudioPlayer$().getAudio$BA$javax_sound_sampled_AudioFormat(data, audioFormat).play$();
}, 1);
Clazz_newMeth(C$, 'getAudioClip$java_net_URL', function (url) {
return C$.getAudioPlayer$().getAudioClip$java_net_URL(url);
}, 1);
Clazz_newMeth(C$, 'playAudioFile$java_net_URL', function (url) {
C$.getAudioPlayer$().getAudioFileFromURL$java_net_URL(url).play$();
}, 1);
Clazz_newMeth(C$, 'getAudioLine$javax_sound_sampled_Line_Info', function (info) {
return C$.getAudioPlayer$().getAudioLine$javax_sound_sampled_Line_Info(info);
}, 1);
Clazz_newMeth(C$, 'getTimerQueue$', function () {
return $I$(2).getAppletViewer$().getTimerQueue$();
}, 1);
Clazz_newMeth(C$, 'getFileFromDialog$swingjs_api_JSFileHandler$S', function (jsFileHandler, type) {
var f=null;
{
f = function(data, fileName) { jsFileHandler.handleFileLoaded$BA$S(data, fileName) };
}
$I$(2).J2S.getFileFromDialog(f, type);
}, 1);
Clazz_newMeth(C$, 'killDispatched$I', function (html5Id) {
{
clearTimeout(html5Id);
}
}, 1);
Clazz_newMeth(C$, 'getSystemClipboard$', function () {
if (C$.systemClipboard == null ) C$.systemClipboard=$I$(2).getInstance$S("java.awt.datatransfer.Clipboard");
return C$.systemClipboard;
});
Clazz_newMeth(C$, 'createDragSourceContextPeer$java_awt_dnd_DragGestureEvent', function (dge) {
return null;
});
Clazz_newMeth(C$, 'getCursorName$java_awt_Cursor', function (c) {
switch (c == null ? 0 : c.getType$()) {
case 1:
return "crosshair";
case 3:
return "wait";
case 2:
return "text";
case 12:
return "grab";
case 13:
return "move";
case 8:
case 9:
return "ns-resize";
case 7:
case 4:
return "nesw-resize";
case 5:
case 6:
return "nwse-resize";
case 11:
case 10:
return "ew-resize";
case -1:
return c.getName$();
case 0:
default:
return "default";
}
}, 1);
Clazz_newMeth(C$, 'getFontList$', function () {
if (C$.hardwiredFontList == null ) C$.hardwiredFontList=Clazz_array(String, -1, ["Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"]);
return C$.hardwiredFontList;
});
Clazz_newMeth(C$, 'getFontFamily$java_awt_Font', function (font) {
return font.getName$();
}, 1);
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
return font.getFontMetrics$();
});
Clazz_newMeth(C$, 'getCanvasFont$java_awt_Font', function (font) {
var strStyle="";
if (font.isItalic$()) strStyle += "italic ";
if (font.isBold$()) strStyle += "bold ";
var family=C$.getCSSFontFamilyName$S(font.getFamily$());
return strStyle + font.getSize$() + "px " + family ;
}, 1);
Clazz_newMeth(C$, 'getCSSFontFamilyName$S', function (family) {
family=family.toLowerCase$();
if (family.equals$O("sansserif") || family.equals$O("helvetica") || family.equals$O("dialog") || family.equals$O("dialoginput") ) family="Arial";
else if (family.equals$O("monospaced")) family="monospace";
return family;
}, 1);
Clazz_newMeth(C$, 'getDateFormat$S', function (isoType) {
var prefix="";
var suffix="";
{
if (isoType == null) { return ("" + (new Date())).split(" (")[0];
} if (isoType.indexOf("8824") >= 0) { var d = new Date();
var x = d.toString().split(" ");
var MM = "0" + (1 + d.getMonth()); MM = MM.substring(MM.length - 2);
var dd = "0" + d.getDate(); dd = dd.substring(dd.length - 2);
return x[3] + MM + dd + x[4].replace(/\:/g,"") + x[5].substring(3,6) + "'" + x[5].substring(6,8) + "'" } if (isoType.indexOf("8601") >= 0){ var d = new Date();
var x = d.toString().split(" ");
// Firefox now doing this?
if (x.length == 1) return x;
var MM = "0" + (1 + d.getMonth()); MM = MM.substring(MM.length - 2);
var dd = "0" + d.getDate(); dd = dd.substring(dd.length - 2);
return x[3] + '-' + MM + '-' + dd + 'T' + x[4] }
}
}, 1);
Clazz_newMeth(C$, 'beep$', function () {
System.out.println$S("JSToolkit.beep");
});
Clazz_newMeth(C$, 'getPrintJob$java_awt_JSFrame$S$java_util_Properties', function (frame, jobtitle, props) {
var job=$I$(2).getInstance$S("swingjs.JSPrintJob");
job.setProperties$S$java_util_Properties(jobtitle, props);
return job;
});
Clazz_newMeth(C$, 'getPrintJob$java_awt_Frame$S$java_util_Properties', function (frame, jobtitle, props) {
var job=$I$(2).getInstance$S("swingjs.JSPrintJob");
job.setProperties$S$java_util_Properties(jobtitle, props);
return job;
});
Clazz_newMeth(C$, 'getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) {
var job=$I$(2).getInstance$S("swingjs.JSPrintJob");
job.setAttributes$S$java_awt_JobAttributes$java_awt_PageAttributes(jobtitle, jobAttributes, pageAttributes);
return job;
});
Clazz_newMeth(C$, 'getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) {
var job=$I$(2).getInstance$S("swingjs.JSPrintJob");
job.setAttributes$S$java_awt_JobAttributes$java_awt_PageAttributes(jobtitle, jobAttributes, pageAttributes);
return job;
});
Clazz_newMeth(C$, 'mapInputMethodHighlight$java_awt_im_InputMethodHighlight', function (hl) {
return null;
});
Clazz_newMeth(C$, 'getFocusPeer$', function () {
return (C$.focusManager == null ? C$.focusManager=Clazz_new_($I$(12)) : C$.focusManager);
}, 1);
Clazz_newMeth(C$, 'getKeyboardFocusManagerPeer$', function () {
return C$.getFocusPeer$();
});
Clazz_newMeth(C$, 'getCurrentFocusOwner$O', function (related) {
return (C$.getFocusPeer$()).getCurrentFocusOwner$O(related);
}, 1);
Clazz_newMeth(C$, 'consumeEvent$O', function (e) {
var jqevent=null;
if (Clazz_instanceOf(e, "java.awt.event.InputEvent")) {
jqevent=e.bdata.jqevent ||null;
} else {
jqevent=e;
}if (jqevent == null ) return;
jqevent.stopPropagation();
jqevent.preventDefault();
}, 1);
Clazz_newMeth(C$, 'getMouseLocation$', function () {
return $I$(2).J2S.getMousePosition(Clazz_new_($I$(13)));
}, 1);
Clazz_newMeth(C$, 'isOverWritten$javax_swing_JComponent$S', function (jc, method) {
var s=jc[method].exClazz.__CLASS_NAME__ ||"";
return s.indexOf$S("java") != 0 && s.indexOf$S("swingjs") != 0 ;
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.util.Hashtable','java.net.URL','javajs.util.Rdr','javajs.util.AU','java.io.BufferedInputStream','java.io.ByteArrayInputStream','swingjs.api.Interface','javajs.util.PT','Boolean','Thread','java.awt.Toolkit','java.util.Locale','javajs.util.AjaxURLConnection','swingjs.json.JSON']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSUtil");
C$.debugging=false;
C$.J2S=null;
C$.fileCache=null;
C$.useCache=false;
C$.zipTools=null;
C$.jQuery=null;
C$.mapNotImpl=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
var j2sdebug=false;
var j2sself=null;
{
j2sself = self.J2S;
j2sdebug = J2S._checkLoad || J2S._debugCode
}
C$.debugging=j2sdebug;
C$.J2S=j2sself;
};
C$.useCache=true;
C$.jQuery=C$.getJQuery$();
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
System.out.println$S("JSUtil initialized");
}, 1);
Clazz_newMeth(C$, 'getFileCache$', function () {
if (C$.fileCache == null && (C$.fileCache=C$.J2S.getSetJavaFileCache(null)) == null ) {
C$.fileCache=Clazz_new_($I$(1));
C$.J2S.getSetJavaFileCache(C$.fileCache);
}return C$.fileCache;
}, 1);
Clazz_newMeth(C$, 'getCachedFileData$S', function (path) {
return (C$.useCache && C$.fileCache != null ? C$.fileCache.get$O(path) : null);
}, 1);
Clazz_newMeth(C$, 'getFileContents$O$Z', function (uriOrJSFile, asBytes) {
if (Clazz_instanceOf(uriOrJSFile, "java.io.File")) {
var bytes=uriOrJSFile.秘bytes ||null;
if (bytes != null ) return bytes;
}var uri=uriOrJSFile.toString();
var data=null;
if (asBytes && uri.indexOf$S(":/") < 0 ) {
data=C$.getCachedFileData$S(uri);
if (data != null ) return data;
if (!uri.startsWith$S("/")) uri="/" + uri;
uri="http://." + uri;
}if (data == null ) data=C$.getCachedFileData$S(uri);
if (data == null && !uri.startsWith$S("./") ) {
try {
var stream=Clazz_new_($I$(2).c$$S,[uri]).getContent$();
data=(asBytes ? $I$(3).getStreamAsBytes$java_io_BufferedInputStream$javajs_util_OC(stream, null) : $I$(3).streamToUTF8String$java_io_BufferedInputStream(stream));
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
data=C$.J2S.getFileData(uri, null, false, asBytes);
} else {
throw e;
}
}
}return data;
}, 1);
Clazz_newMeth(C$, 'getFileAsString$S', function (filename) {
var data=C$.getFileContents$O$Z(filename, false);
return C$.ensureString$O(data);
}, 1);
Clazz_newMeth(C$, 'getFileAsBytes$O$Z', function (file, checkNotFound) {
var data=C$.getFileAsBytes$O(file);
if (checkNotFound) {
if (data.length == 0) return null;
if (data.length == 2) {
if (data[0] == 13 && data[1] == 10 ) return null;
}if (data.length == 39) {
if ( String.instantialize(data).equals$O("NetworkError: A network error occurred.")) return null;
}System.out.println$S( String.instantialize(data));
}return data;
}, 1);
Clazz_newMeth(C$, 'getFileAsBytes$O', function (file) {
var data=C$.getFileContents$O$Z(file, true);
var b=null;
if (Clazz_instanceOf(data, Clazz_array(Byte.TYPE, -1))) b=data;
else if (Clazz_instanceOf(data, "java.lang.String")) b=(data).getBytes$();
else if (Clazz_instanceOf(data, "javajs.util.SB")) b=$I$(3).getBytesFromSB$javajs_util_SB(data);
else if (Clazz_instanceOf(data, "java.io.InputStream")) try {
b=$I$(3).getLimitedStreamBytes$java_io_InputStream$J(data, -1);
} catch (e) {
if (Clazz_exceptionOf(e,"java.io.IOException")){
} else {
throw e;
}
}
return $I$(4).ensureSignedBytes$BA(b);
}, 1);
Clazz_newMeth(C$, 'haveCachedResource$S$Z', function (resourceName, isJavaPath) {
var path=C$.J2S.getResourcePath(resourceName, isJavaPath);
return (path != null && C$.getCachedFileData$S(path) != null );
}, 1);
Clazz_newMeth(C$, 'getJavaResource$S$Z$Z$Z', function (resourceName, isJavaPath, doCache, doProcess) {
System.out.println$S("JSUtil getting Java resource " + resourceName);
var path=C$.J2S.getResourcePath(resourceName, isJavaPath);
if (path == null ) return null;
var data=C$.getCachedFileData$S(path);
if (data == null && (data=C$.J2S.getFileData(path, null, false, false)) != null && C$.useCache && doCache ) C$.cacheFileData$S$O(path, data);
var sdata=C$.ensureString$O(data);
var ok=(sdata != null && sdata.indexOf$S("[Exception") != 0 );
System.out.println$S("Processing " + path + " [" + (ok ? "" + sdata.length$() : sdata) + "]" );
return (!ok ? null : !doProcess ? sdata : path.endsWith$S(".css") ? C$.processCSS$S$S(sdata, path) : path.endsWith$S(".js") ? C$.processJS$S$S(sdata, resourceName) : sdata);
}, 1);
Clazz_newMeth(C$, 'getCachedResourceAsStream$S', function (name) {
System.out.println$S("JSUtil getting Java resource " + name);
var path=C$.J2S.getResourcePath(name, false);
if (path == null ) return null;
var stream;
var data=C$.getCachedFileData$S(path);
if (data == null ) {
stream=C$.getResourceAsStream$S(name);
data=stream.$in.buf ||null;
} else {
stream=Clazz_new_($I$(5).c$$java_io_InputStream,[Clazz_new_($I$(6).c$$BA,[data])]);
}if (stream != null && C$.useCache ) C$.cacheFileData$S$O(path, data);
return stream;
}, 1);
Clazz_newMeth(C$, 'cacheFileData$S$O', function (path, data) {
if (data == null ) {
System.out.println$S("JSUtil releasing cached bytes for " + path);
C$.getFileCache$().remove$O(path);
} else {
System.out.println$S("JSUtil caching bytes for " + path);
C$.getFileCache$().put$TK$TV(path, data);
}}, 1);
Clazz_newMeth(C$, 'loadJavaResourcesFromZip$ClassLoader$S$java_util_Map', function (cl, zipFileName, mapByteData) {
if (mapByteData == null ) mapByteData=C$.getFileCache$();
var fileList="";
try {
var bis=Clazz_new_($I$(5).c$$java_io_InputStream,[cl.getResourceAsStream$S(zipFileName)]);
var prefix=C$.J2S.getResourcePath(null, true);
fileList=C$.getZipTools$().cacheZipContentsStatic$java_io_BufferedInputStream$S$java_util_Map$Z(bis, prefix, mapByteData, false);
} catch (e) {
if (Clazz_exceptionOf(e,"Exception")){
System.out.println$S("JSUtil could not cache files from " + zipFileName);
return;
} else {
throw e;
}
}
if (C$.debugging) System.out.println$S("JSUtil loaded resources from " + zipFileName + ":\n" + fileList );
}, 1);
Clazz_newMeth(C$, 'getZipTools$', function () {
return (C$.zipTools == null ? (C$.zipTools=$I$(7).getInstance$S$Z("javajs.util.ZipTools", true)) : C$.zipTools);
}, 1);
Clazz_newMeth(C$, 'loadStaticResource$S', function (file) {
var s="alert('" + file + "' was not found)" ;
if (!C$.J2S.isResourceLoaded(file, false)) {
s=C$.getJavaResource$S$Z$Z$Z(file, true, false, true);
C$.J2S.isResourceLoaded(file, true);
}return s;
}, 1);
Clazz_newMeth(C$, 'isClassLoaded$S', function (className) {
return (Clazz._isClassDefined(className) ||false);
}, 1);
Clazz_newMeth(C$, 'processCSS$S$S', function (css, path) {
if (path != null && css.indexOf$S("images/") >= 0 ) {
path=path.substring$I$I(0, path.lastIndexOf$S("/") + 1) + "images/";
css=$I$(8).rep$S$S$S(css, "images/", path);
}C$.jQuery.$("head").append(C$.jQuery.$("" ));
return css;
}, 1);
Clazz_newMeth(C$, 'processJS$S$S', function (js, resourceName) {
try {
{
if (js.indexOf(";//# sourceURL=") < 0) js += ";//# sourceURL=" + J2S.thisApplet._j2sPath + "/" + resourceName;
eval(js);
}
} catch (e) {
C$.alert$O("error processing " + js);
return null;
}
return js;
}, 1);
Clazz_newMeth(C$, 'ensureString$O', function (data) {
if (data == null ) return null;
if (Clazz_instanceOf(data, Clazz_array(Byte.TYPE, -1))) return $I$(3).bytesToUTF8String$BA(data);
if (Clazz_instanceOf(data, "java.lang.String") || Clazz_instanceOf(data, "javajs.util.SB") ) return data.toString();
if (Clazz_instanceOf(data, "java.io.InputStream")) return $I$(3).streamToUTF8String$java_io_BufferedInputStream(Clazz_new_($I$(5).c$$java_io_InputStream,[data]));
return null;
}, 1);
Clazz_newMeth(C$, 'getJQuery$', function () {
if (C$.jQuery != null ) return C$.jQuery;
{
if (!window.jQuery) alert( "jQuery is required for SwingJS, but window.jQuery is not defined." ); jQuery.$ || (jQuery.$ = jQuery); return(jQuery);
}
}, 1);
Clazz_newMeth(C$, 'parseJSONRaw$S', function (json) {
return C$.getJQuery$().parseJSON(json);
}, 1);
Clazz_newMeth(C$, 'getStackTrace$I', function (n) {
return Clazz._getStackTrace(n) ||null;
}, 1);
Clazz_newMeth(C$, 'getStackTrace$', function () {
{
return Clazz._getStackTrace();
}
}, 1);
Clazz_newMeth(C$, 'notImplemented$S', function (msg) {
var s=null;
if (C$.mapNotImpl == null ) C$.mapNotImpl=Clazz_new_($I$(1));
{
s = arguments.callee.caller;
var cl = s.claxxOwner || s.exClazz;
s = (cl ? cl.__CLASS_NAME__ + "." : "") + arguments.callee.caller.exName;
}
if (C$.mapNotImpl.containsKey$O(s)) return;
C$.mapNotImpl.put$TK$TV(s, $I$(9).TRUE);
System.out.println$S(s + " has not been implemented in SwingJS. " + (msg == "" ? "" : (msg == null ? "" : msg) + C$.getStackTrace$I(-5)) );
}, 1);
Clazz_newMeth(C$, 'log$S', function (msg) {
{
System.out.println(msg);
console.log(msg);
}
}, 1);
Clazz_newMeth(C$, 'getInstance$S', function (className) {
return $I$(7).getInstance$S$Z(className, false);
}, 1);
Clazz_newMeth(C$, 'getAppletViewer$', function () {
return ($I$(10).currentThread$()).秘appletViewer;
}, 1);
Clazz_newMeth(C$, 'readyCallback$S$S$java_awt_JSComponent$swingjs_JSAppletViewer', function (aname, fname, applet, appletPanel) {
try {
C$.J2S.readyCallback(aname, fname, true, applet, appletPanel);
} catch (e) {
System.out.println$S("JSUtil Error running readyCallback method for " + fname + " -- check your page JavaScript" );
}
}, 1);
Clazz_newMeth(C$, 'getSignedStreamBytes$java_io_BufferedInputStream', function (bis) {
try {
return $I$(4).ensureSignedBytes$BA($I$(3).getStreamAsBytes$java_io_BufferedInputStream$javajs_util_OC(bis, null));
} catch (e) {
if (Clazz_exceptionOf(e,"java.io.IOException")){
return null;
} else {
throw e;
}
}
}, 1);
Clazz_newMeth(C$, 'saveFile$S$O$S$S', function (fileName, data, mimeType, encoding) {
C$.J2S.saveFile(fileName, data, mimeType, encoding);
}, 1);
Clazz_newMeth(C$, 'getResourceAsStream$S', function (name) {
return $I$(11).getDefaultToolkit$().getClass$().getClassLoader$().getResourceAsStream$S(name);
}, 1);
Clazz_newMeth(C$, 'getResource$S', function (name) {
return $I$(11).getDefaultToolkit$().getClass$().getClassLoader$().getResource$S(name);
}, 1);
Clazz_newMeth(C$, 'getDefaultLocale$S', function (language) {
var region;
var country;
var variant;
if (language == null ) language=C$.J2S.getDefaultLanguage(true);
language=language.replace$C$C("-", "_");
if (language == null || language.length$() == 0 || language.equalsIgnoreCase$S("en") ) language="en_US";
var i=language.indexOf$I("_");
if (i > 0) {
region=language.substring$I(i + 1);
language=language.substring$I$I(0, i);
} else {
region="";
}region=region.toUpperCase$();
i=region.indexOf$I("_");
if (i > 0) {
country=region.substring$I$I(0, i);
variant=region.substring$I(i + 1);
} else {
country=region;
variant="";
}return Clazz_new_($I$(12).c$$S$S$S,[language, country, variant]);
}, 1);
Clazz_newMeth(C$, 'getURLInputStream$java_net_URL$Z', function (url, andDelete) {
try {
var bis=$I$(13).getAttachedStreamData$java_net_URL$Z(url, andDelete);
return (bis == null ? url.openStream$() : bis);
} catch (e) {
if (Clazz_exceptionOf(e,"java.io.IOException")){
} else {
throw e;
}
}
return null;
}, 1);
Clazz_newMeth(C$, 'showWebPage$java_net_URL$O', function (url, target) {
if (target) window.open(url.toString(), target); else window.open(url.toString());
}, 1);
Clazz_newMeth(C$, 'warn$S', function (msg) {
C$.alert$O(msg);
}, 1);
Clazz_newMeth(C$, 'alert$O', function (object) {
{
console.log("[JSUtil] " + object);
alert(object);
}
}, 1);
Clazz_newMeth(C$, 'confirm$S', function (msg) {
{
return confirm(msg);
}
}, 1);
Clazz_newMeth(C$, 'prompt$S$S', function (msg, defaultRet) {
{
return prompt(msg, defaultRet);
}
}, 1);
Clazz_newMeth(C$, 'setAjax$java_net_URL', function (url) {
$I$(14).setAjax$java_net_URL(url);
}, 1);
Clazz_newMeth(C$, 'setAjax$OA', function (params) {
return params.length == 1 ? $I$(14).setAjax$java_net_URL(params[0]) : $I$(14).setAjax$OA(params);
}, 1);
Clazz_newMeth(C$, 'parseJSON$O', function (o) {
return $I$(14).parse$O(o);
}, 1);
Clazz_newMeth(C$, 'getJSONReader$O', function (is) {
return $I$(14).getJSONReader$java_io_InputStream(is);
}, 1);
Clazz_newMeth(C$, 'getJ2SAlias$O$S', function (c, name) {
return (c && c[name] ||null);
}, 1);
Clazz_newMeth(C$, 'isOverridden$O$Class', function (f, cl) {
return (f && f.exClazz != cl.$clazz$ ||false);
}, 1);
Clazz_newMeth(C$, 'isOverridden$O$S$Class', function (c, name, cl) {
return c != null && C$.isOverridden$O$Class(C$.getJ2SAlias$O$S(c, name), cl) ;
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:22:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.MenuSelectionManager','swingjs.plaf.JSComponentUI','swingjs.plaf.ButtonListener','swingjs.plaf.JSPopupMenuUI','javax.swing.MenuElement',['swingjs.plaf.ButtonListener','.Actions'],'swingjs.plaf.LazyActionMap','javax.swing.SwingUtilities','javax.swing.UIManager','javax.swing.plaf.ComponentInputMapUIResource','sun.swing.DefaultLookup','javax.swing.KeyStroke']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "ButtonListener", function(){
Clazz_newInstance(this, arguments,0,C$);
}, null, ['java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener', 'java.awt.event.FocusListener', 'javax.swing.event.ChangeListener', 'java.beans.PropertyChangeListener']);
C$.crossMenuMnemonic=false;
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.ui=null;
this.lastMnemonic=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) {
map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["pressed"]));
map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["released"]));
map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S$javax_swing_JMenu$Z,["selectMenu", null, true]));
map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["doClick"]));
}, 1);
Clazz_newMeth(C$, 'c$$swingjs_plaf_JSButtonUI', function (ui) {
C$.$init$.apply(this);
this.ui=ui;
}, 1);
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
var prop=e.getPropertyName$();
if (this.ui.isUIDisabled) return;
var b=e.getSource$();
if (prop == "contentAreaFilled") {
this.checkOpacity$javax_swing_AbstractButton(b);
return;
}if (prop == "mnemonic") {
this.updateMnemonicBinding$javax_swing_AbstractButton(b);
}if (this.ui.isMenuItem || this.ui.isMenu ) {
switch (prop) {
case "labelFor":
case "displayedMnemonic":
case "accelerator":
case "ancestor":
this.updateAcceleratorBinding$javax_swing_JComponent(b);
this.updateMnemonicBinding$javax_swing_AbstractButton(b);
break;
}
}this.ui.propertyChangedFromListener$java_beans_PropertyChangeEvent$S(e, prop);
});
Clazz_newMeth(C$, 'checkOpacity$javax_swing_AbstractButton', function (b) {
b.setOpaque$Z(b.isContentAreaFilled$());
});
Clazz_newMeth(C$, 'installKeyboardActions$javax_swing_JComponent', function (c) {
$I$(7).installLazyActionMap$javax_swing_JComponent$Class$S(c, Clazz_getClass(C$), "Button.actionMap");
if (!this.ui.isMenu && !this.ui.isMenuItem ) {
var button=c;
this.updateMnemonicBinding$javax_swing_AbstractButton(button);
var km=this.getInputMap$I$javax_swing_JComponent(0, c);
$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 0, km);
return;
}if (this.ui.isMenu) C$.crossMenuMnemonic=$I$(9).getBoolean$O("Menu.crossMenuMnemonic");
this.createInputMap$javax_swing_JComponent(c);
this.updateAcceleratorBinding$javax_swing_JComponent(c);
});
Clazz_newMeth(C$, 'createInputMap$javax_swing_JComponent', function (c) {
return Clazz_new_($I$(10).c$$javax_swing_JComponent,[c]);
});
Clazz_newMeth(C$, 'uninstallKeyboardActions$javax_swing_JComponent', function (c) {
$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 2, null);
$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 0, null);
$I$(8).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(c, null);
});
Clazz_newMeth(C$, 'getInputMap$I$javax_swing_JComponent', function (condition, c) {
if (condition == 0) {
var ui=c.getUI$();
if (Clazz_instanceOf(ui, "swingjs.plaf.JSButtonUI")) {
return $I$(11).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, ui.getPropertyPrefix$() + ".focusInputMap");
}}return null;
});
Clazz_newMeth(C$, 'updateMnemonicBinding$javax_swing_AbstractButton', function (b) {
var m=b.getMnemonic$();
this.ui.updateDOMNode$();
if (this.ui.isMenu && m != 0 && this.lastMnemonic != 0 ) {
this.ui.setMnemonic$I(m);
}if (m == this.lastMnemonic) return;
if (this.ui.isMenuItem || this.ui.isMenu ) {
var shortcutKeys=$I$(11).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.ui.menuItem, this.ui, "Menu.shortcutKeys");
if (shortcutKeys == null ) {
shortcutKeys=Clazz_array(Integer.TYPE, -1, [8]);
}var map=$I$(8).getUIInputMap$javax_swing_JComponent$I(this.ui.menuItem, 2);
if (this.lastMnemonic != 0 && map != null ) {
for (var shortcutKey, $shortcutKey = 0, $$shortcutKey = shortcutKeys; $shortcutKey<$$shortcutKey.length&&((shortcutKey=($$shortcutKey[$shortcutKey])),1);$shortcutKey++) {
map.remove$javax_swing_KeyStroke($I$(12).getKeyStroke$I$I$Z(this.lastMnemonic, shortcutKey, false));
}
}if (m != 0) {
if (map == null ) {
map=this.createInputMap$javax_swing_JComponent(this.ui.menuItem);
$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.ui.menuItem, 2, map);
}for (var i=shortcutKeys.length; --i >= 0; ) {
map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, shortcutKeys[i], false), this.ui.isMenu ? "selectMenu" : "doClick");
}
}}this.lastMnemonic=m;
if (this.ui.isMenuItem || this.ui.isMenu ) {
return;
}var map=$I$(8).getUIInputMap$javax_swing_JComponent$I(b, 2);
if (m != 0) {
if (map == null ) {
map=Clazz_new_($I$(10).c$$javax_swing_JComponent,[b]);
$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(b, 2, map);
}map.clear$();
map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, 8, false), "pressed");
map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, 8, true), "released");
map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, 0, true), "released");
} else if (map != null ) {
map.clear$();
}});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var b=e.getSource$();
this.verifyButtonClick$javax_swing_AbstractButton(b);
});
Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) {
});
Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) {
var b=e.getSource$();
var model=b.getModel$();
model.setArmed$Z(false);
model.setPressed$Z(false);
});
Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) {
});
Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) {
if ($I$(8).isLeftMouseButton$java_awt_event_MouseEvent(e)) {
var b=e.getSource$();
if (b.getUIClassID$() == "MenuUI" && (b).isTopLevelMenu$() ) {
(b).setPopupMenuVisible$Z(!(b).isPopupMenuVisible$());
var root=(b.getTopLevelAncestor$()).getRootPane$();
root.requestFocus$();
}}});
Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) {
if ($I$(8).isLeftMouseButton$java_awt_event_MouseEvent(e)) {
var b=e.getSource$();
if (C$.checkHideMenus$javax_swing_AbstractButton(b)) return;
b.doClick$I(0);
this.verifyButtonClick$javax_swing_AbstractButton(b);
}});
Clazz_newMeth(C$, 'checkHideMenus$javax_swing_AbstractButton', function (b) {
var s=b.getUIClassID$();
if (s == "MenuUI") return true;
if (s.indexOf$S("MenuItemUI") >= 0) $I$(2).hideMenusAndToolTip$();
return false;
}, 1);
Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) {
var b=e.getSource$();
var model=b.getModel$();
if (b.isRolloverEnabled$() && !$I$(8).isLeftMouseButton$java_awt_event_MouseEvent(e) ) {
model.setRollover$Z(true);
}if (model.isPressed$()) model.setArmed$Z(true);
});
Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) {
var b=e.getSource$();
var model=b.getModel$();
if (b.isRolloverEnabled$()) {
model.setRollover$Z(false);
}model.setArmed$Z(false);
});
Clazz_newMeth(C$, 'verifyButtonClick$javax_swing_AbstractButton', function (b) {
var m=b.getModel$();
var btn=this.ui.actionNode;
var state=m.isSelected$();
{
setTimeout(function(){btn && (btn.checked = state)}, 0);
}
return true;
});
Clazz_newMeth(C$, 'updateAcceleratorBinding$javax_swing_JComponent', function (jc) {
var a;
if (this.ui.isMenu && (this.ui.jc).isTopLevelMenu$() ) {
var i=(this.ui.jc).getMnemonic$();
if (i == 0) return;
a=$I$(12).getKeyStroke$I$I$Z(i, 8, false);
} else {
a=this.ui.menuItem.getAccelerator$();
}var map=$I$(8).getUIInputMap$javax_swing_JComponent$I(jc, 2);
if (map != null ) {
map.clear$();
}if (a != null ) {
if (map == null ) {
map=this.createInputMap$javax_swing_JComponent(jc);
$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(jc, 2, map);
}map.put$javax_swing_KeyStroke$O(a, "doClick");
}});
;
(function(){var C$=Clazz_newClass(P$.ButtonListener, "Actions", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'sun.swing.UIAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.menu=null;
this.force=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.force=false;
}, 1);
Clazz_newMeth(C$, 'c$$S', function (name) {
C$.superclazz.c$$S.apply(this, [name]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var b=e.getSource$();
var model=b.getModel$();
switch (this.getName$()) {
case "pressed":
model.setArmed$Z(true);
model.setPressed$Z(true);
if (!b.hasFocus$()) {
b.requestFocus$();
}break;
case "released":
model.setPressed$Z(false);
model.setArmed$Z(false);
break;
case "doClick":
var mi=e.getSource$();
$I$(1).defaultManager$().clearSelectedPath$();
if (!P$.ButtonListener.checkHideMenus$javax_swing_AbstractButton(mi)) {
mi.doClick$();
break;
}case "selectMenu":
var menu=p$1.getMenu$java_awt_event_ActionEvent.apply(this, [e]);
if (menu.isTopLevelMenu$()) {
$I$(2).hideMenusAndToolTip$();
var p=menu.getPopupMenu$();
menu.setPopupMenuVisible$Z(!p.isVisible$());
return;
}if (!$I$(3).crossMenuMnemonic) {
var pm=$I$(4).getLastPopup$();
if (pm != null && pm !== menu.getParent$() ) {
return;
}}var defaultManager=$I$(1).defaultManager$();
if (this.force) {
var cnt=menu.getParent$();
if (cnt != null && Clazz_instanceOf(cnt, "javax.swing.JMenuBar") ) {
var me;
var subElements;
subElements=menu.getPopupMenu$().getSubElements$();
if (subElements.length > 0) {
me=Clazz_array($I$(5), [4]);
me[0]=cnt;
me[1]=menu;
me[2]=menu.getPopupMenu$();
me[3]=subElements[0];
} else {
me=Clazz_array($I$(5), [3]);
me[0]=cnt;
me[1]=menu;
me[2]=menu.getPopupMenu$();
}defaultManager.setSelectedPath$javax_swing_MenuElementA(me);
}} else {
var path=defaultManager.getSelectedPath$();
if (path.length > 0 && path[path.length - 1] === menu ) {
C$.appendPath$javax_swing_MenuElementA$javax_swing_MenuElement(path, menu.getPopupMenu$());
}}break;
}
});
Clazz_newMeth(C$, 'isEnabled$O', function (sender) {
if (Clazz_instanceOf(sender, "javax.swing.JMenu")) {
return (sender).isEnabled$();
}if (Clazz_instanceOf(sender, "javax.swing.JMenuItem")) {
return (sender).isEnabled$();
}if (Clazz_instanceOf(sender, "javax.swing.AbstractButton") && !(sender).getModel$().isEnabled$() ) {
return false;
}return true;
});
Clazz_newMeth(C$, 'c$$S$javax_swing_JMenu$Z', function (key, menu, shouldForce) {
C$.superclazz.c$$S.apply(this, [key]);
C$.$init$.apply(this);
this.menu=menu;
this.force=shouldForce;
}, 1);
Clazz_newMeth(C$, 'getMenu$java_awt_event_ActionEvent', function (e) {
if (Clazz_instanceOf(e.getSource$(), "javax.swing.JMenu")) {
return e.getSource$();
}return this.menu;
}, p$1);
Clazz_newMeth(C$, 'appendPath$javax_swing_MenuElementA$javax_swing_MenuElement', function (path, elem) {
var newPath=Clazz_array($I$(5), [path.length + 1]);
System.arraycopy$O$I$O$I$I(path, 0, newPath, 0, path.length);
newPath[path.length]=elem;
$I$(1).defaultManager$().setSelectedPath$javax_swing_MenuElementA(newPath);
}, 1);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "DefaultMenuLayout", null, 'javax.swing.BoxLayout', 'javax.swing.plaf.UIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$java_awt_Container$I', function (target, axis) {
C$.superclazz.c$$java_awt_Container$I.apply(this, [target, axis]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) {
if (Clazz_instanceOf(target, "javax.swing.JPopupMenu")) {
var popupMenu=target;
if (popupMenu.getComponentCount$() == 0) {
return Clazz_new_($I$(1).c$$I$I,[0, 0]);
}}C$.superclazz.prototype.invalidateLayout$java_awt_Container.apply(this, [target]);
return C$.superclazz.prototype.preferredLayoutSize$java_awt_Container.apply(this, [target]);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.plaf.FontUIResource','javax.swing.UIDefaults','java.awt.Color','javax.swing.plaf.ColorUIResource','javax.swing.plaf.InsetsUIResource','sun.swing.SwingLazyValue',['javax.swing.plaf.BorderUIResource','.EtchedBorderUIResource'],['javax.swing.DefaultListCellRenderer','.UIResource'],'javax.swing.plaf.DimensionUIResource',['javax.swing.plaf.BorderUIResource','.EmptyBorderUIResource'],'java.awt.Dimension','Boolean',['javax.swing.UIDefaults','.LazyInputMap']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "HTML5LookAndFeel", null, 'javax.swing.LookAndFeel');
C$.dialogPlain12=null;
C$.dialogBold12=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.dialogPlain12=Clazz_new_($I$(1).c$$S$I$I,["Dialog", 0, 12]);
C$.dialogBold12=Clazz_new_($I$(1).c$$S$I$I,["Dialog", 1, 12]);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
}, 1);
Clazz_newMeth(C$, 'getDefaults$', function () {
var table=Clazz_new_($I$(2).c$$I$F,[610, 0.75]);
this.initClassDefaults$javax_swing_UIDefaults(table);
this.initSystemColorDefaults$javax_swing_UIDefaults(table);
this.initComponentDefaults$javax_swing_UIDefaults(table);
return table;
});
Clazz_newMeth(C$, 'initialize$', function () {
});
Clazz_newMeth(C$, 'installAWTEventListener$', function () {
});
Clazz_newMeth(C$, 'uninitialize$', function () {
});
Clazz_newMeth(C$, 'initClassDefaults$javax_swing_UIDefaults', function (table) {
var packageName="swingjs.plaf.";
var uiDefaults=Clazz_array(java.lang.Object, -1, ["ButtonUI", "swingjs.plaf.JSButtonUI", "CheckBoxUI", "swingjs.plaf.JSCheckBoxUI", "ColorChooserUI", "swingjs.plaf.JSColorChooserUI", "FormattedTextFieldUI", "swingjs.plaf.JSFormattedTextFieldUI", "MenuBarUI", "swingjs.plaf.JSMenuBarUI", "MenuUI", "swingjs.plaf.JSMenuUI", "MenuItemUI", "swingjs.plaf.JSMenuItemUI", "CheckBoxMenuItemUI", "swingjs.plaf.JSCheckBoxMenuItemUI", "RadioButtonMenuItemUI", "swingjs.plaf.JSRadioButtonMenuItemUI", "RadioButtonUI", "swingjs.plaf.JSRadioButtonUI", "ToggleButtonUI", "swingjs.plaf.JSToggleButtonUI", "PopupMenuUI", "swingjs.plaf.JSPopupMenuUI", "ProgressBarUI", "swingjs.plaf.JSProgressBarUI", "ScrollBarUI", "swingjs.plaf.JSScrollBarUI", "ScrollPaneUI", "swingjs.plaf.JSScrollPaneUI", "SplitPaneUI", "swingjs.plaf.JSSplitPaneUI", "SliderUI", "swingjs.plaf.JSSliderUI", "SeparatorUI", "swingjs.plaf.JSSeparatorUI", "SpinnerUI", "swingjs.plaf.JSSpinnerUI", "ToolBarSeparatorUI", "swingjs.plaf.JSToolBarSeparatorUI", "PopupMenuSeparatorUI", "swingjs.plaf.JSPopupMenuSeparatorUI", "TabbedPaneUI", "swingjs.plaf.JSTabbedPaneUI", "TextAreaUI", "swingjs.plaf.JSTextAreaUI", "TextFieldUI", "swingjs.plaf.JSTextFieldUI", "PasswordFieldUI", "swingjs.plaf.JSPasswordFieldUI", "TextPaneUI", "swingjs.plaf.JSTextPaneUI", "EditorPaneUI", "swingjs.plaf.JSEditorPaneUI", "TreeUI", "swingjs.plaf.JSTreeUI", "LabelUI", "swingjs.plaf.JSLabelUI", "ListUI", "swingjs.plaf.JSListUI", "ToolBarUI", "swingjs.plaf.JSToolBarUI", "ToolTipUI", "swingjs.plaf.JSToolTipUI", "ComboBoxUI", "swingjs.plaf.JSComboBoxUI", "TableUI", "swingjs.plaf.JSTableUI", "TableHeaderUI", "swingjs.plaf.JSTableHeaderUI", "InternalFrameUI", "swingjs.plaf.JSInternalFrameUI", "DesktopPaneUI", "swingjs.plaf.JSDesktopPaneUI", "DesktopIconUI", "swingjs.plaf.JSDesktopIconUI", "OptionPaneUI", "swingjs.plaf.JSOptionPaneUI", "PanelUI", "swingjs.plaf.JSPanelUI", "ViewportUI", "swingjs.plaf.JSViewportUI", "RootPaneUI", "swingjs.plaf.JSRootPaneUI"]);
table.putDefaults$OA(uiDefaults);
});
Clazz_newMeth(C$, 'initSystemColorDefaults$javax_swing_UIDefaults', function (table) {
var defaultSystemColors=Clazz_array(String, -1, ["window", "#FFFFFF", "windowBorder", "#000000", "windowText", "#333333", "menu", "#EEEEEE", "menuText", "#333333", "text", "#C0C0C0", "textText", "#333333", "textHighlight", "#B8CFE5", "textHighlightText", "#000000", "textInactiveText", "#808080", "control", "#EEEEEE", "controlText", "#333333", "controlHighlight", "#C0C0C0", "controlLtHighlight", "#B8CFE5", "controlShadow", "#808080", "controlDkShadow", "#000000", "scrollbar", "#E0E0E0", "info", "#FFFFE1", "infoText", "#000000"]);
this.loadSystemColors$javax_swing_UIDefaults$SA$Z(table, defaultSystemColors, this.isNativeLookAndFeel$());
});
Clazz_newMeth(C$, 'loadSystemColors$javax_swing_UIDefaults$SA$Z', function (table, systemColors, useNative) {
for (var i=0; i < systemColors.length; i+=2) {
var color=$I$(3).black;
try {
color=$I$(3).decode$S(systemColors[i + 1]);
} catch (e) {
if (Clazz_exceptionOf(e,"NumberFormatException")){
e.printStackTrace$();
} else {
throw e;
}
}
table.put$O$O(systemColors[i], Clazz_new_($I$(4).c$$java_awt_Color,[color]));
}
});
Clazz_newMeth(C$, 'initResourceBundle$javax_swing_UIDefaults', function (table) {
}, p$1);
Clazz_newMeth(C$, 'initComponentDefaults$javax_swing_UIDefaults', function (table) {
p$1.initResourceBundle$javax_swing_UIDefaults.apply(this, [table]);
var oneThousand= new Long(1000);
var twelve= new Integer(12);
var fontPlain= new Integer(0);
var serifPlain12=Clazz_new_($I$(1).c$$S$I$I,["Serif", 0, 12]);
var sansSerifPlain12=Clazz_new_($I$(1).c$$S$I$I,["SansSerif", 0, 12]);
var monospacedPlain12=Clazz_new_($I$(1).c$$S$I$I,["Monospaced", 0, 12]);
var red=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).red]);
var black=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).black]);
var white=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).white]);
var gray=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).gray]);
var darkGray=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).darkGray]);
var scrollBarTrack=Clazz_new_($I$(4).c$$I$I$I,[224, 224, 224]);
var control=table.getColor$O("control");
var controlDkShadow=table.getColor$O("controlDkShadow");
var controlHighlight=table.getColor$O("controlHighlight");
var controlLtHighlight=table.getColor$O("controlLtHighlight");
var controlShadow=table.getColor$O("controlShadow");
var controlText=table.getColor$O("controlText");
var menu=table.getColor$O("menu");
var menuText=table.getColor$O("menuText");
var textHighlight=table.getColor$O("textHighlight");
var textHighlightText=table.getColor$O("textHighlightText");
var disabledTextColor=table.getColor$O("textInactiveText");
var textText=table.getColor$O("textText");
var window=table.getColor$O("window");
var zeroInsets=Clazz_new_($I$(5).c$$I$I$I$I,[0, 0, 0, 0]);
var twoInsets=Clazz_new_($I$(5).c$$I$I$I$I,[2, 2, 2, 2]);
var threeInsets=Clazz_new_($I$(5).c$$I$I$I$I,[3, 3, 3, 3]);
var marginBorder=Clazz_new_($I$(6).c$$S,["javax.swing.plaf.basic.BasicBorders$MarginBorder"]);
var etchedBorder=Clazz_new_($I$(7));
var loweredBevelBorder=Clazz_new_($I$(6).c$$S$S,["javax.swing.plaf.BorderUIResource", "getLoweredBevelBorderUIResource"]);
var blackLineBorder=Clazz_new_($I$(6).c$$S$S,["javax.swing.plaf.BorderUIResource", "getBlackLineBorderUIResource"]);
var buttonBorder=Clazz_new_($I$(6).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getButtonBorder"]);
var buttonToggleBorder=Clazz_new_($I$(6).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getToggleButtonBorder"]);
var radioButtonBorder=Clazz_new_($I$(6).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getRadioButtonBorder"]);
var listCellRendererActiveValue=((P$.HTML5LookAndFeel$1||
(function(){var C$=Clazz_newClass(P$, "HTML5LookAndFeel$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, [['javax.swing.UIDefaults','javax.swing.UIDefaults.ActiveValue']], 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['createValue$javax_swing_UIDefaults','createValue$'], function (table) {
return Clazz_new_($I$(8));
});
})()
), Clazz_new_(P$.HTML5LookAndFeel$1.$init$, [this, null]));
var optionPaneMinimumSize=Clazz_new_($I$(9).c$$I$I,[262, 90]);
var zero= new Integer(0);
var zeroBorder=Clazz_new_($I$(6).c$$S$OA,["javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", Clazz_array(java.lang.Object, -1, [zero, zero, zero, zero])]);
var optionPaneBorder=Clazz_new_($I$(10).c$$I$I$I$I,[10, 10, 12, 10]);
var optionPaneButtonAreaBorder=Clazz_new_($I$(6).c$$S$OA,["javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", Clazz_array(java.lang.Object, -1, [ new Integer(6), zero, zero, zero])]);
var toolBarSeparatorSize=Clazz_new_($I$(9).c$$I$I,[10, 10]);
var tabbedPaneTabInsets=Clazz_new_($I$(5).c$$I$I$I$I,[4, 4, 8, 4]);
var tabbedPaneTabPadInsets=Clazz_new_($I$(5).c$$I$I$I$I,[2, 2, 2, 1]);
var tabbedPaneTabAreaInsets=Clazz_new_($I$(5).c$$I$I$I$I,[3, 2, 0, 2]);
var tabbedPaneContentBorderInsets=Clazz_new_($I$(5).c$$I$I$I$I,[2, 2, 3, 3]);
var textFieldBorder=Clazz_new_($I$(6).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"]);
var editorMargin=threeInsets;
var four= new Integer(4);
var defaults=Clazz_array(java.lang.Object, -1, ["*.font", C$.dialogPlain12, "*.background", control, "*.foreground", controlText, "Button.background", control, "Button.foreground", controlText, "Button.inactiveForeground", disabledTextColor, "Button.border", buttonBorder, "Button.margin", Clazz_new_($I$(5).c$$I$I$I$I,[2, 14, 2, 14]), "Button.textIconGap", four, "ToggleButton.background", control, "ToggleButton.foreground", controlText, "ToggleButton.highlight", controlLtHighlight, "ToggleButton.border", buttonBorder, "ToggleButton.margin", Clazz_new_($I$(5).c$$I$I$I$I,[2, 14, 2, 14]), "ToggleButton.textIconGap", four, "ToggleButton.textShiftOffset", zero, "RadioButton.background", control, "RadioButton.foreground", controlText, "RadioButton.border", buttonBorder, "RadioButton.margin", twoInsets, "RadioButton.textIconGap", four, "RadioButton.textShiftOffset", zero, "CheckBox.background", control, "CheckBox.foreground", controlText, "CheckBox.border", buttonBorder, "CheckBox.margin", twoInsets, "CheckBox.textIconGap", four, "CheckBox.textShiftOffset", zero, "ColorChooser.background", control, "ColorChooser.foreground", controlText, "ColorChooser.swatchesSwatchSize", Clazz_new_($I$(11).c$$I$I,[10, 10]), "ColorChooser.swatchesRecentSwatchSize", Clazz_new_($I$(11).c$$I$I,[10, 10]), "ColorChooser.swatchesDefaultRecentColor", control, "ComboBox.font", sansSerifPlain12, "ComboBox.background", window, "ComboBox.foreground", textText, "ComboBox.selectionBackground", textHighlight, "ComboBox.selectionForeground", textHighlightText, "ComboBox.disabledBackground", control, "ComboBox.disabledForeground", disabledTextColor, "ComboBox.timeFactor", oneThousand, "ComboBox.isEnterSelectablePopup", $I$(12).FALSE, "FileChooser.readOnly", $I$(12).FALSE, "InternalFrameTitlePane.iconifyButtonOpacity", $I$(12).TRUE, "InternalFrameTitlePane.maximizeButtonOpacity", $I$(12).TRUE, "InternalFrameTitlePane.closeButtonOpacity", $I$(12).TRUE, "Desktop.minOnScreenInsets", threeInsets, "Desktop.background", table.get$O("desktop"), "Label.font", C$.dialogBold12, "Label.background", control, "Label.foreground", controlText, "Label.inactiveForeground", disabledTextColor, "Label.border", null, "List.background", window, "List.foreground", textText, "List.selectionBackground", textHighlight, "List.selectionForeground", textHighlightText, "List.cellRenderer", listCellRendererActiveValue, "List.timeFactor", oneThousand, "List.focusInputMap", Clazz_new_($I$(13).c$$OA,[Clazz_array(java.lang.Object, -1, ["ctrl C", "copy", "ctrl V", "paste", "ctrl X", "cut", "COPY", "copy", "PASTE", "paste", "CUT", "cut", "control INSERT", "copy", "shift INSERT", "paste", "shift DELETE", "cut", "UP", "selectPreviousRow", "KP_UP", "selectPreviousRow", "shift UP", "selectPreviousRowExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift UP", "selectPreviousRowExtendSelection", "ctrl shift KP_UP", "selectPreviousRowExtendSelection", "ctrl UP", "selectPreviousRowChangeLead", "ctrl KP_UP", "selectPreviousRowChangeLead", "DOWN", "selectNextRow", "KP_DOWN", "selectNextRow", "shift DOWN", "selectNextRowExtendSelection", "shift KP_DOWN", "selectNextRowExtendSelection", "ctrl shift DOWN", "selectNextRowExtendSelection", "ctrl shift KP_DOWN", "selectNextRowExtendSelection", "ctrl DOWN", "selectNextRowChangeLead", "ctrl KP_DOWN", "selectNextRowChangeLead", "LEFT", "selectPreviousColumn", "KP_LEFT", "selectPreviousColumn", "shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl shift LEFT", "selectPreviousColumnExtendSelection", "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl LEFT", "selectPreviousColumnChangeLead", "ctrl KP_LEFT", "selectPreviousColumnChangeLead", "RIGHT", "selectNextColumn", "KP_RIGHT", "selectNextColumn", "shift RIGHT", "selectNextColumnExtendSelection", "shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl shift RIGHT", "selectNextColumnExtendSelection", "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl RIGHT", "selectNextColumnChangeLead", "ctrl KP_RIGHT", "selectNextColumnChangeLead", "HOME", "selectFirstRow", "shift HOME", "selectFirstRowExtendSelection", "ctrl shift HOME", "selectFirstRowExtendSelection", "ctrl HOME", "selectFirstRowChangeLead", "END", "selectLastRow", "shift END", "selectLastRowExtendSelection", "ctrl shift END", "selectLastRowExtendSelection", "ctrl END", "selectLastRowChangeLead", "PAGE_UP", "scrollUp", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN", "scrollDownExtendSelection", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead", "ctrl A", "selectAll", "ctrl SLASH", "selectAll", "ctrl BACK_SLASH", "clearSelection", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "ctrl shift SPACE", "moveSelectionTo"])]), "List.focusInputMap.RightToLeft", Clazz_new_($I$(13).c$$OA,[Clazz_array(java.lang.Object, -1, ["LEFT", "selectNextColumn", "KP_LEFT", "selectNextColumn", "shift LEFT", "selectNextColumnExtendSelection", "shift KP_LEFT", "selectNextColumnExtendSelection", "ctrl shift LEFT", "selectNextColumnExtendSelection", "ctrl shift KP_LEFT", "selectNextColumnExtendSelection", "ctrl LEFT", "selectNextColumnChangeLead", "ctrl KP_LEFT", "selectNextColumnChangeLead", "RIGHT", "selectPreviousColumn", "KP_RIGHT", "selectPreviousColumn", "shift RIGHT", "selectPreviousColumnExtendSelection", "shift KP_RIGHT", "selectPreviousColumnExtendSelection", "ctrl shift RIGHT", "selectPreviousColumnExtendSelection", "ctrl shift KP_RIGHT", "selectPreviousColumnExtendSelection", "ctrl RIGHT", "selectPreviousColumnChangeLead", "ctrl KP_RIGHT", "selectPreviousColumnChangeLead"])]), "MenuBar.font", C$.dialogPlain12, "MenuBar.background", menu, "MenuBar.foreground", menuText, "MenuItem.font", C$.dialogPlain12, "MenuItem.background", menu, "MenuItem.foreground", menuText, "MenuItem.border", marginBorder, "MenuItem.borderPainted", $I$(12).FALSE, "MenuItem.margin", twoInsets, "RadioButtonMenuItem.font", C$.dialogPlain12, "RadioButtonMenuItem.background", menu, "RadioButtonMenuItem.foreground", menuText, "RadioButtonMenuItem.border", marginBorder, "RadioButtonMenuItem.margin", twoInsets, "CheckBoxMenuItem.font", C$.dialogPlain12, "CheckBoxMenuItem.background", menu, "CheckBoxMenuItem.foreground", menuText, "CheckBoxMenuItem.border", marginBorder, "CheckBoxMenuItem.borderPainted", $I$(12).FALSE, "CheckBoxMenuItem.margin", twoInsets, "Menu.background", menu, "Menu.foreground", menuText, "Menu.border", marginBorder, "Menu.borderPainted", $I$(12).FALSE, "Menu.margin", twoInsets, "Menu.crossMenuMnemonic", $I$(12).FALSE, "PopupMenu.background", menu, "PopupMenu.foreground", menuText, "PopupMenu.selectedWindowInputMapBindings", Clazz_array(java.lang.Object, -1, ["ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "ctrl ENTER", "return", "SPACE", "return"]), "PopupMenu.consumeEventOnClose", $I$(12).FALSE, "OptionPane.yesButtonText", "Yes", "OptionPane.noButtonText", "No", "OptionPane.cancelButtonText", "Cancel", "OptionPane.okButtonText", "OK", "OptionPane.font", C$.dialogPlain12, "OptionPane.background", control, "OptionPane.foreground", controlText, "OptionPane.messageForeground", controlText, "OptionPane.border", optionPaneBorder, "OptionPane.messageAreaBorder", zeroBorder, "OptionPane.buttonAreaBorder", optionPaneButtonAreaBorder, "OptionPane.minimumSize", optionPaneMinimumSize, "Panel.font", C$.dialogPlain12, "Panel.background", control, "Panel.foreground", textText, "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", zero, "ProgressBar.repaintInterval", new Integer(50), "ProgressBar.cycleTime", new Integer(3000), "ProgressBar.horizontalSize", Clazz_new_($I$(9).c$$I$I,[146, 12]), "ProgressBar.verticalSize", Clazz_new_($I$(9).c$$I$I,[12, 146]), "ScrollBar.background", scrollBarTrack, "ScrollBar.foreground", control, "ScrollBar.width", new Integer(16), "ScrollPane.background", control, "ScrollPane.foreground", controlText, "ScrollPane.border", textFieldBorder, "Viewport.background", control, "Viewport.foreground", textText, "Slider.font", C$.dialogPlain12, "Slider.foreground", control, "Slider.background", control, "Slider.horizontalSize", Clazz_new_($I$(11).c$$I$I,[200, 21]), "Slider.verticalSize", Clazz_new_($I$(11).c$$I$I,[21, 200]), "Slider.minimumHorizontalSize", Clazz_new_($I$(11).c$$I$I,[36, 21]), "Slider.minimumVerticalSize", Clazz_new_($I$(11).c$$I$I,[21, 36]), "Spinner.font", sansSerifPlain12, "Spinner.background", control, "Spinner.foreground", control, "Spinner.arrowButtonSize", Clazz_new_($I$(11).c$$I$I,[16, 5]), "SplitPane.background", control, "SplitPane.dividerSize", new Integer(7), "SplitPaneDivider.draggingColor", darkGray, "TabbedPane.font", C$.dialogPlain12, "TabbedPane.background", control, "TabbedPane.foreground", controlText, "TabbedPane.highlight", controlLtHighlight, "TabbedPane.light", controlHighlight, "TabbedPane.shadow", controlShadow, "TabbedPane.darkShadow", controlDkShadow, "TabbedPane.selected", null, "TabbedPane.textIconGap", four, "TabbedPane.tabsOverlapBorder", $I$(12).FALSE, "TabbedPane.labelShift", new Integer(1), "TabbedPane.selectedLabelShift", new Integer(-1), "TabbedPane.tabInsets", tabbedPaneTabInsets, "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets, "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets, "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets, "TabbedPane.tabRunOverlay", new Integer(2), "Table.font", C$.dialogPlain12, "Table.foreground", controlText, "Table.background", white, "Table.selectionForeground", textHighlightText, "Table.selectionBackground", textHighlight, "Table.dropLineColor", controlShadow, "Table.dropLineShortColor", black, "Table.gridColor", gray, "Table.focusCellBackground", window, "Table.focusCellForeground", controlText, "Table.scrollPaneBorder", loweredBevelBorder, "Table.sortIconColor", controlShadow, "TableHeader.font", C$.dialogPlain12, "TableHeader.foreground", controlText, "TableHeader.background", control, "TextField.font", sansSerifPlain12, "TextField.background", window, "TextField.foreground", textText, "TextField.shadow", controlShadow, "TextField.darkShadow", controlDkShadow, "TextField.light", controlHighlight, "TextField.highlight", controlLtHighlight, "TextField.inactiveForeground", disabledTextColor, "TextField.inactiveBackground", control, "TextField.margin", zeroInsets, "FormattedTextField.font", sansSerifPlain12, "FormattedTextField.background", window, "FormattedTextField.foreground", textText, "FormattedTextField.inactiveForeground", disabledTextColor, "FormattedTextField.inactiveBackground", control, "FormattedTextField.caretForeground", textText, "FormattedTextField.margin", zeroInsets, "PasswordField.font", monospacedPlain12, "PasswordField.background", window, "PasswordField.foreground", textText, "PasswordField.inactiveForeground", disabledTextColor, "PasswordField.inactiveBackground", control, "PasswordField.margin", zeroInsets, "PasswordField.echoChar", new Character('*'), "TextArea.font", sansSerifPlain12, "TextArea.background", window, "TextArea.foreground", textText, "TextArea.inactiveForeground", disabledTextColor, "TextArea.margin", zeroInsets, "TextPane.font", serifPlain12, "TextPane.background", white, "TextPane.foreground", textText, "TextPane.inactiveForeground", disabledTextColor, "TextPane.margin", editorMargin, "EditorPane.font", serifPlain12, "EditorPane.background", white, "EditorPane.foreground", textText, "EditorPane.inactiveForeground", disabledTextColor, "EditorPane.margin", editorMargin, "TitledBorder.titleColor", controlText, "TitledBorder.border", etchedBorder, "ToolBar.font", C$.dialogPlain12, "ToolBar.background", control, "ToolBar.foreground", controlText, "ToolBar.shadow", controlShadow, "ToolBar.darkShadow", controlDkShadow, "ToolBar.light", controlHighlight, "ToolBar.highlight", controlLtHighlight, "ToolBar.dockingBackground", control, "ToolBar.dockingForeground", red, "ToolBar.floatingBackground", control, "ToolBar.floatingForeground", darkGray, "ToolBar.border", etchedBorder, "ToolBar.separatorSize", toolBarSeparatorSize, "ToolTip.font", sansSerifPlain12, "ToolTip.background", table.get$O("info"), "ToolTip.foreground", table.get$O("infoText"), "ToolTip.border", blackLineBorder, "Tree.paintLines", $I$(12).TRUE, "Tree.lineTypeDashed", $I$(12).FALSE, "Tree.background", window, "Tree.foreground", textText, "Tree.hash", gray, "Tree.textForeground", textText, "Tree.textBackground", table.get$O("text"), "Tree.selectionForeground", textHighlightText, "Tree.selectionBackground", textHighlight, "Tree.leftChildIndent", new Integer(7), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", $I$(12).TRUE, "Tree.timeFactor", oneThousand]);
table.putDefaults$OA(defaults);
});
Clazz_newMeth(C$, 'getName$', function () {
return "SwingJS";
});
Clazz_newMeth(C$, 'getID$', function () {
return "SwingJS";
});
Clazz_newMeth(C$, 'getDescription$', function () {
return "SwingJS L&F";
});
Clazz_newMeth(C$, 'isNativeLookAndFeel$', function () {
return true;
});
Clazz_newMeth(C$, 'isSupportedLookAndFeel$', function () {
return true;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'javax.swing.LookAndFeel']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSAppletUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
this.addClass$swingjs_api_js_DOMNode$S(this.domNode, "swingjs-window");
}return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
$I$(1).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, null, null, "Panel.font");
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','javax.swing.BorderFactory','swingjs.plaf.ButtonListener','javax.swing.UIManager','javax.swing.LookAndFeel','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSButtonUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.menuItem=null;
this.button=null;
this.shiftOffset=0;
this.defaultTextShiftOffset=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.shiftOffset=0;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
this.isSimpleButton=true;
this.allowPaintedBackground=false;
if (this.domNode == null ) {
this.setDoPropagate$();
this.domNode=this.enableNode=this.buttonNode=P$.JSComponentUI.newDOMObject$S$S$SA("button", this.id + "_dom", ["type", "button"]);
this.isFocusable$();
this.setDataFocusComponent$swingjs_api_js_DOMNode(this.focusNode);
$I$(1).setPositionAbsolute(this.domNode);
this.iconNode=null;
this.createButton$();
}this.setupButton$();
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'createButton$', function () {
this.addCentering$swingjs_api_js_DOMNode(this.buttonNode);
this.setDataComponent$swingjs_api_js_DOMNode(this.buttonNode);
this.setDataComponent$swingjs_api_js_DOMNode(this.iconNode);
this.setDataComponent$swingjs_api_js_DOMNode(this.textNode);
this.setEnabled$Z(this.c.isEnabled$());
});
Clazz_newMeth(C$, 'createItem$S$swingjs_api_js_DOMNode', function (type, buttonNode) {
var text=this.button.getText$();
var icon=this.button.getIcon$();
var gap=this.button.getIconTextGap$();
this.isMenuSep=(("|").equals$O(text) || ("-").equals$O(text) );
if (this.isMenuSep) {
text=null;
}this.itemNode=P$.JSComponentUI.newDOMObject$S$S$SA("li", this.id, []);
if (text == null && icon == null ) return this.itemNode;
this.menuAnchorNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_a", []);
if (type != "_bar") {
this.addClass$swingjs_api_js_DOMNode$S(this.menuAnchorNode, "a");
$I$(1).setStyles(this.menuAnchorNode, ["margin", "1px 2px 1px 2px"]);
}this.itemNode.appendChild(this.menuAnchorNode);
this.setDoPropagate$();
if (buttonNode == null ) {
this.addCentering$swingjs_api_js_DOMNode(this.menuAnchorNode);
this.enableNode=this.itemNode;
this.setIconAndText$S$javax_swing_Icon$I$S("btn", icon, gap, text);
} else {
this.menuAnchorNode.appendChild(buttonNode);
this.setMenuItem$swingjs_api_js_DOMNode(buttonNode);
}this.setMenuItem$swingjs_api_js_DOMNode(this.menuAnchorNode);
this.setMenuItem$();
this.setDataComponent$swingjs_api_js_DOMNode(this.menuAnchorNode);
this.setDataComponent$swingjs_api_js_DOMNode(this.itemNode);
return this.itemNode;
});
Clazz_newMeth(C$, 'setMenuItem$', function () {
this.setMenuItem$swingjs_api_js_DOMNode(this.itemNode);
this.setMenuItem$swingjs_api_js_DOMNode(this.iconNode);
this.setMenuItem$swingjs_api_js_DOMNode(this.textNode);
this.setMenuItem$swingjs_api_js_DOMNode(this.centeringNode);
});
Clazz_newMeth(C$, 'enableNode$swingjs_api_js_DOMNode$Z', function (node, b) {
if (this.isMenuItem) {
if (b) {
this.removeClass$swingjs_api_js_DOMNode$S(node, "ui-j2smenu-disabled ui-state-disabled");
} else {
this.addClass$swingjs_api_js_DOMNode$S(node, "ui-j2smenu-disabled ui-state-disabled");
}} else {
C$.superclazz.prototype.enableNode$swingjs_api_js_DOMNode$Z.apply(this, [node, b]);
}});
Clazz_newMeth(C$, 'setupButton$', function () {
this.setIconAndText$S$javax_swing_Icon$I$S("button", this.button.getIcon$(), this.button.getIconTextGap$(), this.button.getText$());
if (this.button.getBorder$() == null || this.button.getBorder$() === $I$(2).emptyBorder ) $I$(1).setStyles(this.buttonNode, ["border", "none"]);
else if (this.button.getBorder$() === $I$(2).html5Border ) $I$(1).setStyles(this.buttonNode, ["border", null]);
if (!this.isMenuSep) {
this.setMnemonic$I(-1);
this.setAlignments$javax_swing_AbstractButton$Z(this.button, false);
}});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
if (this.actionNode == null ) if (this.menuItem == null ) {
switch (eventType) {
case 402:
var keyCode=jQueryEvent.keyCode ||0;
if (keyCode == 13 || keyCode == 32 ) {
this.button.doClick$();
return true;
}}
} else {
switch (eventType) {
case 502:
this.menuItem.doClick$I(0);
return true;
}
}return false;
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.button=jc;
this.installDefaults$javax_swing_AbstractButton(this.button);
this.installListeners$javax_swing_AbstractButton(this.button);
this.installKeyboardActions$javax_swing_AbstractButton(this.button);
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
this.uninstallKeyboardActions$javax_swing_AbstractButton(this.button);
this.uninstallListeners$javax_swing_AbstractButton(this.button);
});
Clazz_newMeth(C$, 'installListeners$javax_swing_AbstractButton', function (b) {
this.buttonListener=Clazz_new_($I$(3).c$$swingjs_plaf_JSButtonUI,[this]);
if (this.buttonListener != null ) {
b.addMouseListener$java_awt_event_MouseListener(this.buttonListener);
b.addMouseMotionListener$java_awt_event_MouseMotionListener(this.buttonListener);
b.addFocusListener$java_awt_event_FocusListener(this.buttonListener);
b.addPropertyChangeListener$java_beans_PropertyChangeListener(this.buttonListener);
b.addChangeListener$javax_swing_event_ChangeListener(this.buttonListener);
}});
Clazz_newMeth(C$, 'uninstallListeners$javax_swing_AbstractButton', function (b) {
var listener=this.getButtonListener$javax_swing_AbstractButton(b);
if (listener != null ) {
b.removeMouseListener$java_awt_event_MouseListener(listener);
b.removeMouseMotionListener$java_awt_event_MouseMotionListener(listener);
b.removeFocusListener$java_awt_event_FocusListener(listener);
b.removeChangeListener$javax_swing_event_ChangeListener(listener);
b.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
}});
Clazz_newMeth(C$, 'installKeyboardActions$javax_swing_AbstractButton', function (b) {
var listener=this.getButtonListener$javax_swing_AbstractButton(b);
if (listener != null ) {
listener.installKeyboardActions$javax_swing_JComponent(b);
}});
Clazz_newMeth(C$, 'uninstallKeyboardActions$javax_swing_AbstractButton', function (b) {
var listener=this.getButtonListener$javax_swing_AbstractButton(b);
if (listener != null ) {
listener.uninstallKeyboardActions$javax_swing_JComponent(b);
}});
Clazz_newMeth(C$, 'getButtonListener$javax_swing_AbstractButton', function (b) {
var listeners=b.getMouseMotionListeners$();
if (listeners != null ) {
for (var counter=0; counter < listeners.length; counter++) {
if (Clazz_instanceOf(listeners[counter], "swingjs.plaf.ButtonListener")) {
return listeners[counter];
}}
}return null;
});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "Button";
});
Clazz_newMeth(C$, 'installDefaults$javax_swing_AbstractButton', function (b) {
var pp=this.getPropertyPrefix$();
this.defaultTextShiftOffset=$I$(4).getInt$O(pp + ".textShiftOffset");
if (b.getMargin$() == null || (Clazz_instanceOf(b.getMargin$(), "javax.swing.plaf.UIResource")) ) {
b.setMargin$java_awt_Insets($I$(4).getInsets$O(pp + ".margin"));
}$I$(5).installColorsAndFont$javax_swing_JComponent$S$S$S(b, pp + ".background", pp + ".foreground", pp + ".font");
$I$(5).installBorder$javax_swing_JComponent$S(b, pp + ".border");
$I$(5).installProperty$javax_swing_JComponent$S$O(b, "iconTextGap", new Integer(4));
});
Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) {
return Clazz_new_($I$(6).c$$I$I,[(this.itemNode == null ? 0 : 10), 0]);
});
Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) {
if (this.isSimpleButton) {
var i=this.getButtonOuterInsets$javax_swing_AbstractButton(this.button);
if (!(Clazz_instanceOf(this.button.getBorder$(), "javax.swing.plaf.UIResource"))) {
$I$(1).setTopLeftAbsolute(this.domNode, i.left, i.top);
$I$(1).setSize(this.domNode, width - i.left - i.right , height - i.top - i.bottom );
$I$(1).setStyles(this.domNode, ["border", i.left + i.right + i.top + i.bottom > 0 ? "none" : null]);
}}});
Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) {
this.setAlignments$javax_swing_AbstractButton$Z(this.button, !addCSS);
return this.setHTMLSize1$swingjs_api_js_DOMNode$Z$Z(obj, addCSS, true);
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
this.imagePersists=true;
C$.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this, [g, c]);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSCheckBoxMenuItemUI", null, 'swingjs.plaf.JSCheckBoxUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.isMenuItem=true;
this.actionItemOffset=-7;
}, 1);
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "CheckBoxMenuItem";
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.menuItem=jc;
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSCheckBoxUI", null, 'swingjs.plaf.JSRadioButtonUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return (this.isAWT && (this.jc).isRadio$() ? "RadioButton" : "CheckBox");
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.api.js.DOMNode','javajs.util.PT','swingjs.plaf.JSComponentUI','javax.swing.LookAndFeel','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSComboBoxUI", null, 'swingjs.plaf.JSLightweightUI', ['java.awt.event.ItemListener', 'javax.swing.event.ListDataListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.comboBox=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.isContainer=true;
this.allowPaintedBackground=false;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
this.comboBox=this.jc;
if (this.domNode == null ) {
this.domNode=this.focusNode=$I$(1).setStyles(P$.JSComponentUI.newDOMObject$S$S$SA("select", this.id, []), ["padding", "0px 0px", "lineHeight", "0.8", "box-sizing", "border-box"]);
this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.domNode);
this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "change", -1);
this.addJQueryFocusCallbacks$();
}p$1.populateList.apply(this, []);
p$1.checkEnabled.apply(this, []);
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
switch (e.getPropertyName$()) {
case "updateSwingJS":
p$1.updateJSCombo.apply(this, []);
return;
}
C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'updateJSCombo', function () {
$I$(1).setAttrInt(this.domNode, "selectedIndex", this.comboBox.getSelectedIndex$());
}, p$1);
Clazz_newMeth(C$, 'checkEnabled', function () {
if (this.comboBox.isEnabled$()) this.domNode.removeAttribute("disabled");
else $I$(1).setAttr(this.domNode, "disabled", "TRUE");
}, p$1);
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
p$1.checkEnabled.apply(this, []);
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
switch (eventType) {
case -1:
var index=$I$(2).parseInt$S("" + $I$(1).getAttr(this.domNode, "selectedIndex"));
this.comboBox._setTrigger$Z(true);
this.comboBox.setSelectedIndex$I(index);
this.comboBox._setTrigger$Z(false);
break;
}
return true;
});
Clazz_newMeth(C$, 'populateList', function () {
this.$$O(this.domNode).empty();
var n=this.comboBox.getItemCount$();
var iselect=this.comboBox.getSelectedIndex$();
for (var i=0; i < n; i++) {
var item=this.comboBox.getItemAt$I(i).toString();
var option=$I$(1).createElement("option", this.id + "_" + (++$I$(3).incr) );
$I$(1).setAttr(option, "innerHTML", item);
if (i == iselect) $I$(1).setAttr(option, "selected", "TRUE");
this.domNode.appendChild(option);
}
}, p$1);
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.comboBox=jc;
this.installListeners$();
$I$(4).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "ComboBox.background", "ComboBox.foreground", "ComboBox.font");
});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "ComboBox";
});
Clazz_newMeth(C$, 'getDisabledColors$S', function (pp) {
this.inactiveBackground=$I$(5).getColor$O(pp + "disabledBackground");
this.inactiveForeground=$I$(5).getColor$O(pp + "disabledForeground");
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
this.uninstallListeners$();
});
Clazz_newMeth(C$, 'installListeners$', function () {
this.comboBox.addItemListener$java_awt_event_ItemListener(this);
if (this.comboBox.getModel$() != null ) {
this.comboBox.getModel$().addListDataListener$javax_swing_event_ListDataListener(this);
}});
Clazz_newMeth(C$, 'uninstallListeners$', function () {
this.comboBox.removeItemListener$java_awt_event_ItemListener(this);
if (this.comboBox.getModel$() != null ) this.comboBox.getModel$().removeListDataListener$javax_swing_event_ListDataListener(this);
});
Clazz_newMeth(C$, 'setPopupVisible$javax_swing_JComboBox$Z', function (c, v) {
});
Clazz_newMeth(C$, 'isPopupVisible$javax_swing_JComboBox', function (c) {
return false;
});
Clazz_newMeth(C$, 'isFocusTraversable$javax_swing_JComboBox', function (c) {
return true;
});
Clazz_newMeth(C$, 'intervalAdded$javax_swing_event_ListDataEvent', function (e) {
this.revalidate$();
});
Clazz_newMeth(C$, 'intervalRemoved$javax_swing_event_ListDataEvent', function (e) {
this.revalidate$();
});
Clazz_newMeth(C$, 'contentsChanged$javax_swing_event_ListDataEvent', function (e) {
this.revalidate$();
});
Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) {
p$1.updateJSCombo.apply(this, []);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'java.awt.Color','swingjs.JSUtil','java.awt.Insets','swingjs.api.js.DOMNode','swingjs.JSToolkit','swingjs.plaf.JSPopupMenuUI','javax.swing.ToolTipManager','swingjs.JSFocusPeer','java.awt.JSComponent','java.awt.Dimension',['java.awt.Component','.BaselineResizeBehavior'],'javax.swing.UIManager','javajs.util.PT','java.awt.Rectangle','swingjs.plaf.HTML5LookAndFeel','java.awt.event.KeyEvent','java.awt.Point','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSComponentUI", null, 'javax.swing.plaf.ComponentUI', ['java.awt.peer.ContainerPeer', 'swingjs.plaf.JSEventHandler', 'java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener', 'java.awt.dnd.peer.DropTargetPeer']);
C$.rootPaneColor=null;
C$.incr=0;
C$.borderTest=false;
C$.debugging=false;
C$.frameZ=0;
C$.jquery=null;
C$.isMenuOpen=false;
C$.zeroInsets=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.rootPaneColor=Clazz_new_($I$(1).c$$I$I$I,[238, 238, 238]);
C$.frameZ=19000;
C$.jquery=$I$(2).getJQuery$();
C$.zeroInsets=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.J2S=null;
this.isNull=false;
this.id=null;
this.c=null;
this.jc=null;
this.label=null;
this.targetParent=null;
this.menu=null;
this.outerNode=null;
this.innerNode=null;
this.domNode=null;
this.centeringNode=null;
this.imageNode=null;
this.actionNode=null;
this.buttonNode=null;
this.enableNode=null;
this.enableNodes=null;
this.iconNode=null;
this.textNode=null;
this.accelNode=null;
this.valueNode=null;
this.focusNode=null;
this.itemNode=null;
this.containerNode=null;
this.textAlign=null;
this.iconHeight=0;
this.buttonListener=null;
this.menuAnchorNode=null;
this.draggable=false;
this.num=0;
this.isAWT=false;
this.isDummyFrame=false;
this.isTainted=false;
this.isPaintedOnly=false;
this.boundsSet=false;
this.isMenuItem=false;
this.isMenuSep=false;
this.isMenu=false;
this.isSimpleButton=false;
this.isLabel=false;
this.x=0;
this.y=0;
this.preferredSize=null;
this.jsActualWidth=0;
this.jsActualHeight=0;
this.dropTarget=null;
this.actionItemOffset=0;
this.mnemonicIndex=0;
this.isContainer=false;
this.isWindow=false;
this.isRootPane=false;
this.isPopupMenu=false;
this.isContentPane=false;
this.isPanel=false;
this.isDesktop=false;
this.isTable=false;
this.parent=null;
this.currentText=null;
this.currentIcon=null;
this.currentGap=0;
this.scrollPaneUI=null;
this.classID=null;
this.body=null;
this.applet=null;
this.needPreferred=false;
this.width=0;
this.height=0;
this.waitImage=null;
this.colorUNKNOWN=null;
this.inactiveForeground=null;
this.inactiveBackground=null;
this.enabled=false;
this.isHTML=false;
this.allowTextAlignment=false;
this.menuTimer=0;
this.j2sDoPropagate=false;
this.notImplemented=false;
this.keysEnabled=false;
this.mnemonic=0;
this.awttop=null;
this.awtPeerBG=null;
this.awtPeerFG=null;
this.layingOut=false;
this.isDisposed=false;
this.cellComponent=null;
this.cellWidth=0;
this.cellHeight=0;
this.tableID=null;
this.isUIDisabled=false;
this.actualHeight=0;
this.actualWidth=0;
this.allowPaintedBackground=false;
this.imagePersists=false;
this.allowDivOverflow=false;
this.ignoreFocus=false;
this.embeddingNode=null;
this.insets=null;
this.icon=null;
this.viewR=null;
this.iconR=null;
this.textR=null;
this.preferredDim=null;
this.isLaidOut=false;
this.backgroundColor=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.J2S=$I$(2).J2S;
this.isTainted=true;
this.dropTarget=this;
this.mnemonicIndex=-1;
this.currentGap=2147483647;
this.colorUNKNOWN=Clazz_new_($I$(1));
this.inactiveForeground=this.colorUNKNOWN;
this.inactiveBackground=this.colorUNKNOWN;
this.enabled=true;
this.allowTextAlignment=true;
this.allowPaintedBackground=true;
}, 1);
Clazz_newMeth(C$, 'setTargetParent$javax_swing_JComponent', function (table) {
this.targetParent=table;
});
Clazz_newMeth(C$, 'getTargetParent$', function () {
return this.targetParent;
});
Clazz_newMeth(C$, 'saveCellNodes$swingjs_api_js_DOMNode', function (td) {
var nodes=Clazz_array($I$(4), -1, [this.domNode, this.innerNode, this.centeringNode, this.iconNode, this.textNode, this.accelNode, this.buttonNode, this.enableNode, (this.enableNodes == null ? null : this.enableNodes[0]), (this.enableNodes == null ? null : this.enableNodes[1]), (this.enableNodes == null ? null : this.enableNodes[2]), this.focusNode, this.actionNode, this.valueNode]);
$I$(4).setAttr(td, "data-nodes", nodes);
p$1.updateTableCell$swingjs_api_js_DOMNode.apply(this, [td]);
});
Clazz_newMeth(C$, 'updateTableCell$swingjs_api_js_DOMNode', function (td) {
var node=$I$(4).firstChild(td);
if (node !== this.domNode ) {
this.$$O(td).empty();
td.appendChild(this.domNode);
}this.domNode=this.outerNode=null;
}, p$1);
Clazz_newMeth(C$, 'restoreCellNodes$swingjs_api_js_DOMNode', function (td) {
var nodes=$I$(4).getAttr(td, "data-nodes");
if (nodes == null ) return;
this.domNode=nodes[0];
this.innerNode=nodes[1];
this.centeringNode=nodes[2];
this.iconNode=nodes[3];
this.textNode=nodes[4];
this.accelNode=nodes[5];
this.buttonNode=nodes[6];
this.enableNode=nodes[7];
if (nodes[8] != null ) {
this.enableNodes[0]=nodes[8];
this.enableNodes[1]=nodes[9];
this.enableNodes[2]=nodes[10];
}this.focusNode=nodes[11];
this.actionNode=nodes[12];
this.valueNode=nodes[13];
});
Clazz_newMeth(C$, 'setDraggable$javajs_api_JSFunction', function (f) {
this.draggable=true;
this.J2S.setDraggable(this.getDOMNode$(), f);
});
Clazz_newMeth(C$, 'setDoPropagate$', function () {
this.j2sDoPropagate=true;
});
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'setDoc$', function () {
{
this.body = document.body;
}
C$.debugging=$I$(2).debugging;
});
Clazz_newMeth(C$, 'installJS$', function () {
{
this.c.addChangeListener$javax_swing_event_ChangeListener && this.c.addChangeListener$javax_swing_event_ChangeListener(this);
}
if (this.buttonListener == null ) this.c.addPropertyChangeListener$java_beans_PropertyChangeListener(this);
});
Clazz_newMeth(C$, 'uninstallJS', function () {
this.c && this.c.removeChangeListener$javax_swing_event_ChangeListener && this.c.removeChangeListener$javax_swing_event_ChangeListener(this);
if (this.c != null ) this.c.removePropertyChangeListener$java_beans_PropertyChangeListener(this);
if (this.outerNode != null ) {
$I$(4).dispose(this.outerNode);
this.outerNode=null;
}}, p$1);
Clazz_newMeth(C$, '$$O', function (node) {
return C$.jquery.$(node);
});
Clazz_newMeth(C$, 'setComponent$javax_swing_JComponent', function (comp) {
this.c=this.jc=comp;
this.setUIDisabled$Z(comp == null );
}, p$1);
Clazz_newMeth(C$, 'set$javax_swing_JComponent', function (target) {
p$1.setComponent$javax_swing_JComponent.apply(this, [target]);
this.isAWT = this.jc.isAWT$;
this.applet=$I$(5).getHTML5Applet$java_awt_Component(this.c);
this.newID$Z(false);
this.installUI$javax_swing_JComponent(target);
this.installJS$();
if (this.needPreferred) this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.updateDOMNode$(), false);
return this;
});
Clazz_newMeth(C$, 'newID$Z', function (forceNew) {
this.classID=this.c.getUIClassID$();
this.notImplemented=(this.classID == "ComponentUI");
if (this.id == null || forceNew ) {
this.num=++C$.incr;
this.id=this.c.getHTMLName$S(this.classID) + "_" + this.num ;
}});
Clazz_newMeth(C$, 'reInit$', function () {
this.setTainted$();
if (this.domNode != null ) $I$(4).dispose(this.domNode);
this.domNode=null;
this.keysEnabled=false;
this.newID$Z(true);
});
Clazz_newMeth(C$, 'setDataComponent$swingjs_api_js_DOMNode', function (button) {
$I$(4).setAttr(button, "data-component", this.c);
});
Clazz_newMeth(C$, 'setDataKeyComponent$swingjs_api_js_DOMNode', function (node) {
$I$(4).setAttr(node, "data-keycomponent", this.c);
});
Clazz_newMeth(C$, 'setDataFocusComponent$swingjs_api_js_DOMNode', function (node) {
$I$(4).setAttr(node, "data-focuscomponent", this.c);
});
Clazz_newMeth(C$, 'ignoreAllMouseEvents$swingjs_api_js_DOMNode', function (node) {
this.addClass$swingjs_api_js_DOMNode$S(node, "swingjs-ui");
});
Clazz_newMeth(C$, 'hideMenusAndToolTip$', function () {
if (C$.isMenuOpen) $I$(6).closeAllMenus$();
if (javax.swing.ToolTipManager ||false) $I$(7).j2sHideToolTip$();
}, 1);
Clazz_newMeth(C$, 'addClass$swingjs_api_js_DOMNode$S', function (node, cl) {
this.$$O(node).addClass(cl);
});
Clazz_newMeth(C$, 'removeClass$swingjs_api_js_DOMNode$S', function (node, cl) {
this.$$O(node).removeClass(cl);
});
Clazz_newMeth(C$, 'setDataUI$swingjs_api_js_DOMNode', function (node) {
$I$(4).setAttr(node, "data-ui", this);
this.addClass$swingjs_api_js_DOMNode$S(node, "data-ui");
});
Clazz_newMeth(C$, 'setMenuItem$swingjs_api_js_DOMNode', function (node) {
if (node == null ) return;
this.addClass$swingjs_api_js_DOMNode$S(node, "ui-j2smenu-node");
this.setDataComponent$swingjs_api_js_DOMNode(node);
});
Clazz_newMeth(C$, 'setJ2sMouseHandler$', function () {
this.J2S.unsetMouse(this.domNode);
$I$(4).setAttrs(this.domNode, ["applet", this.applet, "_frameViewer", this.jc.getFrameViewer$()]);
this.J2S.setMouse(this.domNode, true);
});
Clazz_newMeth(C$, 'enableJSKeys$Z', function (on) {
if (this.getDOMNode$() == null ) return;
if (!on) {
p$1.setTabIndex$I.apply(this, [-2147483648]);
} else if (this.keysEnabled) {
p$1.setTabIndex$I.apply(this, [-1]);
} else {
this.addFocusHandler$();
}});
Clazz_newMeth(C$, 'addFocusHandler$', function () {
if (this.focusNode == null && (this.focusNode=this.domNode) == null ) return;
this.keysEnabled=true;
$I$(4).setAttrs(this.focusNode, ["applet", this.applet, "_frameViewer", this.jc.getFrameViewer$()]);
this.setDataKeyComponent$swingjs_api_js_DOMNode(this.focusNode);
this.J2S.setKeyListener(this.focusNode);
p$1.setTabIndex$I.apply(this, [-1]);
});
Clazz_newMeth(C$, 'setTabIndex$I', function (i) {
if (this.focusNode == null ) return;
if (i == -2147483648) {
this.focusNode.removeAttribute("tabindex");
$I$(4).setAttr(this.focusNode, "ui", null);
} else {
this.focusNode.setAttribute("tabindex", "" + i);
$I$(4).setAttr(this.focusNode, "ui", this);
}}, p$1);
Clazz_newMeth(C$, 'isFocusable$', function () {
return (this.jc.isFocusable$() && this.setFocusable$() );
});
Clazz_newMeth(C$, 'setFocusable$', function () {
if (this.focusNode == null ) this.addFocusHandler$();
return (this.focusNode != null );
});
Clazz_newMeth(C$, 'hasFocus$', function () {
return document.activeElement == this.focusNode||false;
});
Clazz_newMeth(C$, 'requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) {
if (lightweightChild == null ) return this.focus$();
return $I$(5).requestFocus$java_awt_Component(lightweightChild);
});
Clazz_newMeth(C$, 'focus$', function () {
if (this.focusNode == null || this.isUIDisabled ) return false;
$I$(8).focus$swingjs_api_js_DOMNode(this.focusNode);
return true;
});
Clazz_newMeth(C$, 'addJQueryFocusCallbacks$', function () {
if (this.focusNode == null ) this.focusNode=this.domNode;
p$1.setTabIndex$I.apply(this, [-1]);
var node=this.$$O(this.focusNode);
node.unbind("focus blur");
var me=this;
{
node.focus(function(e) { //System.out.println("JSSCUI node.focus() callback " + me.id + " " + document.activeElement.id);
if (!me.ignoreFocus) me.handleJSFocus$O$O$Z(me.jc, e.relatedTarget, true);
me.ignoreFocus = false;
//System.out.println("JSSCUI focus " + me.id);
});
node.blur(function(e) { try{ //System.out.println("JSSCUI node.blur() callback " + me.id + " " + document.activeElement.id);
me.handleJSFocus$O$O$Z(me.jc, e.relatedTarget, false);
//System.out.println("JSSCUI focus blur " + me.id + " " + document.activeElement.id);
}catch(e){ //System.out.println("JSSCUI focus error blur " + me.id);
} });
}
});
Clazz_newMeth(C$, 'handleJSFocus$O$O$Z', function (jco, related, focusGained) {
$I$(8).handleJSFocus$O$O$Z(jco, related, focusGained);
});
Clazz_newMeth(C$, 'abstractButtonFocusHack$', function () {
var focused=$I$(5).getCurrentFocusOwner$O(null);
var focusedUI=focused && focused.ui ||null;
if (focusedUI != null && focusedUI !== this ) {
focusedUI.handleJSFocus$O$O$Z(this.jc, null, false);
this.handleJSFocus$O$O$Z(this.jc, null, true);
}});
Clazz_newMeth(C$, 'bindJSKeyEvents$swingjs_api_js_DOMNode$Z', function (node, addFocus) {
this.setDataUI$swingjs_api_js_DOMNode(node);
this.addClass$swingjs_api_js_DOMNode$S(node, "ui-key");
this.keysEnabled=true;
this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(node, "keydown keypress keyup" + (addFocus ? " focusout" : ""), -2);
if (addFocus) {
this.addJQueryFocusCallbacks$();
}});
Clazz_newMeth(C$, 'bindJQueryEvents$swingjs_api_js_DOMNode$S$I', function (node, eventList, eventID) {
var me=this;
var f=null;
this.setDataUI$swingjs_api_js_DOMNode(node);
this.addClass$swingjs_api_js_DOMNode$S(node, "ui-events");
{
f = function(jqevent) { return me.handleJSEvent$O$I$O(node, eventID, jqevent) }
}
this.$$O(node).bind(eventList, f);
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
return true;
});
Clazz_newMeth(C$, 'revalidate$', function () {
this.jc.revalidate$();
});
Clazz_newMeth(C$, 'setTainted$', function () {
this.setTainted$Z(true);
});
Clazz_newMeth(C$, 'setTainted$Z', function (tf) {
this.isTainted=tf;
});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
if (C$.debugging) System.out.println$S(this.id + " stateChange " + this.dumpEvent$java_util_EventObject(e) );
});
Clazz_newMeth(C$, 'updatePropertyAncestor$Z', function (fromButtonListener) {
if (fromButtonListener) {
this.setTainted$();
this.setHTMLElement$();
}var p=this.jc.getParent$();
while (p != null ){
var parentui=(p == null ? null : p.getUI$());
if (parentui != null ) {
parentui.setTainted$();
if (fromButtonListener) {
parentui.setHTMLElement$();
if (parentui.menu != null ) {
(parentui).updateMenu$Z(false);
} else if (parentui.isPopupMenu && p.getParent$() == null ) {
p=(p).getInvoker$();
continue;
}}}p=p.getParent$();
}
}, p$1);
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
if (this.isUIDisabled) return;
var value=e.getNewValue$();
var prop=e.getPropertyName$();
if (prop == "ancestor") {
if (this.isAWT) p$1.setAWTFontAndColor$java_awt_Container.apply(this, [value]);
if (this.cellComponent != null ) return;
p$1.updatePropertyAncestor$Z.apply(this, [false]);
if (value == null ) return;
if (this.isDisposed && this.c.visible && e.getNewValue$() != null ) this.setVisible$Z(true);
}this.propertyChangedCUI$java_beans_PropertyChangeEvent$S(e, prop);
});
Clazz_newMeth(C$, 'setAWTFontAndColor$java_awt_Container', function (value) {
var top=$I$(9).秘getTopInvokableAncestor$java_awt_Component$Z(value, false);
if (top === this.awttop || (this.awttop=top) == null ) {
if (top == null ) {
this.awtPeerBG=this.awtPeerFG=null;
}return;
}this.setBackgroundImpl$java_awt_Color(this.awtPeerBG=this.getBackground$());
this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, this.awtPeerFG=this.getForeground$());
this.setFont$java_awt_Font(this.c.getFont$());
}, p$1);
Clazz_newMeth(C$, 'propertyChangedFromListener$java_beans_PropertyChangeEvent$S', function (e, prop) {
if (this.isUIDisabled) return;
switch (prop) {
case "ancestor":
if (this.cellComponent != null ) return;
p$1.updatePropertyAncestor$Z.apply(this, [true]);
break;
}
this.propertyChangedCUI$java_beans_PropertyChangeEvent$S(e, prop);
});
Clazz_newMeth(C$, 'propertyChangedCUI$java_beans_PropertyChangeEvent$S', function (e, prop) {
if (!this.isMenu) this.getDOMNode$();
switch (prop) {
case "preferredSize":
this.preferredSize=this.c.getPreferredSize$();
this.getPreferredSize$javax_swing_JComponent(this.jc);
return;
case "background":
this.setBackground$java_awt_Color(this.c.getBackground$());
return;
case "foreground":
this.setForeground$java_awt_Color(this.c.getForeground$());
return;
case "focusable":
this.setFocusable$();
return;
case "opaque":
this.setBackground$java_awt_Color(this.c.getBackground$());
return;
case "inverted":
this.updateDOMNode$();
return;
case "text":
var val=(this.c).getText$();
if (val == null ? this.currentText != null : !val.equals$O(this.currentText)) this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, this.currentGap, val);
return;
case "iconTextGap":
if (this.iconNode != null ) {
var gap=(this.c).getIconTextGap$();
if (this.currentGap != gap) this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, gap, this.currentText);
}return;
case "icon":
if (this.centeringNode != null ) {
var icon=p$1.getIcon$java_awt_JSComponent$javax_swing_Icon.apply(this, [this.c, null]);
if (icon == null ? this.currentIcon != null : !icon.equals$O(this.currentIcon)) this.setIconAndText$S$javax_swing_Icon$I$S(prop, icon, this.currentGap, this.currentText);
}return;
case "mnemonic":
var newValue=(e.getNewValue$()).intValue$();
this.setMnemonic$I(newValue);
this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, this.currentGap, this.currentText);
return;
case "displayedMnemonicIndex":
this.mnemonicIndex=(e.getNewValue$()).intValue$();
this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, this.currentGap, this.currentText);
return;
default:
if (C$.debugging) System.out.println$S("JSComponentUI: unrecognized prop: " + this.id + " " + prop );
}
});
Clazz_newMeth(C$, 'setMnemonic$I', function (newValue) {
if (newValue == this.mnemonic || this.domNode == null ) return;
if (newValue < 0) {
newValue=(this.isLabel ? (this.label == null ? -1 : this.label.getDisplayedMnemonic$()) : this.jc.getMnemonic$ && this.jc.getMnemonic$() ||-1);
}var node=(this.menuAnchorNode == null ? this.domNode : this.menuAnchorNode);
if (this.mnemonic > 0 && newValue != this.mnemonic ) this.removeClass$swingjs_api_js_DOMNode$S(node, "ui-mnem-" + Character.toLowerCase$I(this.mnemonic));
if (newValue > 0) this.addClass$swingjs_api_js_DOMNode$S(node, "ui-mnem-" + Character.toLowerCase$I(newValue));
this.mnemonic=newValue;
});
Clazz_newMeth(C$, 'setUIDisabled$Z', function (b) {
return this.isUIDisabled=b;
});
Clazz_newMeth(C$, 'checkAllowDivOverflow$', function () {
var root=this.jc.getRootPane$();
this.allowDivOverflow=(root != null && "false".equals$O(root.getClientProperty$O("swingjs.overflow.hidden")) );
});
Clazz_newMeth(C$, 'setAllowPaintedBackground$Z', function (TF) {
this.allowPaintedBackground=TF;
});
Clazz_newMeth(C$, 'getDOMNode$', function () {
return (this.isUIDisabled ? null : this.updateDOMNode$());
});
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
if (this.notImplemented) {
var msg="Swingjs WARNING: default JSComponentUI.updateDOMNode() is being used for " + this.getClass$().getName$();
System.out.println$S(msg);
}this.domNode=$I$(4).createElement("div", this.id);
}return this.domNode;
});
Clazz_newMeth(C$, 'updateDOMNodeCUI$', function () {
if (this.cellComponent != null ) p$1.updateCellNode.apply(this, []);
return this.domNode;
});
Clazz_newMeth(C$, 'setCssFont$swingjs_api_js_DOMNode$java_awt_Font', function (obj, font) {
if (font != null ) {
var istyle=font.getStyle$();
$I$(4).setStyles(obj, ["font-family", $I$(5).getCSSFontFamilyName$S(font.getFamily$()), "font-size", font.getSize$() + "px", "font-style", ((istyle & 2) == 0 ? "normal" : "italic"), "font-weight", ((istyle & 1) == 0 ? "normal" : "bold")]);
}this.enabled=!this.c.isEnabled$();
this.setEnabled$Z(this.c.isEnabled$());
return obj;
});
Clazz_newMeth(C$, 'newDOMObject$S$S$SA', function (key, id, attr) {
var obj=$I$(4).createElement(key, id);
for (var i=0; i < attr.length; ) $I$(4).setAttr(obj, attr[i++], attr[i++]);
return obj;
}, 1);
Clazz_newMeth(C$, 'wrap$S$S$swingjs_api_js_DOMNodeA', function (type, id, elements) {
var obj=C$.newDOMObject$S$S$SA(type, id + type, []);
for (var i=0; i < elements.length; i++) {
obj.appendChild(elements[i]);
}
return obj;
}, 1);
Clazz_newMeth(C$, 'debugDump$swingjs_api_js_DOMNode', function (d) {
System.out.println$O($I$(4).getAttr(d, "outerHTML"));
});
Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) {
return this.setHTMLSize1$swingjs_api_js_DOMNode$Z$Z(this.centeringNode == null || obj !== this.domNode ? obj : this.centeringNode, addCSS, true);
});
Clazz_newMeth(C$, 'getHTMLSize$swingjs_api_js_DOMNode', function (obj) {
return this.setHTMLSize1$swingjs_api_js_DOMNode$Z$Z(obj, false, false);
});
Clazz_newMeth(C$, 'getIconSize$javax_swing_AbstractButton', function (b) {
return (this.iconNode == null || this.imageNode == null || b.getIcon$() == null ? null : this.getHTMLSize$swingjs_api_js_DOMNode(this.iconNode));
}, p$1);
Clazz_newMeth(C$, 'getTextSize$javax_swing_AbstractButton', function (b) {
if (this.textNode == null ) return null;
var t=b.getText$();
if (this.isAWT && t == "" ) t="\u00a0";
return (t == null || t == "" ? null : this.getHTMLSize$swingjs_api_js_DOMNode(this.textNode));
}, p$1);
Clazz_newMeth(C$, 'setHTMLSize1$swingjs_api_js_DOMNode$Z$Z', function (node, addCSS, usePreferred) {
if (node == null ) return null;
addCSS&=!this.isMenuItem;
var h;
var w;
var w0=null;
var h0=null;
var w0i=null;
var h0i=null;
var position=null;
var parentNode=null;
var hasFocus=false;
if (this.scrollPaneUI != null ) {
w=this.scrollPaneUI.c.getWidth$();
h=this.scrollPaneUI.c.getHeight$();
} else if (usePreferred && this.preferredSize != null ) {
w=this.preferredSize.width;
h=this.preferredSize.height;
position=node.style.position ||null;
} else if (usePreferred && this.preferredDim != null ) {
w=this.preferredDim.width;
h=this.preferredDim.height;
position=node.style.position ||null;
} else {
hasFocus=this.hasFocus$();
parentNode=$I$(4).transferTo(node, null);
var simpleButton=this.isSimpleButton;
var centerNode=this.centeringNode;
var dnode=this.domNode;
if (!this.isMenuItem) {
w0 = node.style.width; h0 = node.style.height; position = node.style.position;
if (node == centerNode && simpleButton) { w0i = dNode.style.width; h0i = dNode.style.height; }
}
$I$(4).setStyles(node, ["position", null, "width", null, "height", null]);
if (this.innerNode != null ) $I$(4).setStyles(this.innerNode, ["width", null, "height", null]);
var div;
var s=$I$(4).getAttr(node, "tagName");
if (s == "DIV" || s == "SPAN" ) div=node;
else div=C$.wrap$S$S$swingjs_api_js_DOMNodeA("div", this.id + "_temp", [node]);
$I$(4).setPositionAbsolute(div);
if (node === this.centeringNode ) {
$I$(4).setStyles(node, ["position", null]);
$I$(4).setStyles(this.textNode, ["position", null]);
$I$(4).setStyles(this.iconNode, ["position", null]);
}this.$$O(this.body).after(div);
var r=div.getBoundingClientRect();
w=(Math.max(0, Math.ceil(r.width))|0);
h=(Math.max(0, Math.ceil(r.height))|0);
if (!usePreferred) {
this.actualWidth=w;
this.actualHeight=h;
}this.$$O(div).detach();
}var dim=this.getCSSAdjustment$Z(addCSS);
dim.width+=w;
dim.height+=h;
$I$(4).setStyles(node, ["position", null]);
if (w0 != null ) {
$I$(4).setStyles(node, ["width", w0, "height", h0]);
}if (position != null ) {
$I$(4).setStyles(node, ["position", position]);
}if (w0i != null ) {
$I$(4).setStyles(this.domNode, ["width", w0i, "height", h0i]);
}if (parentNode != null ) {
parentNode.appendChild(node);
if (hasFocus) {
this.ignoreFocus=true;
node.focus();
}}return dim;
});
Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) {
return Clazz_new_($I$(10).c$$I$I,[0, 0]);
});
Clazz_newMeth(C$, 'setHTMLElement$', function () {
return this.setHTMLElementCUI$();
});
Clazz_newMeth(C$, 'setHTMLElementCUI$', function () {
if (this.isUIDisabled || !this.isTainted ) return this.outerNode;
if (this.isDummyFrame) {
this.isTainted=false;
return (this.outerNode=$I$(4).createElement("div", "dummyFrame"));
}this.updateDOMNode$();
p$1.checkTransparent.apply(this, []);
var children=this.getChildren$();
var n=this.getChildCount$();
if (this.isMenuItem) {
this.outerNode=this.domNode;
if (n == 0) return this.outerNode;
}if (this.outerNode == null ) this.outerNode=C$.wrap$S$S$swingjs_api_js_DOMNodeA("div", this.id, [this.domNode]);
{
this.outerNode.setAttribute("name", this.jc.__CLASS_NAME__);
}
p$1.setOuterLocationFromComponent.apply(this, []);
if (n > 0 && this.containerNode == null ) this.containerNode=this.outerNode;
if (this.isContainer || n > 0 ) {
if (this.isContainer && !this.isMenuItem && !this.isTable ) {
var w=this.getContainerWidth$();
var h=this.getContainerHeight$();
$I$(4).setSize(this.outerNode, w, h);
if (this.isPanel || this.isContentPane || this.isRootPane ) {
$I$(4).setStyles(this.outerNode, ["overflow", this.allowDivOverflow ? "visible" : "hidden"]);
if (this.isRootPane) {
if (this.jc.getFrameViewer$().isApplet) {
var cdiv=$I$(5).getHTML5Applet$java_awt_Component(this.jc)._getContentLayer();
$I$(4).appendChildSafely(cdiv, this.outerNode);
}}}}if (n > 0) this.addChildrenToDOM$java_awt_ComponentA$I(children, n);
if (this.isWindow && this.jc.getWidth$() > 0 && this.isFrameIndependent$() ) {
$I$(4).transferTo(this.outerNode, this.body);
}}this.isTainted=false;
if (this.embeddingNode != null ) $I$(4).appendChildSafely(this.embeddingNode, this.outerNode);
return this.outerNode;
});
Clazz_newMeth(C$, 'isFrameIndependent$', function () {
return true;
});
Clazz_newMeth(C$, 'getChildren$', function () {
return $I$(9).秘getChildArray$java_awt_Container(this.jc);
});
Clazz_newMeth(C$, 'getChildCount$', function () {
return this.jc.getComponentCount$();
});
Clazz_newMeth(C$, 'addChildrenToDOM$java_awt_ComponentA$I', function (children, n) {
for (var i=0; i < n; i++) {
if (!this.isTable && children[i] == null ) break;
var ui=$I$(5).getUI$java_awt_Component$Z(children[i], false);
if (ui == null || ui.isNull || ui.isPaintedOnly ) {
continue;
}ui.parent=this;
if (ui.getOuterNode$() == null ) {
System.out.println$S("JSCUI addChildren no outer node for " + ui.id);
} else {
if (ui.domNode !== ui.outerNode && $I$(4).getParent(ui.domNode) == null ) ui.outerNode.appendChild(ui.domNode);
if (ui.embeddingNode == null && (!ui.isWindow || !ui.isFrameIndependent$() ) ) $I$(4).appendChildSafely(this.containerNode, ui.outerNode);
}}
});
Clazz_newMeth(C$, 'getContainerWidth$', function () {
return this.width=this.c.getWidth$();
});
Clazz_newMeth(C$, 'getContainerHeight$', function () {
return this.height=this.c.getHeight$();
});
Clazz_newMeth(C$, 'update$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
if (this.isUIDisabled) return;
this.setHTMLElement$();
if (this.allowTextAlignment && this.centeringNode != null ) this.setAlignments$javax_swing_AbstractButton$Z(this.jc, false);
this.paint$java_awt_Graphics$javax_swing_JComponent(g, c);
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
this.update$java_awt_Graphics$javax_swing_JComponent(g, this.jc);
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
this.setOverflow$();
if (this.imageNode != null && !this.imagePersists ) {
$I$(4).setStyles(this.imageNode, ["visibility", "hidden"]);
}});
Clazz_newMeth(C$, 'setOverflow$', function () {
if (this.textNode != null ) $I$(4).setStyles(this.textNode, ["overflow", "hidden"]);
});
Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) {
});
Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) {
$I$(2).notImplemented$S("");
});
Clazz_newMeth(C$, 'getMinimumSize$', function () {
return this.getMinimumSize$javax_swing_JComponent(this.jc);
});
Clazz_newMeth(C$, 'getPreferredSize$', function () {
return this.getPreferredSize$javax_swing_JComponent(this.jc);
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.updateDOMNode$(), false);
});
Clazz_newMeth(C$, 'contains$javax_swing_JComponent$I$I', function (c, x, y) {
return c.inside$I$I(x, y);
});
Clazz_newMeth(C$, 'createUI$javax_swing_JComponent', function (c) {
return null;
}, 1);
Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) {
if (c == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Component must be non-null"]);
}if (width < 0 || height < 0 ) {
throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Width and height must be >= 0"]);
}return -1;
});
Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) {
if (c == null ) {
throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Component must be non-null"]);
}return $I$(11).OTHER;
});
Clazz_newMeth(C$, 'getJSTextValue$', function () {
return $I$(4).getAttr(this.domNode, this.valueNode == null ? "innerText" : "value");
});
Clazz_newMeth(C$, 'getOuterNode$', function () {
return (this.outerNode == null && !this.isUIDisabled ? this.setHTMLElement$() : this.outerNode);
});
Clazz_newMeth(C$, 'setJSText$swingjs_api_js_DOMNode$S$S', function (obj, prop, val) {
return $I$(4).setAttr(obj, prop, val);
});
Clazz_newMeth(C$, 'isObscured$', function () {
$I$(2).notImplemented$S("");
return false;
});
Clazz_newMeth(C$, 'canDetermineObscurity$', function () {
$I$(2).notImplemented$S("");
return false;
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
this.setVisible$swingjs_api_js_DOMNode$Z(this.getOuterNode$(), b);
});
Clazz_newMeth(C$, 'setVisible$swingjs_api_js_DOMNode$Z', function (node, b) {
if (this.isPaintedOnly) b=false;
if (!b && this.cellComponent != null ) return;
if (node == null ) node=this.domNode;
$I$(4).setVisible(node, b);
if (b) {
if (this.isDisposed) this.undisposeUI$swingjs_api_js_DOMNode(node);
this.toFront$();
}});
Clazz_newMeth(C$, 'toFront$', function () {
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
if (b == this.enabled ) return;
this.enabled=b;
if (this.enableNode != null ) this.enableNode$swingjs_api_js_DOMNode$Z(this.enableNode, b);
else if (this.enableNodes != null ) for (var i=0; i < this.enableNodes.length; i++) this.enableNode$swingjs_api_js_DOMNode$Z(this.enableNodes[i], b);
});
Clazz_newMeth(C$, 'enableNode$swingjs_api_js_DOMNode$Z', function (node, b) {
if (node == null ) return;
$I$(4).setAttr(node, "disabled", (b ? null : "TRUE"));
if (!b && this.inactiveForeground === this.colorUNKNOWN ) this.getDisabledColors$S(this.buttonNode == null ? this.getPropertyPrefix$() : "Button");
if (this.jc.isOpaque$()) {
var bg=this.getBackground$();
this.setBackgroundImpl$java_awt_Color(b || !(Clazz_instanceOf(bg, "javax.swing.plaf.UIResource")) || this.inactiveBackground == null ? bg : this.inactiveBackground);
}var fg=this.getForeground$();
this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, b ? fg : this.getInactiveTextColor$java_awt_Color(fg));
});
Clazz_newMeth(C$, 'getBackground$', function () {
return (this.awtPeerBG == null ? this.c.getBackground$() : this.awtPeerBG);
});
Clazz_newMeth(C$, 'getForeground$', function () {
return (this.awtPeerFG == null ? this.c.getForeground$() : this.awtPeerFG);
});
Clazz_newMeth(C$, 'getInactiveTextColor$java_awt_Color', function (fg) {
return (this.inactiveForeground == null ? fg : this.inactiveForeground);
});
Clazz_newMeth(C$, 'getDisabledColors$S', function (pp) {
this.inactiveBackground=$I$(12).getColor$O(pp + ".inactiveBackground");
this.inactiveForeground=$I$(12).getColor$O(pp + ".inactiveForeground");
});
Clazz_newMeth(C$, 'setBounds$I$I$I$I$I', function (x, y, width, height, op) {
if (this.isUIDisabled) return;
var isBounded=(width > 0 && height > 0 );
if (isBounded && !this.boundsSet ) {
if (this.c.visible) this.setVisible$Z(true);
this.boundsSet=true;
}if (C$.debugging) System.out.println$S("CUI << SetBounds >> [" + x + " " + y + " " + width + " " + height + "] op=" + op + " for " + this.id );
switch (op) {
case 3:
case 1:
x=this.c.getX$();
y=this.c.getY$();
if (this.embeddingNode == null && (this.x != x || this.y != y ) ) {
this.x=x;
this.y=y;
}p$1.setOuterLocationFromComponent.apply(this, []);
if (op == 1) break;
case 4:
case 2:
if (this.scrollPaneUI != null ) {
width=Math.min(width, this.scrollPaneUI.c.getWidth$());
height=Math.min(height, this.scrollPaneUI.c.getHeight$());
}if (width > 0 && height > 0 ) p$1.setSizeFromComponent$I$I$I.apply(this, [width, height, op]);
break;
}
});
Clazz_newMeth(C$, 'setOuterLocationFromComponent', function () {
if (this.outerNode != null && !this.isMenuItem ) {
if (this.parent == null && this.jc.getParent$() != null && (this.parent=this.jc.getParent$().getUI$()) != null && this.parent.outerNode != null ) $I$(4).appendChildSafely(this.parent.outerNode, this.outerNode);
$I$(4).setPositionAbsolute(this.outerNode);
$I$(4).setStyles(this.outerNode, ["left", (this.x=this.c.getX$()) + "px", "top", (this.y=this.c.getY$()) + "px"]);
}}, p$1);
Clazz_newMeth(C$, 'setSizeFromComponent$I$I$I', function (width, height, op) {
var size=this.getCSSAdjustment$Z(true);
this.width=width;
this.height=height;
if (this.domNode == null ) this.updateDOMNode$();
this.setJSDimensions$I$I(width + size.width, height + size.height);
this.setInnerComponentBounds$I$I(width, height);
}, p$1);
Clazz_newMeth(C$, 'setJSDimensions$I$I', function (width, height) {
if (this.jsActualWidth > 0) width=this.jsActualWidth;
if (this.jsActualHeight > 0) height=this.jsActualHeight;
$I$(4).setSize(this.domNode, width, height);
if (this.outerNode != null ) {
$I$(4).setSize(this.outerNode, width, height);
}});
Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) {
if (C$.debugging) System.out.println$S("CUI reshapeMe: need to reshape " + this.id + " w:" + this.width + "->" + width + " h:" + this.height + "->" + height );
});
Clazz_newMeth(C$, 'getIcon$java_awt_JSComponent$javax_swing_Icon', function (c, icon) {
return (c == null || icon == null && (icon=(c).getIcon$()) == null ? null : icon.getIconWidth$() <= 0 || icon.getIconHeight$() <= 0 ? null : (Clazz_instanceOf(icon, "javax.swing.ImageIcon")) ? icon : $I$(5).createImageIcon$java_awt_Component$javax_swing_Icon$S(this.jc, icon, this.id + "tmpIcon"));
}, p$1);
Clazz_newMeth(C$, 'fixText$S', function (t) {
if (t != null ) {
if (this.isHTML) {
} else if (this.valueNode == null ) {
t=(t.indexOf$S("\u0000") >= 0 ? $I$(13).rep$S$S$S(t, "\u0000", "") : t).replace$C$C(" ", "\u00a0");
}}return t;
});
Clazz_newMeth(C$, 'setIconAndText$S$javax_swing_Icon$I$S', function (prop, icon, gap, text) {
if (this.iconNode == null && this.textNode == null ) return;
this.setMnemonic$I(-1);
this.actualWidth=this.actualHeight=0;
text=this.fixText$S(this.currentText=text);
this.currentGap=gap;
this.currentIcon=null;
this.imageNode=null;
if (this.iconNode != null ) {
icon=this.currentIcon=p$1.getIcon$java_awt_JSComponent$javax_swing_Icon.apply(this, [this.jc, icon]);
this.$$O(this.iconNode).empty();
if (this.currentIcon != null ) {
this.imageNode=$I$(4).getImageNode(this.currentIcon.getImage$());
this.iconNode.appendChild(this.imageNode);
this.iconHeight=icon.getIconHeight$();
$I$(4).setStyles(this.imageNode, ["visibility", (this.isLabel ? "hidden" : null)]);
$I$(4).setStyles(this.iconNode, ["height", this.iconHeight + "px", "width", icon.getIconWidth$() + "px"]);
}}if (text == null ) {
text="";
} else if (text == "") {
if (this.isAWT) text="\u00a0";
}if (text != "") {
if (text == "\u0000") {
this.isPaintedOnly=true;
}$I$(4).setStyles(this.textNode, ["white-space", "nowrap"]);
if (icon == null ) {
if (this.iconNode != null && this.allowTextAlignment && this.isMenuItem && this.actionNode == null && text != null ) {
$I$(4).addHorizontalGap(this.iconNode, gap + 11);
}} else {
if (gap == 2147483647) gap=this.getDefaultIconTextGap$();
if (gap != 0 && text != null ) $I$(4).addHorizontalGap(this.iconNode, gap);
}this.isHTML=false;
if (text.indexOf$S("") == 0) {
this.isHTML=true;
text=$I$(13).rep$S$S$S(text.substring$I(6), "", "");
text=$I$(13).rep$S$S$S(text, "", "");
text=$I$(13).rep$S$S$S(text, "href=", "target=_blank href=");
} else if (this.jc.getClientProperty$O("html") != null ) {
this.isHTML=true;
} else if (this.mnemonicIndex >= 0) {
var i=this.mnemonicIndex;
this.isHTML=true;
if (i < text.length$()) text=text.substring$I$I(0, i) + "" + text.substring$I$I(i, i + 1) + "" + text.substring$I(i + 1) ;
}}var obj=null;
if (this.textNode != null ) {
prop="innerHTML";
obj=this.textNode;
this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.textNode, this.getFont$());
if (!this.isHTML) text=$I$(13).rep$S$S$S(text, "<", "<");
} else if (this.valueNode != null ) {
prop="value";
obj=this.valueNode;
if (this.iconNode != null ) $I$(4).setVisible(obj, text != null );
}if (obj != null ) {
this.setJSText$swingjs_api_js_DOMNode$S$S(obj, prop, text);
}if (this.valueNode != null ) {
this.setBackgroundImpl$java_awt_Color(this.c.getBackground$());
}if (C$.debugging) System.out.println$S("JSComponentUI: setting " + this.id + " " + prop );
});
Clazz_newMeth(C$, 'getDefaultIconTextGap$', function () {
return 0;
});
Clazz_newMeth(C$, 'getJSInsets$', function () {
if (this.insets == null ) this.insets=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]);
this.insets=this.jc.getInsets$java_awt_Insets(this.insets);
});
Clazz_newMeth(C$, 'setButtonRectangles$Z', function (isPreferred) {
if (this.iconR == null ) {
this.iconR=Clazz_new_($I$(14));
this.textR=Clazz_new_($I$(14));
this.viewR=Clazz_new_($I$(14));
}this.getJSInsets$();
if (isPreferred) {
this.viewR.width=32767;
this.viewR.height=32767;
} else {
this.viewR.x=0;
this.viewR.y=0;
this.viewR.width=this.width - this.insets.right - this.insets.left ;
this.viewR.height=this.height - this.insets.bottom - this.insets.top ;
}this.iconR.width=-1;
if (this.isMenuItem && this.actionNode != null ) {
this.iconR.width=this.iconR.height=15;
} else if (this.icon == null && this.iconNode != null ) {
var d=this.getHTMLSize$swingjs_api_js_DOMNode(this.iconNode);
this.iconR.width=d.width;
this.iconR.height=d.height;
}this.iconR.x=this.iconR.y=this.textR.x=this.textR.y=0;
});
Clazz_newMeth(C$, 'addCentering$swingjs_api_js_DOMNode', function (node) {
if (this.iconNode == null ) this.iconNode=C$.newDOMObject$S$S$SA("span", this.id + "_icon", []);
this.textNode=C$.newDOMObject$S$S$SA("span", this.id + "_txt", []);
this.centeringNode=C$.newDOMObject$S$S$SA("span", this.id + "_ctr", []);
this.centeringNode.appendChild(this.iconNode);
this.centeringNode.appendChild(this.textNode);
node.appendChild(this.centeringNode);
});
Clazz_newMeth(C$, 'updateCenteringNode$', function () {
});
Clazz_newMeth(C$, 'setAlignments$javax_swing_AbstractButton$Z', function (b, justGetPreferred) {
var hTextPos=b.getHorizontalTextPosition$();
var hAlign=b.getHorizontalAlignment$();
var vAlign=b.getVerticalAlignment$();
var vTextPos=b.getVerticalTextPosition$();
this.getJSInsets$();
var dimIcon=p$1.getIconSize$javax_swing_AbstractButton.apply(this, [b]);
var dimText=p$1.getTextSize$javax_swing_AbstractButton.apply(this, [b]);
var wIcon=(this.actionNode != null ? (this.isMenuItem ? 15 : 20) : dimIcon == null ? 0 : Math.max(0, dimIcon.width));
var wText=(dimText == null ? 0 : dimText.width);
var gap=(wText == 0 || wIcon == 0 ? 0 : b.getIconTextGap$());
var w0=this.cellComponent != null ? this.cellWidth : this.$$O(this.domNode).width();
var w=w0;
if (w < wIcon + wText) {
w=wIcon + wText;
}var alignVCenter=(vAlign == 0);
var margins=(this.isLabel ? (this.isAWT ? b.getInsets$() : this.insets) : p$1.getButtonMargins$javax_swing_AbstractButton$Z.apply(this, [b, justGetPreferred]));
if (margins == null ) margins=C$.zeroInsets;
var insets=(this.isLabel || !this.isSimpleButton || justGetPreferred ? C$.zeroInsets : this.getButtonOuterInsets$javax_swing_AbstractButton(b));
var h=(dimText == null ? 0 : dimText.height);
var ih=(dimIcon == null ? 0 : dimIcon.height);
var hCtr=Math.max(h, ih);
var wCtr=wIcon + gap + wText ;
var wAccel=0;
var accel=null;
var ltr=this.jc.getComponentOrientation$().isLeftToRight$();
var alignLeft;
var alignRight;
var alignHCenter;
var textRight;
if (this.menuAnchorNode == null ) {
alignLeft=(w == 0 || hAlign == 2 || hAlign == (ltr ? 10 : 11) );
alignRight=w != 0 && (hAlign == 4 || hAlign == (ltr ? 11 : 10) ) ;
alignHCenter=(!alignLeft && !alignRight );
textRight=(hTextPos == 4 || hTextPos == (ltr ? 11 : 10) );
} else {
alignLeft=ltr;
alignRight=!ltr;
alignHCenter=false;
textRight=ltr;
accel=(Clazz_instanceOf(b, "javax.swing.JMenuItem") ? p$1.getAccelStr$javax_swing_JMenuItem.apply(this, [b]) : null);
var accelNode=this.menuAnchorNode;
accelNode=accelNode.children[1] ||null;
if ((accelNode == null ) != (accel == null ) ) {
if (accel == null ) {
$I$(4).remove(accelNode);
} else {
this.menuAnchorNode.appendChild(accelNode=$I$(4).createElement("span", this.id + "_acc"));
this.addClass$swingjs_api_js_DOMNode$S(accelNode, "ui-j2smenu-accel");
$I$(4).setAttr(accelNode, "role", "menuitem");
$I$(4).setStyles(accelNode, ["font-size", "10px"]);
this.setMenuItem$swingjs_api_js_DOMNode(accelNode);
}}if (accel != null ) {
$I$(4).setStyles(accelNode, ["float", null]);
$I$(4).setAttr(accelNode, "innerHTML", accel);
wAccel=this.getHTMLSize$swingjs_api_js_DOMNode(accelNode).width;
$I$(4).setStyles(accelNode, ["float", ltr ? "right" : "left", "text-align", ltr ? "right" : "left", "margin", "0px 5px", "transform", "translateY(15%)"]);
}$I$(4).setStyles(this.menuAnchorNode, ["width", "90%", "min-width", new Double(Math.max(75, (wCtr + wAccel + margins.left + margins.right ) * 1.1)).toString() + "px"]);
}if (alignHCenter) {
switch (hTextPos) {
case 1:
case 3:
hCtr=ih + gap + h ;
case 0:
wCtr=Math.max(wIcon, wText);
if (w0 > 0 && w0 < w ) w=w0;
break;
}
}if (justGetPreferred) {
if (this.preferredDim == null ) this.preferredDim=Clazz_new_($I$(10));
this.preferredDim.width=wCtr + margins.left + margins.right ;
this.preferredDim.height=hCtr + margins.top + margins.bottom ;
return;
}this.preferredDim=null;
$I$(4).setStyles(this.centeringNode, ["position", "absolute", "top", null, "left", null, "transform", null]);
$I$(4).setStyles(this.centeringNode, ["width", wCtr + "px", "height", hCtr + "px"]);
if (alignHCenter && alignVCenter && wIcon == 0 || wText == 0 && margins.left == margins.right && margins.top == margins.bottom && insets.left == insets.right && insets.top == insets.bottom ) {
this.fullyCenter$swingjs_api_js_DOMNode$Z(this.centeringNode, true);
this.fullyCenter$swingjs_api_js_DOMNode$Z(this.iconNode, false);
this.fullyCenter$swingjs_api_js_DOMNode$Z(this.textNode, false);
} else {
$I$(4).setStyles(this.iconNode, ["position", "absolute", "top", null, "left", null, "transform", null]);
$I$(4).setStyles(this.textNode, ["position", "absolute", "top", null, "left", null, "transform", null]);
var left=-1;
if (this.menuAnchorNode == null ) {
if (alignHCenter) {
switch (hTextPos) {
case 1:
case 3:
case 0:
$I$(4).setStyles(this.textNode, ["left", (((wCtr - wText)/2|0)) + "px"]);
$I$(4).setStyles(this.iconNode, ["left", (((wCtr - wIcon)/2|0)) + "px"]);
break;
default:
var off=(wCtr/2|0);
if (textRight) {
$I$(4).setStyles(this.iconNode, ["left", "0px"]);
$I$(4).setStyles(this.textNode, ["left", (gap + wIcon) + "px"]);
} else {
$I$(4).setStyles(this.textNode, ["left", off + "px"]);
$I$(4).setStyles(this.iconNode, ["left", (gap + wText) + "px"]);
}break;
}
left=((w - wCtr + margins.left - margins.right - insets.left - insets.right)/2|0);
} else if (alignRight) {
left=w - wCtr - margins.right - insets.right - (this.cellComponent == null ? 0 : 2) ;
if (textRight) {
$I$(4).setStyles(this.textNode, ["left", (wCtr - wText) + "px"]);
$I$(4).setStyles(this.iconNode, ["left", "0px"]);
} else {
$I$(4).setStyles(this.textNode, ["left", "0px"]);
$I$(4).setStyles(this.iconNode, ["left", (wCtr - wIcon) + "px"]);
}} else {
left=margins.left + insets.left - (this.cellComponent == null ? 0 : 1);
if (textRight) {
var off=(!this.isMenuItem || ltr || this.actionNode != null ? 0 : this.actionItemOffset);
$I$(4).setStyles(this.iconNode, ["left", off + "px"]);
$I$(4).setStyles(this.textNode, ["left", (wIcon + gap) + "px"]);
} else {
$I$(4).setStyles(this.textNode, ["left", (!this.isMenuItem ? 0 : ltr ? this.actionItemOffset : -3) + "px"]);
$I$(4).setStyles(this.iconNode, ["left", (wText + gap) + "px"]);
}}$I$(4).setStyles(this.centeringNode, ["left", left + "px"]);
} else {
if (alignRight) {
$I$(4).setStyles(this.itemNode, ["text-align", "right"]);
$I$(4).setStyles(this.centeringNode, ["right", "0px"]);
$I$(4).setStyles(this.textNode, ["right", "23px"]);
$I$(4).setStyles(this.iconNode, ["right", "0px"]);
} else {
$I$(4).setStyles(this.itemNode, ["text-align", "left"]);
$I$(4).setStyles(this.centeringNode, ["left", "0px"]);
$I$(4).setStyles(this.iconNode, ["left", "0px"]);
$I$(4).setStyles(this.textNode, ["left", "23px"]);
}}h=this.c.getHeight$();
if (h == 0) {
h=16;
}if (this.menuAnchorNode == null ) {
var top;
switch (vAlign) {
case 1:
top=margins.top + insets.top;
break;
case 3:
top=h - margins.bottom - insets.bottom - hCtr ;
break;
default:
case 0:
top=((h - hCtr + margins.top - margins.bottom - insets.top - insets.bottom)/2|0);
break;
}
$I$(4).setStyles(this.centeringNode, ["top", top + "px"]);
var itop;
var yoff=null;
var iscale=null;
switch (vTextPos) {
case 1:
top=itop=0;
break;
case 3:
top=itop=100;
break;
default:
case 0:
top=itop=50;
if (this.iconNode === this.actionNode ) {
itop=70;
iscale="scale(0.8,0.8)";
}yoff="-50%";
break;
}
$I$(4).setStyles(this.centeringNode, ["overflow", "none"]);
$I$(4).setStyles(this.textNode, ["top", top + "%", "transform", "translateY(" + (yoff == null ? "-" + top + "%" : yoff + ")")]);
$I$(4).setStyles(this.iconNode, ["top", top + "%", "transform", "translateY(-" + itop + "%)" + (iscale == null ? "" : iscale) ]);
} else {
$I$(4).setStyles(this.menuAnchorNode, ["height", h + "px"]);
$I$(4).setStyles(this.textNode, ["top", "50%", "transform", "translateY(-50%)"]);
$I$(4).setStyles(this.iconNode, ["top", "50%", "transform", "translateY(-65%) scale(0.6,0.6)"]);
}}if (this.cellComponent != null ) p$1.updateCellNode.apply(this, []);
});
Clazz_newMeth(C$, 'fullyCenter$swingjs_api_js_DOMNode$Z', function (node, isCtr) {
$I$(4).setStyles(node, ["width", null, "top", "50%", "left", "50%", "transform", "translateX(-50%)translateY(-50%)translateY(0.5px)translateX(0.5px)", "position", "absolute"]);
});
Clazz_newMeth(C$, 'updateCellNode', function () {
if (this.cellWidth == 0 || this.cellHeight == 0 ) {
return;
}if (this.allowPaintedBackground) $I$(4).setStyles(this.domNode, ["background", "transparent"]);
if (Clazz_instanceOf(this.cellComponent, "javax.swing.JTable.BooleanRenderer") || this.cellComponent.getClientProperty$O("_jsBooleanEditor") != null ) {
$I$(4).setStyles(this.centeringNode, ["width", "100%", "height", "100%"]);
$I$(4).setStyles(this.buttonNode, ["width", "100%", "height", "100%"]);
$I$(4).setStyles(this.actionNode, ["position", "absolute", "width", "14px", "height", "14px", "top", ((this.cellHeight/2|0)) + "px"]);
var textAlign=(this.cellComponent).getHorizontalAlignment$();
var width=this.cellWidth;
switch (textAlign) {
case 4:
case 11:
$I$(4).setStyles(this.actionNode, ["left", width + "px", "transform", "scale(0.75,0.75) translate(-25px,-20px)"]);
break;
case 2:
case 10:
$I$(4).setStyles(this.actionNode, ["left", "0px", "transform", "scale(0.75,0.75) translate(-5px,-20px)"]);
break;
case 0:
$I$(4).setStyles(this.actionNode, ["left", ((width/2|0)) + "px", "transform", "scale(0.75,0.75) translate(-15px,-20px)"]);
break;
}
}}, p$1);
Clazz_newMeth(C$, 'getButtonMargins$javax_swing_AbstractButton$Z', function (b, includeOuter) {
return (includeOuter ? b.getInsets$() : Clazz_instanceOf(b.getBorder$(), "javax.swing.border.CompoundBorder") ? (b.getBorder$()).getInsideBorder$().getBorderInsets$java_awt_Component(b) : null);
}, p$1);
Clazz_newMeth(C$, 'getButtonOuterInsets$javax_swing_AbstractButton', function (b) {
if (Clazz_instanceOf(b.getBorder$(), "javax.swing.border.CompoundBorder")) {
return (b.getBorder$()).getOutsideBorder$().getBorderInsets$java_awt_Component(b);
}return b.getInsets$();
});
Clazz_newMeth(C$, 'getFont$', function () {
var f=this.c.getFont$();
return (f == null ? $I$(15).dialogPlain12 : f);
});
Clazz_newMeth(C$, 'getAccelStr$javax_swing_JMenuItem', function (b) {
var ks=b.getAccelerator$();
if (ks != null ) {
var k=$I$(16).getKeyText$I(ks.getKeyCode$());
if (k == "Escape") k="Esc";
var s=$I$(16).getKeyModifiersText$I(ks.getModifiers$());
return s + (s == "" ? "" : "-") + k ;
}return null;
}, p$1);
Clazz_newMeth(C$, 'handleEvent$java_awt_AWTEvent', function (e) {
});
Clazz_newMeth(C$, 'coalescePaintEvent$java_awt_event_PaintEvent', function (e) {
$I$(2).notImplemented$S("");
});
Clazz_newMeth(C$, 'getLocationOnScreen$', function () {
var offset=this.$$O(this.outerNode).offset();
return Clazz_new_($I$(17).c$$I$I,[offset.left, offset.top]);
});
Clazz_newMeth(C$, 'getColorModel$', function () {
return $I$(18).getDefaultToolkit$().getColorModel$();
});
Clazz_newMeth(C$, 'getToolkit$', function () {
return $I$(18).getDefaultToolkit$();
});
Clazz_newMeth(C$, 'getGraphics$', function () {
return null;
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
return this.c.getFontMetrics$java_awt_Font(font);
});
Clazz_newMeth(C$, 'dispose$', function () {
if (this.isUIDisabled) return;
if (this.cellComponent != null ) {
$I$(4).setVisible(this.domNode, false);
return;
}this.isDisposed=true;
$I$(4).dispose(this.domNode);
if (this.domNode !== this.outerNode ) $I$(4).dispose(this.outerNode);
});
Clazz_newMeth(C$, 'undisposeUI$swingjs_api_js_DOMNode', function (node) {
var parent=this.c.getParent$();
if (node != null && parent != null ) {
var ui=this.c.getParent$().getUI$();
if (ui.containerNode != null ) ui.containerNode.appendChild(node);
}if (this.outerNode != null && this.domNode != null && this.domNode !== this.outerNode ) {
this.outerNode.appendChild(this.domNode);
}this.isDisposed=false;
});
Clazz_newMeth(C$, 'setForegroundCUI$java_awt_Color', function (c) {
this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, c);
});
Clazz_newMeth(C$, 'setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color', function (node, color) {
if (node != null ) $I$(4).setStyles(node, ["color", (color == null ? "rgba(0,0,0,0)" : $I$(5).getCSSColor$java_awt_Color(color == null ? $I$(1).black : color))]);
});
Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) {
if (this.domNode != null && !this.isUIDisabled ) this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font((this.textNode == null ? this.domNode : this.textNode), f);
});
Clazz_newMeth(C$, 'updateCursorImmediately$', function () {
if (this.isUIDisabled) return;
this.setHTMLElement$();
var curs=$I$(5).getCursorName$java_awt_Cursor(this.c.getCursor$());
$I$(4).setStyles(this.outerNode, ["cursor", curs]);
$I$(4).setStyles(this.domNode, ["cursor", curs]);
this.setWaitImage$Z(curs == "wait");
});
Clazz_newMeth(C$, 'setWaitImage$Z', function (doShow) {
if (this.waitImage != null ) {
if (!doShow) return;
var path="";
{
path = this.applet._j2sPath;
}
path += "/img/cursor_wait.gif";
if (C$.debugging) System.out.println$S("loading wait cursor " + path);
this.waitImage=C$.newDOMObject$S$S$SA("image", this.id + "_waitImage", ["src", path]);
}if (doShow) this.$$O(this.waitImage).show();
else this.$$O(this.waitImage).hide();
});
Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) {
$I$(2).notImplemented$S("");
return null;
});
Clazz_newMeth(C$, 'createImage$I$I', function (width, height) {
$I$(2).notImplemented$S("");
return null;
});
Clazz_newMeth(C$, 'createVolatileImage$I$I', function (width, height) {
$I$(2).notImplemented$S("");
return null;
});
Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) {
$I$(2).notImplemented$S("");
return false;
});
Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) {
$I$(2).notImplemented$S("");
return 0;
});
Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () {
$I$(2).notImplemented$S("");
return null;
});
Clazz_newMeth(C$, 'handlesWheelScrolling$', function () {
$I$(2).notImplemented$S("");
return false;
});
Clazz_newMeth(C$, 'getBackBuffer$', function () {
$I$(2).notImplemented$S("");
return null;
});
Clazz_newMeth(C$, 'destroyBuffers$', function () {
$I$(2).notImplemented$S("");
});
Clazz_newMeth(C$, 'reparent$java_awt_peer_ContainerPeer', function (newContainer) {
$I$(2).notImplemented$S("");
});
Clazz_newMeth(C$, 'isReparentSupported$', function () {
$I$(2).notImplemented$S("");
return false;
});
Clazz_newMeth(C$, 'layout$', function () {
});
Clazz_newMeth(C$, 'getBounds$', function () {
$I$(2).notImplemented$S("");
return null;
});
Clazz_newMeth(C$, 'getZIndex$S', function (what) {
var node=this.domNode;
var z=0;
{
if (what) return this.applet._z[what];
while (node && !node.style["z-index"]) node = node.parentElement;
z = parseInt(node.style["z-index"]); return(!z || isNaN(z) ? 100000 : z);
}
});
Clazz_newMeth(C$, 'getInsets$', function () {
return null;
});
Clazz_newMeth(C$, 'beginValidate$', function () {
});
Clazz_newMeth(C$, 'endValidate$', function () {
});
Clazz_newMeth(C$, 'beginLayout$', function () {
if (!this.boundsSet && !this.isContainer ) this.setVisible$Z(false);
this.isLaidOut=false;
this.layingOut=true;
});
Clazz_newMeth(C$, 'endLayout$', function () {
this.layingOut=false;
this.isLaidOut=true;
});
Clazz_newMeth(C$, 'getId$', function () {
return this.id;
});
Clazz_newMeth(C$, 'dumpEvent$java_util_EventObject', function (e) {
return e.toString();
});
Clazz_newMeth(C$, 'toCSSString$java_awt_Color', function (c) {
var opacity=c.getAlpha$();
if (opacity == 255) return "#" + C$.toRGBHexString$java_awt_Color(c);
var rgb=c.getRGB$();
return "rgba(" + ((rgb >> 16) & 255) + "," + ((rgb >> 8) & 255) + "," + (rgb & 255) + "," + new Float(opacity / 255.0).toString() + ")";
}, 1);
Clazz_newMeth(C$, 'toRGBHexString$java_awt_Color', function (c) {
var rgb=c.getRGB$();
if (rgb == 0) return "000000";
var r="00" + Integer.toHexString$I((rgb >> 16) & 255);
r=r.substring$I(r.length$() - 2);
var g="00" + Integer.toHexString$I((rgb >> 8) & 255);
g=g.substring$I(g.length$() - 2);
var b="00" + Integer.toHexString$I(rgb & 255);
b=b.substring$I(b.length$() - 2);
return r + g + b ;
}, 1);
Clazz_newMeth(C$, 'updateSceneGraph$javax_swing_JComponent$javax_swing_JComponent$swingjs_JSGraphics2D', function (comp, owner, g) {
var node=(comp.ui).outerNode;
var x=0;
var y=0;
{
x = g.$transform.m02; y = g.$transform.m12;
if (x == node.lastSceneX && y == node.lastSceneY) return;
node.lastSceneX = x; node.lastSceneY = y;
}
$I$(4).setStyles(node, ["left", x + "px", "top", y + "px"]);
{
if (node.parentElement == null) owner.ui.outerNode.appendChild(node);
}
}, 1);
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
var s=this.jc.getUIClassID$();
return (s == null ? null : s.substring$I$I(0, s.length$() - 2));
});
Clazz_newMeth(C$, 'setPadding$java_awt_Insets', function (padding) {
$I$(4).setStyles(this.domNode, ["padding", padding == null ? "0px" : padding.top + "px " + padding.left + "px " + padding.bottom + "px " + padding.right + "px" ]);
});
Clazz_newMeth(C$, 'addDropTarget$java_awt_dnd_DropTarget', function (t) {
if (this.dropTarget === t ) return;
this.dropTarget=t;
p$1.setDropTarget$Z.apply(this, [true]);
});
Clazz_newMeth(C$, 'removeDropTarget$java_awt_dnd_DropTarget', function (t) {
if (this.dropTarget !== t ) return;
p$1.setDropTarget$Z.apply(this, [false]);
this.dropTarget=null;
});
Clazz_newMeth(C$, 'setDropTarget$Z', function (adding) {
if (this.dropTarget === this ) return;
this.J2S.setDragDropTarget(this.c, this.getDOMNode$(), this.dropTarget != null );
}, p$1);
Clazz_newMeth(C$, 'setZOrder$I', function (z) {
$I$(4).setPositionAbsolute(this.domNode);
$I$(4).setZ(this.domNode, z);
$I$(4).setZ(this.outerNode, z);
});
Clazz_newMeth(C$, 'invalidate$', function () {
this.setTainted$();
});
Clazz_newMeth(C$, 'checkStopPopupMenuTimer$O$I$O', function (target, eventType, jQueryEvent) {
if (target === this.domNode && eventType == -1 ) {
var type=(jQueryEvent.type ||"");
if (type.equals$O("mouseenter")) {
this.stopPopupMenuTimer$();
}}});
Clazz_newMeth(C$, 'startPopupMenuTimer$', function () {
var ui=(this.jc).getPopupMenu$().getUI$();
ui.menuTimer=setTimeout(function() { ui.hideMenu$()},1000) ||0;
});
Clazz_newMeth(C$, 'stopPopupMenuTimer$', function () {
var ui=(this.isPopupMenu ? this : this.jc.getParent$().getUI$());
var timer=ui.menuTimer;
if (timer != 0) {
clearTimeout(timer);
ui.menuTimer=0;
}});
Clazz_newMeth(C$, 'setRenderer$java_awt_JSComponent$I$I$swingjs_api_js_DOMNode', function (rendererComponent, width, height, td) {
p$1.setComponent$javax_swing_JComponent.apply(this, [rendererComponent]);
if (this.isUIDisabled) {
p$1.updateTableCell$swingjs_api_js_DOMNode.apply(this, [td]);
return;
}this.cellComponent=rendererComponent;
if (width == 0) return;
this.cellWidth=width;
this.cellHeight=height;
});
Clazz_newMeth(C$, 'reinstallUI$javax_swing_JComponent$javax_swing_JComponent', function (oldC, newC) {
this.uninstallUI$javax_swing_JComponent(oldC);
p$1.uninstallJS.apply(this, []);
if (newC == null ) {
} else {
this.installJS$();
this.installUI$javax_swing_JComponent(newC);
}});
Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) {
this.awtPeerFG=null;
this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, c);
});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
this.awtPeerBG=null;
this.setBackgroundImpl$java_awt_Color(c);
});
Clazz_newMeth(C$, 'setBackgroundImpl$java_awt_Color', function (color) {
if (this.domNode == null || this.isMenuItem || this.isUIDisabled ) return;
if (this.jc.秘gtemp != null && color != null ) this.jc.秘gtemp.setBackground$java_awt_Color(color);
this.backgroundColor=color;
this.paintBackground$swingjs_JSGraphics2D(this.jc.秘gtemp);
});
Clazz_newMeth(C$, 'checkTransparent', function () {
if (this.domNode != null && !this.c.isOpaque$() ) p$1.setTransparent.apply(this, []);
}, p$1);
Clazz_newMeth(C$, 'setTransparent', function () {
if (this.allowPaintedBackground) $I$(4).setStyles(this.domNode, ["background", "transparent"]);
}, p$1);
Clazz_newMeth(C$, 'paintBackground$swingjs_JSGraphics2D', function (g) {
var isOpaque=this.c.isOpaque$();
var color=(this.backgroundColor == null ? this.getBackground$() : this.backgroundColor);
if (g == null ) {
this.setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, color);
} else if (this.allowPaintedBackground && isOpaque ) {
g.setColor$java_awt_Color(color);
g.fillRect$I$I$I$I(0, 0, this.c.getWidth$(), this.c.getHeight$());
isOpaque=!this.jc.秘paintsSelf$();
}if (this.allowPaintedBackground && !isOpaque ) p$1.setTransparent.apply(this, []);
else p$1.checkTransparent.apply(this, []);
});
Clazz_newMeth(C$, 'setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color', function (node, color) {
$I$(4).setStyles(node, ["background-color", color == null ? null : $I$(5).getCSSColor$java_awt_Color(color)]);
});
Clazz_newMeth(C$, 'clearPaintPath$', function () {
var c=this.jc;
while (c != null ){
p$1.setTransparent.apply((c.ui), []);
c=c.getParent$();
}
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newInterface(P$, "JSEventHandler");
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Insets','swingjs.plaf.JSComponentUI','swingjs.api.js.DOMNode','java.awt.Toolkit','java.awt.Color','java.awt.event.ComponentEvent','java.awt.event.WindowEvent','javax.swing.LookAndFeel','java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSFrameUI", null, 'swingjs.plaf.JSWindowUI', 'java.awt.peer.FramePeer');
C$.ZERO_INSETS=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.ZERO_INSETS=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.frame=null;
this.state=0;
this.closerWrap=null;
this.isModal=false;
this.zModal=0;
this.$isDesktop=false;
this.isInternalFrame=false;
this.doEmbed=false;
this.bounds=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
$I$(2).frameZ+=1000;
this.z=$I$(2).frameZ;
this.isContainer=true;
this.defaultHeight=500;
this.defaultWidth=500;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.containerNode=this.frameNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_frame", []);
if (this.isDummyFrame) {
$I$(3).setVisible(this.domNode, false);
return this.domNode;
}var w=this.c.getWidth$();
var h=this.c.getHeight$();
if (w == 0) w=this.defaultWidth;
if (h == 0) h=this.defaultHeight;
$I$(3).setSize(this.frameNode, w, h);
$I$(3).setTopLeftAbsolute(this.frameNode, 0, 0);
var fname=this.frame.getName$();
var node=$I$(3).getElement(fname + "-div");
if (node != null ) {
this.embeddingNode=node;
this.doEmbed=($I$(3).getWidth(this.embeddingNode) > 0);
if (this.doEmbed) {
this.frame.setUndecorated$Z(true);
this.frame.setLocation$I$I(0, 0);
}var ew=$I$(3).getWidth(node);
var eh=$I$(3).getHeight(node);
if (ew > 0 && eh > 0 ) {
this.frame._freezeBounds$I$I(ew, eh);
}}this.setWindowClass$();
if (!this.frame.isUndecorated$()) {
$I$(3).setStyles(this.frameNode, ["box-shadow", "0px 0px 10px gray", "box-sizing", "content-box"]);
this.titleBarNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_titlebar", []);
$I$(3).setTopLeftAbsolute(this.titleBarNode, 0, 0);
$I$(3).setStyles(this.titleBarNode, ["background-color", "#E0E0E0", "height", "20px", "font-size", "14px", "font-family", "sans-serif", "font-weight", "bold"]);
this.titleNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id + "_title", []);
$I$(3).setTopLeftAbsolute(this.titleNode, 2, 4);
$I$(3).setStyles(this.titleNode, ["background-color", "#E0E0E0", "height", "20px", "overflow", "hidden"]);
this.closerWrap=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_closerwrap", []);
$I$(3).setTopLeftAbsolute(this.closerWrap, 0, 0);
$I$(3).setStyles(this.closerWrap, ["text-align", "right"]);
this.closerNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id + "_closer", ["innerHTML", "X"]);
$I$(3).setStyles(this.closerNode, ["width", "20px", "height", "20px", "position", "absolute", "text-align", "center", "right", "0px"]);
this.frameNode.appendChild(this.titleBarNode);
this.titleBarNode.appendChild(this.titleNode);
this.titleBarNode.appendChild(this.closerWrap);
this.closerWrap.appendChild(this.closerNode);
$I$(3).setStyles(this.closerNode, ["background-color", "#DDD"]);
}this.bindWindowEvents$();
if (this.isModal) {
this.modalNode=$I$(3).createElement("div", this.id + "_modaldiv");
var screen=$I$(4).getDefaultToolkit$().getScreenSize$();
$I$(3).setStyles(this.modalNode, ["background", P$.JSComponentUI.toCSSString$java_awt_Color(Clazz_new_($I$(5).c$$I$I$I$I,[100, 100, 100, 100]))]);
$I$(3).setTopLeftAbsolute(this.modalNode, 0, 0);
$I$(3).setSize(this.modalNode, screen.width, screen.height);
}var s=this.getInsets$();
$I$(3).setTopLeftAbsolute(this.frameNode, 0, 0);
$I$(3).setAttrs(this.frameNode, ["width", "" + this.frame.getWidth$() + s.left + s.right , "height", "" + this.frame.getHeight$() + s.top + s.bottom ]);
this.addFocusHandler$();
}var strColor=P$.JSComponentUI.toCSSString$java_awt_Color(this.c.getBackground$());
$I$(3).setStyles(this.domNode, ["background-color", strColor]);
$I$(3).setStyles(this.frameNode, ["background", "#DDD"]);
$I$(3).setStyles(this.frameNode, ["color", P$.JSComponentUI.toCSSString$java_awt_Color(this.c.getForeground$())]);
this.setInnerComponentBounds$I$I(this.width, this.height);
this.setTitle$S(this.frame.getTitle$());
if (!this.isDummyFrame) {
$I$(3).setVisible(this.domNode, this.jc.isVisible$());
}return this.domNode;
});
Clazz_newMeth(C$, 'isFrameIndependent$', function () {
var c=this.frame.parent;
if (this.isInternalFrame && (c == null || c != null && c.getUIClassID$() != "DesktopPaneUI" ) ) return false;
var is=(this.isInternalFrame ? c == null || c.getWidth$() == 0 : !this.doEmbed);
return is;
});
Clazz_newMeth(C$, 'setZOrder$I', function (z) {
if (this.doEmbed) z=999;
C$.superclazz.prototype.setZOrder$I.apply(this, [z]);
});
Clazz_newMeth(C$, 'setDraggableEvents$', function () {
if (this.doEmbed || this.frame.isUndecorated$() ) return;
var fnode=this.frameNode;
var fGetFrameParent=null;
{
var me = this;
fGetFrameParent = function(mode, x, y) { switch(arguments.length) { case 1: if (mode == 501) me.selected$();
me.hideMenu$();
return $(fnode).parent();
case 3: if (mode == 506) { me.moveFrame$I$I(x, y);
return null;
} } return null;
}
}
this.J2S.setDraggable(this.titleBarNode, fGetFrameParent);
});
Clazz_newMeth(C$, 'selected$', function () {
(this.jc).toFront$();
});
Clazz_newMeth(C$, 'hideMenu$', function () {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'moveFrame$I$I', function (x, y) {
if (!this.isInternalFrame) {
x=Math.max(30 - this.frame.getWidth$(), x);
y=Math.max(0, y);
}this.frame.setLocation$I$I(x, y);
});
Clazz_newMeth(C$, 'getMoveCoords$I$I', function (x, y) {
return Clazz_array(Integer.TYPE, -1, [x, y]);
});
Clazz_newMeth(C$, 'notifyFrameMoved$', function () {
this.toFront$();
$I$(4).getEventQueue$().postEvent$java_awt_AWTEvent(Clazz_new_($I$(6).c$$java_awt_Component$I,[this.frame, 100]));
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
if (target === this.closerNode && eventType == -1 ) {
switch (jQueryEvent.type ||"") {
case "click":
var tbar=this.titleBarNode;
this.J2S.setDraggable(tbar, new Boolean(false));
this.frameCloserAction$();
return true;
case "mouseout":
$I$(3).setStyles(this.closerNode, ["background-color", "#DDD"]);
return true;
case "mouseenter":
$I$(3).setStyles(this.closerNode, ["background-color", "red"]);
return true;
}
}return false;
});
Clazz_newMeth(C$, 'frameCloserAction$', function () {
this.frame.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(7).c$$java_awt_Window$I,[this.frame, 201]));
});
Clazz_newMeth(C$, 'closeFrame$', function () {
this.J2S.unsetMouse(this.frameNode);
this.$$O(this.frameNode).remove();
this.$$O(this.outerNode).remove();
});
Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) {
$I$(3).setStyles(this.closerWrap, ["text-align", "right", "width", width + "px"]);
$I$(3).setStyles(this.titleNode, ["width", (width - 4) + "px", "height", "20px"]);
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
this.frame=this.c;
this.isDummyFrame=jc.__CLASS_NAME__ == "javax.swing.SwingUtilities.SharedOwnerFrame" ||false;
this.frame.addWindowListener$java_awt_event_WindowListener(this);
this.frame.addComponentListener$java_awt_event_ComponentListener(this);
$I$(8).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Frame.background", "Frame.foreground", "Frame.font");
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
this.closeFrame$();
this.frame.removeWindowListener$java_awt_event_WindowListener(this);
});
Clazz_newMeth(C$, 'setTitle$S', function (title) {
if (this.titleNode != null ) $I$(3).setAttr(this.titleNode, "innerHTML", title);
});
Clazz_newMeth(C$, 'setMenuBar$O', function (mb) {
});
Clazz_newMeth(C$, 'setResizable$Z', function (resizeable) {
});
Clazz_newMeth(C$, 'setState$I', function (state) {
this.state=state;
});
Clazz_newMeth(C$, 'getState$', function () {
return this.state;
});
Clazz_newMeth(C$, 'setMaximizedBounds$java_awt_Rectangle', function (bounds) {
});
Clazz_newMeth(C$, 'setBoundsPrivate$I$I$I$I', function (x, y, width, height) {
this.bounds=Clazz_new_($I$(9).c$$I$I$I$I,[x, y, width, height]);
});
Clazz_newMeth(C$, 'getBoundsPrivate$', function () {
return this.bounds;
});
Clazz_newMeth(C$, 'getInsets$', function () {
return (this.isDummyFrame ? null : this.frame.isUndecorated$() ? C$.ZERO_INSETS : this.jc.getFrameViewer$().getInsets$());
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
if (e.getPropertyName$().equals$O("resizable")) {
var resizable=(e.getNewValue$()).booleanValue$();
if (this.jc.getFrameViewer$().isResizable$() == resizable ) return;
this.jc.getFrameViewer$().setResizable$Z(resizable);
}C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
if (this.isDummyFrame) b=false;
C$.superclazz.prototype.setVisible$Z.apply(this, [b]);
if (this.isModal) {
if (b) {
this.$$O(this.body).after(this.modalNode);
this.addClass$swingjs_api_js_DOMNode$S(this.modalNode, "swingjs-window");
var sz=$I$(3).getStyle(this.domNode, "z-index");
var z=((+sz ||this.getZIndex$S(null))) - 1;
$I$(3).setZ(this.modalNode, z);
}$I$(3).setVisible(this.modalNode, b);
}$I$(3).setVisible(this.domNode, b);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Dimension','javax.swing.SwingUtilities','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSGraphicsUtils");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'getPreferredButtonSize$javax_swing_AbstractButton$I', function (b, textIconGap) {
if (b.getComponentCount$() > 0) {
return null;
}var ui=(b).getUI$();
ui.setTainted$();
var icon=b.getIcon$();
var text=b.getText$();
if (ui.isAWT && text == "" ) text="\u00a0";
var font=ui.getFont$();
if (font == null ) return Clazz_new_($I$(1).c$$I$I,[10, 12]);
var fm=b.getFontMetrics$java_awt_Font(font);
ui.setButtonRectangles$Z(true);
$I$(2).layoutCompoundLabel$javax_swing_JComponent$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I(b, fm, text, icon, b.getVerticalAlignment$(), b.getHorizontalAlignment$(), b.getVerticalTextPosition$(), b.getHorizontalTextPosition$(), ui.viewR, ui.iconR, ui.textR, textIconGap);
var r=ui.viewR;
var insets=ui.insets;
r.width+=insets.left + insets.right;
r.height+=insets.top + insets.bottom;
return r.getSize$();
}, 1);
Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) {
return c.getComponentOrientation$().isLeftToRight$();
}, 1);
Clazz_newMeth(C$, 'isMenuShortcutKeyDown$java_awt_event_InputEvent', function (event) {
return (event.getModifiers$() & $I$(3).getDefaultToolkit$().getMenuShortcutKeyMask$()) != 0;
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','javax.swing.LookAndFeel','swingjs.plaf.JSGraphicsUtils']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSLabelUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.gap=0;
this.text=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.setDoc$();
this.isLabel=true;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.enableNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id, []);
this.textNode=this.iconNode=null;
this.addCentering$swingjs_api_js_DOMNode(this.domNode);
}this.getIconAndText$();
this.setIconAndText$S$javax_swing_Icon$I$S("label", this.icon, this.gap, this.text);
$I$(1).setStyles(this.domNode, ["position", "absolute", "width", this.c.getWidth$() + "px", "height", this.c.getHeight$() + "px"]);
this.updateCenteringNode$();
if (this.allowTextAlignment) {
this.setAlignments$javax_swing_AbstractButton$Z(this.label, false);
}if (this.jc.isEnabled$()) this.setBackgroundImpl$java_awt_Color(this.jc.isOpaque$() ? this.getBackground$() : null);
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'getIconAndText$', function () {
this.label=this.jc;
this.icon=this.label.getIcon$();
this.gap=this.label.getIconTextGap$();
this.text=this.label.getText$();
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.label=jc;
$I$(2).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Label.background", "Label.foreground", "Label.font");
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
});
Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (jc) {
return this.getPreferredSize$javax_swing_JComponent(jc);
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
C$.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this, [g, c]);
$I$(1).setStyles(this.textNode, ["overflow", "hidden", "white-space", "nowrap"]);
if (this.icon != null ) {
$I$(1).setStyles(this.imageNode, ["visibility", null]);
var r=this.imageNode.getBoundingClientRect();
var parent=null;
var isHidden=(r.width == 0);
if (isHidden) {
parent=$I$(1).getParent(this.domNode);
this.$$O("body").append(this.domNode);
r=this.imageNode.getBoundingClientRect();
}var r0=this.domNode.getBoundingClientRect();
if (isHidden) $I$(1).transferTo(this.domNode, parent);
$I$(1).setStyles(this.imageNode, ["visibility", "hidden"]);
this.icon.paintIcon$java_awt_Component$java_awt_Graphics$I$I(c, g, (r.x - r0.x), (r.y - r0.y));
}});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return (this.label == null ? C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [jc]) : $I$(3).getPreferredButtonSize$javax_swing_AbstractButton$I((jc), (jc).getIconTextGap$()));
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSLayeredPaneUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.isContainer=true;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
}return this.domNode;
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSLightweightUI", null, 'swingjs.plaf.JSComponentUI', 'java.awt.peer.LightweightPeer');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.MenuSelectionManager','javax.swing.MenuElement','swingjs.api.js.DOMNode','java.awt.Insets','java.awt.Dimension',['swingjs.plaf.JSMenuBarUI','.Actions'],'swingjs.plaf.DefaultMenuLayout','javax.swing.LookAndFeel','Boolean','javax.swing.SwingUtilities','swingjs.plaf.LazyActionMap','sun.swing.DefaultLookup',['swingjs.plaf.JSMenuBarUI','.Handler']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSMenuBarUI", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'swingjs.plaf.JSPanelUI', 'java.awt.event.ContainerListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.menuBar=null;
this.changeListener=null;
this.containerListener=null;
this.handler=null;
this.installed=false;
this.keyListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.isContainer=true;
this.allowPaintedBackground=false;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
$I$(3).setTopLeftAbsolute(this.domNode, 0, 0);
}this.setBackgroundImpl$java_awt_Color(this.jc.isOpaque$() ? this.getBackground$() : null);
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'propertyChangedFromListener$java_beans_PropertyChangeEvent$S', function (e, prop) {
C$.superclazz.prototype.propertyChangedFromListener$java_beans_PropertyChangeEvent$S.apply(this, [e, prop]);
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
var prop=e.getPropertyName$();
if (!this.installed && this.jc.getRootPane$() != null ) {
this.jc.getRootPane$().addKeyListener$java_awt_event_KeyListener(this.keyListener);
this.installed=true;
}C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'getContainerHeight$', function () {
var m=this.menuBar.getInsets$();
return this.height=this.getFont$().getFontMetrics$().getHeight$() + m.top + m.bottom ;
});
Clazz_newMeth(C$, 'getInsets$', function () {
return Clazz_new_($I$(4).c$$I$I$I$I,[2, 10, 2, 10]);
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
var d=Clazz_new_($I$(5).c$$I$I,[0, this.getContainerHeight$()]);
return d;
});
Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) {
});
Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) {
$I$(3).detachAll(this.domNode);
this.setTainted$();
this.setHTMLElement$();
});
Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) {
map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["takeFocus"]));
}, 1);
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (c) {
this.menuBar=c;
this.installDefaults$();
this.installListeners$();
this.installKeyboardActions$();
});
Clazz_newMeth(C$, 'installDefaults$', function () {
if (this.menuBar.getLayout$() == null || Clazz_instanceOf(this.menuBar.getLayout$(), "javax.swing.plaf.UIResource") ) {
this.menuBar.setLayout$java_awt_LayoutManager(Clazz_new_($I$(7).c$$java_awt_Container$I,[this.menuBar, 2]));
this.menuBar.addContainerListener$java_awt_event_ContainerListener(this);
}$I$(8).installProperty$javax_swing_JComponent$S$O(this.menuBar, "opaque", $I$(9).TRUE);
$I$(8).installBorder$javax_swing_JComponent$S(this.menuBar, "MenuBar.border");
$I$(8).installColorsAndFont$javax_swing_JComponent$S$S$S(this.menuBar, "MenuBar.background", "MenuBar.foreground", "MenuBar.font");
this.menuBar.setOpaque$Z(true);
});
Clazz_newMeth(C$, 'installListeners$', function () {
this.containerListener=this.createContainerListener$();
this.changeListener=this.createChangeListener$();
this.keyListener=this.createKeyListener$();
for (var i=0; i < this.menuBar.getMenuCount$(); i++) {
var menu=this.menuBar.getMenu$I(i);
if (menu != null ) menu.getModel$().addChangeListener$javax_swing_event_ChangeListener(this.changeListener);
}
this.menuBar.addContainerListener$java_awt_event_ContainerListener(this.containerListener);
});
Clazz_newMeth(C$, 'installKeyboardActions$', function () {
var inputMap=this.getInputMap$I(2);
$I$(10).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.menuBar, 2, inputMap);
$I$(11).installLazyActionMap$javax_swing_JComponent$Class$S(this.menuBar, Clazz_getClass(C$), "MenuBar.actionMap");
});
Clazz_newMeth(C$, 'getInputMap$I', function (condition) {
if (condition == 2) {
var bindings=$I$(12).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.menuBar, this, "MenuBar.windowBindings");
if (bindings != null ) {
return $I$(8).makeComponentInputMap$javax_swing_JComponent$OA(this.menuBar, bindings);
}}return null;
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (c) {
this.uninstallDefaults$();
this.uninstallListeners$();
this.uninstallKeyboardActions$();
this.menuBar=null;
});
Clazz_newMeth(C$, 'uninstallDefaults$', function () {
if (this.menuBar != null ) {
$I$(8).uninstallBorder$javax_swing_JComponent(this.menuBar);
}});
Clazz_newMeth(C$, 'uninstallListeners$', function () {
this.menuBar.removeContainerListener$java_awt_event_ContainerListener(this.containerListener);
for (var i=0; i < this.menuBar.getMenuCount$(); i++) {
var menu=this.menuBar.getMenu$I(i);
if (menu != null ) menu.getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.changeListener);
}
this.containerListener=null;
this.changeListener=null;
this.handler=null;
});
Clazz_newMeth(C$, 'uninstallKeyboardActions$', function () {
$I$(10).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.menuBar, 2, null);
$I$(10).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.menuBar, null);
});
Clazz_newMeth(C$, 'createContainerListener$', function () {
return p$1.getHandler.apply(this, []);
});
Clazz_newMeth(C$, 'createChangeListener$', function () {
return p$1.getHandler.apply(this, []);
});
Clazz_newMeth(C$, 'createKeyListener$', function () {
return p$1.getHandler.apply(this, []);
});
Clazz_newMeth(C$, 'getHandler', function () {
if (this.handler == null ) {
this.handler=Clazz_new_($I$(13), [this, null]);
}return this.handler;
}, p$1);
;
(function(){var C$=Clazz_newClass(P$.JSMenuBarUI, "Handler", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['javax.swing.event.ChangeListener', 'java.awt.event.ContainerListener', 'java.awt.event.KeyListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var i;
var c;
for (i=0, c=this.this$0.menuBar.getMenuCount$(); i < c; i++) {
var menu=this.this$0.menuBar.getMenu$I(i);
if (menu != null && menu.isSelected$() ) {
this.this$0.menuBar.getSelectionModel$().setSelectedIndex$I(i);
break;
}}
});
Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) {
var c=e.getChild$();
if (Clazz_instanceOf(c, "javax.swing.JMenu")) (c).getModel$().addChangeListener$javax_swing_event_ChangeListener(this.this$0.changeListener);
});
Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) {
var c=e.getChild$();
if (Clazz_instanceOf(c, "javax.swing.JMenu")) (c).getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.this$0.changeListener);
});
Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) {
var msm=$I$(1).defaultManager$();
msm.setCurrentPath$javax_swing_JComponent(null);
msm.processKeyEvent$java_awt_event_KeyEvent(e);
});
Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSMenuBarUI, "Actions", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'sun.swing.UIAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (key) {
C$.superclazz.c$$S.apply(this, [key]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var menuBar=e.getSource$();
var defaultManager=$I$(1).defaultManager$();
var me;
var subElements;
var menu=menuBar.getMenu$I(0);
if (menu != null ) {
me=Clazz_array($I$(2), [3]);
me[0]=menuBar;
me[1]=menu;
me[2]=menu.getPopupMenu$();
defaultManager.setSelectedPath$javax_swing_MenuElementA(me);
}});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','java.awt.Dimension','swingjs.plaf.JSPopupMenuUI']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSMenuItemUI", null, 'swingjs.plaf.JSButtonUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.menuKeyListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.isMenuItem=true;
this.allowPaintedBackground=false;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.domNode=this.createItem$S$swingjs_api_js_DOMNode("_item", null);
this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter", -1);
}$I$(1).setVisible(this.domNode, this.jc.isVisible$());
this.setupButton$();
return this.domNode;
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
this.checkStopPopupMenuTimer$O$I$O(target, eventType, jQueryEvent);
return C$.superclazz.prototype.handleJSEvent$O$I$O.apply(this, [target, eventType, jQueryEvent]);
});
Clazz_newMeth(C$, 'getContainerHeight$', function () {
return this.height=25;
});
Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) {
return Clazz_new_($I$(2).c$$I$I,[5, 0]);
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.menuItem=jc;
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
var prop=e.getPropertyName$();
if (this.jc.isVisible$()) {
if (prop == "ancestor") {
if (this.jc.getParent$() != null ) {
(this.jc.getParent$().getUI$()).setHTMLElement$();
}}}});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "MenuItem";
});
Clazz_newMeth(C$, 'processJ2SMenuCmd$OA', function (data) {
$I$(3).processJ2SMenuCmd$OA(data);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.api.js.DOMNode','java.awt.Component','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSMenuUI", null, 'swingjs.plaf.JSMenuItemUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.jm=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.isMenu=true;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
var isMenuBarMenu=this.jm.isTopLevelMenu$();
if (this.domNode != null && this.isMenuItem == isMenuBarMenu ) {
this.outerNode=null;
if (isMenuBarMenu) $I$(1).detachAll((this.jc.getParent$().ui).domNode);
}if (this.domNode == null ) {
this.domNode=this.createItem$S$swingjs_api_js_DOMNode(isMenuBarMenu ? "_bar" : "_elem", null);
this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter mouseleave", -1);
}this.allowTextAlignment=this.isMenuItem=!isMenuBarMenu;
this.containerNode=(isMenuBarMenu ? null : this.domNode);
this.addClass$swingjs_api_js_DOMNode$S(this.domNode, isMenuBarMenu ? "j2s-menuBar-menu" : "j2s-popup-menu");
this.removeClass$swingjs_api_js_DOMNode$S(this.domNode, !isMenuBarMenu ? "j2s-menuBar-menu" : "j2s-popup-menu");
if (isMenuBarMenu) this.removeClass$swingjs_api_js_DOMNode$S(this.menuAnchorNode, "a");
else this.addClass$swingjs_api_js_DOMNode$S(this.menuAnchorNode, "a");
this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.domNode, this.c.getFont$());
$I$(1).setVisible(this.domNode, this.jc.isVisible$());
this.setIconAndText$S$javax_swing_Icon$I$S("menu", this.currentIcon, this.currentGap, this.currentText);
return this.domNode;
});
Clazz_newMeth(C$, 'propertyChangedFromListener$java_beans_PropertyChangeEvent$S', function (e, prop) {
C$.superclazz.prototype.propertyChangedFromListener$java_beans_PropertyChangeEvent$S.apply(this, [e, prop]);
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
var prop=e.getPropertyName$();
if (this.jc.isVisible$()) {
if (prop == "ancestor") {
p$1.rebuild.apply(this, []);
}}C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'rebuild', function () {
if (this.jc.getParent$() != null ) {
if (this.domNode != null && this.isMenuItem == this.jm.isTopLevelMenu$() ) {
this.reInit$();
this.outerNode=null;
this.updateDOMNode$();
return;
}}}, p$1);
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.jm=jc;
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
(this.menuItem).setDelay$I(200);
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
C$.superclazz.prototype.uninstallUI$javax_swing_JComponent.apply(this, [jc]);
});
Clazz_newMeth(C$, 'getChildren$', function () {
return (this.isMenuItem ? Clazz_array($I$(2), -1, [this.jm.getPopupMenu$()]) : $I$(3).秘getChildArray$java_awt_Container(this.jm));
});
Clazz_newMeth(C$, 'getChildCount$', function () {
return (this.isMenuItem ? 1 : this.jc.getComponentCount$());
});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "Menu";
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','java.awt.Dimension','javax.swing.LookAndFeel']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSPanelUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.$frameZ=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.$frameZ=10000;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.isContainer=this.isPanel=true;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
var root=this.jc.getRootPane$();
if (this.domNode == null ) {
this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
if (root != null && root.getGlassPane$() === this.c ) $I$(1).setVisible(this.domNode, false);
}this.isContentPane=(root != null && this.jc === root.getContentPane$() );
if (this.isContentPane) this.checkAllowDivOverflow$();
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) {
return Clazz_new_($I$(2).c$$I$I,[this.c.getWidth$(), this.c.getHeight$()]);
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
$I$(3).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Panel.background", "Panel.foreground", "Panel.font");
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return null;
});
Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (jc) {
return null;
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSPopupMenuSeparatorUI", null, 'swingjs.plaf.JSSeparatorUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.isMenuItem=this.isMenuSep=true;
this.allowPaintedBackground=false;
}, 1);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.plaf.JSPopupMenuUI','javax.swing.MenuSelectionManager','swingjs.jquery.JQueryUI','swingjs.JSUtil','swingjs.api.js.DOMNode','javax.swing.LookAndFeel',['swingjs.plaf.JSPopupMenuUI','.JSMenuKeyListener'],'javax.swing.UIManager','swingjs.plaf.JSComponentUI']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSPopupMenuUI", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'swingjs.plaf.JSPanelUI', 'java.awt.event.ContainerListener');
C$.j2sSwingMenu=null;
C$.np=0;
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
var jqueryui=Clazz_getClass($I$(3));
};
C$.np=0;
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.popupMenu=null;
this.menuKeyListener=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
if (C$.j2sSwingMenu == null ) {
$I$(4).loadStaticResource$S("swingjs/jquery/j2sMenu.js");
C$.j2sSwingMenu=this.J2S.getSwing();
}this.isContainer=true;
this.isMenuItem=true;
this.isPopupMenu=true;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("ul", this.id, []);
this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter", -1);
}return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) {
$I$(5).detachAll(this.outerNode);
this.setTainted$();
this.setHTMLElement$();
var child=e.getChild$();
if (Clazz_instanceOf(child, "javax.swing.JMenuItem")) (e.getChild$()).addMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener);
});
Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) {
$I$(5).detachAll(this.outerNode);
this.setTainted$();
this.setHTMLElement$();
var child=e.getChild$();
if (Clazz_instanceOf(child, "javax.swing.JMenuItem")) (e.getChild$()).removeMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener);
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
this.checkStopPopupMenuTimer$O$I$O(target, eventType, jQueryEvent);
return C$.superclazz.prototype.handleJSEvent$O$I$O.apply(this, [target, eventType, jQueryEvent]);
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.installDefaults$();
this.installListeners$();
});
Clazz_newMeth(C$, 'installDefaults$', function () {
this.popupMenu=this.jc;
(this.jc).addContainerListener$java_awt_event_ContainerListener(this);
$I$(6).installColorsAndFont$javax_swing_JComponent$S$S$S(this.jc, "PopupMenu.background", "PopupMenu.foreground", "PopupMenu.font");
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
(jc).removeContainerListener$java_awt_event_ContainerListener(this);
this.uninstallListeners$();
});
Clazz_newMeth(C$, 'uninstallListeners$', function () {
if (this.menuKeyListener != null ) {
this.popupMenu.removeMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener);
}});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
C$.closeAllMenus$();
if (b) {
if (this.isTainted || this.menu == null || this.outerNode == null || $I$(5).firstChild(this.outerNode) == null ) {
if (this.menu == null ) {
this.setTainted$();
this.setHTMLElement$();
this.menu=this.jc;
C$.j2sSwingMenu.setMenu(this.menu);
this.isTainted=false;
} else {
this.updateMenu$Z(true);
}}var x=this.menu.desiredLocationX ||0;
var y=this.menu.desiredLocationY ||0;
C$.j2sSwingMenu.showMenu(this.menu, x, y);
}});
Clazz_newMeth(C$, 'dispose$', function () {
$I$(5).dispose(this.domNode);
$I$(5).dispose(this.outerNode);
if (this.menu != null ) C$.j2sSwingMenu.disposeMenu(this.menu);
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return null;
});
Clazz_newMeth(C$, 'updateMenu$Z', function (andShow) {
this.setTainted$();
this.setHTMLElement$();
C$.j2sSwingMenu.updateMenu(this.menu, andShow);
});
Clazz_newMeth(C$, 'installListeners$', function () {
if (this.menuKeyListener == null ) {
this.menuKeyListener=Clazz_new_($I$(7), [this, null]);
}this.popupMenu.addMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener);
if (Clazz_instanceOf(this.popupMenu.getInvoker$(), "javax.swing.JRootPane")) {
this.popupMenu.getInvoker$().addKeyListener$java_awt_event_KeyListener(this.menuKeyListener);
}});
Clazz_newMeth(C$, 'getLastPopup$', function () {
var msm=$I$(2).defaultManager$();
var p=msm.getSelectedPath$();
var popup=null;
for (var i=p.length - 1; popup == null && i >= 0 ; i--) {
if (Clazz_instanceOf(p[i], "javax.swing.JPopupMenu")) popup=p[i];
}
return popup;
}, 1);
Clazz_newMeth(C$, 'nextEnabledChild$javax_swing_MenuElementA$I$I', function (e, fromIndex, toIndex) {
for (var i=fromIndex; i <= toIndex; i++) {
if (e[i] != null ) {
var comp=e[i].getComponent$();
if (comp != null && (comp.isEnabled$() || $I$(8).getBoolean$O("MenuItem.disabledAreNavigable") ) && comp.isVisible$() ) {
return e[i];
}}}
return null;
}, 1);
Clazz_newMeth(C$, 'previousEnabledChild$javax_swing_MenuElementA$I$I', function (e, fromIndex, toIndex) {
for (var i=fromIndex; i >= toIndex; i--) {
if (e[i] != null ) {
var comp=e[i].getComponent$();
if (comp != null && (comp.isEnabled$() || $I$(8).getBoolean$O("MenuItem.disabledAreNavigable") ) && comp.isVisible$() ) {
return e[i];
}}}
return null;
}, 1);
Clazz_newMeth(C$, 'getInputMap$javax_swing_JPopupMenu$javax_swing_JComponent', function (popup, rootPane) {
var windowInputMap=null;
var bindings=$I$(8).get$O("PopupMenu.selectedWindowInputMapBindings");
if (bindings != null ) {
windowInputMap=$I$(6).makeComponentInputMap$javax_swing_JComponent$OA(rootPane, bindings);
if (!popup.getComponentOrientation$().isLeftToRight$()) {
var km=$I$(8).get$O("PopupMenu.selectedWindowInputMapBindings.RightToLeft");
if (km != null ) {
var rightToLeftInputMap=$I$(6).makeComponentInputMap$javax_swing_JComponent$OA(rootPane, km);
rightToLeftInputMap.setParent$javax_swing_InputMap(windowInputMap);
windowInputMap=rightToLeftInputMap;
}}}return windowInputMap;
}, 1);
Clazz_newMeth(C$, 'findEnabledChild$javax_swing_MenuElementA$I$Z', function (e, fromIndex, forward) {
var result;
if (forward) {
result=C$.nextEnabledChild$javax_swing_MenuElementA$I$I(e, fromIndex + 1, e.length - 1);
if (result == null ) result=C$.nextEnabledChild$javax_swing_MenuElementA$I$I(e, 0, fromIndex - 1);
} else {
result=C$.previousEnabledChild$javax_swing_MenuElementA$I$I(e, fromIndex - 1, 0);
if (result == null ) result=C$.previousEnabledChild$javax_swing_MenuElementA$I$I(e, e.length - 1, fromIndex + 1);
}return result;
}, 1);
Clazz_newMeth(C$, 'findEnabledChild$javax_swing_MenuElementA$javax_swing_MenuElement$Z', function (e, elem, forward) {
for (var i=0; i < e.length; i++) {
if (e[i] === elem ) {
return C$.findEnabledChild$javax_swing_MenuElementA$I$Z(e, i, forward);
}}
return null;
}, 1);
Clazz_newMeth(C$, 'isJSPopupVisible$', function () {
return this.menu != null && this.menu.haveLoc && $I$(5).getStyle(this.domNode, "display") != "none" ;
});
Clazz_newMeth(C$, 'processJ2SMenuCmd$OA', function (data) {
var trigger=data[0];
var j2smenu=data[1];
var e=data[2];
var t=data[3];
var n=data[4];
var m=j2smenu.activeMenu;
var mid=(m && m[0] && m[0].id ||null);
var id=(t && t[0] && t[0].id ||null);
var text=(t && t[0] && (t[0]["data-component"] && t[0]["data-component"].text || t[0]["data-ui"] && t[0]["data-ui"].jc.text) ||null);
var menu=null;
var ui;
var mui=(m[0]["data-ui"] ||null);
var debug=false;
switch (trigger) {
case "_openSubmenu":
C$.updateMenuSelection$O$Z(t, true);
break;
case "_closeSubmenus":
C$.updateMenuSelection$O$Z(t, false);
break;
case "onover":
case "onover1":
case "onover2":
case "onover3":
case "_activate":
case "_hide":
case "_move":
case "_show":
case "_startOpening":
case "clearOut":
case "collapse":
case "expand":
case "keyActivate":
case "noclickout":
case "onblur":
case "onclick":
case "onclick_out":
case "onfocus":
case "onleave":
case "blur":
case "onpress":
case "onrelease":
case "refresh":
case "select":
break;
case "focus":
$I$(9).isMenuOpen=true;
break;
case "collapseAll":
C$.closeAllMenus$();
$I$(9).isMenuOpen=false;
j2smenu.options.jPopupMenu.visible=false;
(j2smenu.options.jPopupMenu.getInvoker$()).getRootPane$().requestFocus$();
break;
case "_hideAllMenus":
C$.updateMenuSelection$O$Z(t, false);
break;
}
if (debug) System.out.println$S("JSPopupMenuUI processing " + (C$.np++) + " " + trigger + " for " + id + " " + text );
}, 1);
Clazz_newMeth(C$, 'updateMenuSelection$O$Z', function (t, isOpen) {
for (var i=t.length ||0; --i >= 0; ) {
var p=t[i]["data-component"] ||null;
if (p.isSelected$() != isOpen ) p.setSelected$Z(isOpen);
}
}, 1);
Clazz_newMeth(C$, 'isPopupTrigger$java_awt_event_MouseEvent', function (e) {
return e.isPopupTrigger$();
});
Clazz_newMeth(C$, 'closeAllMenus$', function () {
if ($I$(9).isMenuOpen) {
$I$(4).jQuery.$(".ui-j2smenu").hide();
$I$(4).jQuery.$(".ui-j2smenu-node").removeClass("ui-state-active").removeClass("ui-state-focus");
}}, 1);
;
(function(){var C$=Clazz_newClass(P$.JSPopupMenuUI, "JSMenuKeyListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['javax.swing.event.MenuKeyListener', 'java.awt.event.KeyListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'menuKeyTyped$javax_swing_event_MenuKeyEvent', function (e) {
});
Clazz_newMeth(C$, 'menuKeyPressed$javax_swing_event_MenuKeyEvent', function (e) {
var path=e.getPath$();
var item=(path.length == 0 ? null : path[path.length - 1]);
if (Clazz_instanceOf(item, "javax.swing.JMenu")) {
$I$(1).j2sSwingMenu.getInstance(this.this$0.menu)._keydown(e.bdata.jqevent ||null);
e.consume$();
} else if (Clazz_instanceOf(item, "javax.swing.JMenuItem")) {
(item).doClick$();
e.consume$();
P$.JSComponentUI.hideMenusAndToolTip$();
}});
Clazz_newMeth(C$, 'menuKeyReleased$javax_swing_event_MenuKeyEvent', function (e) {
});
Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) {
$I$(2).defaultManager$().processKeyEvent$java_awt_event_KeyEvent(e);
});
Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) {
});
Clazz_newMeth(C$);
})()
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSRadioButtonMenuItemUI", null, 'swingjs.plaf.JSRadioButtonUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.isMenuItem=true;
this.allowPaintedBackground=false;
this.actionItemOffset=-8;
}, 1);
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "RadioButtonMenuItem";
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.menuItem=jc;
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSRadioButtonUI", null, 'swingjs.plaf.JSButtonUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
var b=this.jc;
var doAll=false;
if (this.domNode == null ) {
doAll=true;
this.buttonNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id + "btn", []);
if (this.isMenuItem) {
this.domNode=this.createItem$S$swingjs_api_js_DOMNode("_item", this.buttonNode);
this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter", -1);
} else {
this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_dom", []);
this.domNode.appendChild(this.buttonNode);
this.focusNode=this.buttonNode;
}this.iconNode=null;
if (b.getIcon$() == null ) {
this.iconNode=this.actionNode=P$.JSComponentUI.newDOMObject$S$S$SA("input", this.id, ["type", (this.getPropertyPrefix$() == "RadioButton" ? "radio" : "checkbox"), "name", this.id]);
$I$(1).setAttr(this.buttonNode, "htmlFor", this.id);
} else {
if (this.actionNode != null ) $I$(1).dispose(this.actionNode);
}this.enableNodes=Clazz_array($I$(1), -1, [this.actionNode, this.buttonNode, null]);
this.createButton$();
if (this.isMenuItem) this.setMenuItem$();
}this.setupButton$javax_swing_JToggleButton$Z(b, doAll);
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "RadioButton";
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.getPropertyPrefix$();
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
this.checkStopPopupMenuTimer$O$I$O(target, eventType, jQueryEvent);
return C$.superclazz.prototype.handleJSEvent$O$I$O.apply(this, [target, eventType, jQueryEvent]);
});
Clazz_newMeth(C$, 'setupButton$javax_swing_JToggleButton$Z', function (b, doAll) {
$I$(1).setAttr(this.actionNode, "checked", b.isSelected$() ? "TRUE" : null);
this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.textNode, this.c.getFont$());
this.setIconAndText$S$javax_swing_Icon$I$S("radio", null, this.button.getIconTextGap$(), this.button.getText$());
this.setAlignments$javax_swing_AbstractButton$Z(b, false);
if (doAll && !this.isMenuItem ) $I$(1).setPositionAbsolute(this.domNode);
});
Clazz_newMeth(C$, 'handleDOMEvent$O', function (e) {
(this.c).doClick$I(0);
});
Clazz_newMeth(C$, 'getDefaultIconTextGap$', function () {
return 4;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSRootPaneUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.resizer=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'setResizer$swingjs_plaf_Resizer', function (resizer) {
this.resizer=resizer;
});
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.isRootPane=this.isContainer=true;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
this.addFocusHandler$();
}this.checkAllowDivOverflow$();
return this.domNode;
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return null;
});
Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) {
var resizer=this.jc.getFrameViewer$().getResizer$();
if (resizer != null ) resizer.setPosition$I$I(0, 0);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Color','java.awt.Dimension','swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSScrollBarUI", null, 'swingjs.plaf.JSSliderUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.isInvisible=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'setScrollPaneUI$swingjs_plaf_JSScrollPaneUI', function (ui) {
this.myScrollPaneUI=ui;
});
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$.apply(this, []);
C$.$init$.apply(this);
this.isScrollBar=true;
this.allowPaintedBackground=false;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
C$.superclazz.prototype.updateDOMNode$.apply(this, []);
if (this.isAWT && !this.jc.isBackgroundSet$() ) {
this.jc.setBackground$java_awt_Color($I$(1).LIGHT_GRAY);
}return this.domNode;
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
C$.superclazz.prototype.stateChanged$javax_swing_event_ChangeEvent.apply(this, [e]);
this.setScrollBarExtentAndCSS$();
});
Clazz_newMeth(C$, 'setValue$I', function (val) {
if (!this.isAWT) {
C$.superclazz.prototype.setValue$I.apply(this, [val]);
return;
}var sb=this.jc;
if (val != sb.getValue$()) (this.jc).setValueFromUI$I(val);
});
Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) {
if (!this.isAWT) {
C$.superclazz.prototype.setValueIsAdjusting$Z.apply(this, [b]);
return;
}(this.jc).setValueIsAdjustingFromUI$Z(b);
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
var wh=(this.myScrollPaneUI == null ? 15 : this.myScrollPaneUI.scrollBarUIDisabled ? 0 : 13);
return Clazz_new_($I$(2).c$$I$I,[wh, wh]);
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
this.isInvisible=(this.myScrollPaneUI != null && this.myScrollPaneUI.scrollBarUIDisabled );
b&=!this.isInvisible;
$I$(3).setVisible(this.getOuterNode$(), b);
$I$(3).setVisible(this.jqSlider, b);
});
Clazz_newMeth(C$, 'setScrollBarExtentAndCSS$', function () {
var left;
var top;
var thickness;
var transform;
var leftt;
var sb=this.jc;
var extent=sb.getVisibleAmount$();
this.setSliderAttr$S$F("visibleAmount", extent);
var isVertical=(this.orientation == "vertical");
if (this.myScrollPaneUI == null ) {
var d=(isVertical ? sb.getWidth$() : sb.getHeight$());
var t=(Math.min(d * 0.8, 12)|0);
left=top="50%";
thickness=(new Double(Math.floor((t/2|0)) * 2 - 1).toString()) + "px";
leftt="50%";
transform="translate(" + (isVertical ? "X" : "Y") + ")" ;
} else {
left="0px";
leftt="0px";
top=(this.isAWT ? "4px" : "0px");
thickness="12px";
transform=null;
}if (isVertical) {
$I$(3).setStyles(this.sliderTrack, ["transform", transform, "left", left, "width", thickness]);
$I$(3).setStyles(this.sliderHandle, ["border", "none", "left", leftt, "margin-bottom", "0px", "width", thickness]);
} else {
$I$(3).setStyles(this.sliderTrack, ["top", top, "height", thickness]);
$I$(3).setStyles(this.sliderHandle, ["border", "none", "top", leftt, "margin-left", "0px", "height", thickness]);
}});
Clazz_newMeth(C$, 'scrollByBlock$I$I', function (direction, val0) {
var sb=this.jc;
var delta=sb.getBlockIncrement$();
if (delta == -2147483648 && direction > 0 ) return;
delta*=(direction > 0 ? 1 : -1);
this.setValue$I(sb.getValue$() + delta);
});
Clazz_newMeth(C$, 'scrollByUnit$I', function (direction) {
var sb=this.jc;
var delta=sb.getUnitIncrement$();
if (delta == -2147483648 && direction > 0 ) return;
delta*=(direction > 0 ? 1 : -1);
this.setValue$I(sb.getValue$() + delta);
});
Clazz_newMeth(C$, 'getUnitIncrement$', function () {
var sb=this.jc;
return sb.getUnitIncrement$();
});
Clazz_newMeth(C$, 'scrollDueToClickInTrack$I$I', function (dir, val) {
this.scrollByBlock$I(dir);
});
Clazz_newMeth(C$, 'setOverflow$', function () {
if (this.myScrollPaneUI != null && this.myScrollPaneUI.scrollBarUIDisabled ) $I$(3).setStyles(this.domNode, ["display", "none"]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},p$2={},p$3={},I$=[[0,'java.awt.Point','swingjs.api.js.DOMNode','java.awt.Dimension',['swingjs.plaf.JSScrollPaneUI','.Actions'],'sun.swing.DefaultLookup','javax.swing.LookAndFeel','javax.swing.UIManager','Boolean','javax.swing.SwingUtilities','swingjs.plaf.LazyActionMap',['swingjs.plaf.JSScrollPaneUI','.Handler'],['java.awt.Component','.BaselineResizeBehavior']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSScrollPaneUI", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'swingjs.plaf.JSLightweightUI', ['java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.scrolledComponent=null;
this.viewport=null;
this.scrolledUI=null;
this.horizBarUI=null;
this.vertBarUI=null;
this.scrollBarUIDisabled=false;
this.scrollpane=null;
this.vsbChangeListener=null;
this.hsbChangeListener=null;
this.viewportChangeListener=null;
this.spPropertyChangeListener=null;
this.vsbPropertyChangeListener=null;
this.hsbPropertyChangeListener=null;
this.handler=null;
this.setValueCalled=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.scrollBarUIDisabled=false;
this.setValueCalled=false;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
this.isContainer=true;
if (this.domNode == null ) {
this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
if (this.scrolledComponent != null && (this.scrolledComponent.isAWT$ ||false) ) $I$(2).setStyles(this.domNode, ["border", "solid black 1px", "box-sizing", "border-box"]);
}return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'jsSetViewPort$', function () {
this.viewport=this.scrollpane.getViewport$();
var hscrollbar=this.scrollpane.getHorizontalScrollBar$();
hscrollbar.addChangeListener$javax_swing_event_ChangeListener(this);
hscrollbar.addPropertyChangeListener$java_beans_PropertyChangeListener(this);
var vscrollbar=this.scrollpane.getVerticalScrollBar$();
vscrollbar.addChangeListener$javax_swing_event_ChangeListener(this);
vscrollbar.addPropertyChangeListener$java_beans_PropertyChangeListener(this);
return p$3.setScrollComponent$javax_swing_JViewport$Z.apply(this, [this.viewport, true]);
});
Clazz_newMeth(C$, 'setScrollComponent$javax_swing_JViewport$Z', function (viewport, setSize) {
this.viewport=viewport;
var sc=viewport.getView$();
if (sc == null || sc.ui == null ) return false;
if (sc !== this.scrolledComponent ) {
this.scrolledComponent=sc;
this.scrolledUI=sc.ui;
this.scrollBarUIDisabled=(Clazz_instanceOf(this.scrolledUI, "swingjs.plaf.JSTextViewUI"));
this.scrolledUI.scrollPaneUI=this;
if (setSize) $I$(2).setSize(this.scrolledUI.domNode, this.c.getWidth$(), this.c.getHeight$());
}return true;
}, p$3);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
if (this.scrolledComponent == null && !this.jsSetViewPort$() ) return;
if (Clazz_instanceOf(e.getSource$(), "javax.swing.BoundedRangeModel") && p$3.jsModelStateChanged$javax_swing_event_ChangeEvent.apply(this, [e]) ) {
return;
}this.getHandler$().stateChanged$javax_swing_event_ChangeEvent(e);
});
Clazz_newMeth(C$, 'getScrollBarPolicyCSS$I', function (policy) {
switch (policy % 10) {
default:
case 0:
return "auto";
case 1:
return "none";
case 2:
return "scroll";
}
}, p$3);
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return (this.isAWT && (jc.getWidth$() != 0 || jc.getHeight$() != 0 ) ? Clazz_new_($I$(3).c$$I$I,[jc.getWidth$(), jc.getHeight$()]) : null);
});
Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) {
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollUp"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollDown"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollHome"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollEnd"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollUp"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollDown"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollLeft"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollRight"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollRight"]));
map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollLeft"]));
}, 1);
Clazz_newMeth(C$, 'updateScrollBarExtents', function () {
var vp=this.scrollpane.getViewport$();
if (vp == null ) return;
var vsb=this.scrollpane.getVerticalScrollBar$();
var hsb=this.scrollpane.getHorizontalScrollBar$();
if (vsb != null ) {
vsb.setVisibleAmount$I(vp.getHeight$());
}if (hsb != null ) {
vsb.setVisibleAmount$I(vp.getWidth$());
}}, p$3);
Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (jc) {
return Clazz_new_($I$(3).c$$I$I,[32767, 32767]);
});
Clazz_newMeth(C$, 'getInputMap$I', function (condition) {
if (condition == 1) {
var keyMap=$I$(5).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.scrollpane, this, "ScrollPane.ancestorInputMap");
var rtlKeyMap;
if (this.scrollpane.getComponentOrientation$().isLeftToRight$() || ((rtlKeyMap=$I$(5).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.scrollpane, this, "ScrollPane.ancestorInputMap.RightToLeft")) == null ) ) {
return keyMap;
} else {
rtlKeyMap.setParent$javax_swing_InputMap(keyMap);
return rtlKeyMap;
}}return null;
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.scrollpane=jc;
this.installDefaults$javax_swing_JScrollPane(this.scrollpane);
this.installListeners$javax_swing_JScrollPane(this.scrollpane);
this.installKeyboardActions$javax_swing_JScrollPane(this.scrollpane);
});
Clazz_newMeth(C$, 'installDefaults$javax_swing_JScrollPane', function (scrollpane) {
$I$(6).installBorder$javax_swing_JComponent$S(scrollpane, "ScrollPane.border");
$I$(6).installColorsAndFont$javax_swing_JComponent$S$S$S(scrollpane, "ScrollPane.background", "ScrollPane.foreground", "ScrollPane.font");
var vpBorder=scrollpane.getViewportBorder$();
if ((vpBorder == null ) || (Clazz_instanceOf(vpBorder, "javax.swing.plaf.UIResource")) ) {
vpBorder=$I$(7).getBorder$O("ScrollPane.viewportBorder");
scrollpane.setViewportBorder$javax_swing_border_Border(vpBorder);
}$I$(6).installProperty$javax_swing_JComponent$S$O(scrollpane, "opaque", $I$(8).TRUE);
});
Clazz_newMeth(C$, 'installListeners$javax_swing_JScrollPane', function (c) {
this.vsbChangeListener=this.createVSBChangeListener$();
this.vsbPropertyChangeListener=p$3.createVSBPropertyChangeListener.apply(this, []);
this.hsbChangeListener=this.createHSBChangeListener$();
this.hsbPropertyChangeListener=p$3.createHSBPropertyChangeListener.apply(this, []);
this.viewportChangeListener=this.createViewportChangeListener$();
this.spPropertyChangeListener=this.createPropertyChangeListener$();
var viewport=this.scrollpane.getViewport$();
var vsb=this.scrollpane.getVerticalScrollBar$();
var hsb=this.scrollpane.getHorizontalScrollBar$();
if (viewport != null ) {
viewport.addChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener);
viewport.addPropertyChangeListener$java_beans_PropertyChangeListener(this);
}this.horizBarUI=this.vertBarUI=null;
p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this, [null, vsb, this.vsbChangeListener, this.vsbPropertyChangeListener, true]);
p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this, [null, hsb, this.hsbChangeListener, this.hsbPropertyChangeListener, false]);
this.scrollpane.addPropertyChangeListener$java_beans_PropertyChangeListener(this.spPropertyChangeListener);
});
Clazz_newMeth(C$, 'updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z', function (sbOld, sbNew, cl, pcl, isVertical) {
if (sbOld != null ) {
if (isVertical) {
this.vertBarUI=null;
(sbOld.getUI$()).setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(null);
} else {
this.horizBarUI=null;
(sbOld.getUI$()).setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(null);
}if (cl != null ) {
sbOld.getModel$().removeChangeListener$javax_swing_event_ChangeListener(cl);
}if (pcl != null ) {
sbOld.removePropertyChangeListener$java_beans_PropertyChangeListener(pcl);
}}if (sbNew != null ) {
if (isVertical) {
this.vertBarUI=sbNew.getUI$();
this.vertBarUI.setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(this);
} else {
this.horizBarUI=sbNew.getUI$();
this.horizBarUI.setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(this);
}if (cl != null ) {
sbNew.getModel$().addChangeListener$javax_swing_event_ChangeListener(cl);
}if (pcl != null ) {
sbNew.addPropertyChangeListener$java_beans_PropertyChangeListener(pcl);
}}}, p$3);
Clazz_newMeth(C$, 'installKeyboardActions$javax_swing_JScrollPane', function (c) {
var inputMap=this.getInputMap$I(1);
$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 1, inputMap);
$I$(10).installLazyActionMap$javax_swing_JComponent$Class$S(c, Clazz_getClass(C$), "ScrollPane.actionMap");
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
this.uninstallDefaults$javax_swing_JScrollPane(this.scrollpane);
this.uninstallListeners$javax_swing_JComponent(this.scrollpane);
this.uninstallKeyboardActions$javax_swing_JScrollPane(this.scrollpane);
this.scrollpane=null;
});
Clazz_newMeth(C$, 'uninstallDefaults$javax_swing_JScrollPane', function (c) {
$I$(6).uninstallBorder$javax_swing_JComponent(this.scrollpane);
if (Clazz_instanceOf(this.scrollpane.getViewportBorder$(), "javax.swing.plaf.UIResource")) {
this.scrollpane.setViewportBorder$javax_swing_border_Border(null);
}});
Clazz_newMeth(C$, 'uninstallListeners$javax_swing_JComponent', function (c) {
var viewport=this.scrollpane.getViewport$();
var vsb=this.scrollpane.getVerticalScrollBar$();
var hsb=this.scrollpane.getHorizontalScrollBar$();
if (viewport != null ) {
viewport.removeChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener);
}if (vsb != null ) {
vsb.getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.vsbChangeListener);
vsb.removePropertyChangeListener$java_beans_PropertyChangeListener(this.vsbPropertyChangeListener);
}if (hsb != null ) {
hsb.getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.hsbChangeListener);
hsb.removePropertyChangeListener$java_beans_PropertyChangeListener(this.hsbPropertyChangeListener);
}this.scrollpane.removePropertyChangeListener$java_beans_PropertyChangeListener(this.spPropertyChangeListener);
this.vsbChangeListener=null;
this.hsbChangeListener=null;
this.viewportChangeListener=null;
this.spPropertyChangeListener=null;
this.handler=null;
});
Clazz_newMeth(C$, 'uninstallKeyboardActions$javax_swing_JScrollPane', function (c) {
$I$(9).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(c, null);
$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 1, null);
});
Clazz_newMeth(C$, 'getHandler$', function () {
if (this.handler == null ) {
this.handler=Clazz_new_($I$(11), [this, null]);
}return this.handler;
});
Clazz_newMeth(C$, 'syncScrollPaneWithViewport$', function () {
var viewport=this.scrollpane.getViewport$();
var vsb=this.scrollpane.getVerticalScrollBar$();
var hsb=this.scrollpane.getHorizontalScrollBar$();
var rowHead=this.scrollpane.getRowHeader$();
var colHead=this.scrollpane.getColumnHeader$();
var ltr=this.scrollpane.getComponentOrientation$().isLeftToRight$();
if (viewport != null ) {
var extentSize=viewport.getExtentSize$();
var viewSize=viewport.getViewSize$();
var viewPosition=viewport.getViewPosition$();
if (vsb != null ) {
var extent=extentSize.height;
var max=viewSize.height;
var value=Math.max(0, Math.min(viewPosition.y, max - extent));
vsb.setValues$I$I$I$I(value, extent, 0, max);
}if (hsb != null ) {
var extent=extentSize.width;
var max=viewSize.width;
var value;
if (ltr) {
value=Math.max(0, Math.min(viewPosition.x, max - extent));
} else {
var currentValue=hsb.getValue$();
if (this.setValueCalled && ((max - currentValue) == viewPosition.x) ) {
value=Math.max(0, Math.min(max - extent, currentValue));
if (extent != 0) {
this.setValueCalled=false;
}} else {
if (extent > max) {
viewPosition.x=max - extent;
viewport.setViewPosition$java_awt_Point(viewPosition);
value=0;
} else {
value=Math.max(0, Math.min(max - extent, max - extent - viewPosition.x ));
}}}hsb.setValues$I$I$I$I(value, extent, 0, max);
}if (rowHead != null ) {
var p=rowHead.getViewPosition$();
p.y=viewport.getViewPosition$().y;
p.x=0;
rowHead.setViewPosition$java_awt_Point(p);
}if (colHead != null ) {
var p=colHead.getViewPosition$();
if (ltr) {
p.x=viewport.getViewPosition$().x;
} else {
p.x=Math.max(0, viewport.getViewPosition$().x);
}p.y=0;
colHead.setViewPosition$java_awt_Point(p);
}}});
Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) {
var viewport=this.scrollpane.getViewport$();
var spInsets=this.scrollpane.getInsets$();
var y=spInsets.top;
height=height - spInsets.top - spInsets.bottom ;
width=width - spInsets.left - spInsets.right ;
var columnHeader=this.scrollpane.getColumnHeader$();
if (columnHeader != null && columnHeader.isVisible$() ) {
var header=columnHeader.getView$();
if (header != null && header.isVisible$() ) {
var headerPref=header.getPreferredSize$();
var baseline=header.getBaseline$I$I(headerPref.width, headerPref.height);
if (baseline >= 0) {
return y + baseline;
}}var columnPref=columnHeader.getPreferredSize$();
height-=columnPref.height;
y+=columnPref.height;
}var view=(viewport == null ) ? null : viewport.getView$();
if (view != null && view.isVisible$() && view.getBaselineResizeBehavior$() === $I$(12).CONSTANT_ASCENT ) {
var viewportBorder=this.scrollpane.getViewportBorder$();
if (viewportBorder != null ) {
var vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(this.scrollpane);
y+=vpbInsets.top;
height=height - vpbInsets.top - vpbInsets.bottom ;
width=width - vpbInsets.left - vpbInsets.right ;
}if (view.getWidth$() > 0 && view.getHeight$() > 0 ) {
var min=view.getMinimumSize$();
width=Math.max(min.width, view.getWidth$());
height=Math.max(min.height, view.getHeight$());
}if (width > 0 && height > 0 ) {
var baseline=view.getBaseline$I$I(width, height);
if (baseline > 0) {
return y + baseline;
}}}return -1;
});
Clazz_newMeth(C$, 'getInsets$', function () {
var i=this.scrollpane.getBorder$().getBorderInsets$java_awt_Component(this.scrollpane);
if (!this.layingOut) {
i.right+=this.scrollpane.getVerticalScrollBar$().isVisible$() ? 12 : 0;
i.bottom+=this.scrollpane.getHorizontalScrollBar$().isVisible$() ? 12 : 0;
}return i;
});
Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) {
C$.superclazz.prototype.getBaselineResizeBehavior$javax_swing_JComponent.apply(this, [c]);
return $I$(12).CONSTANT_ASCENT;
});
Clazz_newMeth(C$, 'createViewportChangeListener$', function () {
return this.getHandler$();
});
Clazz_newMeth(C$, 'createHSBPropertyChangeListener', function () {
return this.getHandler$();
}, p$3);
Clazz_newMeth(C$, 'createHSBChangeListener$', function () {
return this.getHandler$();
});
Clazz_newMeth(C$, 'createVSBPropertyChangeListener', function () {
return this.getHandler$();
}, p$3);
Clazz_newMeth(C$, 'createVSBChangeListener$', function () {
return this.getHandler$();
});
Clazz_newMeth(C$, 'updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent', function (e) {
this.scrollpane.revalidate$();
this.scrollpane.repaint$();
});
Clazz_newMeth(C$, 'updateViewport$java_beans_PropertyChangeEvent', function (e) {
var oldViewport=(e.getOldValue$());
var newViewport=(e.getNewValue$());
if (oldViewport != null ) {
oldViewport.removeChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener);
}if (newViewport != null ) {
var p=newViewport.getViewPosition$();
if (this.scrollpane.getComponentOrientation$().isLeftToRight$()) {
p.x=Math.max(p.x, 0);
} else {
var max=newViewport.getViewSize$().width;
var extent=newViewport.getExtentSize$().width;
if (extent > max) {
p.x=max - extent;
} else {
p.x=Math.max(0, Math.min(max - extent, p.x));
}}p.y=Math.max(p.y, 0);
newViewport.setViewPosition$java_awt_Point(p);
newViewport.addChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener);
}});
Clazz_newMeth(C$, 'updateRowHeader$java_beans_PropertyChangeEvent', function (e) {
var newRowHead=(e.getNewValue$());
if (newRowHead != null ) {
var viewport=this.scrollpane.getViewport$();
var p=newRowHead.getViewPosition$();
p.y=(viewport != null ) ? viewport.getViewPosition$().y : 0;
newRowHead.setViewPosition$java_awt_Point(p);
}});
Clazz_newMeth(C$, 'updateColumnHeader$java_beans_PropertyChangeEvent', function (e) {
var newColHead=(e.getNewValue$());
if (newColHead != null ) {
var viewport=this.scrollpane.getViewport$();
var p=newColHead.getViewPosition$();
if (viewport == null ) {
p.x=0;
} else {
if (this.scrollpane.getComponentOrientation$().isLeftToRight$()) {
p.x=viewport.getViewPosition$().x;
} else {
p.x=Math.max(0, viewport.getViewPosition$().x);
}}newColHead.setViewPosition$java_awt_Point(p);
this.scrollpane.add$java_awt_Component$O(newColHead, "COLUMN_HEADER");
}});
Clazz_newMeth(C$, 'createPropertyChangeListener$', function () {
return this.getHandler$();
});
Clazz_newMeth(C$, 'jsModelStateChanged$javax_swing_event_ChangeEvent', function (e) {
if (this.scrollBarUIDisabled) {
p$3.jsScrollComponentUsingCSS$Z.apply(this, [e.getSource$() === this.viewport ]);
return true;
}return false;
}, p$3);
Clazz_newMeth(C$, 'jsScrollComponentUsingCSS$Z', function (isViewportChange) {
var r1=this.viewport.getBounds$();
var r2=this.scrolledComponent.getBounds$();
if (!r1.equals$O(r2) && !isViewportChange ) this.scrolledComponent.setBounds$java_awt_Rectangle(r1);
$I$(2).setStyles(this.scrolledUI.domNode, ["overflow-x", p$3.getScrollBarPolicyCSS$I.apply(this, [this.scrollpane.getHorizontalScrollBarPolicy$()]), "overflow-y", p$3.getScrollBarPolicyCSS$I.apply(this, [this.scrollpane.getVerticalScrollBarPolicy$()])]);
if (this.horizBarUI != null ) $I$(2).setVisible(this.horizBarUI.jqSlider, false);
if (this.vertBarUI != null ) $I$(2).setVisible(this.vertBarUI.jqSlider, false);
}, p$3);
Clazz_newMeth(C$, 'notifyTableScrolling$', function () {
if (this.scrolledComponent != null && this.scrolledComponent.getUIClassID$() == "TableUI" ) {
(this.scrolledComponent.ui).setScrolling$();
}});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) {
C$.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this, [g, c]);
p$3.updateScrollBarExtents.apply(this, []);
});
;
(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "ViewportChangeHandler", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
this.this$0.getHandler$.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "HSBChangeListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
this.this$0.getHandler$.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "VSBChangeListener", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'javax.swing.event.ChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
this.this$0.getHandler$.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "PropertyChangeHandler", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, 'java.beans.PropertyChangeListener');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
this.this$0.getHandler$.apply(this.this$0, []).propertyChange$java_beans_PropertyChangeEvent(e);
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "Actions", function(){
Clazz_newInstance(this, arguments[0],false,C$);
}, 'sun.swing.UIAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$S', function (key) {
C$.superclazz.c$$S.apply(this, [key]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
var scrollpane=e.getSource$();
var ltr=scrollpane.getComponentOrientation$().isLeftToRight$();
var key=this.getName$();
if (key == "scrollUp") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, -1, true]);
} else if (key == "scrollDown") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, 1, true]);
} else if (key == "scrollHome") {
p$1.scrollHome$javax_swing_JScrollPane.apply(this, [scrollpane]);
} else if (key == "scrollEnd") {
p$1.scrollEnd$javax_swing_JScrollPane.apply(this, [scrollpane]);
} else if (key == "unitScrollUp") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, -1, false]);
} else if (key == "unitScrollDown") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, 1, false]);
} else if (key == "scrollLeft") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? -1 : 1, true]);
} else if (key == "scrollRight") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? 1 : -1, true]);
} else if (key == "unitScrollLeft") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? -1 : 1, false]);
} else if (key == "unitScrollRight") {
p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? 1 : -1, false]);
}});
Clazz_newMeth(C$, 'scrollEnd$javax_swing_JScrollPane', function (scrollpane) {
var vp=scrollpane.getViewport$();
var view;
if (vp != null && (view=vp.getView$()) != null ) {
var visRect=vp.getViewRect$();
var bounds=view.getBounds$();
if (scrollpane.getComponentOrientation$().isLeftToRight$()) {
vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[bounds.width - visRect.width, bounds.height - visRect.height]));
} else {
vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[0, bounds.height - visRect.height]));
}}}, p$1);
Clazz_newMeth(C$, 'scrollHome$javax_swing_JScrollPane', function (scrollpane) {
var vp=scrollpane.getViewport$();
var view;
if (vp != null && (view=vp.getView$()) != null ) {
if (scrollpane.getComponentOrientation$().isLeftToRight$()) {
vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[0, 0]));
} else {
var visRect=vp.getViewRect$();
var bounds=view.getBounds$();
vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[bounds.width - visRect.width, 0]));
}}}, p$1);
Clazz_newMeth(C$, 'scroll$javax_swing_JScrollPane$I$I$Z', function (scrollpane, orientation, direction, block) {
var vp=scrollpane.getViewport$();
var view;
if (vp != null && (view=vp.getView$()) != null ) {
var visRect=vp.getViewRect$();
var vSize=view.getSize$();
var amount;
if (Clazz_instanceOf(view, "javax.swing.Scrollable")) {
if (block) {
amount=(view).getScrollableBlockIncrement$java_awt_Rectangle$I$I(visRect, orientation, direction);
} else {
amount=(view).getScrollableUnitIncrement$java_awt_Rectangle$I$I(visRect, orientation, direction);
}} else {
if (block) {
if (orientation == 1) {
amount=visRect.height;
} else {
amount=visRect.width;
}} else {
amount=10;
}}if (orientation == 1) {
visRect.y+=(amount * direction);
if ((visRect.y + visRect.height) > vSize.height) {
visRect.y=Math.max(0, vSize.height - visRect.height);
} else if (visRect.y < 0) {
visRect.y=0;
}} else {
if (scrollpane.getComponentOrientation$().isLeftToRight$()) {
visRect.x+=(amount * direction);
if ((visRect.x + visRect.width) > vSize.width) {
visRect.x=Math.max(0, vSize.width - visRect.width);
} else if (visRect.x < 0) {
visRect.x=0;
}} else {
visRect.x-=(amount * direction);
if (visRect.width > vSize.width) {
visRect.x=vSize.width - visRect.width;
} else {
visRect.x=Math.max(0, Math.min(vSize.width - visRect.width, visRect.x));
}}}vp.setViewPosition$java_awt_Point(visRect.getLocation$());
}}, p$1);
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "Handler", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, null, ['javax.swing.event.ChangeListener', 'java.beans.PropertyChangeListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var viewport=this.this$0.scrollpane.getViewport$();
if (viewport != null ) {
if (e.getSource$() === viewport ) {
p$2.viewportStateChanged$javax_swing_event_ChangeEvent.apply(this, [e]);
} else {
var hsb=this.this$0.scrollpane.getHorizontalScrollBar$();
if (hsb != null && e.getSource$() === hsb.getModel$() ) {
p$2.hsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent.apply(this, [viewport, e]);
} else {
var vsb=this.this$0.scrollpane.getVerticalScrollBar$();
if (vsb != null && e.getSource$() === vsb.getModel$() ) {
p$2.vsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent.apply(this, [viewport, e]);
}}}}});
Clazz_newMeth(C$, 'vsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent', function (viewport, e) {
var model=(e.getSource$());
var p=viewport.getViewPosition$();
p.y=model.getValue$();
p$3.setScrollComponent$javax_swing_JViewport$Z.apply(this.this$0, [viewport, false]);
this.this$0.notifyTableScrolling$.apply(this.this$0, []);
viewport.setViewPosition$java_awt_Point(p);
this.this$0.scrollpane.getVerticalScrollBar$().setVisibleAmount$I(viewport.getHeight$());
}, p$2);
Clazz_newMeth(C$, 'hsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent', function (viewport, e) {
var model=(e.getSource$());
var p=viewport.getViewPosition$();
p$3.setScrollComponent$javax_swing_JViewport$Z.apply(this.this$0, [viewport, false]);
this.this$0.notifyTableScrolling$.apply(this.this$0, []);
var value=model.getValue$();
if (this.this$0.scrollpane.getComponentOrientation$().isLeftToRight$()) {
p.x=value;
} else {
var max=viewport.getViewSize$().width;
var extent=viewport.getExtentSize$().width;
var oldX=p.x;
p.x=max - extent - value ;
if ((extent == 0) && (value != 0) && (oldX == max) ) {
this.this$0.setValueCalled=true;
} else {
if ((extent != 0) && (oldX < 0) && (p.x == 0) ) {
p.x+=value;
}}}viewport.setViewPosition$java_awt_Point(p);
this.this$0.scrollpane.getHorizontalScrollBar$().setVisibleAmount$I(viewport.getWidth$());
}, p$2);
Clazz_newMeth(C$, 'viewportStateChanged$javax_swing_event_ChangeEvent', function (e) {
this.this$0.syncScrollPaneWithViewport$.apply(this.this$0, []);
if (this.this$0.jc.秘selfOrChildIsPainted$()) this.this$0.jc.repaint$();
}, p$2);
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
if (e.getSource$() === this.this$0.scrollpane ) {
p$2.scrollPanePropertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
} else {
p$2.sbPropertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
}});
Clazz_newMeth(C$, 'scrollPanePropertyChange$java_beans_PropertyChangeEvent', function (e) {
var propertyName=e.getPropertyName$();
switch (propertyName) {
case "verticalScrollBarDisplayPolicy":
this.this$0.updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent.apply(this.this$0, [e]);
break;
case "horizontalScrollBarDisplayPolicy":
this.this$0.updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent.apply(this.this$0, [e]);
break;
case "viewport":
this.this$0.updateViewport$java_beans_PropertyChangeEvent.apply(this.this$0, [e]);
break;
case "rowHeader":
this.this$0.updateRowHeader$java_beans_PropertyChangeEvent.apply(this.this$0, [e]);
break;
case "columnHeader":
this.this$0.updateColumnHeader$java_beans_PropertyChangeEvent.apply(this.this$0, [e]);
break;
case "verticalScrollBar":
this.updateVerticalScrollBar$java_beans_PropertyChangeEvent(e);
break;
case "horizontalScrollBar":
this.updateHorizontalScrollBar$java_beans_PropertyChangeEvent(e);
break;
case "componentOrientation":
this.this$0.scrollpane.revalidate$();
this.this$0.scrollpane.repaint$();
break;
}
}, p$2);
Clazz_newMeth(C$, 'updateHorizontalScrollBar$java_beans_PropertyChangeEvent', function (pce) {
p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this.this$0, [pce.getOldValue$(), pce.getNewValue$(), this.this$0.hsbChangeListener, this.this$0.hsbPropertyChangeListener, false]);
});
Clazz_newMeth(C$, 'updateVerticalScrollBar$java_beans_PropertyChangeEvent', function (pce) {
p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this.this$0, [pce.getOldValue$(), pce.getNewValue$(), this.this$0.vsbChangeListener, this.this$0.vsbPropertyChangeListener, true]);
});
Clazz_newMeth(C$, 'sbPropertyChange$java_beans_PropertyChangeEvent', function (e) {
var propertyName=e.getPropertyName$();
var source=e.getSource$();
switch (propertyName) {
case "model":
var sb=this.this$0.scrollpane.getVerticalScrollBar$();
var oldModel=e.getOldValue$();
var cl=null;
if (source === sb ) {
cl=this.this$0.vsbChangeListener;
} else if (source === this.this$0.scrollpane.getHorizontalScrollBar$() ) {
sb=this.this$0.scrollpane.getHorizontalScrollBar$();
cl=this.this$0.hsbChangeListener;
}if (cl != null ) {
if (oldModel != null ) {
oldModel.removeChangeListener$javax_swing_event_ChangeListener(cl);
}if (sb.getModel$() != null ) {
sb.getModel$().addChangeListener$javax_swing_event_ChangeListener(cl);
}}break;
case "componentOrientation":
if (source === this.this$0.scrollpane.getHorizontalScrollBar$() ) {
var hsb=this.this$0.scrollpane.getHorizontalScrollBar$();
var viewport=this.this$0.scrollpane.getViewport$();
var p=viewport.getViewPosition$();
if (this.this$0.scrollpane.getComponentOrientation$().isLeftToRight$()) {
p.x=hsb.getValue$();
} else {
p.x=viewport.getViewSize$().width - viewport.getExtentSize$().width - hsb.getValue$() ;
}viewport.setViewPosition$java_awt_Point(p);
}break;
}
}, p$2);
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[];
var C$=Clazz_newClass(P$, "JSSeparatorUI", null, 'swingjs.plaf.JSLightweightUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id, []);
}return this.domNode;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:05 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.jquery.JQueryUI','swingjs.JSUtil','swingjs.api.js.DOMNode','swingjs.plaf.JSComponentUI','java.awt.Color','swingjs.JSToolkit','javax.swing.LookAndFeel','java.awt.Dimension','sun.swing.DefaultLookup']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSSliderUI", null, 'swingjs.plaf.JSLightweightUI', ['java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
{
var jqueryui=Clazz_getClass($I$(1));
$I$(2).loadStaticResource$S("swingjs/jquery/jquery-ui-j2sslider.css");
$I$(2).loadStaticResource$S("swingjs/jquery/jquery-ui-j2sslider.js");
};
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.slider=null;
this.min=0;
this.max=0;
this.val=0;
this.majorSpacing=0;
this.minorSpacing=0;
this.paintTicks=false;
this.paintLabels=false;
this.snapToTicks=false;
this.labelTable=null;
this.orientation=null;
this.jqSlider=null;
this.z0=0;
this.model=null;
this.paintTrack=false;
this.myScrollPaneUI=null;
this.isScrollBar=false;
this.jScrollBar=null;
this.sliderTrack=null;
this.sliderHandle=null;
this.disabled=0;
this.myHeight=0;
this.isHoriz=false;
this.isVerticalScrollBar=false;
this.isInverted=false;
this.ticks=null;
this.noSnapping=false;
this.foreColor=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.z0=-2147483648;
this.paintTrack=true;
this.foreColor=null;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.needPreferred=true;
this.setDoc$();
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
p$1.setSliderFields.apply(this, []);
this.min=this.slider.getMinimum$();
this.max=this.slider.getMaximum$();
this.val=this.slider.getValue$();
if (!this.isScrollBar) {
this.minorSpacing=this.slider.getMinorTickSpacing$();
this.majorSpacing=this.slider.getMajorTickSpacing$();
this.paintTicks=this.slider.getPaintTicks$();
this.paintLabels=this.slider.getPaintLabels$();
this.paintTrack=this.slider.getPaintTrack$();
this.snapToTicks=this.slider.getSnapToTicks$();
}this.orientation=(this.slider.getOrientation$() == 1 ? "vertical" : "horizontal");
this.model=this.slider.getModel$();
var isHoriz=(this.slider.getOrientation$() == 0);
var isVerticalScrollBar=(this.isScrollBar && !isHoriz );
var isInverted=isVerticalScrollBar || !this.isScrollBar && this.slider.getInverted$() ;
var isChanged=false;
if (isHoriz != this.isHoriz || isVerticalScrollBar != this.isVerticalScrollBar || isInverted != this.isInverted ) {
this.isHoriz=isHoriz;
this.isVerticalScrollBar=isVerticalScrollBar;
this.isInverted=isInverted;
isChanged=true;
}var isNew=(this.domNode == null );
if (isNew) {
this.domNode=P$.JSComponentUI.wrap$S$S$swingjs_api_js_DOMNodeA("div", this.id + "_wrap", [this.jqSlider=$I$(3).createElement("div", this.id)]);
this.$$O(this.domNode).addClass("swingjs");
this.$$O(this.domNode).addClass("ui-j2sslider-wrap");
p$1.setJQuerySliderAndEvents.apply(this, []);
this.setTainted$();
} else if (isChanged) {
p$1.disposeSlider.apply(this, []);
this.domNode.appendChild(this.jqSlider=$I$(3).createElement("div", this.id + (++$I$(4).incr)));
p$1.setJQuerySliderAndEvents.apply(this, []);
this.setTainted$();
this.setInnerComponentBounds$I$I(this.jc.getWidth$(), this.jc.getHeight$());
}p$1.setup$Z.apply(this, [isNew || isChanged ]);
this.setSlider$();
this.setBackground$java_awt_Color(this.getBackground$());
this.setForeground$java_awt_Color(this.getForeground$());
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) {
if (!this.paintTicks && !this.paintLabels ) return;
if (this.awtPeerFG != null && !this.awtPeerFG.equals$O(c) ) this.awtPeerFG=null;
if (c == null || Clazz_instanceOf(c, "javax.swing.plaf.UIResource") ) c=$I$(5).black;
var s=$I$(6).getCSSColor$java_awt_Color(c);
if (this.foreColor == s) return;
this.foreColor=s;
if (this.paintTicks) {
$I$(3).setStyles(this.jqSlider, ["background-color", s]);
var tickClass="ui-j2sslider-tick-mark-" + (this.isHoriz ? "vert" : "horiz");
this.$$O(this.domNode).find("." + tickClass).css(1?{backgroundColor:s} :"", "");
}if (this.paintLabels) {
this.$$O(this.domNode).find("SPAN").css("color", s);
}});
Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) {
if (this.awtPeerBG != null && !this.awtPeerBG.equals$O(c) ) this.awtPeerBG=null;
if (this.isScrollBar ? c != null : this.jc.isOpaque$()) {
if (this.paintTicks) {
} else {
var node=(this.myScrollPaneUI == null && !this.paintTicks ? this.jqSlider : this.sliderTrack);
$I$(3).setStyles(node, ["background-color", $I$(6).getCSSColor$java_awt_Color(c)]);
if (this.isScrollBar && $I$(5).WHITE.equals$O(c) ) $I$(3).setStyles(this.sliderHandle, ["background", "#ccc"]);
}}if (!this.isScrollBar) this.setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color(this.outerNode, this.getBackground$());
});
Clazz_newMeth(C$, 'paintBackground$swingjs_JSGraphics2D', function (g) {
});
Clazz_newMeth(C$, 'setBackgroundImpl$java_awt_Color', function (color) {
this.setBackground$java_awt_Color(color);
});
Clazz_newMeth(C$, 'disposeSlider', function () {
var slider=this.$$O(this.jqSlider);
slider.j2sslider("destroy");
$I$(3).dispose(this.jqSlider);
}, p$1);
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
p$1.setSliderFields.apply(this, []);
$I$(7).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Slider.background", "Slider.foreground", "Slider.font");
});
Clazz_newMeth(C$, 'setSliderFields', function () {
this.slider=this.jc;
if (this.isScrollBar) this.jScrollBar=this.jc;
}, p$1);
Clazz_newMeth(C$, 'setJQuerySliderAndEvents', function () {
var slider=this.$$O(this.jqSlider);
{
var me = this;
slider.j2sslider( { orientation: me.orientation, jslider: me.c, isScrollBar: me.isScrollBar, range: false, min: me.min, max: me.max, value: me.val, disabled: me.disabled, inverted: me.isInverted, change: function(jqevent, handle) { me.jqueryCallback$O$O(jqevent, handle); }, slide: function(jqevent, handle) { me.jqueryCallback$O$O(jqevent, handle); }, start: function(jqevent, handle) { me.jqueryStart$O$O(jqevent, handle); }, stop: function(jqevent, handle) { me.jqueryStop$O$O(jqevent, handle); } });
}
}, p$1);
Clazz_newMeth(C$, 'jqueryStart$O$O', function (event, ui) {
this.setValueIsAdjusting$Z(true);
});
Clazz_newMeth(C$, 'jqueryStop$O$O', function (event, ui) {
this.setValueIsAdjusting$Z(false);
if (this.isScrollBar || this.slider.getSnapToTicks$() ) this.jqueryCallback$O$O(event, ui);
});
Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) {
this.slider.setValueIsAdjusting$Z(b);
});
Clazz_newMeth(C$, 'jqueryCallback$O$O', function (event, ui) {
this.val=Math.round(ui.value ||0);
var ok=(this.noSnapping || !this.slider.getSnapToValue$() || this.slider.getValueIsAdjusting$() );
this.setValue$I(ok ? this.val : p$1.snapTo$I.apply(this, [this.val]));
});
Clazz_newMeth(C$, 'setValue$I', function (val) {
if (val == this.slider.getValue$()) return;
this.slider.setValue$I(val);
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
C$.superclazz.prototype.setEnabled$Z.apply(this, [b]);
this.setSliderAttr$S$F("disabled", (this.disabled=(b ? 0 : 1)));
});
Clazz_newMeth(C$, 'setup$Z', function (isNew) {
this.sliderTrack=$I$(3).lastChild(this.domNode);
this.sliderHandle=$I$(3).firstChild(this.sliderTrack);
if (isNew) {
this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.sliderHandle);
this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.sliderTrack);
this.setDataComponent$swingjs_api_js_DOMNode(this.domNode);
this.setDataComponent$swingjs_api_js_DOMNode(this.sliderHandle);
}}, p$1);
Clazz_newMeth(C$, 'setSliderAttr$S$F', function (key, val) {
this.noSnapping=true;
var id=null;
try {
var jsslider=this.$$O(this.jqSlider);
id = this.jqSlider.id;
jsslider.j2sslider("option",key,val);
} catch (t) {
System.out.println$S(key + ":" + new Float(val).toString() + " could not be set for " + id );
}
this.noSnapping=this.isScrollBar;
});
Clazz_newMeth(C$, 'setSlider$', function () {
this.setSliderAttr$S$F("min", this.min);
var max=this.max;
this.setSliderAttr$S$F("max", max);
this.setSliderAttr$S$F("value", this.val);
this.myHeight=10;
var barPlace=40;
if (this.isHoriz && this.slider.getBorder$() != null ) barPlace+=10;
var tickClass="ui-j2sslider-tick-mark" + (this.isHoriz ? "-vert" : "-horiz");
this.$$O(this.domNode).find("." + tickClass).remove();
this.$$O(this.domNode).find(".jslider-label").remove();
this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.jqSlider, false);
if (this.majorSpacing == 0 && this.minorSpacing == 0 || !this.paintTicks && !this.paintLabels ) {
if (this.myScrollPaneUI != null ) {
$I$(3).setStyles(this.sliderHandle, ["transform", null]);
$I$(3).setStyles(this.sliderTrack, ["transform", null]);
} else if (this.isHoriz) {
$I$(3).setStyles(this.sliderHandle, ["top", "50%", "transform", "translateY(-50%)"]);
$I$(3).setStyles(this.sliderTrack, ["top", "50%", "transform", "translateY(-50%)"]);
} else {
$I$(3).setStyles(this.sliderHandle, ["left", "50%", "transform", "translateX(-50%)"]);
$I$(3).setStyles(this.sliderTrack, ["left", "50%", "transform", "translateX(-50%)"]);
}return;
}var margin=10;
var length=(this.isHoriz ? this.slider.getWidth$() : this.slider.getHeight$());
if (length <= 0) length=(this.isHoriz ? this.getPreferredHorizontalSize$().width : this.getPreferredVerticalSize$().height);
if (this.isHoriz) this.actualWidth=length;
else this.actualHeight=length;
length-=2 * margin;
if (this.paintTicks) {
if (this.minorSpacing == 0) this.minorSpacing=this.majorSpacing;
var check=(this.majorSpacing/this.minorSpacing|0);
var fracSpacing=this.minorSpacing * 1.0 / (max - this.min);
var numTicks=(((max - this.min)/this.minorSpacing|0)) + 1;
this.myHeight+=10;
this.ticks=Clazz_array(Integer.TYPE, [numTicks]);
for (var i=0; i < numTicks; i++) {
var node=$I$(3).createElement("div", this.id + "_t" + i );
this.$$O(node).addClass("swingjs");
this.$$O(node).addClass(tickClass);
var isMajor=(i % check == 0);
this.ticks[i]=this.minorSpacing * i + this.min;
var frac=(this.isHoriz == this.isInverted ? 1 - fracSpacing * i : fracSpacing * i);
var spt=(new Float(frac * length + margin).toString()) + "px";
if (isMajor) this.$$O(node).css(this.isHoriz ? "height" : "width", "8px");
this.$$O(node).css(this.isHoriz ? "left" : "top", spt);
this.domNode.insertBefore(node, this.sliderTrack);
}
if (!this.paintLabels) this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.domNode, false);
}if (this.paintLabels) {
this.myHeight+=20;
this.labelTable=this.slider.getLabelTable$();
var keys=this.labelTable.keys$();
while (keys.hasMoreElements$()){
var key=keys.nextElement$();
var n=Integer.parseInt$S(key.toString());
var label=this.labelTable.get$O(key);
var labelNode=(label.getUI$()).getOuterNode$();
var frac=(n - this.min) * 1.0 / (max - this.min);
if (this.isHoriz == this.isInverted ) frac=1 - frac;
var px=(frac * length + margin);
var left;
var top;
if (this.isHoriz) {
top=20;
left=((px - (label.getWidth$()/2|0))|0);
} else {
top=((px - (label.getHeight$()/2|0))|0);
left=28;
}$I$(3).setTopLeftAbsolute(labelNode, top, left);
this.addClass$swingjs_api_js_DOMNode$S(labelNode, ".jslider-label");
this.domNode.insertBefore(labelNode, this.sliderTrack);
}
}if (this.paintTicks) {
if (this.isHoriz) {
$I$(3).setStyles(this.sliderHandle, ["transform", "scaleX(0.5) rotateZ(45deg)", "top", "-8px"]);
$I$(3).setStyles(this.sliderTrack, ["height", "1px", "background", "black", "top", "12px", "border", "none"]);
this.setSliderAttr$S$F("scaleX", 0.5);
} else {
$I$(3).setStyles(this.sliderHandle, ["transform", "scaleY(0.5) rotateZ(45deg)", "left", "-10px", "margin-bottom", "-7px"]);
$I$(3).setStyles(this.sliderTrack, ["width", "1px", "left", "12px", "background", "black", "border", "none"]);
this.setSliderAttr$S$F("scaleY", 0.5);
}} else {
$I$(3).setStyles(this.sliderTrack, [this.isHoriz ? "top" : "left", barPlace + "%"]);
}if (this.isScrollBar) {
this.setScrollBarExtentAndCSS$();
} else {
if (!this.isHoriz) $I$(3).setStyles(this.sliderTrack, ["height", length + "px"]);
}this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.domNode, false);
});
Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) {
var d=20;
if (this.paintLabels) d+=10;
if (this.paintTicks) d+=10;
if (this.slider.getBorder$() != null ) d+=10;
return Clazz_new_($I$(8).c$$I$I,[(this.isHoriz ? this.actualWidth : d), (this.isHoriz ? d : this.actualHeight)]);
});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var v;
if ((v=this.slider.getMinimum$()) != this.min) this.setSliderAttr$S$F("min", this.min=v);
if ((v=this.slider.getMaximum$()) != this.max) this.setSliderAttr$S$F("max", this.max=v);
if ((v=this.slider.getValue$()) != this.val) {
this.setSliderAttr$S$F("value", this.val=v);
}p$1.setup$Z.apply(this, [false]);
});
Clazz_newMeth(C$, 'setScrollBarExtentAndCSS$', function () {
});
Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (jc) {
return (this.isScrollBar ? C$.superclazz.prototype.getMinimumSize$javax_swing_JComponent.apply(this, [jc]) : this.isHoriz ? p$1.getMinimumHorizontalSize.apply(this, []) : p$1.getMinimumVerticalSize.apply(this, []));
});
Clazz_newMeth(C$, 'getMinimumHorizontalSize', function () {
var horizDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.minimumHorizontalSize");
if (horizDim == null ) {
horizDim=Clazz_new_($I$(8).c$$I$I,[36, this.paintLabels ? 35 : 21]);
}return horizDim;
}, p$1);
Clazz_newMeth(C$, 'getMinimumVerticalSize', function () {
var vertDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.minimumVerticalSize");
if (vertDim == null ) {
vertDim=Clazz_new_($I$(8).c$$I$I,[this.paintLabels ? 35 : 21, 36]);
}return vertDim;
}, p$1);
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return (this.isScrollBar ? C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [jc]) : this.isHoriz ? this.getPreferredHorizontalSize$() : this.getPreferredVerticalSize$());
});
Clazz_newMeth(C$, 'getPreferredHorizontalSize$', function () {
var horizDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.horizontalSize");
return Clazz_new_($I$(8).c$$I$I,[horizDim.width, Math.max(horizDim.height, this.myHeight)]);
});
Clazz_newMeth(C$, 'getPreferredVerticalSize$', function () {
var vertDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.verticalSize");
return Clazz_new_($I$(8).c$$I$I,[Math.max(vertDim.height, this.myHeight), vertDim.width]);
});
Clazz_newMeth(C$, 'scrollDueToClickInTrack$I$I', function (dir, val) {
this.scrollByBlock$I$I(dir, val);
});
Clazz_newMeth(C$, 'scrollByBlock$I', function (direction) {
this.scrollByBlock$I$I(direction, 2147483647);
});
Clazz_newMeth(C$, 'scrollByBlock$I$I', function (direction, val0) {
var val=0;
var blockIncrement=-1;
if (this.slider.getSnapToTicks$()) {
var jsslider=this.$$O(this.jqSlider);
if (this.slider.getSnapToValue$()) {
val=val0;
} else {
blockIncrement=p$1.getTickSpacing.apply(this, []);
}} else {
blockIncrement=((this.slider.getMaximum$() - this.slider.getMinimum$())/10|0);
if (blockIncrement == 0) {
blockIncrement=1;
}}if (blockIncrement >= 0) val=this.slider.getValue$() + blockIncrement * ((direction > 0) ? 1 : direction == 0 ? 0 : -1);
this.setValue$I(p$1.snapTo$I.apply(this, [val]));
});
Clazz_newMeth(C$, 'snapTo$I', function (val) {
if (this.ticks != null && this.ticks.length > 2 && this.slider.getSnapToTicks$() ) {
var dc=2147483647;
var v=val;
for (var i=this.ticks.length; --i >= 0; ) {
var d=Math.abs(this.ticks[i] - val);
if (d < dc) {
dc=d;
v=this.ticks[i];
}}
val=v;
}return val;
}, p$1);
Clazz_newMeth(C$, 'scrollByUnit$I', function (direction) {
{
var delta=((direction > 0) ? 1 : -1);
if (this.slider.getSnapToTicks$()) {
delta*=p$1.getTickSpacing.apply(this, []);
}this.setValue$I(this.slider.getValue$() + delta);
}});
Clazz_newMeth(C$, 'getUnitIncrement$', function () {
return -1;
});
Clazz_newMeth(C$, 'getTickSpacing', function () {
var majorTickSpacing=this.slider.getMajorTickSpacing$();
var minorTickSpacing=this.slider.getMinorTickSpacing$();
var result;
if (minorTickSpacing > 0) {
result=minorTickSpacing;
} else if (majorTickSpacing > 0) {
result=majorTickSpacing;
} else {
result=0;
}return result;
}, p$1);
Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) {
if (!this.paintTicks && !this.paintLabels ) {
var margin=(this.isScrollBar ? 6 : 10);
if (this.orientation == "vertical") {
$I$(3).setStyles(this.sliderTrack, ["height", (height - margin * 2) + "px"]);
} else if (this.isScrollBar) {
$I$(3).setStyles(this.sliderTrack, ["width", (width - margin * 2) + "px"]);
}this.setScrollBarExtentAndCSS$();
}});
Clazz_newMeth(C$, 'setJSDimensions$I$I', function (width, height) {
C$.superclazz.prototype.setJSDimensions$I$I.apply(this, [width, height]);
$I$(3).setPositionAbsolute(this.domNode);
if (this.isHoriz) {
$I$(3).setStyles(this.domNode, ["top", (((height - this.myHeight)/2|0)) + "px", "height", this.myHeight + "px"]);
} else {
$I$(3).setStyles(this.domNode, ["left", (((width - this.myHeight)/2|0)) + "px", "width", this.myHeight + "px"]);
}});
Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (jc) {
var d=C$.superclazz.prototype.getMaximumSize$javax_swing_JComponent.apply(this, [jc]);
return (d != null ? d : this.isHoriz ? Clazz_new_($I$(8).c$$I$I,[32767, 40]) : Clazz_new_($I$(8).c$$I$I,[40, 32767]));
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:05 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Insets','swingjs.api.js.DOMNode','javax.swing.text.WrappedPlainView','javax.swing.text.PlainView']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSTextAreaUI", null, 'swingjs.plaf.JSTextViewUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.myInsets=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.myInsets=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]);
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.valueNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("textarea", this.id, ["spellcheck", "FALSE", "autocomplete", "off"]);
this.setupViewNode$();
}var area=this.jc;
$I$(2).setStyles(this.domNode, ["white-space", null, "overflow-wrap", null]);
if (area.getLineWrap$()) {
$I$(2).setStyles(this.domNode, ["overflow-wrap", area.getWrapStyleWord$() ? null : "anywhere"]);
} else {
$I$(2).setStyles(this.domNode, ["white-space", "pre"]);
}this.textListener.checkDocument$();
this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font($I$(2).setAttr(this.domNode, "value", this.setCurrentText$()), this.c.getFont$());
this.updateJSCursor$S("areaupdate");
return C$.superclazz.prototype.updateDOMNode$.apply(this, []);
});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
var prop=e.getPropertyName$();
switch (prop) {
case "ancestor":
this.setJ2sMouseHandler$();
break;
}
C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]);
});
Clazz_newMeth(C$, 'updateRootView$', function () {
this.useRootView=true;
this.rootView.setView$javax_swing_text_View(this.create$javax_swing_text_Element(this.editor.getDocument$().getDefaultRootElement$()));
});
Clazz_newMeth(C$, 'getTextAreaTextSize$java_awt_Dimension', function (d) {
var sh=0;
var sw=0;
{
var h = this.domNode.style.height;
this.domNode.style.height = null;
sh = this.domNode.scrollHeight;
this.domNode.style.height = h;
var w = this.domNode.style.width;
this.domNode.style.width = null;
sw = this.domNode.scrollWidth;
this.domNode.style.width = w;
}
d.width=sw;
d.height=sh;
});
Clazz_newMeth(C$, 'getInsets$', function () {
return this.myInsets;
});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "TextArea";
});
Clazz_newMeth(C$, 'setHTMLElement$', function () {
return $I$(2).setStyles(this.setHTMLElementCUI$(), ["position", "absolute"]);
});
Clazz_newMeth(C$, 'create$javax_swing_text_Element', function (elem) {
var area=this.c;
var v;
if (area.getLineWrap$()) {
v=Clazz_new_($I$(3).c$$javax_swing_text_Element$Z,[elem, area.getWrapStyleWord$()]);
} else {
v=Clazz_new_($I$(4).c$$javax_swing_text_Element,[elem]);
}return v;
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','java.awt.Dimension','swingjs.JSToolkit','java.awt.event.ActionEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSTextFieldUI", null, 'swingjs.plaf.JSTextUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.inputType=null;
this.textField=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.inputType="text";
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
this.textField=this.editor;
if (this.domNode == null ) {
this.allowPaintedBackground=false;
this.focusNode=this.enableNode=this.valueNode=this.domNode=$I$(1).setStyles(P$.JSComponentUI.newDOMObject$S$S$SA("input", this.id, ["type", this.inputType]), ["lineHeight", "0.8", "box-sizing", "border-box"]);
this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true);
}var insets=this.editor.getMargin$();
this.setPadding$java_awt_Insets(insets);
this.textListener.checkDocument$();
this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.setJSText$swingjs_api_js_DOMNode$S$S(this.focusNode, "value", this.setCurrentText$()), this.getFont$());
return C$.superclazz.prototype.updateDOMNode$.apply(this, []);
});
Clazz_newMeth(C$, 'undisposeUI$swingjs_api_js_DOMNode', function (node) {
C$.superclazz.prototype.undisposeUI$swingjs_api_js_DOMNode.apply(this, [node]);
this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true);
});
Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) {
return Clazz_new_($I$(2).c$$I$I,[0, addingCSS ? 0 : -2]);
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.textField=jc;
C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]);
});
Clazz_newMeth(C$, 'handleEnter$', function () {
var a=this.getActionMap$().get$O("notify-field-accept");
if (a != null ) {
$I$(3).setIsDispatchThread$Z(true);
a.actionPerformed$(Clazz_new_($I$(4).c$$O$I$S$J$I,[this.c, 1001, "notify-field-accept", System.currentTimeMillis$(), 0]));
$I$(3).setIsDispatchThread$Z(false);
}return true;
});
Clazz_newMeth(C$, 'getPropertyPrefix$', function () {
return "TextField";
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'Error','javax.swing.text.DefaultEditorKit','java.awt.Point',['swingjs.plaf.JSTextUI','.RootView'],'swingjs.JSToolkit','swingjs.JSKeyEvent','javax.swing.UIManager','javax.swing.text.DefaultCaret','javax.swing.SwingUtilities','javax.swing.plaf.InputMapUIResource','javax.swing.plaf.ActionMapUIResource','swingjs.plaf.TextListener','swingjs.api.js.DOMNode','swingjs.plaf.JSComponentUI','Boolean','java.awt.KeyboardFocusManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSTextUI", function(){
Clazz_newInstance(this, arguments,0,C$);
}, 'swingjs.plaf.JSLightweightUI');
C$.defaultKit=null;
C$.markDot=null;
C$.$clinit$ = function() {Clazz_load(C$, 1);
C$.defaultKit=Clazz_new_($I$(2));
C$.markDot=Clazz_new_($I$(3));
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.editor=null;
this.editable=false;
this.rootView=null;
this.textListener=null;
this.useRootView=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.editable=true;
this.rootView=Clazz_new_($I$(4), [this, null]);
this.useRootView=false;
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.editor.isOpaque$() && this.editor.isEnabled$() ) this.setBackgroundImpl$java_awt_Color(this.getBackground$());
this.setEditable$Z(this.editable);
return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) {
var type=jQueryEvent.type ||null;
if ($I$(5).isMouseEvent$I(eventType)) {
return false;
}var b=this.checkAllowKey$O(jQueryEvent);
if (b != null ) return b.booleanValue$();
var keyCode=jQueryEvent.keyCode ||0;
var keyEvent=null;
var ret=false;
switch (eventType) {
case -2:
keyEvent=$I$(6).newJSKeyEvent$javax_swing_JComponent$O$I$Z(this.editor, jQueryEvent, 0, false);
if (keyEvent == null ) return true;
switch (keyCode) {
case 18:
jQueryEvent.preventDefault(); jQueryEvent.stopPropagation();
case 16:
case 17:
ret=true;
}
eventType=keyEvent.getID$();
break;
}
if (ret != true ) ret=this.textListener.handleJSTextEvent$swingjs_plaf_JSTextUI$I$O(this, eventType, jQueryEvent);
if (keyEvent != null ) {
this.editor.dispatchEvent$java_awt_AWTEvent(keyEvent);
if (keyEvent.isConsumed$()) {
jQueryEvent.preventDefault(); jQueryEvent.stopPropagation();
ret=true;
}}return ret;
});
Clazz_newMeth(C$, 'checkStopPropagation$O$Z', function (ev, handled) {
return false;
});
Clazz_newMeth(C$, 'installDefaults$', function () {
var prefix=this.getPropertyPrefix$();
var f=this.editor.getFont$();
if ((f == null ) || (Clazz_instanceOf(f, "javax.swing.plaf.UIResource")) ) {
this.editor.setFont$java_awt_Font($I$(7).getFont$O(prefix + ".font"));
}this.setColors$S(prefix);
var margin=this.editor.getMargin$();
if (margin == null || Clazz_instanceOf(margin, "javax.swing.plaf.UIResource") ) {
this.editor.setMargin$java_awt_Insets($I$(7).getInsets$O(prefix + ".margin"));
}});
Clazz_newMeth(C$, 'setColors$S', function (prefix) {
var bg=this.editor.getBackground$();
if ((bg == null ) || (Clazz_instanceOf(bg, "javax.swing.plaf.UIResource")) ) {
this.editor.setBackground$java_awt_Color($I$(7).getColor$O(prefix + ".background"));
}if (!this.isAWT) {
var fg=this.editor.getForeground$();
if ((fg == null ) || (Clazz_instanceOf(fg, "javax.swing.plaf.UIResource")) ) {
this.editor.setForeground$java_awt_Color($I$(7).getColor$O(prefix + ".foreground"));
}}var dfg=this.editor.getDisabledTextColor$();
if ((dfg == null ) || (Clazz_instanceOf(dfg, "javax.swing.plaf.UIResource")) ) {
this.editor.setDisabledTextColor$java_awt_Color($I$(7).getColor$O(prefix + ".inactiveForeground"));
}dfg=$I$(7).getColor$O(prefix + ".inactiveBackground");
if (dfg != null ) this.inactiveBackground=dfg;
});
Clazz_newMeth(C$, 'installDefaults2$', function () {
var caret=this.editor.getCaret$();
if (caret == null || Clazz_instanceOf(caret, "javax.swing.plaf.UIResource") ) {
this.editor.setCaret$javax_swing_text_Caret(((P$.JSTextUI$1||
(function(){var C$=Clazz_newClass(P$, "JSTextUI$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('javax.swing.text.DefaultCaret'), null, 1);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) {
});
Clazz_newMeth(C$, 'isVisible$', function () {
return true;
});
Clazz_newMeth(C$, 'setVisible$Z', function (v) {
});
Clazz_newMeth(C$, 'isSelectionVisible$', function () {
return true;
});
Clazz_newMeth(C$, 'setSelectionVisible$Z', function (v) {
});
Clazz_newMeth(C$, 'setBlinkRate$I', function (rate) {
});
Clazz_newMeth(C$, 'getBlinkRate$', function () {
return 0;
});
Clazz_newMeth(C$, 'toString', function () {
return "caret[" + this.dot + "," + this.mark + "]" ;
});
})()
), Clazz_new_($I$(8), [this, null],P$.JSTextUI$1)));
}});
Clazz_newMeth(C$, 'uninstallDefaults$', function () {
if (Clazz_instanceOf(this.editor.getCaretColor$(), "javax.swing.plaf.UIResource")) {
this.editor.setCaretColor$java_awt_Color(null);
}if (Clazz_instanceOf(this.editor.getSelectionColor$(), "javax.swing.plaf.UIResource")) {
this.editor.setSelectionColor$java_awt_Color(null);
}if (Clazz_instanceOf(this.editor.getDisabledTextColor$(), "javax.swing.plaf.UIResource")) {
this.editor.setDisabledTextColor$java_awt_Color(null);
}if (Clazz_instanceOf(this.editor.getSelectedTextColor$(), "javax.swing.plaf.UIResource")) {
this.editor.setSelectedTextColor$java_awt_Color(null);
}if (Clazz_instanceOf(this.editor.getBorder$(), "javax.swing.plaf.UIResource")) {
this.editor.setBorder$javax_swing_border_Border(null);
}if (Clazz_instanceOf(this.editor.getMargin$(), "javax.swing.plaf.UIResource")) {
this.editor.setMargin$java_awt_Insets(null);
}});
Clazz_newMeth(C$, 'installKeyboardActions$', function () {
var km=this.getInputMap$();
if (km != null ) {
$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.editor, 0, km);
}var map=this.getActionMap$();
if (map != null ) {
$I$(9).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.editor, map);
}});
Clazz_newMeth(C$, 'getInputMap$', function () {
var map=Clazz_new_($I$(10));
return map;
});
Clazz_newMeth(C$, 'getActionMap$', function () {
var mapName=this.classID + ".actionMap";
var map=$I$(7).get$O(mapName);
if (map == null ) {
map=this.createActionMap$();
if (map != null ) {
$I$(7).getLookAndFeelDefaults$().put$O$O(mapName, map);
}}return map;
});
Clazz_newMeth(C$, 'createActionMap$', function () {
var map=Clazz_new_($I$(11));
var actions=this.editor.getActions$();
var n=(actions == null ? 0 : actions.length);
for (var i=0; i < n; i++) {
var a=actions[i];
map.put$O$javax_swing_Action(a.getValue$S("Name"), a);
}
return map;
});
Clazz_newMeth(C$, 'uninstallKeyboardActions$', function () {
this.editor.setKeymap$javax_swing_text_Keymap(null);
$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.editor, 2, null);
$I$(9).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.editor, null);
});
Clazz_newMeth(C$, 'getComponent$', function () {
return this.editor;
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.editor=jc;
this.textListener=Clazz_new_($I$(12).c$$swingjs_plaf_JSTextUI$javax_swing_text_JTextComponent,[this, this.editor]);
this.installDefaults$();
this.installDefaults2$();
this.installListeners$javax_swing_text_JTextComponent(this.editor);
this.installKeyboardActions$();
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
this.uninstallDefaults$();
jc.removeAll$();
var lm=jc.getLayout$();
if (Clazz_instanceOf(lm, "javax.swing.plaf.UIResource")) {
jc.setLayout$java_awt_LayoutManager(null);
}this.uninstallKeyboardActions$();
this.uninstallListeners$javax_swing_text_JTextComponent(this.editor);
this.editor=null;
this.textListener=null;
});
Clazz_newMeth(C$, 'installListeners$javax_swing_text_JTextComponent', function (b) {
var listener=this.textListener;
b.addFocusListener$java_awt_event_FocusListener(listener);
b.addPropertyChangeListener$java_beans_PropertyChangeListener(listener);
b.addCaretListener$javax_swing_event_CaretListener(listener);
});
Clazz_newMeth(C$, 'uninstallListeners$javax_swing_text_JTextComponent', function (b) {
var listener=this.textListener;
b.removeFocusListener$java_awt_event_FocusListener(listener);
b.removePropertyChangeListener$java_beans_PropertyChangeListener(listener);
b.getDocument$().removeDocumentListener$javax_swing_event_DocumentListener(listener);
});
Clazz_newMeth(C$, 'updateRootView$', function () {
});
Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (jc) {
var d=this.getPreferredSize$javax_swing_JComponent(jc);
var i=jc.getInsets$();
d.width+=i.left + i.right;
d.height+=i.top + i.bottom;
return d;
});
Clazz_newMeth(C$, 'getRootView$javax_swing_text_JTextComponent', function (tc) {
return this.rootView;
});
Clazz_newMeth(C$, 'create$javax_swing_text_Element', function (elem) {
return null;
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (c) {
if (!this.useRootView) return C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [c]);
var i=c.getInsets$();
var d=c.getSize$();
if ((d.width > (i.left + i.right)) && (d.height > (i.top + i.bottom)) ) {
this.rootView.setSize$F$F(d.width - i.left - i.right , d.height - i.top - i.bottom );
} else if (d.width == 0 && d.height == 0 ) {
this.rootView.setSize$F$F(2147483647, 2147483647);
}d.width=(Math.min((this.rootView.getPreferredSpan$I(0)|0) + i.left + i.right , 2147483647)|0);
d.height=(Math.min((this.rootView.getPreferredSpan$I(1)|0) + i.top + i.bottom , 2147483647)|0);
return d;
});
Clazz_newMeth(C$, 'getEditorKit$javax_swing_text_JTextComponent', function (tc) {
return C$.defaultKit;
});
Clazz_newMeth(C$, 'handleEnter$', function () {
return false;
});
Clazz_newMeth(C$, 'setEditable$Z', function (editable) {
this.editable=editable;
if (this.focusNode == null ) return;
this.setEditableCSS$();
if (this.jc.isOpaque$()) {
var bg=this.getBackground$();
this.setBackgroundImpl$java_awt_Color(editable || !(Clazz_instanceOf(bg, "javax.swing.plaf.UIResource")) || this.inactiveBackground === this.colorUNKNOWN ? bg : this.inactiveBackground);
}});
Clazz_newMeth(C$, 'setEditableCSS$', function () {
$I$(13).setAttr(this.focusNode, "readOnly", this.editable ? null : "TRUE");
});
Clazz_newMeth(C$, 'getInactiveTextColor$java_awt_Color', function (fg) {
return (!this.editor.isEnabled$() ? this.editor.getDisabledTextColor$() : !this.editor.isEditable$() ? this.inactiveForeground : fg);
});
Clazz_newMeth(C$, 'setCurrentText$', function () {
return (this.editor.getDocument$() == null ? null : (this.currentText=this.editor.getText$()));
});
Clazz_newMeth(C$, 'checkNewEditorTextValue$', function () {
var val=this.getJSTextValue$();
if (val.equals$O(this.fixText$S(this.currentText))) return false;
this.editor.setTextFromUI$S(val);
this.setCurrentText$();
return true;
});
Clazz_newMeth(C$, 'setJSTextDelayed$', function () {
this.updateDOMNode$();
});
Clazz_newMeth(C$, 'focus$', function () {
if (!C$.superclazz.prototype.focus$.apply(this, [])) return false;
if (this.haveFocus$()) {
} else {
this.updateJSCursor$S("focus");
}return true;
});
Clazz_newMeth(C$, 'haveFocus$', function () {
return $I$(14).jquery.contains(this.focusNode, document.activeElement ||null);
});
Clazz_newMeth(C$, 'updateJSCursor$S', function (why) {
if (this.editor.getDocument$() == null || this.editor.getText$().length$() == 0 ) return;
if (this.isAWT && why != "focus" ) return;
var start=this.editor.getCaret$().getMark$();
var end=this.editor.getCaret$().getDot$();
var r1=this.getJSNodePt$swingjs_api_js_DOMNode$I$I(this.focusNode, -1, start);
var r2=(end == start ? r1 : this.getJSNodePt$swingjs_api_js_DOMNode$I$I(this.focusNode, -1, end));
if (r1 == null || r2 == null ) return;
this.jsSelect$OA$OA$Z(r1, r2, start == end && why == "default" );
});
Clazz_newMeth(C$, 'getJSNodePt$swingjs_api_js_DOMNode$I$I', function (node, offset, pt) {
{
return [null, pt];
}
});
Clazz_newMeth(C$, 'jsSelect$OA$OA$Z', function (r1, r2, andScroll) {
this.setJSMarkAndDot$I$I$Z(r1[1] ||0, r2[1] ||0, andScroll);
});
Clazz_newMeth(C$, 'setJSMarkAndDot$I$I$Z', function (mark, dot, andScroll) {
try {
this.focusNode.setSelectionRange(Math.min(mark, dot), Math.max(mark, dot), (mark == dot ? "none" : mark < dot ? "forward" : "backward"));
} catch (e) {
}
});
Clazz_newMeth(C$, 'getJSMarkAndDot$java_awt_Point', function (pt) {
var node=this.focusNode;
var start=node.selectionStart ||0;
var end=node.selectionEnd ||1;
var reversed=node.selectionDirection == "backward" ||false;
pt.x=start;
pt.y=end;
return true;
});
Clazz_newMeth(C$, 'checkAllowKey$O', function (jQueryEvent) {
var b=true;
var checkEditable=false;
switch (jQueryEvent.type ||"") {
case "drop":
checkEditable=true;
break;
case "focusout":
case "dragover":
b=true;
break;
case "keydown":
case "keypress":
case "keyup":
switch (jQueryEvent.keyCode ||0) {
case 9:
b=false;
break;
case 38:
case 40:
case 37:
case 39:
case 33:
case 34:
if (!jQueryEvent.altKey && !jQueryEvent.ctrlKey ||false) return null;
b=false;
break;
default:
checkEditable=true;
break;
}
break;
default:
return null;
}
if (checkEditable) {
if (this.editor.isEditable$() && !(Clazz_instanceOf(this.editor.getDocument$(), "javax.swing.text.html.HTMLDocument")) ) return null;
b=false;
}return $I$(15).valueOf$Z(b);
});
Clazz_newMeth(C$, 'viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA', function (t, pt, biasReturn) {
pt.x=2147483647;
this.getJSMarkAndDot$java_awt_Point(pt);
return pt.y;
});
Clazz_newMeth(C$, 'setJavaMarkAndDot$java_awt_Point', function (markDot) {
var mark=markDot.x;
var dot=markDot.y;
var c=this.editor.getCaret$();
if (c.getMark$() == mark && c.getDot$() == dot ) return;
if (c.getMark$() != mark) c.setDot$I(mark);
if (c.getDot$() != dot) c.moveDot$I(dot);
});
Clazz_newMeth(C$, 'getNewCaretPosition$java_awt_Point', function (pt) {
if (pt == null ) pt=C$.markDot;
pt.x=0;
this.getJSMarkAndDot$java_awt_Point(pt);
var mark=pt.x;
var dot=pt.y;
var oldMark=this.editor.getCaret$().getMark$();
var oldDot=this.editor.getCaret$().getDot$();
if (dot != mark && oldMark == dot ) {
dot=mark;
mark=oldMark;
}pt.x=(dot == oldDot && mark == oldMark ? -2147483648 : mark);
pt.y=dot;
return pt;
});
Clazz_newMeth(C$, 'updateJSCursorFromCaret$', function () {
});
Clazz_newMeth(C$, 'caretUpdatedByProgram$javax_swing_event_CaretEvent', function (e) {
if (false && this.isAWT && !this.jc.hasFocus$() ) {
var fc=$I$(16).getCurrentKeyboardFocusManager$().getFocusOwner$();
this.jc.requestFocus$();
if (fc != null ) fc.requestFocus$();
}});
;
(function(){var C$=Clazz_newClass(P$.JSTextUI, "RootView", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.text.View');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.view=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.superclazz.c$$javax_swing_text_Element.apply(this, [null]);
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'getDocument$', function () {
return this.this$0.editor.getDocument$();
});
Clazz_newMeth(C$, 'getStartOffset$', function () {
if (this.view != null ) {
return this.view.getStartOffset$();
}return this.getElement$().getStartOffset$();
});
Clazz_newMeth(C$, 'getEndOffset$', function () {
if (this.view != null ) {
return this.view.getEndOffset$();
}return this.getElement$().getEndOffset$();
});
Clazz_newMeth(C$, 'getElement$', function () {
if (this.view != null ) {
return this.view.getElement$();
}return this.this$0.editor.getDocument$().getDefaultRootElement$();
});
Clazz_newMeth(C$, 'setSize$F$F', function (width, height) {
if (this.view != null ) {
this.view.setSize$F$F(width, height);
}});
Clazz_newMeth(C$, 'getContainer$', function () {
return this.this$0.editor;
});
Clazz_newMeth(C$, 'setView$javax_swing_text_View', function (v) {
var oldView=this.view;
this.view=null;
if (oldView != null ) {
oldView.setParent$javax_swing_text_View(null);
}if (v != null ) {
v.setParent$javax_swing_text_View(this);
}this.view=v;
});
Clazz_newMeth(C$, 'getAttributes$', function () {
return null;
});
Clazz_newMeth(C$, 'getPreferredSpan$I', function (axis) {
switch (axis) {
case 0:
return (this.view == null ? 10 : this.view.getPreferredSpan$I(axis));
default:
case 1:
var area=this.this$0.editor;
var h=this.b$['swingjs.plaf.JSComponentUI'].getFont$.apply(this.b$['swingjs.plaf.JSComponentUI'], []).getFontMetrics$().getHeight$();
var r=area.getRows$();
return h * (r > 0 ? r : this.this$0.isAWT ? 10 : 6);
}
});
Clazz_newMeth(C$, 'getMinimumSpan$I', function (axis) {
if (this.view != null ) {
return this.view.getMinimumSpan$I(axis);
}return 10;
});
Clazz_newMeth(C$, 'getMaximumSpan$I', function (axis) {
return 2147483647;
});
Clazz_newMeth(C$, 'preferenceChanged$javax_swing_text_View$Z$Z', function (child, width, height) {
this.this$0.editor.revalidate$();
});
Clazz_newMeth(C$, 'getAlignment$I', function (axis) {
if (this.view != null ) {
return this.view.getAlignment$I(axis);
}return 0;
});
Clazz_newMeth(C$, 'paint$java_awt_Graphics$java_awt_Shape', function (g, allocation) {
if (this.view != null ) {
var alloc=(Clazz_instanceOf(allocation, "java.awt.Rectangle")) ? allocation : allocation.getBounds$();
this.setSize$F$F(alloc.width, alloc.height);
this.view.paint$java_awt_Graphics$java_awt_Shape(g, allocation);
}});
Clazz_newMeth(C$, 'setParent$javax_swing_text_View', function (parent) {
throw Clazz_new_($I$(1).c$$S,["Can\'t set parent on root view"]);
});
Clazz_newMeth(C$, 'getViewCount$', function () {
return 1;
});
Clazz_newMeth(C$, 'getView$I', function (n) {
return this.view;
});
Clazz_newMeth(C$, 'getViewIndex$I$javax_swing_text_Position_Bias', function (pos, b) {
return 0;
});
Clazz_newMeth(C$, 'getChildAllocation$I$java_awt_Shape', function (index, a) {
return a;
});
Clazz_newMeth(C$, 'modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias', function (pos, a, b) {
return null;
});
Clazz_newMeth(C$, 'viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA', function (x, y, a, biasReturn) {
return 0;
});
})()
;
(function(){var C$=Clazz_newClass(P$.JSTextUI, "TextActionWrapper", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.text.TextAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.action=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.action=null;
}, 1);
Clazz_newMeth(C$, 'c$$javax_swing_text_TextAction', function (action) {
C$.superclazz.c$$S.apply(this, [action.getValue$S("Name")]);
C$.$init$.apply(this);
this.action=action;
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
this.action.actionPerformed$(e);
});
Clazz_newMeth(C$, 'isEnabled$', function () {
return (this.this$0.editor == null || this.this$0.editor.isEditable$() ) ? this.action.isEnabled$() : false;
});
Clazz_newMeth(C$);
})()
;
(function(){var C$=Clazz_newClass(P$.JSTextUI, "FocusAction", function(){
Clazz_newInstance(this, arguments[0],true,C$);
}, 'javax.swing.AbstractAction');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) {
this.this$0.editor.requestFocus$();
});
Clazz_newMeth(C$, 'isEnabled$', function () {
return this.this$0.editor.isEditable$();
});
Clazz_newMeth(C$);
})()
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSTextViewUI", null, 'swingjs.plaf.JSTextUI');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.mustWrap=false;
this.overflows=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.mustWrap=false;
this.overflows=Clazz_array(String, -1, ["auto", "hidden", "scroll"]);
}, 1);
Clazz_newMeth(C$, 'c$', function () {
Clazz_super_(C$, this,1);
this.setDoPropagate$();
}, 1);
Clazz_newMeth(C$, 'setupViewNode$', function () {
this.allowPaintedBackground=false;
this.focusNode=this.enableNode=this.textNode=this.domNode;
$I$(1).setStyles(this.domNode, ["resize", "none", "margin", "0px", "padding", "0px", "scrollbar-width", "thin"]);
$I$(1).setStyles(this.domNode, ["box-sizing", "border-box"]);
this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true);
});
Clazz_newMeth(C$, 'undisposeUI$swingjs_api_js_DOMNode', function (node) {
C$.superclazz.prototype.undisposeUI$swingjs_api_js_DOMNode.apply(this, [node]);
this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true);
});
Clazz_newMeth(C$, 'setOverflow$', function () {
var parent=this.jc.getParent$();
if (this.isAWT) {
parent=this.jc;
} else if (!(Clazz_instanceOf(parent, "javax.swing.JViewport")) || !(Clazz_instanceOf((parent=parent.getParent$()), "javax.swing.JScrollPane")) ) {
$I$(1).setStyles(this.domNode, ["overflow", "hidden", "overflow-x", null, "overflow-y", null]);
return;
}var sp=parent;
$I$(1).setStyles(this.domNode, ["overflow", null]);
$I$(1).setStyles(this.domNode, ["overflow-x", this.overflows[sp.getHorizontalScrollBarPolicy$() % 10]]);
$I$(1).setStyles(this.domNode, ["overflow-y", this.overflows[sp.getVerticalScrollBarPolicy$() % 10]]);
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSViewportUI", null, 'swingjs.plaf.JSLightweightUI', ['java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.viewport=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
$I$(1).setStyles(this.domNode, ["margin", "1px"]);
this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.domNode);
}return this.updateDOMNodeCUI$();
});
Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) {
this.viewport=jc;
});
Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) {
});
Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) {
return null;
});
Clazz_newMeth(C$, 'setHTMLElement$', function () {
return $I$(1).setStyles(this.setHTMLElementCUI$(), ["overflow", "hidden", "margin", "1px", "width", (this.width - 2) + "px", "height", (this.height - 2) + "px"]);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.JSUtil','swingjs.plaf.JSComponentUI','swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "JSWindowUI", null, 'swingjs.plaf.JSComponentUI', ['java.awt.peer.WindowPeer', 'java.awt.event.WindowListener', 'java.awt.event.ComponentListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.frameNode=null;
this.titleBarNode=null;
this.titleNode=null;
this.closerNode=null;
this.layerNode=null;
this.w=null;
this.z=0;
this.defaultWidth=0;
this.defaultHeight=0;
this.isFrame=false;
this.isDialog=false;
this.window=null;
this.font=null;
this.modalNode=null;
this.graphics=null;
this.isPopup=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.defaultWidth=400;
this.defaultHeight=400;
}, 1);
Clazz_newMeth(C$, 'setFrame$java_awt_Window$Z', function (target, isFrame) {
this.window=target;
this.w=this.window;
this.isFrame=isFrame;
this.isContainer=this.isWindow=true;
var jc=this;
var viewer=$I$(1).getAppletViewer$();
this.applet=viewer.html5Applet;
this.graphics=jc.getGraphics$();
return this;
});
Clazz_newMeth(C$, 'updateDOMNode$', function () {
if (this.domNode == null ) {
this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []);
this.setWindowClass$();
this.bindWindowEvents$();
}return this.domNode;
});
Clazz_newMeth(C$, 'setWindowClass$', function () {
this.addClass$swingjs_api_js_DOMNode$S(this.domNode, "swingjs-window");
this.setZOrder$I(this.z);
});
Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) {
if (!font.equals$O(this.font)) this.window.setFont$java_awt_Font(this.font=font);
return this.graphics.getFontMetrics$java_awt_Font(font);
});
Clazz_newMeth(C$, 'toFront$', function () {
if ($I$(2).debugging) System.out.println$S("window to front for " + this.id);
this.z=this.J2S.setWindowZIndex(this.domNode, 2147483647);
$I$(3).setPositionAbsolute(this.domNode);
if (this.modalNode != null ) $I$(3).setZ(this.modalNode, this.z - 1);
});
Clazz_newMeth(C$, 'toBack$', function () {
if ($I$(2).debugging) System.out.println$S("window to back for " + this.id);
this.z=this.J2S.setWindowZIndex(this.domNode, -2147483648);
if (this.modalNode != null ) $I$(3).setZ(this.modalNode, this.z - 1);
});
Clazz_newMeth(C$, 'updateAlwaysOnTopState$', function () {
});
Clazz_newMeth(C$, 'updateFocusableWindowState$', function () {
});
Clazz_newMeth(C$, 'requestWindowFocus$', function () {
return false;
});
Clazz_newMeth(C$, 'setModalBlocked$java_awt_Dialog$Z', function (blocker, blocked) {
});
Clazz_newMeth(C$, 'setModalBlocked$java_awt_JSDialog$Z', function (blocker, blocked) {
});
Clazz_newMeth(C$, 'updateMinimumSize$', function () {
});
Clazz_newMeth(C$, 'updateIconImages$', function () {
});
Clazz_newMeth(C$, 'setOpacity$F', function (opacity) {
});
Clazz_newMeth(C$, 'setOpaque$Z', function (isOpaque) {
});
Clazz_newMeth(C$, 'updateWindow$java_awt_image_BufferedImage', function (backBuffer) {
});
Clazz_newMeth(C$, 'repositionSecurityWarning$', function () {
});
Clazz_newMeth(C$, 'dispose$', function () {
System.out.println$S("window disposed");
this.J2S.unsetMouse(this.domNode);
if (this.modalNode != null ) $I$(3).dispose(this.modalNode);
C$.superclazz.prototype.dispose$.apply(this, []);
});
Clazz_newMeth(C$, 'beginValidate$', function () {
if (this.isDisposed) {
C$.setChildVisibilities$javax_swing_JComponent(this.window);
}});
Clazz_newMeth(C$, 'endValidate$', function () {
if (this.isDisposed) {
this.undisposeUI$swingjs_api_js_DOMNode(null);
this.bindWindowEvents$();
this.isDisposed=false;
}});
Clazz_newMeth(C$, 'bindWindowEvents$', function () {
this.setJ2sMouseHandler$();
this.setDraggableEvents$();
this.addJQueryFocusCallbacks$();
if (this.closerNode != null ) this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.closerNode, "click mouseenter mouseout", -1);
});
Clazz_newMeth(C$, 'setDraggableEvents$', function () {
});
Clazz_newMeth(C$, 'setChildVisibilities$javax_swing_JComponent', function (jc) {
for (var i=jc.getComponentCount$(); --i >= 0; ) {
var c=jc.getComponent$I(i);
C$.setChildVisibilities$javax_swing_JComponent(c);
}
var ui=jc.ui;
if (jc.isVisible$()) ui.setVisible$Z(true);
}, 1);
Clazz_newMeth(C$, 'getInsets$', function () {
return $I$(2).zeroInsets;
});
Clazz_newMeth(C$, 'setVisible$Z', function (b) {
if (!this.isPopup) P$.JSComponentUI.hideMenusAndToolTip$();
C$.superclazz.prototype.setVisible$Z.apply(this, [b]);
});
Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) {
System.out.println$S("JSWindowUI windowOpened " + this.c.isVisible$() + " " + this.id );
});
Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) {
});
Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) {
P$.JSComponentUI.hideMenusAndToolTip$();
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.UIManager','javax.swing.SwingUtilities']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "LazyActionMap", null, 'javax.swing.plaf.ActionMapUIResource');
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this._loader=null;
this._key=null;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'installLazyActionMap$javax_swing_JComponent$Class$S', function (c, loaderClass, defaultsKey) {
var map=$I$(1).get$O(defaultsKey);
if (map == null ) {
map=Clazz_new_(C$.c$$Class$S,[loaderClass, defaultsKey]);
$I$(1).getLookAndFeelDefaults$().put$O$O(defaultsKey, map);
}$I$(2).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(c, map);
}, 1);
Clazz_newMeth(C$, 'getActionMap$Class$S', function (loaderClass, defaultsKey) {
var map=$I$(1).get$O(defaultsKey);
if (map == null ) {
map=Clazz_new_(C$.c$$Class$S,[loaderClass, defaultsKey]);
$I$(1).getLookAndFeelDefaults$().put$O$O(defaultsKey, map);
}return map;
}, 1);
Clazz_newMeth(C$, 'c$$Class$S', function (loader, key) {
Clazz_super_(C$, this,1);
this._loader=loader;
this._key=key;
}, 1);
Clazz_newMeth(C$, 'put$javax_swing_Action', function (action) {
this.put$O$javax_swing_Action(action.getValue$S("Name"), action);
});
Clazz_newMeth(C$, 'put$O$javax_swing_Action', function (key, action) {
p$1.loadIfNecessary.apply(this, []);
C$.superclazz.prototype.put$O$javax_swing_Action.apply(this, [key, action]);
});
Clazz_newMeth(C$, 'get$O', function (key) {
p$1.loadIfNecessary.apply(this, []);
return C$.superclazz.prototype.get$O.apply(this, [key]);
});
Clazz_newMeth(C$, 'remove$O', function (key) {
p$1.loadIfNecessary.apply(this, []);
C$.superclazz.prototype.remove$O.apply(this, [key]);
});
Clazz_newMeth(C$, 'clear$', function () {
p$1.loadIfNecessary.apply(this, []);
C$.superclazz.prototype.clear$.apply(this, []);
});
Clazz_newMeth(C$, 'keys$', function () {
p$1.loadIfNecessary.apply(this, []);
return C$.superclazz.prototype.keys$.apply(this, []);
});
Clazz_newMeth(C$, 'size$', function () {
p$1.loadIfNecessary.apply(this, []);
return C$.superclazz.prototype.size$.apply(this, []);
});
Clazz_newMeth(C$, 'allKeys$', function () {
p$1.loadIfNecessary.apply(this, []);
return C$.superclazz.prototype.allKeys$.apply(this, []);
});
Clazz_newMeth(C$, 'setParent$javax_swing_ActionMap', function (map) {
p$1.loadIfNecessary.apply(this, []);
C$.superclazz.prototype.setParent$javax_swing_ActionMap.apply(this, [map]);
});
Clazz_newMeth(C$, 'loadIfNecessary', function () {
if (this._loader != null ) {
var loader=this._loader;
this._loader=null;
{
loader.$clazz$.loadActionMap$swingjs_plaf_LazyActionMap(this);
}
}}, p$1);
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.JSUtil','swingjs.api.js.DOMNode','javajs.api.JSFunction','java.awt.Rectangle','java.awt.Color','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "Resizer");
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.rootPane=null;
this.resizer=null;
this.rootNode=null;
this.rubberBand=null;
this.jframe=null;
this.offsetx=0;
this.offsety=0;
this.minSize=0;
this.rpc=null;
this.titleHeight=0;
this.enabled=false;
this.allowResize=false;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
this.offsetx=-4;
this.offsety=-4;
this.minSize=10;
this.enabled=true;
this.allowResize=true;
}, 1);
Clazz_newMeth(C$, 'c$', function () {
C$.$init$.apply(this);
}, 1);
Clazz_newMeth(C$, 'set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer', function (viewer, top) {
this.rpc=top;
this.rootPane=this.rpc.getRootPane$();
this.titleHeight=viewer.getInsets$().top;
if (viewer.isApplet) {
this.rootNode=viewer.getDiv$S("appletdiv");
} else {
this.jframe=this.rpc;
this.rootNode=(this.jframe.getUI$()).getDOMNode$();
}return (this.rootNode == null ? null : this);
});
Clazz_newMeth(C$, 'show$', function () {
if (!this.allowResize || !this.enabled ) return;
if (this.resizer == null ) p$1.createAndShowResizer.apply(this, []);
else $I$(1).jQuery.$(this.resizer).show();
this.setPosition$I$I(0, 0);
});
Clazz_newMeth(C$, 'hide$', function () {
$I$(1).jQuery.$(this.resizer).hide();
});
Clazz_newMeth(C$, 'setMin$I', function (min) {
this.minSize=min;
});
Clazz_newMeth(C$, 'createAndShowResizer', function () {
var id=this.rootPane.秘htmlName + "_resizer";
this.resizer=$I$(2).createElement("div", id);
$I$(2).setSize(this.resizer, 10, 10);
$I$(2).setStyles(this.resizer, ["background-color", "red", "opacity", "0", "cursor", "nwse-resize"]);
$I$(1).jQuery.$(this.resizer).addClass("swingjs-resizer");
this.rubberBand=$I$(2).createElement("div", id + "_rb");
$I$(2).setStyles(this.rubberBand, ["border", "1px dashed #FF00FF", "z-index", "100000", "position", "absolute", "left", "0px", "top", "0px", "display", "none"]);
this.rootNode.appendChild(this.resizer);
this.rootNode.appendChild(this.rubberBand);
var fHandleResizer=null;
var fHandleDOMResize=null;
var me=this;
{
fHandleResizer = function(xyev,type){me.fHandleResizer$I$I$I( xyev.dx, xyev.dy,type)};
}
$I$(1).J2S.setDraggable(this.resizer, Clazz_array($I$(3), -1, [fHandleResizer]));
$I$(1).jQuery.$(this.rootNode).resize(fHandleDOMResize);
}, p$1);
Clazz_newMeth(C$, 'setPosition$I$I', function (dw, dh) {
var r=p$1.getFrameOffset$I$I.apply(this, [dw, dh]);
$I$(2).setTopLeftAbsolute(this.resizer, r.height + this.offsety, r.width + this.offsetx);
$I$(2).setSize(this.rubberBand, r.width, r.height);
});
Clazz_newMeth(C$, 'getDOMNode$', function () {
return this.resizer;
});
Clazz_newMeth(C$, 'fHandleResizer$I$I$I', function (dx, dy, type) {
if (!this.enabled || !this.allowResize ) return;
switch (type) {
case 503:
break;
case 501:
$I$(2).setStyles(this.resizer, ["background-color", "green"]);
$I$(2).setVisible(this.rubberBand, true);
$I$(2).setCursor("nwse-resize", null);
break;
case 506:
this.setPosition$I$I(dx, dy);
break;
case 502:
$I$(2).setStyles(this.resizer, ["background-color", "red"]);
$I$(2).setVisible(this.rubberBand, false);
$I$(2).setCursor("auto", null);
this.fHandleDOMResize$O$I$I(null, dx, dy);
}
});
Clazz_newMeth(C$, 'fHandleDOMResize$O$I$I', function (event, dw, dh) {
var r;
if (!this.enabled) return;
if (event == null ) {
r=p$1.getFrameOffset$I$I.apply(this, [dw, dh]);
} else {
$I$(2).getCSSRectangle(this.rootNode, r=Clazz_new_($I$(4)));
}if (this.jframe == null ) {
this.rootPane.getGraphics$().setColor$java_awt_Color($I$(5).WHITE);
this.rootPane.getGraphics$().fillRect$I$I$I$I(0, 0, r.width, r.height);
(this.rootPane.getParent$()).resizeHTML$I$I(r.width, r.height);
} else {
this.jframe.setPreferredSize$java_awt_Dimension(Clazz_new_($I$(6).c$$I$I,[r.width, r.height]));
this.jframe.invalidate$();
this.jframe.repackContainer$();
if (Clazz_instanceOf(this.jframe, "javax.swing.JInternalFrame")) {
try {
(this.jframe).setSelected$Z(true);
} catch (e) {
if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){
} else {
throw e;
}
}
} else {
this.jframe.toFront$();
}}this.setPosition$I$I(0, 0);
});
Clazz_newMeth(C$, 'getFrameOffset$I$I', function (dw, dh) {
var r=(this.rpc).getBounds$();
if (r.width + dw > this.minSize) r.width+=dw;
if (r.height + dh > this.minSize) r.height+=dh;
return r;
}, p$1);
Clazz_newMeth(C$, 'setAllowResize$Z', function (b) {
this.allowResize=b;
});
Clazz_newMeth(C$, 'setEnabled$Z', function (b) {
this.enabled=b;
if (b) this.show$();
else this.hide$();
});
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07
(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.JSKeyEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))};
var C$=Clazz_newClass(P$, "TextListener", null, null, ['java.awt.event.FocusListener', 'javax.swing.event.ChangeListener', 'java.beans.PropertyChangeListener', 'javax.swing.event.DocumentListener', 'javax.swing.event.CaretListener']);
C$.$clinit$ = function() {Clazz_load(C$, 1);
}
Clazz_newMeth(C$, '$init0$', function () {
var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this);
this.txtComp=null;
this.haveDocument=false;
this.ui=null;
this.working=false;
this.lastKeyEvent=0;
}, 1);
Clazz_newMeth(C$, '$init$', function () {
}, 1);
Clazz_newMeth(C$, 'c$$swingjs_plaf_JSTextUI$javax_swing_text_JTextComponent', function (ui, txtComp) {
C$.$init$.apply(this);
this.txtComp=txtComp;
this.ui=ui;
}, 1);
Clazz_newMeth(C$, 'checkDocument$', function () {
if (!this.haveDocument && this.txtComp.getDocument$() != null ) {
this.haveDocument=true;
this.txtComp.getDocument$().addDocumentListener$javax_swing_event_DocumentListener(this);
}});
Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) {
var prop=e.getPropertyName$();
switch (prop) {
case "font":
case "foreground":
case "preferredSize":
var txtComp=e.getSource$();
(txtComp.getUI$()).propertyChangedFromListener$java_beans_PropertyChangeEvent$S(e, prop);
break;
case "editable":
this.ui.setEditable$Z((e.getNewValue$()).booleanValue$());
break;
case "document":
if (e.getNewValue$() != null ) this.ui.updateRootView$();
break;
}
});
Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) {
var txtComp=e.getSource$();
txtComp.repaint$();
});
Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) {
});
Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) {
});
Clazz_newMeth(C$, 'handleJSTextEvent$swingjs_plaf_JSTextUI$I$O', function (ui, eventType, jqevent) {
var activeElement=(document.activeElement ||null);
if (activeElement !== ui.domNode ) return true;
var markDot=ui.getNewCaretPosition$java_awt_Point(null);
var mark=markDot.x;
var dot=markDot.y;
var setCaret=(mark != -2147483648);
eventType=$I$(1).fixEventType$O$I(jqevent, eventType);
switch (eventType) {
case 400:
break;
case 401:
var keyCode=jqevent.keyCode ||0;
if (keyCode == 13 || keyCode == 10 ) {
ui.handleEnter$();
} else if (keyCode != 8) {
setCaret=false;
}if (this.lastKeyEvent != 400) break;
case 402:
this.working=true;
if (ui.checkNewEditorTextValue$()) {
if (dot >= 0) {
ui.setJSMarkAndDot$I$I$Z(dot, dot, false);
setCaret=false;
}}this.working=false;
break;
}
this.lastKeyEvent=eventType;
if (setCaret) ui.setJavaMarkAndDot$java_awt_Point(markDot);
return true;
});
Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent', function (e) {
if (!this.working) {
this.ui.setJSTextDelayed$();
}});
Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent', function (e) {
if (!this.working) this.ui.setJSTextDelayed$();
});
Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent', function (e) {
if (!this.working) this.ui.setJSTextDelayed$();
});
Clazz_newMeth(C$, ['caretUpdate$javax_swing_event_CaretEvent','caretUpdate$'], function (e) {
this.ui.caretUpdatedByProgram$javax_swing_event_CaretEvent(e);
});
Clazz_newMeth(C$);
})();
;Clazz_setTVer('3.2.4.07');//Created 2019-06-15 19:23:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07