예제 #1
0
private void morph(global::com.codename1.ui.Component n1, global::com.codename1.ui.Component n2, int n3, bool n4, global::java.lang.Runnable n5){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Container: void morph(com.codename1.ui.Component, com.codename1.ui.Component, int, boolean, java.lang.Runnable)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nElement _r22;
    global::System.Object _r22_o = null;
    global::org.xmlvm._nElement _r23;
    global::System.Object _r23_o = null;
    global::org.xmlvm._nElement _r24;
    global::System.Object _r24_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r19_o = this;
    _r20_o = n1;
    _r21_o = n2;
    _r22.i = n3;
    _r23.i = n4 ? 1 : 0;
    _r24_o = n5;
    _r15.i = 1;
    _r0_o = _r19_o;
    _r1.i = _r15.i;
    ((global::com.codename1.ui.Container) _r0_o).setShouldCalcPreferredSize(0!=_r1.i);
    _r15.i = 0;
    global::com.codename1.ui.Container._fenableLayoutOnPaint = 0!=_r15.i;
    _r15.i = 1;
    _r0.i = _r15.i;
    _r1_o = _r19_o;
    ((global::com.codename1.ui.Container) _r1_o)._fdontRecurseContainer = 0!=_r0.i;
    _r5.i = ((global::com.codename1.ui.Container) _r19_o).getAbsoluteX();
    _r6.i = ((global::com.codename1.ui.Container) _r19_o).getAbsoluteY();
    _r15.i = ((global::com.codename1.ui.Component) _r20_o).getAbsoluteX();
    _r10.i = _r15.i - _r5.i;
    _r15.i = ((global::com.codename1.ui.Component) _r21_o).getAbsoluteX();
    _r7.i = _r15.i - _r5.i;
    _r15.i = ((global::com.codename1.ui.Component) _r20_o).getAbsoluteY();
    _r11.i = _r15.i - _r6.i;
    _r15.i = ((global::com.codename1.ui.Component) _r21_o).getAbsoluteY();
    _r8.i = _r15.i - _r6.i;
    _r15.i = 2;
    _r13_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r15.i]);
    _r15.i = 0;
    _r0_o = _r19_o;
    _r1.i = _r10.i;
    _r2.i = _r7.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r13_o)[_r15.i] = _r16_o;
    _r15.i = 1;
    _r0_o = _r19_o;
    _r1.i = _r10.i;
    _r2.i = _r7.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r13_o)[_r15.i] = _r16_o;
    _r15.i = 2;
    _r14_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r15.i]);
    _r15.i = 0;
    _r0_o = _r19_o;
    _r1.i = _r11.i;
    _r2.i = _r8.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r14_o)[_r15.i] = _r16_o;
    _r15.i = 1;
    _r0_o = _r19_o;
    _r1.i = _r11.i;
    _r2.i = _r8.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r14_o)[_r15.i] = _r16_o;
    _r15.i = 2;
    _r12_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r15.i]);
    _r15.i = 0;
    _r16.i = ((global::com.codename1.ui.Component) _r20_o).getWidth();
    _r17.i = ((global::com.codename1.ui.Component) _r21_o).getWidth();
    _r0_o = _r19_o;
    _r1.i = _r16.i;
    _r2.i = _r17.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r12_o)[_r15.i] = _r16_o;
    _r15.i = 1;
    _r16.i = ((global::com.codename1.ui.Component) _r20_o).getWidth();
    _r17.i = ((global::com.codename1.ui.Component) _r21_o).getWidth();
    _r0_o = _r19_o;
    _r1.i = _r16.i;
    _r2.i = _r17.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r12_o)[_r15.i] = _r16_o;
    _r15.i = 2;
    _r9_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r15.i]);
    _r15.i = 0;
    _r16.i = ((global::com.codename1.ui.Component) _r20_o).getHeight();
    _r17.i = ((global::com.codename1.ui.Component) _r21_o).getHeight();
    _r0_o = _r19_o;
    _r1.i = _r16.i;
    _r2.i = _r17.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r9_o)[_r15.i] = _r16_o;
    _r15.i = 1;
    _r16.i = ((global::com.codename1.ui.Component) _r20_o).getHeight();
    _r17.i = ((global::com.codename1.ui.Component) _r21_o).getHeight();
    _r0_o = _r19_o;
    _r1.i = _r16.i;
    _r2.i = _r17.i;
    _r3.i = _r22.i;
    _r16_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r9_o)[_r15.i] = _r16_o;
    _r4_o = new global::com.codename1.ui.Container_2Anim();
    _r15.i = 4;
    _r15_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r15.i]);
    _r16.i = 0;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r16.i] = _r13_o;
    _r16.i = 1;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r16.i] = _r14_o;
    _r16.i = 2;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r16.i] = _r12_o;
    _r16.i = 3;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r16.i] = _r9_o;
    _r0_o = _r4_o;
    _r1_o = _r19_o;
    _r2.i = _r22.i;
    _r3_o = _r15_o;
    ((global::com.codename1.ui.Container_2Anim) _r0_o).@this((global::com.codename1.ui.Container) _r1_o, (int) _r2.i, (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r3_o);
    _r15.i = 2;
    _r15_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r15.i]);
    _r16.i = 0;
    _r17.i = 255;
    _r18.i = 0;
    _r0_o = _r19_o;
    _r1.i = _r17.i;
    _r2.i = _r18.i;
    _r3.i = _r22.i;
    _r17_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r16.i] = _r17_o;
    _r16.i = 1;
    _r17.i = 0;
    _r18.i = 255;
    _r0_o = _r19_o;
    _r1.i = _r17.i;
    _r2.i = _r18.i;
    _r3.i = _r22.i;
    _r17_o = ((global::com.codename1.ui.Container) _r0_o).createAndStartAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r16.i] = _r17_o;
    ((global::com.codename1.ui.Container_2Anim) _r4_o)._fopacity = (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o;
    _r15_o = new global::java.util.Vector();
    ((global::java.util.Vector) _r15_o).@this();
    ((global::com.codename1.ui.Container_2Anim) _r4_o)._fanimatedComponents = (global::java.util.Vector) _r15_o;
    _r15_o = ((global::com.codename1.ui.Container_2Anim) _r4_o)._fanimatedComponents;
    _r0_o = _r15_o;
    _r1_o = _r20_o;
    ((global::java.util.Vector) _r0_o).addElement((global::java.lang.Object) _r1_o);
    _r15_o = ((global::com.codename1.ui.Container_2Anim) _r4_o)._fanimatedComponents;
    _r0_o = _r15_o;
    _r1_o = _r21_o;
    ((global::java.util.Vector) _r0_o).addElement((global::java.lang.Object) _r1_o);
    _r0_o = _r24_o;
    _r1_o = _r4_o;
    ((global::com.codename1.ui.Container_2Anim) _r1_o)._fonFinish = (global::java.lang.Runnable) _r0_o;
    _r15.i = 1;
    ((global::com.codename1.ui.Container_2Anim) _r4_o)._fdontRevalidate = 0!=_r15.i;
    _r0_o = _r4_o;
    _r1_o = _r21_o;
    global::com.codename1.ui.Container_2Anim.access_2002((global::com.codename1.ui.Container_2Anim) _r0_o, (global::com.codename1.ui.Component) _r1_o);
    ((global::com.codename1.ui.Container_2Anim) _r4_o).animate();
    _r15_o = ((global::com.codename1.ui.Container) _r19_o).getComponentForm();
    ((global::com.codename1.ui.Form) _r15_o).registerAnimated((global::com.codename1.ui.animations.Animation) _r4_o);
    if (_r23.i == 0) goto label335;
    _r15_o = global::com.codename1.ui.Display.getInstance();
    ((global::com.codename1.ui.Display) _r15_o).invokeAndBlock((global::java.lang.Runnable) _r4_o);
    label335:;
    return;
//XMLVM_END_WRAPPER[com.codename1.ui.Container: void morph(com.codename1.ui.Component, com.codename1.ui.Component, int, boolean, java.lang.Runnable)]
}
예제 #2
0
private void animateLayout(int n1, bool n2, int n3){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Container: void animateLayout(int, boolean, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nElement _r22;
    global::System.Object _r22_o = null;
    global::org.xmlvm._nElement _r23;
    global::System.Object _r23_o = null;
    global::org.xmlvm._nElement _r24;
    global::System.Object _r24_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r21_o = this;
    _r22.i = n1;
    _r23.i = n2 ? 1 : 0;
    _r24.i = n3;
    _r15_o = ((global::com.codename1.ui.Container) _r21_o).getComponentForm();
    if (_r15_o != null) goto label7;
    label6:;
    return;
    label7:;
    _r4.i = 1;
    _r0_o = _r21_o;
    _r1.i = _r4.i;
    ((global::com.codename1.ui.Container) _r0_o).setShouldCalcPreferredSize(0!=_r1.i);
    _r4.i = 0;
    global::com.codename1.ui.Container._fenableLayoutOnPaint = 0!=_r4.i;
    _r8.i = ((global::com.codename1.ui.Container) _r21_o).getComponentCount();
    _r12_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r8.i]);
    _r13_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r8.i]);
    _r11_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r8.i]);
    _r10_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r8.i]);
    _r0.i = _r8.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r0.i]);
    _r19_o = _r0_o;
    _r0.i = _r8.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r0.i]);
    _r20_o = _r0_o;
    _r0.i = _r8.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r0.i]);
    _r18_o = _r0_o;
    _r0.i = _r8.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r0.i]);
    _r16_o = _r0_o;
    _r17.i = 0;
    label51:;
    _r0.i = _r17.i;
    _r1.i = _r8.i;
    if (_r0.i >= _r1.i) goto label91;
    _r0_o = _r21_o;
    _r1.i = _r17.i;
    _r14_o = ((global::com.codename1.ui.Container) _r0_o).getComponentAt((int) _r1.i);
    _r4.i = ((global::com.codename1.ui.Component) _r14_o).getX();
    ((global::org.xmlvm._nArrayAdapter<int>) _r12_o)[_r17.i] = _r4.i;
    _r4.i = ((global::com.codename1.ui.Component) _r14_o).getY();
    ((global::org.xmlvm._nArrayAdapter<int>) _r13_o)[_r17.i] = _r4.i;
    _r4.i = ((global::com.codename1.ui.Component) _r14_o).getWidth();
    ((global::org.xmlvm._nArrayAdapter<int>) _r11_o)[_r17.i] = _r4.i;
    _r4.i = ((global::com.codename1.ui.Component) _r14_o).getHeight();
    ((global::org.xmlvm._nArrayAdapter<int>) _r10_o)[_r17.i] = _r4.i;
    _r17.i = _r17.i + 1;
    goto label51;
    label91:;
    ((global::com.codename1.ui.Container) _r21_o).layoutContainer();
    _r17.i = 0;
    label96:;
    _r0.i = _r17.i;
    _r1.i = _r8.i;
    if (_r0.i >= _r1.i) goto label224;
    _r0_o = _r21_o;
    _r1.i = _r17.i;
    _r14_o = ((global::com.codename1.ui.Container) _r0_o).getComponentAt((int) _r1.i);
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r12_o)[_r17.i];
    _r5.i = ((global::com.codename1.ui.Component) _r14_o).getX();
    _r0_o = _r21_o;
    _r1.i = _r4.i;
    _r2.i = _r5.i;
    _r3.i = _r22.i;
    _r4_o = ((global::com.codename1.ui.Container) _r0_o).createAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r19_o)[_r17.i] = _r4_o;
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r13_o)[_r17.i];
    _r5.i = ((global::com.codename1.ui.Component) _r14_o).getY();
    _r0_o = _r21_o;
    _r1.i = _r4.i;
    _r2.i = _r5.i;
    _r3.i = _r22.i;
    _r4_o = ((global::com.codename1.ui.Container) _r0_o).createAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r20_o)[_r17.i] = _r4_o;
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r11_o)[_r17.i];
    _r5.i = ((global::com.codename1.ui.Component) _r14_o).getWidth();
    _r0_o = _r21_o;
    _r1.i = _r4.i;
    _r2.i = _r5.i;
    _r3.i = _r22.i;
    _r4_o = ((global::com.codename1.ui.Container) _r0_o).createAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r18_o)[_r17.i] = _r4_o;
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r10_o)[_r17.i];
    _r5.i = ((global::com.codename1.ui.Component) _r14_o).getHeight();
    _r0_o = _r21_o;
    _r1.i = _r4.i;
    _r2.i = _r5.i;
    _r3.i = _r22.i;
    _r4_o = ((global::com.codename1.ui.Container) _r0_o).createAnimateMotion((int) _r1.i, (int) _r2.i, (int) _r3.i);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r16_o)[_r17.i] = _r4_o;
    _r4_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r19_o)[_r17.i];
    ((global::com.codename1.ui.animations.Motion) _r4_o).start();
    _r4_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r20_o)[_r17.i];
    ((global::com.codename1.ui.animations.Motion) _r4_o).start();
    _r4_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r18_o)[_r17.i];
    ((global::com.codename1.ui.animations.Motion) _r4_o).start();
    _r4_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r16_o)[_r17.i];
    ((global::com.codename1.ui.animations.Motion) _r4_o).start();
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r12_o)[_r17.i];
    ((global::com.codename1.ui.Component) _r14_o).setX((int) _r4.i);
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r13_o)[_r17.i];
    ((global::com.codename1.ui.Component) _r14_o).setY((int) _r4.i);
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r11_o)[_r17.i];
    ((global::com.codename1.ui.Component) _r14_o).setWidth((int) _r4.i);
    _r4.i = ((global::org.xmlvm._nArrayAdapter<int>) _r10_o)[_r17.i];
    ((global::com.codename1.ui.Component) _r14_o).setHeight((int) _r4.i);
    _r17.i = _r17.i + 1;
    goto label96;
    label224:;
    _r7_o = new global::com.codename1.ui.Container_2Anim();
    _r4.i = 4;
    _r4_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r4.i]);
    _r5.i = 0;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r5.i] = _r19_o;
    _r5.i = 1;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r5.i] = _r20_o;
    _r5.i = 2;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r5.i] = _r18_o;
    _r5.i = 3;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r5.i] = _r16_o;
    _r0_o = _r7_o;
    _r1_o = _r21_o;
    _r2.i = _r22.i;
    _r3_o = _r4_o;
    ((global::com.codename1.ui.Container_2Anim) _r0_o).@this((global::com.codename1.ui.Container) _r1_o, (int) _r2.i, (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r3_o);
    _r6.i = 255;
    _r4_o = _r21_o;
    _r5.i = _r24.i;
    _r9.i = _r22.i;
    ((global::com.codename1.ui.Container) _r4_o).setAnimOpacity((int) _r5.i, (int) _r6.i, (global::com.codename1.ui.Container_2Anim) _r7_o, (int) _r8.i, (int) _r9.i);
    ((global::com.codename1.ui.Form) _r15_o).registerAnimated((global::com.codename1.ui.animations.Animation) _r7_o);
    if (_r23.i == 0) goto label6;
    _r4_o = global::com.codename1.ui.Display.getInstance();
    ((global::com.codename1.ui.Display) _r4_o).invokeAndBlock((global::java.lang.Runnable) _r7_o);
    goto label6;
//XMLVM_END_WRAPPER[com.codename1.ui.Container: void animateLayout(int, boolean, int)]
}
예제 #3
0
private void replaceComponents(global::com.codename1.ui.Component n1, global::com.codename1.ui.Component n2, global::com.codename1.ui.animations.Transition n3, bool n4, bool n5, global::java.lang.Runnable n6, int n7, int n8){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Container: void replaceComponents(com.codename1.ui.Component, com.codename1.ui.Component, com.codename1.ui.animations.Transition, boolean, boolean, java.lang.Runnable, int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r5_o = this;
    _r6_o = n1;
    _r7_o = n2;
    _r8_o = n3;
    _r9.i = n4 ? 1 : 0;
    _r10.i = n5 ? 1 : 0;
    _r11_o = n6;
    _r12.i = n7;
    _r13.i = n8;
    _r3.i = 0;
    _r2.i = ((global::com.codename1.ui.Container) _r5_o).contains((global::com.codename1.ui.Component) _r6_o) ? 1 : 0;
    if (_r2.i != 0) goto label38;
    _r2_o = new global::java.lang.IllegalArgumentException();
    _r3_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r3_o).@this();
    // Value=Component 
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32))}));
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.String) _r4_o);
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.Object) _r6_o);
    // Value= is not contained in this Container
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 67)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114))}));
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.String) _r4_o);
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).toString();
    ((global::java.lang.IllegalArgumentException) _r2_o).@this((global::java.lang.String) _r3_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.IllegalArgumentException) _r2_o);
    label38:;
    if (_r8_o == null) goto label52;
    _r2.i = ((global::com.codename1.ui.Container) _r5_o).isVisible() ? 1 : 0;
    if (_r2.i == 0) goto label52;
    _r2_o = ((global::com.codename1.ui.Container) _r5_o).getComponentForm();
    if (_r2_o != null) goto label84;
    label52:;
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getX();
    ((global::com.codename1.ui.Component) _r7_o).setX((int) _r2.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getY();
    ((global::com.codename1.ui.Component) _r7_o).setY((int) _r2.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getWidth();
    ((global::com.codename1.ui.Component) _r7_o).setWidth((int) _r2.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getHeight();
    ((global::com.codename1.ui.Component) _r7_o).setHeight((int) _r2.i);
    ((global::com.codename1.ui.Container) _r5_o).replace((global::com.codename1.ui.Component) _r6_o, (global::com.codename1.ui.Component) _r7_o, 0!=_r3.i);
    label83:;
    return;
    label84:;
    ((global::com.codename1.ui.Container) _r5_o).setScrollX((int) _r3.i);
    ((global::com.codename1.ui.Container) _r5_o).setScrollY((int) _r3.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getX();
    ((global::com.codename1.ui.Component) _r7_o).setX((int) _r2.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getY();
    ((global::com.codename1.ui.Component) _r7_o).setY((int) _r2.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getWidth();
    ((global::com.codename1.ui.Component) _r7_o).setWidth((int) _r2.i);
    _r2.i = ((global::com.codename1.ui.Component) _r6_o).getHeight();
    ((global::com.codename1.ui.Component) _r7_o).setHeight((int) _r2.i);
    ((global::com.codename1.ui.Component) _r7_o).setParent((global::com.codename1.ui.Container) _r5_o);
    _r2.i = ((_r7_o != null) && (_r7_o is global::com.codename1.ui.Container)) ? 1 : 0;
    if (_r2.i == 0) goto label132;
    _r0_o = _r7_o;
    _r0_o = _r0_o;
    _r2_o = _r0_o;
    ((global::com.codename1.ui.Container) _r2_o).layoutContainer();
    label132:;
    _r1_o = new global::com.codename1.ui.Container_2Anim();
    ((global::com.codename1.ui.Container_2Anim) _r1_o).@this((global::com.codename1.ui.Container) _r5_o, (global::com.codename1.ui.Component) _r6_o, (global::com.codename1.ui.Component) _r7_o, (global::com.codename1.ui.animations.Transition) _r8_o);
    ((global::com.codename1.ui.Container_2Anim) _r1_o)._fonFinish = (global::java.lang.Runnable) _r11_o;
    ((global::com.codename1.ui.Container_2Anim) _r1_o)._fgrowSpeed = _r12.i;
    ((global::com.codename1.ui.Container_2Anim) _r1_o)._flayoutAnimationSpeed = _r13.i;
    _r2_o = ((global::com.codename1.ui.Container) _r5_o).getComponentForm();
    ((global::com.codename1.ui.Form) _r2_o).registerAnimatedInternal((global::com.codename1.ui.animations.Animation) _r1_o);
    if (_r9.i == 0) goto label83;
    _r2_o = global::com.codename1.ui.Display.getInstance();
    ((global::com.codename1.ui.Display) _r2_o).invokeAndBlock((global::java.lang.Runnable) _r1_o, 0!=_r10.i);
    goto label83;
//XMLVM_END_WRAPPER[com.codename1.ui.Container: void replaceComponents(com.codename1.ui.Component, com.codename1.ui.Component, com.codename1.ui.animations.Transition, boolean, boolean, java.lang.Runnable, int, int)]
}