public override void afterComponentPaint(global::com.codename1.ui.Component n1, global::com.codename1.ui.Graphics n2)
 {
     if (n2.getGraphics() != globalGraphics)
     {
         return;
     }
     if (pendingWipe != null)
     {
         globalGraphics.paint(pendingWipe);
         pendingWipe = null;
     }
     currentlyPainting = null;
     currentPaintDestination = null;
     /*if (n1 is global::com.codename1.ui.Form)
     {
         pendingPaints.Clear();
         pendingPaints.Add(new WipeScreen(globalGraphics));
     }*/
 }
 public override void beforeComponentPaint(global::com.codename1.ui.Component n1, global::com.codename1.ui.Graphics n2)
 {
     if (n2.getGraphics() != globalGraphics)
     {
         return;
     }
     currentlyPainting = n1;
     CSharpListHolder cl = (CSharpListHolder)n1.getClientProperty(componentKey);
     if (cl != null)
     {
         if (cl.ll.Count > 0)
         {
             //System.Diagnostics.Debug.WriteLine("Painting component with " + cl.ll.Count + " elements");
             //System.Diagnostics.Debug.WriteLine(toCSharp((java.lang.String)n1.toString()));
             pendingWipe = new WipeComponent(globalGraphics, cl.ll, toCSharp((java.lang.String)n1.toString()));
             cl.ll.Clear();
         }
     }
     else
     {
         //System.Diagnostics.Debug.WriteLine("Painting component with no previous elements");
         //System.Diagnostics.Debug.WriteLine(toCSharp((java.lang.String)n1.toString()));
         cl = new CSharpListHolder();
         currentlyPainting.putClientProperty(componentKey, cl);
     }
     currentPaintDestination = cl.ll;
     /*if (n1 is global::com.codename1.ui.Form)
     {
         pendingPaints.Clear();
         pendingPaints.Add(new WipeScreen(globalGraphics));
     }*/
 }