コード例 #1
0
ファイル: Spinner.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object createTime(int n1, int n2, int n3, int n4, bool n5, bool n6){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.Spinner: com.codename1.ui.spinner.Spinner createTime(int, int, int, int, boolean, boolean)]
    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._nExceptionAdapter _ex = null;
    _r3.i = n1;
    _r4.i = n2;
    _r5.i = n3;
    _r6.i = n4;
    _r7.i = n5 ? 1 : 0;
    _r8.i = n6 ? 1 : 0;
    _r0_o = new global::com.codename1.ui.spinner.Spinner();
    _r1_o = new global::com.codename1.ui.spinner.SpinnerNumberModel();
    ((global::com.codename1.ui.spinner.SpinnerNumberModel) _r1_o).@this((int) _r3.i, (int) _r4.i, (int) _r5.i, (int) _r6.i);
    _r2_o = global::com.codename1.ui.spinner.DateTimeRenderer.createTimeRenderer(0!=_r7.i, 0!=_r8.i);
    ((global::com.codename1.ui.spinner.Spinner) _r0_o).@this((global::com.codename1.ui.list.ListModel) _r1_o, (global::com.codename1.ui.list.ListCellRenderer) _r2_o);
    return (global::com.codename1.ui.spinner.Spinner) _r0_o;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.Spinner: com.codename1.ui.spinner.Spinner createTime(int, int, int, int, boolean, boolean)]
}
コード例 #2
0
public virtual void setStep(double n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.NumericSpinner: void setStep(double)]
    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._nExceptionAdapter _ex = null;
    _r10_o = this;
    _r11.d = n1;
    ((global::com.codename1.ui.spinner.NumericSpinner) _r10_o)._fstep = _r11.d;
    _r0_o = ((global::com.codename1.ui.spinner.NumericSpinner) _r10_o)._fspin;
    if (_r0_o == null) goto label23;
    _r9_o = ((global::com.codename1.ui.spinner.NumericSpinner) _r10_o)._fspin;
    _r0_o = new global::com.codename1.ui.spinner.SpinnerNumberModel();
    _r1.d = ((global::com.codename1.ui.spinner.NumericSpinner) _r10_o)._fmin;
    _r3.d = ((global::com.codename1.ui.spinner.NumericSpinner) _r10_o)._fmax;
    _r5.d = ((global::com.codename1.ui.spinner.NumericSpinner) _r10_o)._fvalue;
    _r7.d = _r11.d;
    ((global::com.codename1.ui.spinner.SpinnerNumberModel) _r0_o).@this((double) _r1.d, (double) _r3.d, (double) _r5.d, (double) _r7.d);
    ((global::com.codename1.ui.spinner.Spinner) _r9_o).setModel((global::com.codename1.ui.list.ListModel) _r0_o);
    label23:;
    return;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.NumericSpinner: void setStep(double)]
}
コード例 #3
0
ファイル: TimeSpinner.cs プロジェクト: shannah/CN1WindowsPort
public virtual void setShowMeridiem(bool n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.TimeSpinner: void setShowMeridiem(boolean)]
    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._nExceptionAdapter _ex = null;
    _r6_o = this;
    _r7.i = n1 ? 1 : 0;
    _r5.i = 1;
    _r0.i = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fdurationMode ? 1 : 0;
    if (_r0.i == 0) goto label6;
    label5:;
    return;
    label6:;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fshowMeridiem = 0!=_r7.i;
    if (_r7.i == 0) goto label56;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fstartHour = _r5.i;
    _r0.i = 13;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fendHour = _r0.i;
    label16:;
    _r0_o = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fhour;
    if (_r0_o == null) goto label36;
    _r0_o = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fhour;
    _r1_o = new global::com.codename1.ui.spinner.SpinnerNumberModel();
    _r2.i = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fstartHour;
    _r3.i = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fendHour;
    _r4.i = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fcurrentHour;
    ((global::com.codename1.ui.spinner.SpinnerNumberModel) _r1_o).@this((int) _r2.i, (int) _r3.i, (int) _r4.i, (int) _r5.i);
    ((global::com.codename1.ui.spinner.Spinner) _r0_o).setModel((global::com.codename1.ui.list.ListModel) _r1_o);
    label36:;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o).removeAll();
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o).addComponents();
    _r0.i = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o).isInitialized() ? 1 : 0;
    if (_r0.i == 0) goto label5;
    _r0_o = ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o).getParent();
    ((global::com.codename1.ui.Container) _r0_o).revalidate();
    goto label5;
    label56:;
    _r0.i = 0;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fstartHour = _r0.i;
    _r0.i = 24;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r6_o)._fendHour = _r0.i;
    goto label16;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.TimeSpinner: void setShowMeridiem(boolean)]
}
コード例 #4
0
ファイル: TimeSpinner.cs プロジェクト: shannah/CN1WindowsPort
public virtual void setMinuteStep(int n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.TimeSpinner: void setMinuteStep(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._nExceptionAdapter _ex = null;
    _r5_o = this;
    _r6.i = n1;
    ((global::com.codename1.ui.spinner.TimeSpinner) _r5_o)._fminuteStep = _r6.i;
    _r0_o = ((global::com.codename1.ui.spinner.TimeSpinner) _r5_o)._fminute;
    if (_r0_o == null) goto label21;
    _r0_o = ((global::com.codename1.ui.spinner.TimeSpinner) _r5_o)._fminute;
    _r1_o = new global::com.codename1.ui.spinner.SpinnerNumberModel();
    _r2.i = 0;
    _r3.i = 60;
    _r4.i = ((global::com.codename1.ui.spinner.TimeSpinner) _r5_o)._fcurrentMinute;
    ((global::com.codename1.ui.spinner.SpinnerNumberModel) _r1_o).@this((int) _r2.i, (int) _r3.i, (int) _r4.i, (int) _r6.i);
    ((global::com.codename1.ui.spinner.Spinner) _r0_o).setModel((global::com.codename1.ui.list.ListModel) _r1_o);
    label21:;
    return;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.TimeSpinner: void setMinuteStep(int)]
}
コード例 #5
0
ファイル: Spinner.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object create(double n1, double n2, double n3, double n4){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.Spinner: com.codename1.ui.spinner.Spinner create(double, double, double, double)]
    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._nExceptionAdapter _ex = null;
    _r10.d = n1;
    _r12.d = n2;
    _r14.d = n3;
    _r16.d = n4;
    _r9_o = new global::com.codename1.ui.spinner.Spinner();
    _r0_o = new global::com.codename1.ui.spinner.SpinnerNumberModel();
    _r1.d = _r10.d;
    _r3.d = _r12.d;
    _r5.d = _r14.d;
    _r7.d = _r16.d;
    ((global::com.codename1.ui.spinner.SpinnerNumberModel) _r0_o).@this((double) _r1.d, (double) _r3.d, (double) _r5.d, (double) _r7.d);
    _r10_o = new global::com.codename1.ui.spinner.Spinner_21();
    ((global::com.codename1.ui.spinner.Spinner_21) _r10_o).@this();
    ((global::com.codename1.ui.spinner.Spinner) _r9_o).@this((global::com.codename1.ui.list.ListModel) _r0_o, (global::com.codename1.ui.list.ListCellRenderer) _r10_o);
    _r10_o = new global::java.lang.Double();
    _r14.d = 10.0D;
    _r11.d = _r12.d * _r14.d;
    ((global::java.lang.Double) _r10_o).@this((double) _r11.d);
    ((global::com.codename1.ui.spinner.Spinner) _r9_o).setRenderingPrototype((global::java.lang.Object) _r10_o);
    return (global::com.codename1.ui.spinner.Spinner) _r9_o;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.Spinner: com.codename1.ui.spinner.Spinner create(double, double, double, double)]
}
コード例 #6
0
ファイル: Spinner.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object create(int n1, int n2, int n3, int n4){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.Spinner: com.codename1.ui.spinner.Spinner create(int, int, 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._nExceptionAdapter _ex = null;
    _r3.i = n1;
    _r4.i = n2;
    _r5.i = n3;
    _r6.i = n4;
    _r0_o = new global::com.codename1.ui.spinner.Spinner();
    _r1_o = new global::com.codename1.ui.spinner.SpinnerNumberModel();
    ((global::com.codename1.ui.spinner.SpinnerNumberModel) _r1_o).@this((int) _r3.i, (int) _r4.i, (int) _r5.i, (int) _r6.i);
    _r2_o = new global::com.codename1.ui.spinner.SpinnerRenderer();
    ((global::com.codename1.ui.spinner.SpinnerRenderer) _r2_o).@this();
    ((global::com.codename1.ui.spinner.Spinner) _r0_o).@this((global::com.codename1.ui.list.ListModel) _r1_o, (global::com.codename1.ui.list.ListCellRenderer) _r2_o);
    _r1_o = new global::java.lang.Integer();
    _r2.i = _r4.i * 10;
    ((global::java.lang.Integer) _r1_o).@this((int) _r2.i);
    ((global::com.codename1.ui.spinner.Spinner) _r0_o).setRenderingPrototype((global::java.lang.Object) _r1_o);
    return (global::com.codename1.ui.spinner.Spinner) _r0_o;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.Spinner: com.codename1.ui.spinner.Spinner create(int, int, int, int)]
}