52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
package net.sf.jasperreports.crosstabs.design;
|
|
|
|
import net.sf.jasperreports.crosstabs.JRCrosstabColumnGroup;
|
|
|
|
public class JRDesignCrosstabColumnGroup extends JRDesignCrosstabGroup implements JRCrosstabColumnGroup {
|
|
private static final long serialVersionUID = 10200L;
|
|
|
|
public static final String PROPERTY_HEIGHT = "height";
|
|
|
|
public static final String PROPERTY_POSITION = "position";
|
|
|
|
protected int height;
|
|
|
|
protected byte position = 1;
|
|
|
|
public byte getPosition() {
|
|
return this.position;
|
|
}
|
|
|
|
public void setPosition(byte position) {
|
|
byte old = this.position;
|
|
this.position = position;
|
|
getEventSupport().firePropertyChange("position", old, this.position);
|
|
}
|
|
|
|
public int getHeight() {
|
|
return this.height;
|
|
}
|
|
|
|
public void setHeight(int height) {
|
|
int old = this.height;
|
|
this.height = height;
|
|
getEventSupport().firePropertyChange("height", old, this.height);
|
|
}
|
|
|
|
public void setHeader(JRDesignCellContents header) {
|
|
super.setHeader(header);
|
|
setCellOrigin(this.header, new JRCrosstabOrigin(getParent(), (byte)5, null, getName()));
|
|
}
|
|
|
|
public void setTotalHeader(JRDesignCellContents totalHeader) {
|
|
super.setTotalHeader(totalHeader);
|
|
setCellOrigin(this.totalHeader, new JRCrosstabOrigin(getParent(), (byte)6, null, getName()));
|
|
}
|
|
|
|
void setParent(JRDesignCrosstab parent) {
|
|
super.setParent(parent);
|
|
setCellOrigin(this.header, new JRCrosstabOrigin(getParent(), (byte)5, null, getName()));
|
|
setCellOrigin(this.totalHeader, new JRCrosstabOrigin(getParent(), (byte)6, null, getName()));
|
|
}
|
|
}
|