001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * PasteStyledElementItem.java
028: *
029: * Created on 18 giugno 2004, 14.30
030: *
031: */
032:
033: package it.businesslogic.ireport.undo;
034:
035: import it.businesslogic.ireport.*;
036:
037: /**
038: *
039: * @author Administrator
040: */
041: public class PasteStyledElementItem {
042:
043: private ReportElement originalStyle = null;
044: private ReportElement newStyle = null;
045: private ReportElement element = null;
046:
047: public PasteStyledElementItem(ReportElement element,
048: ReportElement originalStyle, ReportElement newStyle) {
049: this .newStyle = newStyle;
050: this .originalStyle = originalStyle;
051: this .element = element;
052: }
053:
054: /**
055: * Getter for property element.
056: * @return Value of property element.
057: */
058: public it.businesslogic.ireport.ReportElement getElement() {
059: return element;
060: }
061:
062: /**
063: * Setter for property element.
064: * @param element New value of property element.
065: */
066: public void setElement(
067: it.businesslogic.ireport.ReportElement element) {
068: this .element = element;
069: }
070:
071: /**
072: * Getter for property newStyle.
073: * @return Value of property newStyle.
074: */
075: public it.businesslogic.ireport.ReportElement getNewStyle() {
076: return newStyle;
077: }
078:
079: /**
080: * Setter for property newStyle.
081: * @param newStyle New value of property newStyle.
082: */
083: public void setNewStyle(
084: it.businesslogic.ireport.ReportElement newStyle) {
085: this .newStyle = newStyle;
086: }
087:
088: /**
089: * Getter for property originalStyle.
090: * @return Value of property originalStyle.
091: */
092: public it.businesslogic.ireport.ReportElement getOriginalStyle() {
093: return originalStyle;
094: }
095:
096: /**
097: * Setter for property originalStyle.
098: * @param originalStyle New value of property originalStyle.
099: */
100: public void setOriginalStyle(
101: it.businesslogic.ireport.ReportElement originalStyle) {
102: this.originalStyle = originalStyle;
103: }
104:
105: }
|