Class SpreadsheetPropertySetter
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.introspection.AbstractPropertySetter
-
- org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertySetter
-
- org.eclipse.epsilon.emc.spreadsheets.SpreadsheetPropertySetter
-
- All Implemented Interfaces:
IPropertySetter
,IReflectivePropertySetter
public class SpreadsheetPropertySetter extends JavaPropertySetter
This class allows setting values of spreadsheet row cells.- Author:
- Martins Francis
-
-
Field Summary
Fields Modifier and Type Field Description protected SpreadsheetModel
model
-
Constructor Summary
Constructors Constructor Description SpreadsheetPropertySetter(SpreadsheetModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
edit(java.util.Collection<?> rows, java.lang.Object value, java.lang.String property, IEolContext context)
void
edit(SpreadsheetRow row, java.lang.Object value, java.lang.String property, IEolContext context)
void
editPlainCell(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object newCellValues)
void
editReferencedCell(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object value)
void
editReferencingCell(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object value)
void
invoke(java.lang.Object object, java.lang.String property, java.lang.Object value, IEolContext context)
Sets a property on a given object to the specified value.void
invoke(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object value, ModuleElement ast, IEolContext context)
Convenience method for editing a row and column.-
Methods inherited from class org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertySetter
coerce, conforms, getMethodFor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IPropertySetter
invoke
-
Methods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IReflectivePropertySetter
coerce, conforms
-
-
-
-
Field Detail
-
model
protected final SpreadsheetModel model
-
-
Constructor Detail
-
SpreadsheetPropertySetter
public SpreadsheetPropertySetter(SpreadsheetModel model)
-
-
Method Detail
-
invoke
public void invoke(java.lang.Object object, java.lang.String property, java.lang.Object value, IEolContext context) throws EolRuntimeException
Description copied from interface:IPropertySetter
Sets a property on a given object to the specified value.- Specified by:
invoke
in interfaceIPropertySetter
- Overrides:
invoke
in classJavaPropertySetter
- Parameters:
object
- The model element to update.property
- The name of the property of the model element.value
- The new value of the property.context
- The execution context.- Throws:
EolRuntimeException
- If anything goes wrong in updating the value.
-
invoke
public void invoke(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object value, ModuleElement ast, IEolContext context) throws EolRuntimeException
Convenience method for editing a row and column.- Parameters:
row
-column
-value
-- Throws:
EolRuntimeException
-
edit
public void edit(java.util.Collection<?> rows, java.lang.Object value, java.lang.String property, IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
edit
public void edit(SpreadsheetRow row, java.lang.Object value, java.lang.String property, IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
editReferencingCell
public void editReferencingCell(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object value)
-
editReferencedCell
public void editReferencedCell(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object value)
-
editPlainCell
public void editPlainCell(SpreadsheetRow row, SpreadsheetColumn column, java.lang.Object newCellValues)
-
-