Package org.eclipse.wb.internal.core.model.property

Examples of org.eclipse.wb.internal.core.model.property.JavaProperty


    cellProperty.setProperties(properties);
    return cellProperty;
  }

  private void addSpanProperties(final WidgetInfo widget, List<Property> properties) {
    Property colSpanProperty = new JavaProperty(widget, "colSpan", IntegerPropertyEditor.INSTANCE) {
      @Override
      public boolean isModified() throws Exception {
        return (Integer) getValue() != 1;
      }

      @Override
      public Object getValue() throws Exception {
        return HTMLTableInfo.getConstraints(widget).getWidth();
      }

      @Override
      public void setValue(Object value) throws Exception {
        final int newSpan = value instanceof Integer ? (Integer) value : 1;
        ExecutionUtils.run(widget, new RunnableEx() {
          public void run() throws Exception {
            m_panel.setComponentColSpan(widget, 1);
            m_panel.setComponentColSpan(widget, newSpan);
          }
        });
      }
    };
    Property rowSpanProperty = new JavaProperty(widget, "rowSpan", IntegerPropertyEditor.INSTANCE) {
      @Override
      public boolean isModified() throws Exception {
        return (Integer) getValue() != 1;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.property.JavaProperty

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.