Java Question Java bound mismatch , The type is not a valid substitute for the bounded parameter

PABLO2013

Well-Known Member
Licensed User
Longtime User
import a.b.internal.ImageDialog


B4X:
public class ImageDialog extends a implements View.OnClickListener {
  ...
 
  public ImageDialog(Context paramContext) {
    super(paramContext);
    init();
  }
 
  public void init() {
   ....
  }

B4X:
package anywheresoftware.b4a.objects;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.Hide;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.keywords.Common.DesignerCustomView;
import anywheresoftware.b4a.objects.CustomViewWrapper;
import anywheresoftware.b4a.objects.LabelWrapper;
import anywheresoftware.b4a.objects.PanelWrapper;
import anywheresoftware.b4a.objects.ViewWrapper;
import anywheresoftware.b4a.objects.collections.Map;
import a.b.internal.ImageDialog;

@ShortName("SampleImageDialog")

public class SampleImageDialog extends ViewWrapper<ImageDialog>  implements DesignerCustomView {
    private BA ba;
    private String eventName;
    
    /*
     * Initialize the HTML-TextView
     */       
    public void Initialize(BA ba, String EventName) {
        _initialize(ba, null, EventName);
    }

    @Override
    public void DesignerCreateView(PanelWrapper base, LabelWrapper lw, Map props) {
        //getObject().setChecked((Boolean)props.Get("Checked"));
        CustomViewWrapper.replaceBaseWithView(base, getObject());
    }

    
    @Hide
    @Override
    public void _initialize(BA ba, Object activityClass, String EventName) {
        this.eventName = EventName.toLowerCase(BA.cul);
        this.ba = ba;
        this.setObject(new ImageDialog(ba.context));
        //getObject().ini initView(arg0, arg1, arg2);
     }

    
    
}
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings I am wrapping several views, but in this case it tells me this, I know that the generic types in java are invariable but how could I do it, thanks
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
Thank you very much, I understand the advice, I only understand things a little better since java eclipse
 
Top