Java 类net.sf.jasperreports.engine.type.BreakTypeEnum 实例源码

项目:jasperreports    文件:JRBaseBreak.java   
@Override
public void setType(BreakTypeEnum typeValue)
{
    Object old = this.typeValue;
    this.typeValue = typeValue;
    getEventSupport().firePropertyChange(PROPERTY_TYPE, old, this.typeValue);
}
项目:jasperreports    文件:JRBaseBreak.java   
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
    in.defaultReadObject();

    if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
    {
        typeValue = BreakTypeEnum.getByValue(type);
    }
}
项目:jasperreports    文件:JRXmlWriter.java   
/**
 *
 */
public void writeBreak(JRBreak breakElement) throws IOException
{
    writer.startElement(JRXmlConstants.ELEMENT_break, getNamespace());
    writer.addAttribute(JRXmlConstants.ATTRIBUTE_type, breakElement.getTypeValue(), BreakTypeEnum.PAGE);

    writeReportElement(breakElement);

    writer.closeElement();
}
项目:jasperreports    文件:JRBreakFactory.java   
@Override
public Object createObject(Attributes atts)
{
    JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);

    JRDesignBreak breakElement = new JRDesignBreak(jasperDesign);

    BreakTypeEnum type = BreakTypeEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_type));
    if (type != null)
    {
        breakElement.setType(type);
    }

    return breakElement;
}
项目:jasperreports    文件:JRApiWriter.java   
/**
 *
 */
public void writeBreak( JRBreak breakElement, String breakName)
{
    if(breakElement != null)
    {
        write( "JRDesignBreak " + breakName + " = new JRDesignBreak(jasperDesign);\n");
        write( breakName + ".setType({0});\n", breakElement.getTypeValue(), BreakTypeEnum.PAGE);
        writeReportElement( breakElement, breakName);
        flush();
    }
}
项目:jasperreports    文件:JRDesignBreak.java   
@Override
public void setType(BreakTypeEnum typeValue)
{
    Object old = this.typeValue;
    this.typeValue = typeValue;
    getEventSupport().firePropertyChange(JRBaseBreak.PROPERTY_TYPE, old, this.typeValue);
}
项目:jasperreports    文件:JRDesignBreak.java   
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
    in.defaultReadObject();

    if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
    {
        typeValue = BreakTypeEnum.getByValue(type);
    }
}
项目:PDFReporter-Studio    文件:MBreak.java   
/**
 * Creates the property descriptors.
 * 
 * @param desc
 *          the desc
 */
@Override
public void createPropertyDescriptors(List<IPropertyDescriptor> desc, Map<String, Object> defaultsMap) {
    super.createPropertyDescriptors(desc, defaultsMap);

    typeD = new JSSEnumPropertyDescriptor(JRBaseBreak.PROPERTY_TYPE, Messages.MBreak_type, BreakTypeEnum.class,
            NullEnum.NOTNULL);
    typeD.setDescription(Messages.MBreak_type_description);
    desc.add(typeD);
    typeD.setCategory(Messages.MBreak_break_properties_category);

    defaultsMap.put(JRBaseBreak.PROPERTY_TYPE, typeD.getEnumValue(BreakTypeEnum.PAGE));

    setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#break");
}
项目:PDFReporter-Studio    文件:MBreak.java   
@Override
public void setPropertyValue(Object id, Object value) {
    JRDesignBreak jrElement = (JRDesignBreak) getValue();

    if (id.equals(JRBaseBreak.PROPERTY_TYPE))
        jrElement.setType((BreakTypeEnum) typeD.getEnumValue(value));
    else
        super.setPropertyValue(id, value);
}
项目:ireport-fork    文件:ElementNameVisitor.java   
/**
 *
 */
public void visitBreak(JRBreak breakElement)
{
    if (breakElement.getTypeValue() == BreakTypeEnum.PAGE)
        name = "Page Break";
    else
       name = "Column Break";
}
项目:ireport-fork    文件:BreakTypeProperty.java   
@Override
public List getTagList() 
{
    List tags = new java.util.ArrayList();

    tags.add(new Tag(BreakTypeEnum.PAGE, I18n.getString("Global.Property.BreakTypePage")));
    tags.add(new Tag(BreakTypeEnum.COLUMN, I18n.getString("Global.Property.BreakTypeColumn")));
    return tags;
}
项目:jasperreports    文件:JRBaseBreak.java   
@Override
public BreakTypeEnum getTypeValue()
{
    return this.typeValue;
}
项目:jasperreports    文件:JRDesignBreak.java   
@Override
public BreakTypeEnum getTypeValue()
{
    return this.typeValue;
}
项目:jasperreports    文件:JRFillBreak.java   
@Override
public BreakTypeEnum getTypeValue()
{
    return ((JRBreak)parent).getTypeValue();
}
项目:jasperreports    文件:JRFillBreak.java   
@Override
public void setType(BreakTypeEnum type)
{
    throw new UnsupportedOperationException();
}
项目:ireport-fork    文件:BreakTypeProperty.java   
@SuppressWarnings("unchecked")
public BreakTypeProperty(JRDesignBreak breakElement)
{
    super( BreakTypeEnum.class, breakElement);
    this.breakElement = breakElement;
}
项目:ireport-fork    文件:BreakTypeProperty.java   
@Override
public Object getDefaultValue()
{
    return BreakTypeEnum.PAGE;
}
项目:ireport-fork    文件:BreakTypeProperty.java   
@Override
public void setPropertyValue(Object type)
{
    breakElement.setType((BreakTypeEnum)type);
}
项目:jasperreports    文件:JRBreak.java   
/**
 * Gets the break type.
 * @return a value representing one of the break type constants in {@link BreakTypeEnum}
 */
public BreakTypeEnum getTypeValue();
项目:jasperreports    文件:JRBreak.java   
/**
 * Sets the break type.
 * @param breakTypeEnum a value representing one of the break type constants in {@link BreakTypeEnum}
 */
public void setType(BreakTypeEnum breakTypeEnum);
项目:ireport-fork    文件:BreakTypeDialog.java   
public BreakTypeEnum getBreakTypeValue() {

        return (jRadioButtonPage.isSelected()) ? BreakTypeEnum.PAGE :  BreakTypeEnum.COLUMN;
    }