You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PropertyConsts-class.html 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <title>PropertyConsts Description</title>
  6. <style type= "text/css" >
  7. span.codeDisplay {font:italic bold}
  8. body {
  9. font-family: Verdana, Helvetica, sans-serif;
  10. }
  11. .note { border: solid 1px #7099C5; background-color: #f0f0ff; }
  12. .note .label { background-color: #7099C5; color: #ffffff; }
  13. .content {
  14. padding: 5px 5px 5px 10px;
  15. font : Verdana, Helvetica, sans-serif; font-size : 90%;
  16. }
  17. </style>
  18. </head>
  19. <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"
  20. text="#000000" bgcolor="#FFFFFF">
  21. <div class="content">
  22. <h1>PropertyConsts Description</h1>
  23. <p>
  24. <font size="-2">by&nbsp;Peter B. West</font>
  25. </p>
  26. <ul class="minitoc">
  27. <li>
  28. <a href="#N10014">Introduction</a>
  29. </li>
  30. </ul>
  31. <a name="N10014"></a>
  32. <h3>Introduction</h3>
  33. <p>
  34. <a href="javascript:parent.displayCode(
  35. 'PropertyConsts.html#PropertyConstsClass'
  36. )">This class</a>, and the singleton object which is <a
  37. href="javascript:parent.displayCode(
  38. 'PropertyConsts.html#pconsts' )">generated by the static
  39. initializer</a>, is essentially a repository of
  40. &lt;property&gt; class instances and the static data from
  41. those classes of <span
  42. class="codefrag">org.apache.fop.fo.property</span>.
  43. The heart of this class is the method <a href=
  44. "javascript:parent.displayCode(
  45. 'PropertyConsts.html#setupProperty' )"><span class="codefrag"
  46. >setupProperty</span ></a>. Whenever access to the data or
  47. methods of a property class is required, this method in the
  48. singleton must be called to ensure that an instance of the
  49. property exists and that the static data from that instance
  50. has been extracted.
  51. </p>
  52. <div class="frame note">
  53. <div class="label">Note</div>
  54. <div class="content">
  55. An alternative to this requirement would be to pre-load all
  56. of the individual property classes during the system
  57. initialization phase. This is not done currently because of
  58. the start-up expense of the required class loading for over
  59. three hundred classes, and the relatively low added expense
  60. of checking for the existence of a property instance before
  61. every access. Given that FOP is increasingly used in a
  62. server environment, it may prove acceptable in the long run
  63. to change to pre-loading.
  64. </div>
  65. </div>
  66. <p>
  67. The class name is generated and stored in the <a
  68. href="javascript:parent.displayCode(
  69. 'PropertyConsts.html#classNames' )"><span class="codefrag"
  70. >classNames</span ></a> array; a class instance is generated
  71. from the name and stored in the <a
  72. href="javascript:parent.displayCode(
  73. 'PropertyConsts.html#classes' )"><span class="codefrag"
  74. >classes</span ></a> array; and an instance of the class is
  75. generated from the class object and stored in the <a
  76. href="javascript:parent.displayCode(
  77. 'PropertyConsts.html#properties' )"><span class="codefrag"
  78. >properties</span ></a> array.
  79. </p>
  80. <p>
  81. The other data gathering facilities and access methods of this
  82. class will be examined in conjunction with the various types
  83. of property classes.
  84. </p>
  85. <p>
  86. <strong>Previous:</strong> <a href = "classes-overview.html"
  87. >Property classes overview</a>
  88. </p>
  89. <p>
  90. <strong>Next:</strong> <a href= "simple-properties.html"
  91. >Simple property classes</a>
  92. </p>
  93. </div>
  94. <table summary="footer" cellspacing="0" cellpadding="0"
  95. width="100%" height="20" border="0">
  96. <tr>
  97. <td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt="" src="../../skin/images/spacer.gif"><a href="../../skin/images/label.gif"></a><a href="../../skin/images/page.gif"></a><a href="../../skin/images/chapter.gif"></a><a href="../../skin/images/chapter_open.gif"></a><a href="../../skin/images/current.gif"></a><a href="../..//favicon.ico"></a></td>
  98. </tr>
  99. <tr>
  100. <td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright &copy;
  101. 1999-2002&nbsp;The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!--
  102. document.write(" - "+"Last Published: " + document.lastModified);
  103. // --></script></font></td>
  104. </tr>
  105. <tr>
  106. <td align="left" bgcolor="#CFDCED" class="logos"></td><td align="right" bgcolor="#CFDCED" class="logos"></td>
  107. </tr>
  108. </table>
  109. </body>
  110. </html>