Class MetaInfoWriterImpl
- java.lang.Object
-
- org.openl.rules.lang.xls.types.meta.MetaInfoWriterImpl
-
- All Implemented Interfaces:
MetaInfoReader,MetaInfoWriter
public class MetaInfoWriterImpl extends Object implements MetaInfoWriter
This class should be used in edit actions only when meta info can be set to new cells etc
-
-
Constructor Summary
Constructors Constructor Description MetaInfoWriterImpl(MetaInfoReader delegate, IGridTable gridTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellMetaInfogetMetaInfo(int row, int col)Get meta info for a given row and column.voidprepare(IGridRegion region)Preliminary load meta info for a given region.voidrelease()Release meta info loaded inMetaInfoReader.prepare(IGridRegion)voidsetMetaInfo(int row, int col, CellMetaInfo metaInfo)
-
-
-
Constructor Detail
-
MetaInfoWriterImpl
public MetaInfoWriterImpl(MetaInfoReader delegate, IGridTable gridTable)
-
-
Method Detail
-
setMetaInfo
public void setMetaInfo(int row, int col, CellMetaInfo metaInfo)- Specified by:
setMetaInfoin interfaceMetaInfoWriter
-
getMetaInfo
public CellMetaInfo getMetaInfo(int row, int col)
Description copied from interface:MetaInfoReaderGet meta info for a given row and column.- Specified by:
getMetaInfoin interfaceMetaInfoReader- Parameters:
row- rowcol- column- Returns:
- meta info
-
prepare
public void prepare(IGridRegion region)
Description copied from interface:MetaInfoReaderPreliminary load meta info for a given region. For a big tables it's a part of the table, meta info for full table not needed in this case. If this method wasn't invoked beforeMetaInfoReader.getMetaInfo(int, int), then meta info for full table can be loaded.- Specified by:
preparein interfaceMetaInfoReader- Parameters:
region- region to load meta info
-
release
public void release()
Description copied from interface:MetaInfoReaderRelease meta info loaded inMetaInfoReader.prepare(IGridRegion)- Specified by:
releasein interfaceMetaInfoReader
-
-