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

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


        isInitialized = true;
    }

    private void initConfigurationPanelUI() {
        configurationBar = new DockPanel();
        configurationBar.setSize("100%", "");
        configurationBar.setStyleName(CSS_VIEW_CONFIGURATION_PANEL);

        initResourceModelPresenter();
        initSideBarExpander();
View Full Code Here


  private static final int WINDOW_WIDTH_OFFSET = 50;
  private static final int WINDOW_HEIGHT_OFFSET = 80;
 
  public ContentItemSelector() {
    super();
    contentPanel = new DockPanel();
    contentPanel.add(createCart(), DockPanel.EAST);
    contentPanel.add(createSearchPage(), DockPanel.CENTER);
    contentPanel.add(createControls(), DockPanel.SOUTH);
    contentPanel.setWidth("100%");
   
View Full Code Here

   */
  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a Dock Panel
    DockPanel dock = new DockPanel();
    dock.setStyleName("cw-DockPanel");
    dock.setSpacing(4);
    dock.setHorizontalAlignment(DockPanel.ALIGN_CENTER);

    // Add text all around
    dock.add(new HTML(constants.cwDockPanelNorth1()), DockPanel.NORTH);
    dock.add(new HTML(constants.cwDockPanelSouth1()), DockPanel.SOUTH);
    dock.add(new HTML(constants.cwDockPanelEast()), DockPanel.EAST);
    dock.add(new HTML(constants.cwDockPanelWest()), DockPanel.WEST);
    dock.add(new HTML(constants.cwDockPanelNorth2()), DockPanel.NORTH);
    dock.add(new HTML(constants.cwDockPanelSouth2()), DockPanel.SOUTH);

    // Add scrollable text in the center
    HTML contents = new HTML(constants.cwDockPanelCenter());
    ScrollPanel scroller = new ScrollPanel(contents);
    scroller.setSize("400px", "100px");
    dock.add(scroller, DockPanel.CENTER);

    // Return the content
    dock.ensureDebugId("cwDockPanel");
    return dock;
  }
View Full Code Here

    public RepoConfigManager() {
        PrettyFormLayout form = new PrettyFormLayout();
        form.addHeader(GuvnorImages.INSTANCE.Config(),
                        new HTML( constants.ManageRepositoryConfig() ) );

        DockPanel dock = new DockPanel();
        dock.setSpacing( 4 );
        dock.setHorizontalAlignment( DockPanel.ALIGN_CENTER );
        hPanel1.add( getDbTypePanel() );
        dataInputPanel.add( hPanel1 );
        SimplePanel divider = new SimplePanel();
        divider.setSize( "100px",
                         "30px" );
        vPanel2.add( divider );
        vPanel2.add( noJndiInfo );
        vPanel2.add( jndiInfo );
        vPanel2.setVisible( false );
        dataInputPanel.add( vPanel2 );
        dock.add( dataInputPanel,
                  DockPanel.WEST );

        repoDisplayArea.setSize( "740px",
                                 "470px" );
        repoDisplayArea.setTitle( "repository.xml" );
        repoDisplayArea.setVisible( false );

        DockPanel idock = new DockPanel();
        idock.setSpacing( 4 );
        idock.setHorizontalAlignment( DockPanel.ALIGN_CENTER );
        idock.add( repoDisplayArea,
                   DockPanel.WEST );

        final Button saveButton = new Button( constants.SaveRepo() );
        saveButton.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent w) {
                String name = rdbmsConf.getDbType() + "-repository";
                if ( rdbmsConf.isJndi() ) name += "-jndi";
                hiddenRepoConfig.setValue( repoDisplayArea.getText() );
                saveRepoConfigForm.submit();
            }
        } );

        saveRepoConfigForm.setEncoding( FormPanel.ENCODING_URLENCODED );
        saveRepoConfigForm.setMethod( FormPanel.METHOD_POST );
        saveRepoConfigForm.setAction( GWT.getModuleBaseURL() + "backup" );

        VerticalPanel formHolder = new VerticalPanel();
        HorizontalPanel saveInfoHolder = new HorizontalPanel();
        saveInfoHolder.add( saveButton );
        saveInfoHolder.add( new InfoPopup( constants.SaveRepo(),
                                           constants.SaveRepoInfo() ) );
        formHolder.add( saveInfoHolder );
        formHolder.add( hiddenRepoConfig );

        saveRepoConfigForm.add( formHolder );
        saveRepoConfigForm.setVisible( false );

        idock.add( saveRepoConfigForm,
                   DockPanel.EAST );

        dock.add( idock,
                  DockPanel.EAST );
View Full Code Here

 
  private FocusBehavior focusBehavior;
 
  public Carousel() {
    //Set up UI structure
    carouselDock = new DockPanel();
    imagePanel = new AbsolutePanel();
    imagePanel.setSize("100%", "100%");
    caption = new Label();
    carouselDock.add(caption, DockPanel.SOUTH);
    carouselDock.add(imagePanel, DockPanel.NORTH);
View Full Code Here

    this(true, true);
  }
 
  public Carousel(boolean useDefaultMouseBehavior, boolean useDefaultFocusBehavior) {
    // Set up UI structure
    carouselDock = new DockPanel();
    imagePanel = new AbsolutePanel();
    imagePanel.setSize("100%", "100%");
    caption = new Label();
    carouselDock.add(caption, DockPanel.SOUTH);
    carouselDock.add(imagePanel, DockPanel.NORTH);
View Full Code Here

 
  private FocusBehavior focusBehavior;
 
  public Carousel() {
    //Set up UI structure
    carouselDock = new DockPanel();
    imagePanel = new AbsolutePanel();
    imagePanel.setSize("100%", "100%");
    caption = new Label();
    carouselDock.add(caption, DockPanel.SOUTH);
    carouselDock.add(imagePanel, DockPanel.NORTH);
View Full Code Here

      public ErrorDialog(String error) {
          // Set the dialog box's caption.
          setText("Error");
         
          DockPanel dp = new DockPanel();
          dp.addStyleName("error");
         
          error = error.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
          dp.add(new HTML("<pre>" + error + "</pre>"), DockPanel.CENTER);
         

          // DialogBox is a SimplePanel, so you have to set its widget property to
          // whatever you want its contents to be.
          Button ok = new Button("OK");
          ok.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
              ErrorDialog.this.hide();
            }
          });
         
          dp.add(ok, DockPanel.NORTH);
         
          setWidget(dp);
        }
View Full Code Here

    FlowPanel fp = new FlowPanel();
    fp.add(ok);
    fp.add(close);
    fp.addStyleName("dButtons");
    DockPanel dp = new DockPanel();
    dp.add(m_Dialog , DockPanel.CENTER);
    dp.add(fp, DockPanel.SOUTH);
    dp.addStyleName("dContents");
    add(dp);
   
  }
View Full Code Here

    FlowPanel fp = new FlowPanel();
    fp.add(ok);
    fp.add(close);
    fp.addStyleName("dButtons");
    DockPanel dp = new DockPanel();
    dp.add(m_Dialog, DockPanel.CENTER);
    dp.add(fp, DockPanel.SOUTH);
    dp.addStyleName("dContents");
    add(dp);

  }
View Full Code Here

TOP

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

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.