Package org.eclipse.jst.pagedesigner.css2.property

Examples of org.eclipse.jst.pagedesigner.css2.property.PaddingWidthMeta


    } else if ("table".equalsIgnoreCase(display) || "inline-table".equalsIgnoreCase(display)) //$NON-NLS-1$ //$NON-NLS-2$ $NON-NLS-2$
    {
      return new CSSTableLayout2(figure);
    } else if ("table-row".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTRLayout(figure);
    } else if ("table-row-group".equalsIgnoreCase(display) //$NON-NLS-1$
        || "table-header-group".equalsIgnoreCase(display) //$NON-NLS-1$
        || "table-footer-group".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTRGroupLayout(figure);
View Full Code Here


    } else if ("table-cell".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTableCellLayout(figure);
    } else if (display.equalsIgnoreCase("table-caption")) //$NON-NLS-1$
    {
      return new CSSTableCaptionLayout(figure);
    } else if ("inline-block".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSBlockFlowLayout(figure) {
        /*
         * (non-Javadoc)
 
View Full Code Here

        || "table-footer-group".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTRGroupLayout(figure);
    } else if ("table-cell".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTableCellLayout(figure);
    } else if (display.equalsIgnoreCase("table-caption")) //$NON-NLS-1$
    {
      return new CSSTableCaptionLayout(figure);
    } else if ("inline-block".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
View Full Code Here

                    .getFigure();
            if (figure instanceof CSSFigure) {
                CSSFigure cssFigure = (CSSFigure) figure;
                LayoutManager layoutManager = cssFigure.getLayoutManager();
                if (layoutManager instanceof CSSTableLayout2) {
                    CSSTableLayout2 tableLayout = (CSSTableLayout2) layoutManager;
                    bounds.y = tableLayout.getHSpacing();
                    bounds.height = figure.getClientArea().height
                            - tableLayout.getHSpacing() * 2;
                }
            }
        }
        bounds = new PrecisionRectangle(bounds.getResized(-1, -1));
        editPart.getFigure().translateToAbsolute(bounds);
View Full Code Here

    } else if ("inline".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSInlineFlowLayout(figure);
    } else if ("table".equalsIgnoreCase(display) || "inline-table".equalsIgnoreCase(display)) //$NON-NLS-1$ //$NON-NLS-2$ $NON-NLS-2$
    {
      return new CSSTableLayout2(figure);
    } else if ("table-row".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTRLayout(figure);
    } else if ("table-row-group".equalsIgnoreCase(display) //$NON-NLS-1$
        || "table-header-group".equalsIgnoreCase(display) //$NON-NLS-1$
View Full Code Here

        return getParentStyle().findCounter(name, must);
      }
      // must is called by counter-increment
      else if (must) {
        // the caller should do the other setting.
        ICounterValueGenerator counter = new CounterValueGenerator(
            name, null, null, this);
        counter.resetCount();
        counters.put(name, counter);
      }
    }
    return (ICounterValueGenerator) counters.get(name);
  }
View Full Code Here

        return getParentStyle().findCounter(name, must);
      }
      // must is called by counter-increment
      else if (must) {
        // the caller should do the other setting.
        ICounterValueGenerator counter = new CounterValueGenerator(
            name, null, null, this);
        counter.resetCount();
        counters.put(name, counter);
      }
    }
    return (ICounterValueGenerator) counters.get(name);
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.jst.pagedesigner.css2.ICSSStyle#getStyleProperty(java.lang.String)
   */
  public Object getStyleProperty(String property) {
    ICSSPropertyMeta meta = CSSMetaRegistry.getInstance().getMeta(property);
    if (meta == null) {
      return ICSSPropertyMeta.NOT_SPECIFIED;
    }
        return meta.getInitialValue(property, this);
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.jst.pagedesigner.css2.ICSSStyle#getHTMLelementValue(java.lang.String)
   */
  public Object getHTMLelementInitValue(String propertyName) {
    ICSSPropertyMeta meta = CSSMetaRegistry.getInstance().getMeta(
        propertyName);
    if (meta == null) {
      return ICSSPropertyMeta.NOT_SPECIFIED;
    }
        return meta.getInitialValue(propertyName, this);
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.jst.pagedesigner.css2.ICSSStyle#getHTMLelementInitValue(java.lang.String)
   */
  public Object getHTMLelementInitValue(String propertyName) {
    ICSSPropertyMeta meta = getPropertyMeta(propertyName);
    if (meta != null) {
      Object obj = meta.getHTMLElementInitialValue(_element,
          getHTMLTag(), propertyName);
      if (obj == null) {
        obj = meta.getInitialValue(propertyName, this);
      }
      return obj;
    }
    return ICSSPropertyMeta.NOT_SPECIFIED;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.css2.property.PaddingWidthMeta

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.