Java 类net.sf.jasperreports.engine.base.JRBaseSubreport 实例源码

项目:PDFReporter-Studio    文件:SubreportSection.java   
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    parent.setLayout(new GridLayout(2, false));

    createWidget4Property(parent, JRBaseSubreport.PROPERTY_RUN_TO_BOTTOM);

    createWidget4Property(parent, JRBaseSubreport.PROPERTY_USING_CACHE);
    createWidget4Property(parent, JRDesignSubreport.PROPERTY_EXPRESSION);
    createWidget4Property(parent, JRDesignSubreport.PROPERTY_PARAMETERS_MAP_EXPRESSION);
    createWidget4Property(parent, JRDesignSubreport.PROPERTY_CONNECTION_EXPRESSION);
    createWidget4Property(parent, JRDesignSubreport.PROPERTY_DATASOURCE_EXPRESSION);

    Composite cmp = getWidgetFactory().createComposite(parent);
    cmp.setLayout(new GridLayout(2, false));
    GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);
    gd.horizontalSpan = 2;
    cmp.setLayoutData(gd);

    createWidget4Property(cmp, JRDesignSubreport.PROPERTY_RETURN_VALUES, false);

    createWidget4Property(cmp, JRDesignSubreport.PROPERTY_PARAMETERS, false);
}
项目:jasperreports    文件:StandardSubreportPartComponent.java   
@Override
public void setUsingCache(Boolean usingCache)
{
    Object old = this.usingCache;
    this.usingCache = usingCache;
    getEventSupport().firePropertyChange(JRBaseSubreport.PROPERTY_USING_CACHE, old, this.usingCache);
}
项目:jasperreports    文件:JRDesignSubreport.java   
@Override
public void setUsingCache(Boolean isUsingCache)
{
    Object old = this.isUsingCache;
    this.isUsingCache = isUsingCache;
    getEventSupport().firePropertyChange(JRBaseSubreport.PROPERTY_USING_CACHE, old, this.isUsingCache);
}
项目:jasperreports    文件:JRDesignSubreport.java   
@Override
public void setRunToBottom(Boolean runToBottom)
{
    Object old = this.runToBottom;
    this.runToBottom = runToBottom;
    getEventSupport().firePropertyChange(JRBaseSubreport.PROPERTY_RUN_TO_BOTTOM, old, this.runToBottom);
}
项目:jasperreports    文件:JRDesignSubreport.java   
@Override
public void setOverflowType(OverflowType overflowType)
{
    Object old = this.overflowType;
    this.overflowType = overflowType;
    getEventSupport().firePropertyChange(JRBaseSubreport.PROPERTY_OVERFLOW_TYPE, old, this.overflowType);
}
项目:PDFReporter-Studio    文件:SubreportSection.java   
@Override
protected void initializeProvidedProperties() {
    super.initializeProvidedProperties();
    addProvidedProperties(JRBaseSubreport.PROPERTY_RUN_TO_BOTTOM, Messages.MSubreport_run_to_bottom);
    addProvidedProperties(JRBaseSubreport.PROPERTY_USING_CACHE, Messages.common_using_cache);
    addProvidedProperties(JRDesignSubreport.PROPERTY_EXPRESSION, Messages.common_expression);
    addProvidedProperties(JRDesignSubreport.PROPERTY_PARAMETERS_MAP_EXPRESSION, Messages.common_parameters_map_expression);
    addProvidedProperties(JRDesignSubreport.PROPERTY_CONNECTION_EXPRESSION, Messages.common_connection_expression);
    addProvidedProperties(JRDesignSubreport.PROPERTY_DATASOURCE_EXPRESSION, Messages.MSubreport_datasource_expression);
    addProvidedProperties(JRDesignSubreport.PROPERTY_RETURN_VALUES, Messages.common_return_values);
    addProvidedProperties(JRDesignSubreport.PROPERTY_PARAMETERS, Messages.common_parameters);
}
项目:PDFReporter-Studio    文件:MSubreport.java   
@Override
public Object getPropertyValue(Object id) {
    JRDesignSubreport jrElement = (JRDesignSubreport) getValue();
    if (id.equals(JRBaseSubreport.PROPERTY_RUN_TO_BOTTOM))
        return jrElement.isRunToBottom();
    if (id.equals(JRBaseSubreport.PROPERTY_USING_CACHE))
        return jrElement.getUsingCache();
    if (id.equals(JRDesignSubreport.PROPERTY_EXPRESSION))
        return ExprUtil.getExpression(jrElement.getExpression());
    if (id.equals(JRDesignSubreport.PROPERTY_PARAMETERS_MAP_EXPRESSION))
        return ExprUtil.getExpression(jrElement.getParametersMapExpression());
    if (id.equals(JRDesignSubreport.PROPERTY_CONNECTION_EXPRESSION))
        return ExprUtil.getExpression(jrElement.getConnectionExpression());
    if (id.equals(JRDesignSubreport.PROPERTY_DATASOURCE_EXPRESSION))
        return ExprUtil.getExpression(jrElement.getDataSourceExpression());
    if (id.equals(JRDesignSubreport.PROPERTY_PARAMETERS))
        return JRCloneUtils.cloneArray(jrElement.getParameters());
    if (id.equals(JRDesignSubreport.PROPERTY_RETURN_VALUES)) {
        if (returnValuesDTO == null) {
            returnValuesDTO = new JReportsDTO();
            returnValuesDTO.setjConfig(getJasperConfiguration());
            returnValuesDTO.setProp1(jrElement);
        }
        returnValuesDTO.setValue(JRCloneUtils.cloneList(jrElement.getReturnValuesList()));
        return returnValuesDTO;

    }

    return super.getPropertyValue(id);
}
项目:PDFReporter-Studio    文件:MSubreport.java   
/**
 * Creates the property descriptors.
 * 
 * @param desc
 *          the desc
 */
@Override
public void createPropertyDescriptors(List<IPropertyDescriptor> desc, Map<String, Object> defaultsMap) {
    super.createPropertyDescriptors(desc, defaultsMap);

    CheckBoxPropertyDescriptor runToBottomD = new CheckBoxPropertyDescriptor(JRBaseSubreport.PROPERTY_RUN_TO_BOTTOM,
            Messages.MSubreport_run_to_bottom, NullEnum.NULL);
    runToBottomD.setDescription(Messages.MSubreport_run_to_bottom_description);
    desc.add(runToBottomD);

    CheckBoxPropertyDescriptor useCacheD = new CheckBoxPropertyDescriptor(JRBaseSubreport.PROPERTY_USING_CACHE,
            Messages.common_using_cache, NullEnum.INHERITED);
    useCacheD.setDescription(Messages.MSubreport_using_cache_description);
    desc.add(useCacheD);

    JRExpressionPropertyDescriptor exprD = new JRExpressionPropertyDescriptor(JRDesignSubreport.PROPERTY_EXPRESSION,
            Messages.common_expression);
    exprD.setDescription(Messages.MSubreport_expression_description);
    desc.add(exprD);
    exprD.setHelpRefBuilder(new HelpReferenceBuilder(
            "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#subreportExpression"));

    JRExpressionPropertyDescriptor paramExprD = new JRExpressionPropertyDescriptor(
            JRDesignSubreport.PROPERTY_PARAMETERS_MAP_EXPRESSION, Messages.common_parameters_map_expression);
    paramExprD.setDescription(Messages.MSubreport_parameters_map_expression_description);
    desc.add(paramExprD);
    paramExprD.setHelpRefBuilder(new HelpReferenceBuilder(
            "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#parametersMapExpression"));

    JRExpressionPropertyDescriptor connExprD = new JRExpressionPropertyDescriptor(
            JRDesignSubreport.PROPERTY_CONNECTION_EXPRESSION, Messages.common_connection_expression);
    connExprD.setDescription(Messages.MSubreport_connection_expression_description);
    desc.add(connExprD);
    connExprD.setHelpRefBuilder(new HelpReferenceBuilder(
            "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#connectionExpression"));

    JRExpressionPropertyDescriptor dsExprD = new JRExpressionPropertyDescriptor(
            JRDesignSubreport.PROPERTY_DATASOURCE_EXPRESSION, Messages.MSubreport_datasource_expression);
    dsExprD.setDescription(Messages.MSubreport_datasource_expression_description);
    desc.add(dsExprD);
    dsExprD.setHelpRefBuilder(new HelpReferenceBuilder(
            "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#dataSourceExpression"));

    SubreportPropertiesPropertyDescriptor propertiesD = new SubreportPropertiesPropertyDescriptor(
            JRDesignSubreport.PROPERTY_PARAMETERS, Messages.common_parameters);
    propertiesD.setDescription(Messages.MSubreport_parameters_description);
    desc.add(propertiesD);
    propertiesD.setHelpRefBuilder(new HelpReferenceBuilder(
            "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#subreportParameter"));
    propertiesD.init(this);

    RVPropertyDescriptor returnValuesD = new RVPropertyDescriptor(JRDesignSubreport.PROPERTY_RETURN_VALUES,
            Messages.common_return_values);
    returnValuesD.setDescription(Messages.MSubreport_return_values_description);
    desc.add(returnValuesD);
    propertiesD.setHelpRefBuilder(new HelpReferenceBuilder(
            "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#returnValue"));

    returnValuesD.setCategory(Messages.MSubreport_subreport_properties_category);
    propertiesD.setCategory(Messages.MSubreport_subreport_properties_category);
    dsExprD.setCategory(Messages.MSubreport_subreport_properties_category);
    connExprD.setCategory(Messages.MSubreport_subreport_properties_category);
    paramExprD.setCategory(Messages.MSubreport_subreport_properties_category);
    exprD.setCategory(Messages.MSubreport_subreport_properties_category);
    useCacheD.setCategory(Messages.MSubreport_subreport_properties_category);
    runToBottomD.setCategory(Messages.MSubreport_subreport_properties_category);

    setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#subreport");
}
项目:ireport-fork    文件:RunToBottomProperty.java   
@Override
public String getName()
{
    return JRBaseSubreport.PROPERTY_RUN_TO_BOTTOM;
}
项目:ireport-fork    文件:SubreportUsingCacheProperty.java   
@Override
public String getName()
{
    return JRBaseSubreport.PROPERTY_USING_CACHE;
}