Examples of makeReadOnly()


Examples of org.apache.tapestry.services.ClassTransformation.makeReadOnly()

        train_findFieldsWithAnnotation(ct, InjectComponent.class, "myfield");
        train_getFieldAnnotation(ct, "myfield", InjectComponent.class, annotation);
        train_getFieldType(ct, "myfield", CLASS_NAME);
        train_getResourcesFieldName(ct, "resources");
        expect(annotation.value()).andReturn("id_provided_as_annotation").atLeastOnce();
        ct.makeReadOnly("myfield");
        train_extendMethod(ct, TransformConstants.CONTAINING_PAGE_DID_LOAD_SIGNATURE,
                           "myfield = (" + CLASS_NAME + ") resources.getEmbeddedComponent(\"id_provided_as_annotation\");");

        replay();
View Full Code Here

Examples of org.apache.tapestry5.services.ClassTransformation.makeReadOnly()

        train_getFieldAnnotation(ct, barneyFieldName, Id.class, barneyId);

        train_value(barneyId, "barney");

        ct.makeReadOnly(barneyFieldName);

        train_extendMethod(
                ct,
                TransformConstants.CONTAINING_PAGE_DID_LOAD_SIGNATURE,
                "_barneyBlock = rez.getBlock(\"barney\");");
View Full Code Here

Examples of org.codehaus.dna.impl.DefaultConfiguration.makeReadOnly()

    public void testMakeReadOnlyWithNoChildren()
        throws Exception
    {
        final DefaultConfiguration configuration =
            new DefaultConfiguration( "myElement", "file.xml:20", "" );
        configuration.makeReadOnly();
        assertTrue( "configuration.isReadOnly()", configuration.isReadOnly() );
    }

    public void testMakeReadOnlyWithChildren()
        throws Exception
View Full Code Here

Examples of org.codehaus.dna.impl.DefaultConfiguration.makeReadOnly()

        final DefaultConfiguration configuration =
            new DefaultConfiguration( "myElement", "file.xml:20", "" );

        configuration.addChild( new MockConfiguration() );

        configuration.makeReadOnly();
        assertTrue( "configuration.isReadOnly()", configuration.isReadOnly() );
    }

    public void testToString()
        throws Exception
View Full Code Here

Examples of org.codehaus.dna.impl.DefaultResourceLocator.makeReadOnly()

        serviceManager.put( ConfigurationValidator.class.getName(),
                            m_validator );
        serviceManager.put( InstrumentManager.class.getName(),
                            m_instrumentManager );
        serviceManager.put( Kernel.class.getName(), this );
        serviceManager.makeReadOnly();
        return serviceManager;
    }

    /**
     * @mx.operation description="Removes the application from the container"
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.makeReadOnly()

      return;
    }
    if (doc instanceof BasicStructuredDocument) {
      ((BasicStructuredDocument)doc).makeReadOnly(node.getStart(), node.getLength(), canInsertBefore, canInsertAfter);
    } else {
      doc.makeReadOnly(node.getStart(), node.getLength());
    }
  }

  static private void unlock(IStructuredDocumentRegion node) {
    if (node == null) {
View Full Code Here

Examples of org.jfree.layouting.util.AttributeMap.makeReadOnly()

                }
            }
        }

        attributeMap.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, "table-row-count", IntegerCache.getInteger(rowCount));
        attributeMap.makeReadOnly();
        return attributeMap;
    }
}
View Full Code Here

Examples of org.jfree.layouting.util.AttributeMap.makeReadOnly()

      throws DataSourceException
  {
    final AttributeMap map = new AttributeMap( super.computeAttributes(fc, element, target) );
    final String value = String.valueOf(repeatHeader || repeatFooter);
    map.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, "repeating-header-or-footer", value);
    map.makeReadOnly();
    return map;
  }
}
View Full Code Here

Examples of org.jfree.layouting.util.AttributeMap.makeReadOnly()

        }
        catch (Exception e)
        {
        // ignore ..
        }
        attributeMap.makeReadOnly();
        return attributeMap;
    }

    private DataFlags computeValue() throws DataSourceException
    {
View Full Code Here

Examples of org.jfree.layouting.util.AttributeMap.makeReadOnly()

      return attrs;
    }

    final AttributeMap retval = new AttributeMap(attrs);
    retval.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, "repeated-section", OfficeToken.TRUE);
    retval.makeReadOnly();
    return retval;
  }


}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.