}
@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;
}
@Override
public Object getValue() throws Exception {
return HTMLTableInfo.getConstraints(widget).getHeight();
}
@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.setComponentRowSpan(widget, 1);
m_panel.setComponentRowSpan(widget, newSpan);
}
});