Skip to content

Package: EMFFormsSpreadsheetRenderTarget

EMFFormsSpreadsheetRenderTarget

nameinstructionbranchcomplexitylinemethod
EMFFormsSpreadsheetRenderTarget(String, int, int)
M: 0 C: 12
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 5
100%
M: 0 C: 1
100%
getColumn()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getRow()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetName()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setColumn(int)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.spreadsheet.core;
15:
16: /**
17: * Helper class which describes where a value should be rendered to.
18: *
19: * @author Eugen Neufeld
20: */
21: public final class EMFFormsSpreadsheetRenderTarget {
22:
23:         private final String sheetName;
24:         private final int row;
25:         private int column;
26:
27:         /**
28:          * Default Constructor.
29:          *
30:          * @param sheetName The name of the sheet
31:          * @param row The row id to render on
32:          * @param column The column id to render on
33:          */
34:         public EMFFormsSpreadsheetRenderTarget(String sheetName, int row, int column) {
35:                 this.sheetName = sheetName;
36:                 this.row = row;
37:                 this.column = column;
38:         }
39:
40:         /**
41:          * Retrieve the current column id.
42:          *
43:          * @return The column id
44:          */
45:         public int getColumn() {
46:                 return column;
47:         }
48:
49:         /**
50:          * Set the column id.
51:          *
52:          * @param column The column id to set
53:          */
54:         public void setColumn(int column) {
55:                 this.column = column;
56:         }
57:
58:         /**
59:          * Retrieve the sheet name.
60:          *
61:          * @return The sheet name
62:          */
63:         public String getSheetName() {
64:                 return sheetName;
65:         }
66:
67:         /**
68:          * Retrieve the row id.
69:          *
70:          * @return The row id
71:          */
72:         public int getRow() {
73:                 return row;
74:         }
75:
76: }