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;
}