Examples of AbsolutePanel


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

   *
   * @param context the current drag context
   * @return a new drag proxy
   */
  protected Widget newDragProxy(DragContext context) {
    AbsolutePanel container = new AbsolutePanel();
    container.getElement().getStyle().setProperty("overflow", "visible");

    WidgetArea draggableArea = new WidgetArea(context.draggable, null);
    for (Widget widget : context.selectedWidgets) {
      WidgetArea widgetArea = new WidgetArea(widget, null);
      Widget proxy = new SimplePanel();
      proxy.setPixelSize(widget.getOffsetWidth(), widget.getOffsetHeight());
      proxy.addStyleName(DragClientBundle.INSTANCE.css().proxy());
      container.add(proxy, widgetArea.getLeft() - draggableArea.getLeft(),
          widgetArea.getTop() - draggableArea.getTop());
    }

    return container;
  }
View Full Code Here

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

      
    // adds a widget to end of this partioned absolute panel
    public void add(Widget w) {
       if (nWidgets % WIDGETS_PER_PANEL == 0) {
          // last panel is full, time to add a new one
          subPanel = new AbsolutePanel();
          // Panel sits in upper left corner. Does nothing, can't
          // be seen. It's just a holder for other widgets.
          GChart.setOverflow(subPanel, "visible");
          subPanel.setPixelSize(0,0);
          root.add(subPanel, 0, 0);
View Full Code Here

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

        browserRoot.appendChild(canvas.getElement());

        plotter = new VCanvasPlotter(canvas);

        // Add the horizontal scale
        horizontalScalePanel = new AbsolutePanel();
        horizontalScalePanel.setStyleName(CLASSNAME_SCALE);
        browserRoot.appendChild(horizontalScalePanel.getElement());

        // Add fadouts
        leftFade = DOM.createDiv();
View Full Code Here

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

        browserRoot = DOM.createDiv();
        setElement(browserRoot);
        setStyleName(VTimelineWidget.DISPLAY_CLASSNAME);

        // Add the components
        displayComponentPanel = new AbsolutePanel();
        browserRoot.appendChild(displayComponentPanel.getElement());
        DOM.setStyleAttribute(displayComponentPanel.getElement(), "position", "relative");
        DOM.setStyleAttribute(displayComponentPanel.getElement(), "zIndex",
        "999999");
View Full Code Here

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

    }

    public void showEmptyTree() {

        if ( this.emptyCategories == null ) {
            AbsolutePanel p = new AbsolutePanel();
            p.add( new HTML( constants.NoCategoriesCreatedYetTip() ) );
            Button b = new Button( constants.Refresh() );
            b.addClickHandler( new ClickHandler() {
                public void onClick(ClickEvent event) {
                    refresh();
                }
            } );
            p.add( b );
            p.setStyleName( "small-Text" ); //NON-NLS
            this.emptyCategories = p;
            this.panel.add( this.emptyCategories );
        }
        this.navTreeWidget.setVisible( false );
        emptyCategories.setVisible( true );
View Full Code Here

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

    menuPanel.setWidth("100%");
    menuPanel.setStyleName("restDescribe-menuPanel");
    menuPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
   
    // logo
    topPanel = new AbsolutePanel();
    topPanel.setWidth("100%");   
    
    // user links in the upper right corner
    String separator = " | ";   
    Hyperlink settingsLink = new Hyperlink(GuiFactory.strings.settingsLink(), "settings");
View Full Code Here

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

    tabLayoutPanel.setVisible(false);
    tabLayoutPanel.setAnimationDuration(3);
    tabLayoutPanel.setAnimationVertical(true);
    tabLayoutPanel.setSize("1000px", "600px");
   
    AbsolutePanel absolutePanel_1 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_1, "Detección", false);
   
    final ToggleButton btnComunidades = new ToggleButton("Comunidades");
    btnComunidades.setDown(true);
   

    absolutePanel_1.add(btnComunidades, 10, 10);
   
    final ToggleButton btnFamilias = new ToggleButton("Familias");
    absolutePanel_1.add(btnFamilias, 111, 10);
   
    TextBox textBox = new TextBox();
    absolutePanel_1.add(textBox, 699, 10);
    textBox.setSize("212px", "15px");
   
    Button btnBuscar = new Button("Buscar");
    absolutePanel_1.add(btnBuscar, 931, 10);
   
    final AbsolutePanel comunidadesPanel = new AbsolutePanel();
    absolutePanel_1.add(comunidadesPanel, 10, 50);
    comunidadesPanel.setSize("978px", "520px");
   
    DecoratedTabPanel decoratedTabPanel = new DecoratedTabPanel();
    comunidadesPanel.add(decoratedTabPanel, 10, 10);
    decoratedTabPanel.setSize("958px", "500px");
   
    AbsolutePanel absolutePanel_9 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_9, "Listado de comunidades", false);
    decoratedTabPanel.selectTab(0);
    absolutePanel_9.setSize("946px", "458px");
   
    AbsolutePanel absolutePanel_10 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_10, "Panoramas", false);
    absolutePanel_10.setSize("947px", "458px");
   
    AbsolutePanel absolutePanel_11 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_11, "Insertar ficha de comunidad", false);
    absolutePanel_11.setSize("948px", "460px");
   
    AbsolutePanel absolutePanel_12 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_12, "Mapa", false);
    absolutePanel_12.setSize("946px", "460px");
   
    AbsolutePanel absolutePanel_13 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_13, "Fotos", false);
    absolutePanel_13.setSize("947px", "462px");
   
    AbsolutePanel absolutePanel_14 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_14, "Bitacora", false);
    absolutePanel_14.setSize("948px", "462px");
   
    AbsolutePanel absolutePanel_2 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_2, "Eventos", false);
   
    AbsolutePanel absolutePanel_3 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_3, "Investigación", false);
   
    AbsolutePanel absolutePanel_4 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_4, "New Widget", false);
   
    AbsolutePanel absolutePanel_5 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_5, "Estadísticas", false);
   
    AbsolutePanel absolutePanel_6 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_6, "Vinculaciones", false);
   
    AbsolutePanel absolutePanel_7 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_7, "Documentos", false);
   
    AbsolutePanel absolutePanel = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel, "Inicio", false);
   
    tabLayoutPanel.selectTab(0);
   
   
View Full Code Here

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

    }

    public void showEmptyTree() {

        if ( this.emptyCategories == null ) {
            AbsolutePanel p = new AbsolutePanel();
            p.add( new HTML( constants.NoCategoriesCreatedYetTip() ) );
            Button b = new Button( constants.Refresh() );
            b.addClickHandler( new ClickHandler() {
                public void onClick(ClickEvent event) {
                    refresh();
                }
            } );
            p.add( b );
            p.setStyleName( "small-Text" ); //NON-NLS
            this.emptyCategories = p;
            this.panel.add( this.emptyCategories );
        }
        this.navTreeWidget.setVisible( false );
        emptyCategories.setVisible( true );
View Full Code Here

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

    public RatingChooser(RatingType ratingType, int selectedRating) {
        this.ratingType = ratingType;
        this.selectedRating = selectedRating;

        mainPanel = new AbsolutePanel();
        for (int i = 1; i <= ELEMENTS; i++) {
            Digit digit = new Digit(i);
            if (i == selectedRating) {
                digit.setSelected(true);
View Full Code Here

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

        minVertical = length;
        lastVerticalSection = vertSectionsMap.get(length);
      }
    }

    AbsolutePanel parent = (AbsolutePanel) shape.getParent();

    // fix section position horizontally
    if (lastHorizontalSection != null) {
      parent.setWidgetPosition(shape, shape.getRelativeShapeLeft() - minHorizontal, shape.getRelativeShapeTop());
      lastHorizontalSection.connector.drawSections(lastHorizontalSection.connector
          .fixLineSections(lastHorizontalSection.connector.getCorners()));
    }

    // fix section position vertically
    if (lastVerticalSection != null) {
      parent.setWidgetPosition(shape, shape.getRelativeShapeLeft(), shape.getRelativeShapeTop() - minVertical);
      lastVerticalSection.connector.drawSections(lastVerticalSection.connector
          .fixLineSections(lastVerticalSection.connector.getCorners()));
    }

    shape.updateConnectors();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.