Package org.eclipse.jst.pagedesigner.css2

Examples of org.eclipse.jst.pagedesigner.css2.ICSSStyle


          List frags = ((ICSSFigure) figure).getFragmentsForRead();
          if (frags.size() > 1) // more than one frags, so is a zig
          // zag.
          {
            // check whether is before the first box.
            FlowBox box = (FlowBox) frags.get(0);
            Rectangle rect1 = getAbsoluteBounds(figure, box);
            if (rect1.x > p.x && rect1.y + rect1.height > p.y) {
              // p is at left/above the first box. so we think p
              // is before this child
              result[1] = child;
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

      if (data.trim().length() == 0) {
        return;
      }
      // XXX: currently creating of CSSTextFigure is distributed both here
      // and TextEditPart. We may want to unify them later.
      CSSTextFigure figure = new CSSTextFigure(new ICSSTextProvider() {
        /*
         * (non-Javadoc)
         *
         * @see org.eclipse.jst.pagedesigner.css2.provider.ICSSTextProvider#getCSSStyle()
         */
 
View Full Code Here

    // browsebutton.setValue("Browse...");
    // CompositeWidgetProvider provider = new
    // CompositeWidgetProvider(getCSSStyle(), textprovider, browsebutton,
    // false);
    // return provider;
    ICSSWidgetProvider textprovider = getTextInputProvider(node);
    // XXX: should we use the defaultstyle for the button?
    ButtonWidgetProvider browsebutton = new ButtonWidgetProvider(
        getCSSStyle(node));
    browsebutton.setValue(Messages.InputFigureHandler_Browse);
    InputFileWidgetProvider provider = new InputFileWidgetProvider(
View Full Code Here

    super();
  }

  public void updateFigure(Element node, CSSFigure oldFigure) {
    setCurrentFigure(oldFigure);
    ICSSWidgetProvider provider = initializeWidgetProvider(node);
    oldFigure.setCSSStyle(provider.getCSSStyle());
    oldFigure
        .setFixedLayoutManager(new CSSWidgetLayout(oldFigure, provider));
  }
View Full Code Here

   * (non-Javadoc)
   * @seeorg.eclipse.wst.sse.core.internal.provisional.AbstractAdapterFactory#createAdapter(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier)
   */
  protected INodeAdapter createAdapter(INodeNotifier target) {
    if (target instanceof Element) {
      return new AbstractStyle((Element) target, _prefs);
    }
        return null;
  }
View Full Code Here

        getCSSStyle(node));
    return provider;
  }

  ICSSWidgetProvider getButtonProvider(Element node) {
    ButtonWidgetProvider provider = new ButtonWidgetProvider(
        getCSSStyle(node));
    provider.setValue(getButtonValue(node));
    return provider;
  }
View Full Code Here

    // CompositeWidgetProvider(getCSSStyle(), textprovider, browsebutton,
    // false);
    // return provider;
    ICSSWidgetProvider textprovider = getTextInputProvider(node);
    // XXX: should we use the defaultstyle for the button?
    ButtonWidgetProvider browsebutton = new ButtonWidgetProvider(
        getCSSStyle(node));
    browsebutton.setValue(Messages.InputFigureHandler_Browse);
    InputFileWidgetProvider provider = new InputFileWidgetProvider(
        getCSSStyle(node), textprovider, browsebutton);
    return provider;
  }
View Full Code Here

      RadioWidgetProvider provider = new RadioWidgetProvider(
          getCSSStyle(node));
      provider.setChecked(node.hasAttribute("checked")); //$NON-NLS-1$
      return provider;
    } else if (type.equalsIgnoreCase(ICSSPropertyID.VAL_CHECKBOX)) {
      CheckboxWidgetProvider provider = new CheckboxWidgetProvider(
          getCSSStyle(node));
      provider.setChecked(node.hasAttribute("checked")); //$NON-NLS-1$
      return provider;
    } else if (type.equalsIgnoreCase(ICSSPropertyID.VAL_HIDDEN)) {
      return getHiddenProvider(node);
    }
    if (type.equalsIgnoreCase(ICSSPropertyID.VAL_PASSWORD)) {
View Full Code Here

          getCSSStyle(node));
      provider.setOptions(labels);
      provider.setRows(rowsInt);
      return provider;
    }
        ComboWidgetProvider provider = new ComboWidgetProvider(
            getCSSStyle(node));
        provider.setOptions(labels);
        provider.setSelectedLabel(getSelectedLabels(node));
        return provider;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.css2.ICSSStyle

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.