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: * GroupPositionedElement.java
028: *
029: * Created on 5 luglio 2003, 13.17
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 GroupPositionedElement {
042:
043: private ReportElement element;
044:
045: private int oldPosition;
046:
047: private int newPosition;
048:
049: private String oldElementGroup = "";
050: private String newElementGroup = "";
051:
052: public GroupPositionedElement(ReportElement element,
053: int oldPosition, int newPosition, String oldElementGroup,
054: String newElementGroup) {
055: this .element = element;
056: this .oldPosition = oldPosition;
057: this .newPosition = newPosition;
058: this .oldElementGroup = oldElementGroup;
059: this .newElementGroup = newElementGroup;
060: }
061:
062: /** Getter for property element.
063: * @return Value of property element.
064: *
065: */
066: public it.businesslogic.ireport.ReportElement getElement() {
067: return element;
068: }
069:
070: /** Setter for property element.
071: * @param element New value of property element.
072: *
073: */
074: public void setElement(
075: it.businesslogic.ireport.ReportElement element) {
076: this .element = element;
077: }
078:
079: /** Getter for property newPosition.
080: * @return Value of property newPosition.
081: *
082: */
083: public int getNewPosition() {
084: return newPosition;
085: }
086:
087: /** Setter for property newPosition.
088: * @param newPosition New value of property newPosition.
089: *
090: */
091: public void setNewPosition(int newPosition) {
092: this .newPosition = newPosition;
093: }
094:
095: /** Getter for property oldPosition.
096: * @return Value of property oldPosition.
097: *
098: */
099: public int getOldPosition() {
100: return oldPosition;
101: }
102:
103: /** Setter for property oldPosition.
104: * @param oldPosition New value of property oldPosition.
105: *
106: */
107: public void setOldPosition(int oldPosition) {
108: this .oldPosition = oldPosition;
109: }
110:
111: public String getOldElementGroup() {
112: return oldElementGroup;
113: }
114:
115: public void setOldElementGroup(String oldElementGroup) {
116: this .oldElementGroup = oldElementGroup;
117: }
118:
119: public String getNewElementGroup() {
120: return newElementGroup;
121: }
122:
123: public void setNewElementGroup(String newElementGroup) {
124: this.newElementGroup = newElementGroup;
125: }
126:
127: }
|