Examples of ITagEditInfo


Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

    } else if (_fragments.size() == 1) {

      ICSSStyle style = getCSSStyle();
      int minWidth = 0, minHeight = 0;
      // try to see whether there is any designer specified min size
      ITagEditInfo info = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (info != null) {
        minWidth = info.getMinWidth();
        minHeight = info.getMinHeight();
      }
      FlowBox box = (FlowBox) _fragments.get(0);
      if (minWidth > box._width) {
        box._width = minWidth;
      }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

    if (firstline && getCSSStyle() != null) {
      ICSSStyle style = getCSSStyle();
      int minWidth = 0, minHeight = 0;
      // try to see whether there is any designer specified min size
      ITagEditInfo info = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (info != null) {
        minWidth = info.getMinWidth();
        minHeight = info.getMinHeight();
      }

      // // CSS also has the min-width/min-height property. We should also
      // get that,
      // // and using the max of the "min-width" css property and the
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

      if (borderspacing instanceof int[]) {
        int[] intvalues = (int[]) borderspacing;
        _hspacing = intvalues[0];
        _vspacing = intvalues[1];
      } else {
        ITagEditInfo info = (ITagEditInfo) style
            .getAdapter(ITagEditInfo.class);
        if (info != null && info.needTableDecorator()) {
          // default decorating value. to make things look more
          // separated.
          if (_hspacing < 5) {
            _hspacing = 5;
          }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

   * @see org.eclipse.jst.pagedesigner.css2.layout.ICSSPainter#paintFigure(org.eclipse.draw2d.Graphics)
   */
  public void paintFigure(Graphics g) {
    ICSSStyle style = this.getCSSStyle();
    if (style != null) {
      ITagEditInfo info = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (info != null && info.needTableDecorator()) {
        List cells = _tableInfo.getCells();
        for (int i = 0, size = cells.size(); i < size; i++) {
          TableCellInfo cellInfo = (TableCellInfo) cells.get(i);
          IFigure cellfigure = cellInfo.getFigure();
          Rectangle rect = cellfigure.getBounds().getCopy();
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

   */
  protected void paintSelection(Graphics g) {
    ICSSStyle style = this.getCSSStyle();
    if (style != null) {
      if (style.isInSelection()) {
        ITagEditInfo editInfo = (ITagEditInfo) style
            .getAdapter(ITagEditInfo.class);
        if (editInfo != null && editInfo.isWidget()) {
          BorderUtil.maskFigure(this, g);
        }
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

    if (style != null) {
      CSSBorder border1 = new CSSBorder(this.getCSSStyle());
      border1.paint(this, graphics, NO_INSETS);

      // draw a border for those special elements like <h:form>, etc.
      ITagEditInfo editInfo = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (editInfo != null && editInfo.needBorderDecorator()) {
        BorderUtil.drawBorderDecorator(this, graphics);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo

    ICSSStyle style = getCSSStyle();
    if (style != null) {
      int minWidth = 0;
      int minHeight = 0;
      // try to see whether there is any designer specified min size
      ITagEditInfo info = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (info != null) {
        minWidth = info.getMinWidth();
        minHeight = info.getMinHeight();
      }

      // CSS also has the min-width/min-height property. We should also
      // get that,
      // and using the max of the "min-width" css property and the
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.