Right, sorry that I haven't posted code before.
And the broblem is actually not in timers, because I temporarily
removed them,
there's smth else.

Here is the code:

<c>
// file ChartItem.java

public class ChartItem extends AbsolutePanel implements
ChartItemChanger {

private PopupMenu pp = PopupMenu.getInstance();

private ChangeListener mouseOverListener,  mouseOutListener,
            mouseOnClickListener,mouseOnMouseDownListener,
mouseOnMouseUpListener;

public ChartItem () {
       sinkEvents(Event.MOUSEEVENTS);
       setMouseListeners();
  }

 private void setMouseListeners() {

          mouseOnClickListener = new ChangeListener() {        /* This
is the place where IE does not respond*/
            public void onChange(final Widget wdgt) {

                        /* Sending link to an interface */
                        pp.setChartItemInterface(ChartItem.this);

                        /* Calling standard methods of PopupPanel
class*/
                        pp.setPopupPosition(getAbsoluteLeft(),
getAbsoluteTop() );
                        pp.show();
            }
        };

        mouseOnMouseDownListener = new ChangeListener() {...}
        mouseOnMouseUpListener = new ChangeListener() {...};
        mouseOverListener = new ChangeListener() {...};
        mouseOutListener = new ChangeListener() {...};
      }

 public void onBrowserEvent(Event event) {
        super.onBrowserEvent(event);
        int type = DOM.eventGetType(event);
           switch (type) {
               case Event.ONCLICK:
mouseOnClickListener.onChange(this);
                                                        break;
                ...
           }
    }

}

//////////////////////////////////////////////////////
// file PopupMenu.java
                            /* A singleton class */

final public class PopupMenu extends PopupPanel {

  private static PopupMenu INSTANCE;

  private ChartItemChanger changer;

  public static PopupMenu getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new PopupMenu();
        }
       return INSTANCE;
    }

 private PopupMenu() {
        super(true);
         ...
 }

  void setChartItemInterface(ChartItemChanger changer) {
        this.changer = changer;
    }

 @Override
    public void show()
    {   if (Flags.ALLOW_POPUP_MENU_SHOWING)
        super.show();
    }

}

////////////// file Flags.java

public class Flags {
             boolean ALLOW_POPUP_MENU_SHOWING=true;
             ...
}
</c>

ChartItem also contains an image and when user clicks on it PopupMenu
should be shown.
It is ok in FF, but not in IE.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to