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

Examples of com.google.gwt.user.client.ui.DisclosurePanel$DefaultHeader


    HorizontalSplitPanel explorerPanel = new HorizontalSplitPanel();
    explorerPanel.setSize("100%", "100%");
    explorerPanel.setSplitPosition("20%");


    DisclosurePanel propertiesPanel = new DisclosurePanel(constants.propertiesDescripton(),true);
    propertiesPanel.add(resourceGrid.getPropertyGrid());
    propertiesPanel.setStyleName("application-DisclosurePanel");

    DisclosurePanel nodeChildrenPanel = new DisclosurePanel(constants.subResourcesDescription(),true);
    nodeChildrenPanel.add(resourceGrid.getResourceChildrenGrid());
    nodeChildrenPanel.setStyleName("application-DisclosurePanel");

    propertiesPanel.setAnimationEnabled(true);
    nodeChildrenPanel.setAnimationEnabled(true);


      FlexTable layout = new FlexTable();
      layout.setCellSpacing(6);
      layout.setWidget(0, 0, propertiesPanel);
View Full Code Here


      });

//      this.setTitle(entity.getLocalName());

     
      disclosure = new DisclosurePanel(str);
      disclosure.setWidth("450");
      disclosure.addEventHandler(new DisclosureHandler() {
        public void onClose(DisclosureEvent event) {
          disclosure.setContent(null);
        }
View Full Code Here

  }
 
 
  private Widget _prepareMappingMetadata(final int row, final MappingAssoc ma) {
    Image img = VineMain.images.metadata().createImage();
    final DisclosurePanel disclosure = new DisclosurePanel(img)// DisclosurePanel("");
    disclosure.setTitle("Mapping metadata");
    disclosure.addEventHandler(new DisclosureHandler() {
      public void onClose(DisclosureEvent event) {
        flexPanel.setText(row + 1, 0, "");
        // Note: we can release the metadata panel as any value change there
        // is captured in the corresponding entry in the mapping's metadata map.
        ma.mdPanel = null;
View Full Code Here

        continue;
      }
     
      title += " (" +entities.size()+ ")";
     
      DisclosurePanel disclosure = new DisclosurePanel(title);
      disclosure.setAnimationEnabled(true);
     
      Widget entsWidget = _createOtherWidgetForEntities(ontologyData, entities);
     
      disclosure.setContent(entsWidget);
     
      vp.add(disclosure);
     
    }
   
View Full Code Here

      String title = entityGroups[i].toString();
      List<?extends EntityInfo> entities = (List<?extends EntityInfo>) entityGroups[i + 1];
     
      title += " (" +entities.size()+ ")";
     
      DisclosurePanel disclosure = new DisclosurePanel(title);
      disclosure.setAnimationEnabled(true);
     
      Widget entsWidget = _createOtherWidgetForEntities(ontologyData, entities);
     
      disclosure.setContent(entsWidget);
     
      vp.add(disclosure);
     
    }
   
View Full Code Here

      String title = entityGroups[i].toString();
      List<?extends EntityInfo> entities = (List<?extends EntityInfo>) entityGroups[i + 1];
     
      title += " (" +entities.size()+ ")";
     
      DisclosurePanel disclosure = new DisclosurePanel(title);
      disclosure.setAnimationEnabled(true);
     
      Widget entsWidget = _createOtherWidgetForEntities(ontologyData, entities);
     
      disclosure.setContent(entsWidget);
     
      vp.add(disclosure);
     
    }
   
View Full Code Here

      advancedOptions.setWidget(3, 1, domainBox);
     
      advancedOptions.setWidget(4, 0, authCheck);

      // Add advanced options to form in a disclosure panel
      DisclosurePanel advancedDisclosure = new DisclosurePanel(
          constants.moreOptions());
      advancedDisclosure.setAnimationEnabled(true);
      advancedDisclosure.ensureDebugId("cwDisclosurePanel");
      advancedDisclosure.setContent(advancedOptions);
      layout.setWidget(2, 0, advancedDisclosure);
     
      Button loginButton = new Button(constants.login());
     
      layout.setWidget(3, 0,loginButton);
View Full Code Here

            public void onClick(ClickEvent clickEvent) {
                helpPanel.setOpen(!helpPanel.isOpen());
            }
        });

        helpPanel = new DisclosurePanel(header);

        helpPanel.addStyleName( "help-panel");

        final String popupStyle = "help-panel-open";
View Full Code Here

    private DisclosurePanel first = null;

    @Override
    public Widget render(RenderMetaData metaData, String groupName, Map<String, FormItem> groupItems) {

        first = new DisclosurePanel(groupName);
        first.addStyleName("default-disclosure");
        first.addStyleName("fill-layout-width");

        DefaultGroupRenderer renderer = new DefaultGroupRenderer();
View Full Code Here

    public Widget renderPlain(RenderMetaData metaData, String groupName, PlainFormView plainView) {

        if(null==first)
            throw new IllegalStateException("Make sure to render the default (edit) widget first!");

        DisclosurePanel second = new DisclosurePanel(groupName);
        second.addStyleName("default-disclosure");
        second.addStyleName("fill-layout-width");
        second.add( plainView.asWidget(metaData));

        linkOneToEachOther(first, second);

        return second;
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DisclosurePanel$DefaultHeader

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.