Hi, guys! I use some GWT implementation of HTML FieldSet. Events from
FieldSet are blocked somewhere. Can somebody help me to resolve this
problem?

In this example I can not see Alert box with text "Hello!"

Usage example:
..............
FieldSet contactFS = new FieldSet();
final FlexTable contactFT = new FlexTable();
contactFS.add(contactFT);
Button pb = new Button("+");
pb.addClickListener(
       new ClickListener() {
           public void onClick(Widget arg0) {
                Window.alert("Hello!");
          }
});
contactFT.setWidget(0, 0, pb);
..............

FieldSet class:

package ru.client;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Widget;

public class FieldSet extends Widget {
        private Element legend;
        private FlowPanel flowPanel;

        public FieldSet() {
      flowPanel = new FlowPanel();
          setElement(DOM.createElement("fieldset"));
          DOM.setInnerHTML(getElement(), "");
      legend = DOM.createElement("legend");
      DOM.appendChild(getElement(), legend);
      DOM.appendChild(getElement(), flowPanel.getElement());
   }

   public String getCapture() {
      return DOM.getInnerText(legend);
   }

   public void setCapture(String title) {
      DOM.setInnerText(legend, (title == null ? "" : title));
      super.setTitle(title);
   }

   public void add(Widget w){
           flowPanel.add(w);
   }

   public boolean remove(Widget w){
           flowPanel.remove(w);
           return true;
   }
}

--~--~---------~--~----~------------~-------~--~----~
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