@@ -0,0 +1,1919 @@
+package com.sometrik.framework;%0A%0Aimport android.view.Gravity;%0Aimport android.view.View;%0Aimport android.widget.PopupWindow;%0A%0Apublic class FWPopupView extends PopupWindow implements NativeCommandHandler %7B%0A%0A  FrameWork frame;%0A  View parentView;%0A  int id;%0A  %0A  public FWPopupView(FrameWork frame, View parentView, int id)%7B%0A    this.frame = frame;%0A    this.parentView = parentView;%0A    this.id = id;%0A  %7D%0A%0A  @Override%0A  public void onScreenOrientationChange(boolean isLandscape) %7B%0A    %0A  %7D%0A%0A  @Override%0A  public void addChild(View view) %7B%0A    System.out.println(%22setting new contentView for popupView%22);%0A    this.setContentView(view);%0A  %7D%0A%0A  @Override%0A  public void addOption(int optionId, String text) %7B%0A    System.out.println(%22command couldn't be handled by popupView%22);%0A  %7D%0A%0A  @Override%0A  public void addData(int rowNumber, int columnNumber, String text) %7B%0A    System.out.println(%22command couldn't be handled by popupView%22);%0A  %7D%0A%0A  @Override%0A  public void setValue(String v) %7B%0A    System.out.println(%22command couldn't be handled by popupView%22);%0A  %7D%0A%0A  @Override%0A  public void setValue(int v) %7B%0A    if (v == 1)%7B%0A      showAtLocation(parentView, Gravity.CENTER, 0, 0);%0A    %7D else if (v %3C= 0)%7B%0A      dismiss();%0A    %7D%0A  %7D%0A%0A  @Override%0A  public void setViewEnabled(Boolean enabled) %7B%0A    if (enabled)%7B%0A      showAtLocation(parentView, Gravity.CENTER, 0, 0);%0A    %7D else %7B%0A      dismiss();%0A    %7D%0A  %7D%0A%0A  @Override%0A    public void setViewVisibility(boolean visible) %7B%0A    if (visible)%7B%0A      showAtLocation(parentView, Gravity.CENTER, 0, 0);%0A    %7D else %7B%0A      dismiss();%0A    %7D%0A  %7D%0A%0A  @Override%0A  public void setStyle(String key, String value) %7B%0A    System.out.println(%22command couldn't be handled by popupView%22);%0A  %7D%0A%0A  @Override%0A  public void setError(boolean hasError, String errorText) %7B%0A    System.out.println(%22command couldn't be handled by popupView%22);%0A  %7D%0A%0A  @Override%0A  public int getElementId() %7B%0A    return id;%0A  %7D%0A  %0A%7D%0A

Add FWPopupView