コード例 #1
0
ファイル: RSSReader.cs プロジェクト: shannah/CN1WindowsPort
public virtual void showRSSEntry(global::java.util.Hashtable n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.components.RSSReader: void showRSSEntry(java.util.Hashtable)]
    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._nExceptionAdapter _ex = null;
    _r8_o = this;
    _r9_o = n1;
    // Value=title
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    // Value=Center
    _r7_o = new global::java.lang.String();
    ((global::java.lang.String)_r7_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114))}));
    _r2_o = null;
    _r5_o = ((global::com.codename1.components.RSSReader) _r8_o)._ftargetContainer;
    if (_r5_o == null) goto label78;
    _r5_o = ((global::com.codename1.components.RSSReader) _r8_o)._ftargetContainer;
    _r5.i = ((_r5_o != null) && (_r5_o is global::com.codename1.ui.Form)) ? 1 : 0;
    if (_r5.i == 0) goto label49;
    _r2_o = ((global::com.codename1.components.RSSReader) _r8_o)._ftargetContainer;
    _r2_o = _r2_o;
    label19:;
    ((global::com.codename1.components.RSSReader) _r8_o).updateComponentValues((global::com.codename1.ui.Container) _r2_o, (global::java.util.Hashtable) _r9_o);
    label22:;
    _r5.i = ((global::com.codename1.components.RSSReader) _r8_o)._faddBackToTaget ? 1 : 0;
    if (_r5.i == 0) goto label45;
    _r5_o = global::com.codename1.ui.Display.getInstance();
    _r4_o = ((global::com.codename1.ui.Display) _r5_o).getCurrent();
    _r0_o = new global::com.codename1.components.RSSReader_2BackCommand();
    ((global::com.codename1.components.RSSReader_2BackCommand) _r0_o).@this((global::com.codename1.components.RSSReader) _r8_o, (global::com.codename1.ui.Form) _r4_o);
    ((global::com.codename1.ui.Form) _r2_o).addCommand((global::com.codename1.ui.Command) _r0_o);
    ((global::com.codename1.ui.Form) _r2_o).setBackCommand((global::com.codename1.ui.Command) _r0_o);
    label45:;
    ((global::com.codename1.ui.Form) _r2_o).show();
    return;
    label49:;
    _r2_o = new global::com.codename1.ui.Form();
    // Value=title
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    _r5_o = ((global::java.util.Hashtable) _r9_o).get((global::java.lang.Object) _r6_o);
    _r5_o = _r5_o;
    ((global::com.codename1.ui.Form) _r2_o).@this((global::java.lang.String) _r5_o);
    _r5_o = new global::com.codename1.ui.layouts.BorderLayout();
    ((global::com.codename1.ui.layouts.BorderLayout) _r5_o).@this();
    ((global::com.codename1.ui.Form) _r2_o).setLayout((global::com.codename1.ui.layouts.Layout) _r5_o);
    // Value=Center
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114))}));
    _r5_o = ((global::com.codename1.components.RSSReader) _r8_o)._ftargetContainer;
    ((global::com.codename1.ui.Form) _r2_o).addComponent((global::java.lang.Object) _r7_o, (global::com.codename1.ui.Component) _r5_o);
    goto label19;
    label78:;
    _r2_o = new global::com.codename1.ui.Form();
    // Value=title
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    _r5_o = ((global::java.util.Hashtable) _r9_o).get((global::java.lang.Object) _r6_o);
    _r5_o = _r5_o;
    ((global::com.codename1.ui.Form) _r2_o).@this((global::java.lang.String) _r5_o);
    _r5.i = 0;
    ((global::com.codename1.ui.Form) _r2_o).setScrollable(0!=_r5.i);
    _r1_o = new global::com.codename1.components.WebBrowser();
    ((global::com.codename1.components.WebBrowser) _r1_o).@this();
    // Value=description
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    _r3_o = ((global::java.util.Hashtable) _r9_o).get((global::java.lang.Object) _r5_o);
    _r3_o = _r3_o;
    _r5_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r5_o).@this();
    // Value=<html><body>
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)60)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 62)), unchecked((char) unchecked((uint) 60)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 62))}));
    _r5_o = ((global::java.lang.StringBuilder) _r5_o).append((global::java.lang.String) _r6_o);
    _r5_o = ((global::java.lang.StringBuilder) _r5_o).append((global::java.lang.String) _r3_o);
    // Value=</body></html>
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)60)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 62)), unchecked((char) unchecked((uint) 60)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 62))}));
    _r5_o = ((global::java.lang.StringBuilder) _r5_o).append((global::java.lang.String) _r6_o);
    _r3_o = ((global::java.lang.StringBuilder) _r5_o).toString();
    _r5_o = null;
    ((global::com.codename1.components.WebBrowser) _r1_o).setPage((global::java.lang.String) _r3_o, (global::java.lang.String) _r5_o);
    _r5_o = new global::com.codename1.ui.layouts.BorderLayout();
    ((global::com.codename1.ui.layouts.BorderLayout) _r5_o).@this();
    ((global::com.codename1.ui.Form) _r2_o).setLayout((global::com.codename1.ui.layouts.Layout) _r5_o);
    // Value=Center
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114))}));
    ((global::com.codename1.ui.Form) _r2_o).addComponent((global::java.lang.Object) _r7_o, (global::com.codename1.ui.Component) _r1_o);
    goto label22;
//XMLVM_END_WRAPPER[com.codename1.components.RSSReader: void showRSSEntry(java.util.Hashtable)]
}
コード例 #2
0
ファイル: VServAds.cs プロジェクト: shannah/CN1WindowsPort
public override global::System.Object getPendingAd(){
//XMLVM_BEGIN_WRAPPER[com.codename1.impl.VServAds: com.codename1.ui.Component getPendingAd()]
    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;
    _r7_o = this;
    _r5_o = ((global::com.codename1.impl.VServAds) _r7_o)._fimageURL;
    if (_r5_o != null) goto label6;
    _r5_o = null;
    label5:;
    return (global::com.codename1.ui.Component) _r5_o;
    label6:;
    _r5_o = ((global::com.codename1.impl.VServAds) _r7_o)._frenderNotify;
    if (_r5_o == null) goto label43;
    _r5_o = ((global::com.codename1.impl.VServAds) _r7_o)._frenderNotify;
    _r5.i = ((global::java.lang.String) _r5_o).length();
    if (_r5.i <= 0) goto label43;
    _r2_o = new global::com.codename1.io.ConnectionRequest();
    ((global::com.codename1.io.ConnectionRequest) _r2_o).@this();
    _r5.i = 1;
    ((global::com.codename1.io.ConnectionRequest) _r2_o).setFailSilently(0!=_r5.i);
    _r5_o = ((global::com.codename1.impl.VServAds) _r7_o)._frenderNotify;
    ((global::com.codename1.io.ConnectionRequest) _r2_o).setUrl((global::java.lang.String) _r5_o);
    _r5.i = 0;
    ((global::com.codename1.io.ConnectionRequest) _r2_o).setPost(0!=_r5.i);
    _r5_o = global::com.codename1.io.NetworkManager.getInstance();
    ((global::com.codename1.io.NetworkManager) _r5_o).addToQueue((global::com.codename1.io.ConnectionRequest) _r2_o);
    label43:;
    // Value=image
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)105)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 101))}));
    _r6_o = ((global::com.codename1.impl.VServAds) _r7_o)._fcontentType;
    _r5.i = ((global::java.lang.String) _r5_o).equalsIgnoreCase((global::java.lang.String) _r6_o) ? 1 : 0;
    if (_r5.i == 0) goto label97;
    _r0_o = new global::com.codename1.impl.VServAds_22();
    ((global::com.codename1.impl.VServAds_22) _r0_o).@this((global::com.codename1.impl.VServAds) _r7_o);
    // Value=Container
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {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))}));
    ((global::com.codename1.ui.Button) _r0_o).setUIID((global::java.lang.String) _r5_o);
    _r5_o = ((global::com.codename1.ui.Button) _r0_o).getStyle();
    _r6.i = ((global::com.codename1.impl.VServAds) _r7_o)._fbackgroundColor;
    ((global::com.codename1.ui.plaf.Style) _r5_o).setBgColor((int) _r6.i);
    _r5_o = ((global::com.codename1.ui.Button) _r0_o).getStyle();
    _r6.i = 255;
    ((global::com.codename1.ui.plaf.Style) _r5_o).setOpacity((int) _r6.i);
    _r3_o = new global::com.codename1.io.services.ImageDownloadService();
    _r5_o = ((global::com.codename1.impl.VServAds) _r7_o)._fimageURL;
    ((global::com.codename1.io.services.ImageDownloadService) _r3_o).@this((global::java.lang.String) _r5_o, (global::com.codename1.ui.Label) _r0_o);
    _r5_o = global::com.codename1.io.NetworkManager.getInstance();
    ((global::com.codename1.io.NetworkManager) _r5_o).addToQueueAndWait((global::com.codename1.io.ConnectionRequest) _r3_o);
    _r5_o = _r0_o;
    goto label5;
    label97:;
    _r4_o = new global::com.codename1.components.WebBrowser();
    ((global::com.codename1.components.WebBrowser) _r4_o).@this();
    _r5_o = ((global::com.codename1.components.WebBrowser) _r4_o).getInternal();
    _r5.i = ((_r5_o != null) && (_r5_o is global::com.codename1.ui.BrowserComponent)) ? 1 : 0;
    if (_r5.i == 0) goto label124;
    _r1_o = ((global::com.codename1.components.WebBrowser) _r4_o).getInternal();
    _r1_o = _r1_o;
    _r5_o = new global::com.codename1.impl.VServAds_23();
    ((global::com.codename1.impl.VServAds_23) _r5_o).@this((global::com.codename1.impl.VServAds) _r7_o);
    ((global::com.codename1.ui.BrowserComponent) _r1_o).setBrowserNavigationCallback((global::com.codename1.ui.events.BrowserNavigationCallback) _r5_o);
    label124:;
    _r5_o = ((global::com.codename1.impl.VServAds) _r7_o)._fimageURL;
    ((global::com.codename1.components.WebBrowser) _r4_o).setURL((global::java.lang.String) _r5_o);
    _r5_o = _r4_o;
    goto label5;
//XMLVM_END_WRAPPER[com.codename1.impl.VServAds: com.codename1.ui.Component getPendingAd()]
}