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

Examples of com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant


            if (update.containsKey(PROPERTY.CELL_VERTICAL_ALIGNMENT)) {
                final VerticalAlignmentConstant asVerticalAlignmentConstant = PVerticalAlignment.values()[update.getInt(PROPERTY.CELL_VERTICAL_ALIGNMENT)].asVerticalAlignmentConstant();
                uiObject.getCellFormatter().setVerticalAlignment(cellRow, cellColumn, asVerticalAlignmentConstant);
            }
            if (update.containsKey(PROPERTY.CELL_HORIZONTAL_ALIGNMENT)) {
                final HorizontalAlignmentConstant asHorizontalAlignmentConstant = PHorizontalAlignment.values()[update.getInt(PROPERTY.CELL_HORIZONTAL_ALIGNMENT)].asHorizontalAlignmentConstant();
                uiObject.getCellFormatter().setHorizontalAlignment(cellRow, cellColumn, asHorizontalAlignmentConstant);
            }
        } else if (update.containsKey(PROPERTY.HTMLTABLE_COLUMN_STYLE)) {
            final int column = update.getInt(PROPERTY.COLUMN);
            if (update.containsKey(PROPERTY.COLUMN_FORMATTER_ADD_STYLE_NAME)) {
View Full Code Here


   * @param constraints the separator's cell constraints
   * @return the added separator
   */
  public final Widget addSeparator(String textWithMnemonic,
      CellConstraints constraints) {
    HorizontalAlignmentConstant titleAlignment = isLeftToRight()
        ? Separator.ALIGN_LEFT : Separator.ALIGN_RIGHT;
    Widget titledSeparator = getComponentFactory().createSeparator(
        textWithMnemonic, titleAlignment);
    add(titledSeparator, constraints);
    return titledSeparator;
View Full Code Here

        retValue = this.base.getOffsetHeight();
        return retValue;
    }
   
    public HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment() {
        HorizontalAlignmentConstant retValue;
       
        retValue = this.base.getHorizontalAlignment();
        return retValue;
    }
View Full Code Here

      }

      table.setWidget(row, col, group);
      cf.setStyleName(row, col, "x-grid3-header x-grid3-hd x-grid3-cell");

      HorizontalAlignmentConstant halign = HasHorizontalAlignment.ALIGN_CENTER;
      cf.setHorizontalAlignment(row, col, halign);

      int ncs = cs;
      if (cs > 1) {
        for (int i = col; i < (col + cs); i++) {
View Full Code Here

        } else {
          contents = template.div(cellBuilder.toSafeHtml());
        }

        // Build the cell.
        HorizontalAlignmentConstant hAlign = column.getHorizontalAlignment();
        VerticalAlignmentConstant vAlign = column.getVerticalAlignment();
        String headerRef = tableId +"_h_"+curColumn;
        if (hAlign != null && vAlign != null) {
          trBuilder.append(template.tdBothAlign(tdClasses, headerRef,
              hAlign.getTextAlignString(), vAlign.getVerticalAlignString(),
              contents));
        } else if (hAlign != null) {
          trBuilder.append(template.tdHorizontalAlign(tdClasses, headerRef,
              hAlign.getTextAlignString(), contents));
        } else if (vAlign != null) {
          trBuilder.append(template.tdVerticalAlign(tdClasses, headerRef,
              vAlign.getVerticalAlignString(), contents));
        } else {
          trBuilder.append(template.td(tdClasses, headerRef, contents));
View Full Code Here

   
    DOM.setStyleAttribute(td, "padding", p);
  }

  private void setAlignment(int align) {
    HorizontalAlignmentConstant dir = HorizontalPanel.ALIGN_LEFT;
    switch (align) {
      case Style.CENTER:
        dir = HorizontalPanel.ALIGN_CENTER;
        break;
      case Style.RIGHT:
View Full Code Here

        // Build the contents.
        SafeHtml contents = SafeHtmlUtils.EMPTY_SAFE_HTML;
        contents = template.div(cellBuilder.toSafeHtml());

        // Build the cell.
        HorizontalAlignmentConstant hAlign = column.getHorizontalAlignment();
        VerticalAlignmentConstant vAlign = column.getVerticalAlignment();
        if (hAlign != null && vAlign != null) {
          trBuilder.append(template.tdBothAlign(tdClasses, hAlign.getTextAlignString(), vAlign
              .getVerticalAlignString(), contents));
        } else if (hAlign != null) {
          trBuilder.append(template.tdHorizontalAlign(tdClasses, hAlign.getTextAlignString(),
              contents));
        } else if (vAlign != null) {
          trBuilder.append(template.tdVerticalAlign(tdClasses, vAlign.getVerticalAlignString(),
              contents));
        } else {
View Full Code Here

        } else {
          contents = template.div(cellBuilder.toSafeHtml());
        }

        // Build the cell.
        HorizontalAlignmentConstant hAlign = column.getHorizontalAlignment();
        VerticalAlignmentConstant vAlign = column.getVerticalAlignment();
        String headerRef = tableId +"_h_"+curColumn;
        if (hAlign != null && vAlign != null) {
          trBuilder.append(template.tdBothAlign(tdClasses, headerRef,
              hAlign.getTextAlignString(), vAlign.getVerticalAlignString(),
              contents));
        } else if (hAlign != null) {
          trBuilder.append(template.tdHorizontalAlign(tdClasses, headerRef,
              hAlign.getTextAlignString(), contents));
        } else if (vAlign != null) {
          trBuilder.append(template.tdVerticalAlign(tdClasses, headerRef,
              vAlign.getVerticalAlignString(), contents));
        } else {
          trBuilder.append(template.td(tdClasses, headerRef, contents));
View Full Code Here

        } else {
          contents = template.div(cellBuilder.toSafeHtml());
        }

        // Build the cell.
        HorizontalAlignmentConstant hAlign = column.getHorizontalAlignment();
        VerticalAlignmentConstant vAlign = column.getVerticalAlignment();
        if (hAlign != null && vAlign != null) {
          trBuilder.append(template.tdBothAlign(tdClasses,
              hAlign.getTextAlignString(), vAlign.getVerticalAlignString(),
              contents));
        } else if (hAlign != null) {
          trBuilder.append(template.tdHorizontalAlign(tdClasses,
              hAlign.getTextAlignString(), contents));
        } else if (vAlign != null) {
          trBuilder.append(template.tdVerticalAlign(tdClasses,
              vAlign.getVerticalAlignString(), contents));
        } else {
          trBuilder.append(template.td(tdClasses, contents));
View Full Code Here

            if (width == null || width.trim().length() == 0) {
               width = null;
            }

            String horizontalAlignment = element.getAttribute("horizontalAlignment");
            HorizontalAlignmentConstant hConstant = null;
            if (horizontalAlignment != null && horizontalAlignment.trim().length() > 0) {
               hConstant = UiBinderXmlUtils.parseHorizontalAlignment(horizontalAlignment.trim());
            }

            String verticalAlignment = element.getAttribute("verticalAlignment");
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant

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.