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

Examples of com.google.gwt.user.client.ui.HorizontalSplitPanel$Resources


        // Populate the root level of the explorer tree
        resourceTree.populate();
    }

    private Widget createExplorerPanel() {
    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);
      layout.setWidget(1, 0, nodeChildrenPanel);


    explorerPanel.setRightWidget(layout);
    explorerPanel.setLeftWidget(resourceTree);

    return explorerPanel;
  }
View Full Code Here


  public BodyPart() {
    vContent = new VerticalSplitPanel();
    vContent.setWidth("100%");
    vContent.setHeight("100%");
    vContent.setSplitPosition("100%");
    hContent = new HorizontalSplitPanel();
    hContent.setWidth("100%");
    hContent.setHeight("100%");
    hContent.setSplitPosition("100%");
    vContent.setTopWidget(hContent);
    initWidget(vContent);
View Full Code Here

        init();
    }

    private void init()
    {
        body = new HorizontalSplitPanel();
        setWidget(body);
        body.setSize("100%", "100%");

        body.setSplitPosition("25%");
View Full Code Here

    mainPanel.add(statusBarPane, DockPanel.SOUTH);
    mainPanel.setCellHeight(statusBarPane, "25px");
    mainPanel.setCellHorizontalAlignment(statusBarPane, DockPanel.ALIGN_CENTER);
    mainPanel.setCellVerticalAlignment(statusBarPane, DockPanel.ALIGN_MIDDLE);
       
    HorizontalSplitPanel horizontalSplitPanel = new HorizontalSplitPanel();
    horizontalSplitPanel.setSplitPosition("150px");
    centerPane = new SimplePanel();
    centerPane.add(new Label("right panel"));
    horizontalSplitPanel.setRightWidget(centerPane);
    menuPanel = new MenuPanel(serviceRegistry, this);
   
    horizontalSplitPanel.setLeftWidget(menuPanel);
    mainPanel.add(horizontalSplitPanel, DockPanel.CENTER);
     
    screen1 = new Screen1(clientState, serviceRegistry);
    screen2 = new Screen2(clientState, serviceRegistry);
    initWidget(mainPanel);
View Full Code Here

          super.onBrowserEvent(event);
      }
    };
    spParent.setWidget(sp);
    sp.sinkEvents(Event.ONMOUSEDOWN);*/
    horizontalSplitPanel = new HorizontalSplitPanel();
    initWidget(horizontalSplitPanel);
   
    //sp.add(horizontalSplitPanel);
  }
View Full Code Here

   */
  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a Horizontal Split Panel
    HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
    hSplit.ensureDebugId("cwHorizontalSplitPanel");
    hSplit.setSize("500px", "350px");
    hSplit.setSplitPosition("30%");

    // Add some content
    String randomText = constants.cwHorizontalSplitPanelText();
    for (int i = 0; i < 2; i++) {
      randomText += randomText;
    }
    hSplit.setRightWidget(new HTML(randomText));
    hSplit.setLeftWidget(new HTML(randomText));

    // Wrap the split panel in a decorator panel
    DecoratorPanel decPanel = new DecoratorPanel();
    decPanel.setWidget(hSplit);

View Full Code Here

     * @Override public void onClick(ClickEvent event) {
     * greetingService.loadGreeting(messageAsyncCallback); } });
     */

    // -------------------main split panel-----------------------
    HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
    hSplit.ensureDebugId("cwHorizontalSplitPanel");

    hSplit.setSize("1000px", "700px");
    hSplit.setSplitPosition("20%");
    hSplit.setRightWidget(vSplit);
    hSplit.setLeftWidget(stackPanel);

    // Wrap the split panel in a decorator panel
    DecoratorPanel decPanel = new DecoratorPanel();
    decPanel.setWidget(hSplit);

View Full Code Here

     * Converts the <code>Application</code> XMLBean into a <code>UnitActionPackage</code> object.
     * @param application  the <code>Application</code> XMLBean to convert.
     * @return the converted <code>UnitActionPackage</code> object.
     */
    public static UnitActionPackage convertWADLtoUnitActionPackage(final Application application) {
        Resources resources = application.getResources();
        String baseURL = resources.getBase();
        if (!baseURL.endsWith("/")) {
            baseURL += "/";
        }
        List<Resource> resourceList = resources.getResourceList();

        List<UnitAction> unitActionList = new ArrayList<UnitAction>();
        for (Resource resource : resourceList) {
            unitActionList.addAll(convertResourceToUnitAction(resource));
        }
View Full Code Here

    public static String generateWADLForMashupRESTService(String myCocktailPath, int mashupId) throws DAOException, IOException {
        Mashup mashup = getMashup(mashupId);
       
        ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
        Application application = applicationDocument.addNewApplication();
        Resources resources = application.addNewResources();
        resources.setBase(myCocktailPath);
       
        Resource resource = resources.addNewResource();
        resource.setPath("RESTService/mashupId="+mashupId);
       
        addResource(resource, "json""format=json",  mashup, "application/json");
        addResource(resource, "xml",   "format=xml",   mashup, "application/xml");
        addResource(resource, "jsonp", "format=jsonp", mashup, "application/javascript");
View Full Code Here

    public static String generateWADLForMashupRESTServiceJSON(String myCocktailPath, int mashupId) throws DAOException, IOException {
        Mashup mashup = getMashup(mashupId);
       
        ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
        Application application = applicationDocument.addNewApplication();
        Resources resources = application.addNewResources();
        resources.setBase(myCocktailPath);
       
        Resource resource = resources.addNewResource();
        resource.setPath("RESTService/mashupId="+mashupId);
       
        addMethod(resource.addNewMethod(), "json", mashup, "application/json");
       
        return applicationDocument.xmlText(new XmlOptions().setSavePrettyPrint());
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HorizontalSplitPanel$Resources

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.