Debian Codegraph @

src/com/jidesoft/validation/TableValidationObject.java

raw
1 /*
2 * @(#)TableValidationObject.java
3 *
4 * Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
5 */
6 package com.jidesoft.validation;
7
8 /**
9 * TableValidationObject extends ValidationObject
10 * to provide row and column information of the value to be validated.
11 */
12 public class TableValidationObject extends ValidationObject {
13 private int _row;
14 private int _column;
15
16 public TableValidationObject(Object source, Object oldValue, Object newValue) {
17 super(source, oldValue, newValue);
18 }
19
20 public TableValidationObject(Object source, Object oldValue, Object newValue, int row, int column) {
21 super(source, oldValue, newValue);
22 _row = row;
23 _column = column;
24 }
25
26 /**
27 * Gets the row.
28 *
29 * @return the row.
30 */
31 public int getRow() {
32 return _row;
33 }
34
35 /**
36 * Sets the row.
37 *
38 * @param row the row.
39 */
40 public void setRow(int row) {
41 _row = row;
42 }
43
44 /**
45 * Gets the column.
46 *
47 * @return the column.
48 */
49 public int getColumn() {
50 return _column;
51 }
52
53 /**
54 * Sets the column.
55 *
56 * @param column the column.
57 */
58 public void setColumn(int column) {
59 _column = column;
60 }
61
62 @Override
63 public String toString() {
64 String properties =
65 " source=" + getSource() +
66 " oldValue=" + getOldValue() +
67 " newValue=" + getNewValue() +
68 " row=" + getRow() +
69 " column=" + getColumn() +
70 " ";
71 return getClass().getName() + "[" + properties + "]";
72 }
73 }