Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.ClickListener


    if (!WadlTreeRoot.containsButton(buttonTreeItems, ApplicationItem.button + WadlXml.paramNode)) {
      // add param button
      HorizontalPanel addParamPanel = new HorizontalPanel();
         
      Button addParamButton = new Button(GuiFactory.strings.addParam());
      addParamButton.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {         
          Analyzer analyzer = null;
          if (parentNode instanceof RequestNode) {   
            ((RequestNode) parentNode).addParam(new ParamNode(GuiFactory.strings.newParam(), (GenericNode) parentNode, ((GenericNode) parentNode).getApplication()));           
            analyzer = ((RequestNode) parentNode).getApplication().getAnalyzer();
View Full Code Here


    */
    public void onModuleLoad() {
        final Label label = new Label("Hello, GWT!!!");
        final Button button = new Button("Click me!");
       
        button.addClickListener(new ClickListener(){
            public void onClick(Widget w) {
                label.setVisible(!label.isVisible());
            }
        });
       
View Full Code Here

    resourceTypePanel.add(input);
   
    resourceTypePanel.add(new HTML(SyntaxHighlighter.highlight("\" >")));
       
    Hyperlink removeResourceTypeLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeResourceTypeLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        resourceType.getApplication().removeResourceType(resourceType);        
        listResourceTypes(resourceType.getApplication(), applicationTreeItem);
      }
    });     
View Full Code Here

   
    if (!WadlTreeRoot.containsButton(buttonTreeItems, ApplicationItem.button + WadlXml.resourceTypeNode)) {
      // add resource type button
      HorizontalPanel addResourceTypePanel = new HorizontalPanel();           
      Button addResourceTypeButton = new Button(GuiFactory.strings.addResourceType());
      addResourceTypeButton.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {         
          application.addResourceType(new ResourceTypeNode(GuiFactory.strings.newResourceType(), application));                              
          listResourceTypes(application, applicationTreeItem);       
        }
      });
View Full Code Here

    includePanel.add(input);
   
    includePanel.add(new HTML(SyntaxHighlighter.highlight("\" />")));
   
    Hyperlink removeIncludeLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeIncludeLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        grammars.removeInclude(input.getText());      
        listIncludes(grammars, includesPanel);
      }
    });     
View Full Code Here

    }
    includePanel.add(includeItems);
   
    // add include button       
    Button addIncludeButton = new Button(GuiFactory.strings.addInclude());
    addIncludeButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        grammars.addInclude(GuiFactory.strings.newInclude());
        IncludeItem.listIncludes(grammars, includePanel);
      }
    });
View Full Code Here

    HTML request = new HTML(SyntaxHighlighter.highlight("<" + WadlXml.requestNode + ">"));
    containerPanel.add(request);
   
    // remove request hyperlink
    Hyperlink removeRequestLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeRequestLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        method.removeRequest(method.getRequest());        
        listRequest(method, methodTreeItem);
      }
    });     
View Full Code Here

  public static void listRequest(final MethodNode method, final TreeItem methodTreeItem) {
    Vector buttonTreeItems = WadlTreeRoot.removeChildrenXKeepButtons(methodTreeItem, WadlXml.requestNode);   
    RequestNode request = method.getRequest();
    if (request == null) {
      Button addRequestButton = new Button(GuiFactory.strings.addRequest());
      addRequestButton.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {             
          method.addRequest(new RequestNode(method, method.getApplication()));         
          listRequest(method, methodTreeItem);         
        }
      });
View Full Code Here

    applicationPanel.add(namespacePanel)
   
    HorizontalPanel buttonPanel = new HorizontalPanel();
    buttonPanel.add(new HTML("&nbsp;&nbsp;&nbsp;"));
    Button addExtNamespaceButton = new Button(GuiFactory.strings.addExtNamespace());
    addExtNamespaceButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        NamespaceAttribute namespace = new NamespaceAttribute(null, GuiFactory.strings.newExtNamespace());
        application.addNamespace(namespace);
        listExtNamespaces(application, namespacePanelRight);
      }
    });
    buttonPanel.add(addExtNamespaceButton);
    applicationPanel.add(buttonPanel);

    HorizontalPanel autoDiscoverPanel = new HorizontalPanel();
    autoDiscoverPanel.add(new HTML("&nbsp;&nbsp;&nbsp;"));
    Button autoDiscoverButton = new Button(GuiFactory.strings.autoDiscover());
    autoDiscoverButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        Vector requests = new Vector();
        for (Iterator allRequestUrisIterator = ReferenceManager.allRequestStrings.iterator(); allRequestUrisIterator.hasNext(); /* empty */) {
          String uriString = (String) allRequestUrisIterator.next();
          Uri uri = new Uri(uriString.substring(uriString.indexOf(" ") + 1));
View Full Code Here

      extNamespacePanel.add(input);    
     
      extNamespacePanel.add(new HTML(SyntaxHighlighter.highlight("\"")));
     
      Hyperlink removeExtNsLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
      removeExtNsLink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {     
          application.removeNamespace(input.getText());
          listExtNamespaces(application, namespacePanelRight);                             
        }
      });     
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.ClickListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.