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

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


        if (appendString == null)
          appendString = ""; //$NON-NLS-1$
      }
    }
    Image image = _tagConverter.getVisualImage();
    HiddenProvider provider = new HiddenProvider(image, this);
    ((CSSFigure) getFigure()).setCSSStyle(provider.getCSSStyle());
    provider.setLabel(appendString);
    return provider;
  }
View Full Code Here


  public HiddenFigureHandler(Image image) {
    _image = image;
  }

  protected ICSSWidgetProvider initializeWidgetProvider(Element ele) {
    return new ImageWidgetProvider(getImage(), DefaultStyle.getInstance());
  }
View Full Code Here

    _image = ImageResolver.initializeImage(node, "src"); //$NON-NLS-1$
  }

  ImageWidgetProvider getImageProvider(Element node) {
    initializeImage(node);
    ImageWidgetProvider provider = new ImageWidgetProvider(_image,
        getCSSStyle(node));
    return provider;
  }
View Full Code Here

    }
  }

  protected ICSSWidgetProvider initializeWidgetProvider(Element ele) {
    initializeImage(ele);
    ImageWidgetProvider provider = new ImageWidgetProvider(_image,
        getCSSStyle(ele));
    return provider;
  }
View Full Code Here

    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

      }
    } catch (Exception ex) {
      // ignore
    }
    if (isMultiple(node) || rowsInt > 1) {
      ListWidgetProvider provider = new ListWidgetProvider(
          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

    } else if (type.equalsIgnoreCase(ICSSPropertyID.VAL_IMAGE)) {
      return getImageProvider(node);
    } else if (type.equalsIgnoreCase(ICSSPropertyID.VAL_FILE)) {
      return getFileProvider(node);
    } else if (type.equalsIgnoreCase(ICSSPropertyID.VAL_RADIO)) {
      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

* @author mengbo
* @version 1.5
*/
/*package*/ class TextareaFigureHandler extends WidgetFigureHandler {
  protected ICSSWidgetProvider initializeWidgetProvider(Element node) {
    TextAreaWidgetProvider provider = new TextAreaWidgetProvider(
        getCSSStyle(node));
    String s = DOMUtil.getAttributeIgnoreCase(node, "cols"); //$NON-NLS-1$
    if (s != null) {
      try {
        provider.setColumns(Integer.parseInt(s));
      } catch (Exception ex) {
        // ignore
      }
    }
    s = DOMUtil.getAttributeIgnoreCase(node, "rows"); //$NON-NLS-1$
    if (s != null) {
      try {
        provider.setRows(Integer.parseInt(s));
      } catch (Exception ex) {
        // ignore
      }
    }
    s = DOMUtil.getTextElementValue(node);
    if (s != null) {
      provider.setValue(s);
    }
    return provider;
  }
View Full Code Here

  ICSSWidgetProvider getHiddenProvider(Element node) {
    return new HiddenProvider(getHiddenImage(), node);
  }

  ICSSWidgetProvider getPasswordProvider(Element node) {
    TextInputWidgetProvider provider = new TextInputWidgetProvider(
        getCSSStyle(node), TextInputWidgetProvider.PWD_SIZE);
    provider.setSize(getSize(node));
    provider.setValue("********"); //$NON-NLS-1$
    return provider;
  }
View Full Code Here

    provider.setValue("********"); //$NON-NLS-1$
    return provider;
  }

  ICSSWidgetProvider getTextInputProvider(Element node) {
    TextInputWidgetProvider provider = new TextInputWidgetProvider(
        getCSSStyle(node));
    provider.setSize(getSize(node));
    provider.setValue(getValue(node));
    return provider;
  }
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.