Ming Leung
Ming Leung

Reputation: 385

popuppanel is called by clickhandler of hyperlink on another popuppanel

I have 2 gwt PopupPanel in one class. The second popup is expected to be shown when the user clicks the hyperlink on popuppanel1. How can I fix this problem? Thanks

Problem: Click the hyperlink on popuppanel1 - the popuppanel2 is not shown at all.

PopupPanel popuppanel1=new PopupPanel();
PopupPanel popuppanel2=new PopupPanel();

//popuppanel1 and popuppanel2 add their components

popuppanel1.getHyperlink().addClickHandler(new ClickHandler(){
        @Override
        public void onClick(ClickEvent event) {
            popuppanel2.center();
        }
});

Upvotes: 0

Views: 22

Answers (0)

Related Questions