001: /*
002: * Copyright (C) 2005-2007 JasperSoft http://www.jaspersoft.com
003: *
004: * This program is free software; you can redistribute it and/or modify
005: * it under the terms of the GNU General Public License as published by
006: * the Free Software Foundation; either version 2 of the License, or
007: * (at your option) any later version.
008: *
009: * This program is distributed WITHOUT ANY WARRANTY; and without the
010: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
011: * See the GNU General Public License for more details.
012: *
013: * You should have received a copy of the GNU General Public License
014: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
015: * or write to:
016: *
017: * Free Software Foundation, Inc.,
018: * 59 Temple Place - Suite 330,
019: * Boston, MA USA 02111-1307
020: *
021: *
022: * ProblemItem.java
023: *
024: * Created on February 27, 2007, 11:49 AM
025: *
026: * To change this template, choose Tools | Template Manager
027: * and open the template in the editor.
028: */
029:
030: package it.businesslogic.ireport.gui.logpane;
031:
032: import it.businesslogic.ireport.gui.JReportFrame;
033:
034: /**
035: *
036: * @author gtoffoli
037: */
038: public class ProblemItem {
039:
040: public static final int INFORMATION = 0;
041: public static final int WARNING = 1;
042: public static final int ERROR = 2;
043:
044: private String description = null;
045: private String where = "";
046: private JReportFrame jReportFrame = null;
047: private Object problemReference = null;
048:
049: private int problemType = 1;
050:
051: /** Creates a new instance of ProblemItem */
052: public ProblemItem() {
053: this (0, "no description available", null);
054: }
055:
056: /** Creates a new instance of ProblemItem */
057: public ProblemItem(int problemType, String description,
058: Object problemReference) {
059: this (0, "no description available", null, "");
060: }
061:
062: /** Creates a new instance of ProblemItem */
063: public ProblemItem(int problemType, String description,
064: Object problemReference, String where) {
065: this .problemType = problemType;
066: this .description = description;
067: this .problemReference = problemReference;
068: this .where = where;
069: }
070:
071: public JReportFrame getJReportFrame() {
072: return jReportFrame;
073: }
074:
075: public void setJReportFrame(JReportFrame jReportFrame) {
076: this .jReportFrame = jReportFrame;
077: }
078:
079: public String getDescription() {
080: return description;
081: }
082:
083: public void setDescription(String description) {
084: this .description = description;
085: }
086:
087: public Object getProblemReference() {
088: return problemReference;
089: }
090:
091: public void setProblemReference(Object problemReference) {
092: this .problemReference = problemReference;
093: }
094:
095: public int getProblemType() {
096: return problemType;
097: }
098:
099: public void setProblemType(int problemType) {
100: this .problemType = problemType;
101: }
102:
103: public void resolve() {
104:
105: }
106:
107: public String getWhere() {
108: return where;
109: }
110:
111: public void setWhere(String where) {
112: this.where = where;
113: }
114:
115: }
|