Commit c6d6f4e9858d664bddc366eb5f657225d6527b1a

Authored by Edmar Moretti
1 parent baaeacb1

Movido o diretório jsobjects para pacotes/jsobjects

Showing 90 changed files with 2700 additions and 0 deletions   Show diff stats
pacotes/jsobjects/AppCentral.htm 0 → 100644
... ... @@ -0,0 +1,64 @@
  1 +<html>
  2 +
  3 +<head>
  4 + <title>jsObjects Collection</title>
  5 + <link rel='stylesheet' type='text/css' href='documentation.css'></link>
  6 + <LINK REL="shortcut icon" HREF="images/jsobjects-s.ico" TYPE="image/x-icon">
  7 +</head>
  8 +
  9 +<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" vlink="#0000ff" link="#0000ff" alink="#0000ff">
  10 +
  11 +<div class="header" width="100%">
  12 + <table cellSpacing="0" cellPadding="0" width="98%" border="0">
  13 + <tr>
  14 + <td style="height: 16px"><b><i><span style="FONT-SIZE: 10pt">jsObjects AppCentral</span></i> - Version 1.0</b></td>
  15 + <td align="right" style="height: 16px">
  16 + By: <a style="color:white" href="http://www.jonandnic.com/jonathan">Jonathan Wise</a>&nbsp;</td>
  17 + </tr>
  18 + </table>
  19 +</div>
  20 +<blockquote class="details">
  21 + <p><b>About</b> </p>
  22 + <ul>
  23 + <li><img src="images/appcentral.gif" align="left" />AppCentral is a web application
  24 + container based on jsObjects and a .NET webservice, that combines modules -- both
  25 + client and server-side, to assemble disperate web applications into a cohesive interface.<br /><br />
  26 + - <a href="http://www.jonandnic.com/appcentral/readme.txt">Change Log</a>
  27 + </li></ul>
  28 +</blockquote>
  29 +<blockquote class="details">
  30 + <p><b>Purpose</b> </p>
  31 + <ul>
  32 + <li>The web is becoming much more than a place to share data. Technologies like web
  33 + services and AJAX are allowing developers to build rich, interactive applications
  34 + that rival their compiled equivalents on the desktop. Unfortunately, differing development styles, interfaces and appearances make switching between applications an experience
  35 + no better than it was 5 years ago. AppCentral is an attempt to provide a single interface through which multiple, disperate applications can be accessed in a user-friendly
  36 + and consistent manor.<br />
  37 + AppCentral can host "modules" or web applications that adhere to a few standards
  38 + for consistency of appearance and data retreival, or it can host standard web pages,
  39 + requiring only a small XML file and icon to allow them to appear in the container.</li></ul>
  40 +</blockquote>
  41 +
  42 +<blockquote class="details">
  43 + <p><b>Requirements</b> </p>
  44 + <ul>
  45 + <li>AppCentral is intended for use in both Internet Explorer (5.5 or better) and FireFox (1.1 or better) and uses a .NET webservice on the server-side.</li></ul>
  46 +</blockquote>
  47 +<blockquote class="details">
  48 + <p><b>Use AppCentral</b></p>
  49 + <ul>
  50 + <li>
  51 + - <a href="http://www.jonandnic.com/jsobjects/AppCentralSetup.zip">Download the Installer</a></li>
  52 + <li>
  53 + - <a href="http://www.jonandnic.com/AppCentral">Try it out!</a>
  54 + </li>
  55 + </ul>
  56 +</blockquote>
  57 +
  58 + <br />
  59 + <div class="footer">© 2005 Jonathan Wise. <a href="license.txt">Some rights reserved</a>. </div>
  60 + <br />
  61 +
  62 +</body>
  63 +
  64 +</html>
0 65 \ No newline at end of file
... ...
pacotes/jsobjects/License.txt 0 → 100644
... ... @@ -0,0 +1,459 @@
  1 + GNU LESSER GENERAL PUBLIC LICENSE
  2 + Version 2.1, February 1999
  3 +
  4 + Copyright (C) 1991, 1999 Free Software Foundation, Inc.
  5 + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  6 + Everyone is permitted to copy and distribute verbatim copies
  7 + of this license document, but changing it is not allowed.
  8 +
  9 +[This is the first released version of the Lesser GPL. It also counts
  10 + as the successor of the GNU Library Public License, version 2, hence
  11 + the version number 2.1.]
  12 +
  13 + Preamble
  14 +
  15 + The licenses for most software are designed to take away your
  16 +freedom to share and change it. By contrast, the GNU General Public
  17 +Licenses are intended to guarantee your freedom to share and change
  18 +free software--to make sure the software is free for all its users.
  19 +
  20 + This license, the Lesser General Public License, applies to some
  21 +specially designated software packages--typically libraries--of the
  22 +Free Software Foundation and other authors who decide to use it. You
  23 +can use it too, but we suggest you first think carefully about whether
  24 +this license or the ordinary General Public License is the better
  25 +strategy to use in any particular case, based on the explanations below.
  26 +
  27 + When we speak of free software, we are referring to freedom of use,
  28 +not price. Our General Public Licenses are designed to make sure that
  29 +you have the freedom to distribute copies of free software (and charge
  30 +for this service if you wish); that you receive source code or can get
  31 +it if you want it; that you can change the software and use pieces of
  32 +it in new free programs; and that you are informed that you can do
  33 +these things.
  34 +
  35 + To protect your rights, we need to make restrictions that forbid
  36 +distributors to deny you these rights or to ask you to surrender these
  37 +rights. These restrictions translate to certain responsibilities for
  38 +you if you distribute copies of the library or if you modify it.
  39 +
  40 + For example, if you distribute copies of the library, whether gratis
  41 +or for a fee, you must give the recipients all the rights that we gave
  42 +you. You must make sure that they, too, receive or can get the source
  43 +code. If you link other code with the library, you must provide
  44 +complete object files to the recipients, so that they can relink them
  45 +with the library after making changes to the library and recompiling
  46 +it. And you must show them these terms so they know their rights.
  47 +
  48 + We protect your rights with a two-step method: (1) we copyright the
  49 +library, and (2) we offer you this license, which gives you legal
  50 +permission to copy, distribute and/or modify the library.
  51 +
  52 + To protect each distributor, we want to make it very clear that
  53 +there is no warranty for the free library. Also, if the library is
  54 +modified by someone else and passed on, the recipients should know
  55 +that what they have is not the original version, so that the original
  56 +author's reputation will not be affected by problems that might be
  57 +introduced by others.
  58 +
  59 + Finally, software patents pose a constant threat to the existence of
  60 +any free program. We wish to make sure that a company cannot
  61 +effectively restrict the users of a free program by obtaining a
  62 +restrictive license from a patent holder. Therefore, we insist that
  63 +any patent license obtained for a version of the library must be
  64 +consistent with the full freedom of use specified in this license.
  65 +
  66 + Most GNU software, including some libraries, is covered by the
  67 +ordinary GNU General Public License. This license, the GNU Lesser
  68 +General Public License, applies to certain designated libraries, and
  69 +is quite different from the ordinary General Public License. We use
  70 +this license for certain libraries in order to permit linking those
  71 +libraries into non-free programs.
  72 +
  73 + When a program is linked with a library, whether statically or using
  74 +a shared library, the combination of the two is legally speaking a
  75 +combined work, a derivative of the original library. The ordinary
  76 +General Public License therefore permits such linking only if the
  77 +entire combination fits its criteria of freedom. The Lesser General
  78 +Public License permits more lax criteria for linking other code with
  79 +the library.
  80 +
  81 + We call this license the "Lesser" General Public License because it
  82 +does Less to protect the user's freedom than the ordinary General
  83 +Public License. It also provides other free software developers Less
  84 +of an advantage over competing non-free programs. These disadvantages
  85 +are the reason we use the ordinary General Public License for many
  86 +libraries. However, the Lesser license provides advantages in certain
  87 +special circumstances.
  88 +
  89 + For example, on rare occasions, there may be a special need to
  90 +encourage the widest possible use of a certain library, so that it becomes
  91 +a de-facto standard. To achieve this, non-free programs must be
  92 +allowed to use the library. A more frequent case is that a free
  93 +library does the same job as widely used non-free libraries. In this
  94 +case, there is little to gain by limiting the free library to free
  95 +software only, so we use the Lesser General Public License.
  96 +
  97 + In other cases, permission to use a particular library in non-free
  98 +programs enables a greater number of people to use a large body of
  99 +free software. For example, permission to use the GNU C Library in
  100 +non-free programs enables many more people to use the whole GNU
  101 +operating system, as well as its variant, the GNU/Linux operating
  102 +system.
  103 +
  104 + Although the Lesser General Public License is Less protective of the
  105 +users' freedom, it does ensure that the user of a program that is
  106 +linked with the Library has the freedom and the wherewithal to run
  107 +that program using a modified version of the Library.
  108 +
  109 + The precise terms and conditions for copying, distribution and
  110 +modification follow. Pay close attention to the difference between a
  111 +"work based on the library" and a "work that uses the library". The
  112 +former contains code derived from the library, whereas the latter must
  113 +be combined with the library in order to run.
  114 +
  115 + GNU LESSER GENERAL PUBLIC LICENSE
  116 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  117 +
  118 + 0. This License Agreement applies to any software library or other
  119 +program which contains a notice placed by the copyright holder or
  120 +other authorized party saying it may be distributed under the terms of
  121 +this Lesser General Public License (also called "this License").
  122 +Each licensee is addressed as "you".
  123 +
  124 + A "library" means a collection of software functions and/or data
  125 +prepared so as to be conveniently linked with application programs
  126 +(which use some of those functions and data) to form executables.
  127 +
  128 + The "Library", below, refers to any such software library or work
  129 +which has been distributed under these terms. A "work based on the
  130 +Library" means either the Library or any derivative work under
  131 +copyright law: that is to say, a work containing the Library or a
  132 +portion of it, either verbatim or with modifications and/or translated
  133 +straightforwardly into another language. (Hereinafter, translation is
  134 +included without limitation in the term "modification".)
  135 +
  136 + "Source code" for a work means the preferred form of the work for
  137 +making modifications to it. For a library, complete source code means
  138 +all the source code for all modules it contains, plus any associated
  139 +interface definition files, plus the scripts used to control compilation
  140 +and installation of the library.
  141 +
  142 + Activities other than copying, distribution and modification are not
  143 +covered by this License; they are outside its scope. The act of
  144 +running a program using the Library is not restricted, and output from
  145 +such a program is covered only if its contents constitute a work based
  146 +on the Library (independent of the use of the Library in a tool for
  147 +writing it). Whether that is true depends on what the Library does
  148 +and what the program that uses the Library does.
  149 +
  150 + 1. You may copy and distribute verbatim copies of the Library's
  151 +complete source code as you receive it, in any medium, provided that
  152 +you conspicuously and appropriately publish on each copy an
  153 +appropriate copyright notice and disclaimer of warranty; keep intact
  154 +all the notices that refer to this License and to the absence of any
  155 +warranty; and distribute a copy of this License along with the
  156 +Library.
  157 +
  158 + You may charge a fee for the physical act of transferring a copy,
  159 +and you may at your option offer warranty protection in exchange for a
  160 +fee.
  161 +
  162 + 2. You may modify your copy or copies of the Library or any portion
  163 +of it, thus forming a work based on the Library, and copy and
  164 +distribute such modifications or work under the terms of Section 1
  165 +above, provided that you also meet all of these conditions:
  166 +
  167 + a) The modified work must itself be a software library.
  168 +
  169 + b) You must cause the files modified to carry prominent notices
  170 + stating that you changed the files and the date of any change.
  171 +
  172 + c) You must cause the whole of the work to be licensed at no
  173 + charge to all third parties under the terms of this License.
  174 +
  175 + d) If a facility in the modified Library refers to a function or a
  176 + table of data to be supplied by an application program that uses
  177 + the facility, other than as an argument passed when the facility
  178 + is invoked, then you must make a good faith effort to ensure that,
  179 + in the event an application does not supply such function or
  180 + table, the facility still operates, and performs whatever part of
  181 + its purpose remains meaningful.
  182 +
  183 + (For example, a function in a library to compute square roots has
  184 + a purpose that is entirely well-defined independent of the
  185 + application. Therefore, Subsection 2d requires that any
  186 + application-supplied function or table used by this function must
  187 + be optional: if the application does not supply it, the square
  188 + root function must still compute square roots.)
  189 +
  190 +These requirements apply to the modified work as a whole. If
  191 +identifiable sections of that work are not derived from the Library,
  192 +and can be reasonably considered independent and separate works in
  193 +themselves, then this License, and its terms, do not apply to those
  194 +sections when you distribute them as separate works. But when you
  195 +distribute the same sections as part of a whole which is a work based
  196 +on the Library, the distribution of the whole must be on the terms of
  197 +this License, whose permissions for other licensees extend to the
  198 +entire whole, and thus to each and every part regardless of who wrote
  199 +it.
  200 +
  201 +Thus, it is not the intent of this section to claim rights or contest
  202 +your rights to work written entirely by you; rather, the intent is to
  203 +exercise the right to control the distribution of derivative or
  204 +collective works based on the Library.
  205 +
  206 +In addition, mere aggregation of another work not based on the Library
  207 +with the Library (or with a work based on the Library) on a volume of
  208 +a storage or distribution medium does not bring the other work under
  209 +the scope of this License.
  210 +
  211 + 3. You may opt to apply the terms of the ordinary GNU General Public
  212 +License instead of this License to a given copy of the Library. To do
  213 +this, you must alter all the notices that refer to this License, so
  214 +that they refer to the ordinary GNU General Public License, version 2,
  215 +instead of to this License. (If a newer version than version 2 of the
  216 +ordinary GNU General Public License has appeared, then you can specify
  217 +that version instead if you wish.) Do not make any other change in
  218 +these notices.
  219 +
  220 + Once this change is made in a given copy, it is irreversible for
  221 +that copy, so the ordinary GNU General Public License applies to all
  222 +subsequent copies and derivative works made from that copy.
  223 +
  224 + This option is useful when you wish to copy part of the code of
  225 +the Library into a program that is not a library.
  226 +
  227 + 4. You may copy and distribute the Library (or a portion or
  228 +derivative of it, under Section 2) in object code or executable form
  229 +under the terms of Sections 1 and 2 above provided that you accompany
  230 +it with the complete corresponding machine-readable source code, which
  231 +must be distributed under the terms of Sections 1 and 2 above on a
  232 +medium customarily used for software interchange.
  233 +
  234 + If distribution of object code is made by offering access to copy
  235 +from a designated place, then offering equivalent access to copy the
  236 +source code from the same place satisfies the requirement to
  237 +distribute the source code, even though third parties are not
  238 +compelled to copy the source along with the object code.
  239 +
  240 + 5. A program that contains no derivative of any portion of the
  241 +Library, but is designed to work with the Library by being compiled or
  242 +linked with it, is called a "work that uses the Library". Such a
  243 +work, in isolation, is not a derivative work of the Library, and
  244 +therefore falls outside the scope of this License.
  245 +
  246 + However, linking a "work that uses the Library" with the Library
  247 +creates an executable that is a derivative of the Library (because it
  248 +contains portions of the Library), rather than a "work that uses the
  249 +library". The executable is therefore covered by this License.
  250 +Section 6 states terms for distribution of such executables.
  251 +
  252 + When a "work that uses the Library" uses material from a header file
  253 +that is part of the Library, the object code for the work may be a
  254 +derivative work of the Library even though the source code is not.
  255 +Whether this is true is especially significant if the work can be
  256 +linked without the Library, or if the work is itself a library. The
  257 +threshold for this to be true is not precisely defined by law.
  258 +
  259 + If such an object file uses only numerical parameters, data
  260 +structure layouts and accessors, and small macros and small inline
  261 +functions (ten lines or less in length), then the use of the object
  262 +file is unrestricted, regardless of whether it is legally a derivative
  263 +work. (Executables containing this object code plus portions of the
  264 +Library will still fall under Section 6.)
  265 +
  266 + Otherwise, if the work is a derivative of the Library, you may
  267 +distribute the object code for the work under the terms of Section 6.
  268 +Any executables containing that work also fall under Section 6,
  269 +whether or not they are linked directly with the Library itself.
  270 +
  271 + 6. As an exception to the Sections above, you may also combine or
  272 +link a "work that uses the Library" with the Library to produce a
  273 +work containing portions of the Library, and distribute that work
  274 +under terms of your choice, provided that the terms permit
  275 +modification of the work for the customer's own use and reverse
  276 +engineering for debugging such modifications.
  277 +
  278 + You must give prominent notice with each copy of the work that the
  279 +Library is used in it and that the Library and its use are covered by
  280 +this License. You must supply a copy of this License. If the work
  281 +during execution displays copyright notices, you must include the
  282 +copyright notice for the Library among them, as well as a reference
  283 +directing the user to the copy of this License. Also, you must do one
  284 +of these things:
  285 +
  286 + a) Accompany the work with the complete corresponding
  287 + machine-readable source code for the Library including whatever
  288 + changes were used in the work (which must be distributed under
  289 + Sections 1 and 2 above); and, if the work is an executable linked
  290 + with the Library, with the complete machine-readable "work that
  291 + uses the Library", as object code and/or source code, so that the
  292 + user can modify the Library and then relink to produce a modified
  293 + executable containing the modified Library. (It is understood
  294 + that the user who changes the contents of definitions files in the
  295 + Library will not necessarily be able to recompile the application
  296 + to use the modified definitions.)
  297 +
  298 + b) Use a suitable shared library mechanism for linking with the
  299 + Library. A suitable mechanism is one that (1) uses at run time a
  300 + copy of the library already present on the user's computer system,
  301 + rather than copying library functions into the executable, and (2)
  302 + will operate properly with a modified version of the library, if
  303 + the user installs one, as long as the modified version is
  304 + interface-compatible with the version that the work was made with.
  305 +
  306 + c) Accompany the work with a written offer, valid for at
  307 + least three years, to give the same user the materials
  308 + specified in Subsection 6a, above, for a charge no more
  309 + than the cost of performing this distribution.
  310 +
  311 + d) If distribution of the work is made by offering access to copy
  312 + from a designated place, offer equivalent access to copy the above
  313 + specified materials from the same place.
  314 +
  315 + e) Verify that the user has already received a copy of these
  316 + materials or that you have already sent this user a copy.
  317 +
  318 + For an executable, the required form of the "work that uses the
  319 +Library" must include any data and utility programs needed for
  320 +reproducing the executable from it. However, as a special exception,
  321 +the materials to be distributed need not include anything that is
  322 +normally distributed (in either source or binary form) with the major
  323 +components (compiler, kernel, and so on) of the operating system on
  324 +which the executable runs, unless that component itself accompanies
  325 +the executable.
  326 +
  327 + It may happen that this requirement contradicts the license
  328 +restrictions of other proprietary libraries that do not normally
  329 +accompany the operating system. Such a contradiction means you cannot
  330 +use both them and the Library together in an executable that you
  331 +distribute.
  332 +
  333 + 7. You may place library facilities that are a work based on the
  334 +Library side-by-side in a single library together with other library
  335 +facilities not covered by this License, and distribute such a combined
  336 +library, provided that the separate distribution of the work based on
  337 +the Library and of the other library facilities is otherwise
  338 +permitted, and provided that you do these two things:
  339 +
  340 + a) Accompany the combined library with a copy of the same work
  341 + based on the Library, uncombined with any other library
  342 + facilities. This must be distributed under the terms of the
  343 + Sections above.
  344 +
  345 + b) Give prominent notice with the combined library of the fact
  346 + that part of it is a work based on the Library, and explaining
  347 + where to find the accompanying uncombined form of the same work.
  348 +
  349 + 8. You may not copy, modify, sublicense, link with, or distribute
  350 +the Library except as expressly provided under this License. Any
  351 +attempt otherwise to copy, modify, sublicense, link with, or
  352 +distribute the Library is void, and will automatically terminate your
  353 +rights under this License. However, parties who have received copies,
  354 +or rights, from you under this License will not have their licenses
  355 +terminated so long as such parties remain in full compliance.
  356 +
  357 + 9. You are not required to accept this License, since you have not
  358 +signed it. However, nothing else grants you permission to modify or
  359 +distribute the Library or its derivative works. These actions are
  360 +prohibited by law if you do not accept this License. Therefore, by
  361 +modifying or distributing the Library (or any work based on the
  362 +Library), you indicate your acceptance of this License to do so, and
  363 +all its terms and conditions for copying, distributing or modifying
  364 +the Library or works based on it.
  365 +
  366 + 10. Each time you redistribute the Library (or any work based on the
  367 +Library), the recipient automatically receives a license from the
  368 +original licensor to copy, distribute, link with or modify the Library
  369 +subject to these terms and conditions. You may not impose any further
  370 +restrictions on the recipients' exercise of the rights granted herein.
  371 +You are not responsible for enforcing compliance by third parties with
  372 +this License.
  373 +
  374 + 11. If, as a consequence of a court judgment or allegation of patent
  375 +infringement or for any other reason (not limited to patent issues),
  376 +conditions are imposed on you (whether by court order, agreement or
  377 +otherwise) that contradict the conditions of this License, they do not
  378 +excuse you from the conditions of this License. If you cannot
  379 +distribute so as to satisfy simultaneously your obligations under this
  380 +License and any other pertinent obligations, then as a consequence you
  381 +may not distribute the Library at all. For example, if a patent
  382 +license would not permit royalty-free redistribution of the Library by
  383 +all those who receive copies directly or indirectly through you, then
  384 +the only way you could satisfy both it and this License would be to
  385 +refrain entirely from distribution of the Library.
  386 +
  387 +If any portion of this section is held invalid or unenforceable under any
  388 +particular circumstance, the balance of the section is intended to apply,
  389 +and the section as a whole is intended to apply in other circumstances.
  390 +
  391 +It is not the purpose of this section to induce you to infringe any
  392 +patents or other property right claims or to contest validity of any
  393 +such claims; this section has the sole purpose of protecting the
  394 +integrity of the free software distribution system which is
  395 +implemented by public license practices. Many people have made
  396 +generous contributions to the wide range of software distributed
  397 +through that system in reliance on consistent application of that
  398 +system; it is up to the author/donor to decide if he or she is willing
  399 +to distribute software through any other system and a licensee cannot
  400 +impose that choice.
  401 +
  402 +This section is intended to make thoroughly clear what is believed to
  403 +be a consequence of the rest of this License.
  404 +
  405 + 12. If the distribution and/or use of the Library is restricted in
  406 +certain countries either by patents or by copyrighted interfaces, the
  407 +original copyright holder who places the Library under this License may add
  408 +an explicit geographical distribution limitation excluding those countries,
  409 +so that distribution is permitted only in or among countries not thus
  410 +excluded. In such case, this License incorporates the limitation as if
  411 +written in the body of this License.
  412 +
  413 + 13. The Free Software Foundation may publish revised and/or new
  414 +versions of the Lesser General Public License from time to time.
  415 +Such new versions will be similar in spirit to the present version,
  416 +but may differ in detail to address new problems or concerns.
  417 +
  418 +Each version is given a distinguishing version number. If the Library
  419 +specifies a version number of this License which applies to it and
  420 +"any later version", you have the option of following the terms and
  421 +conditions either of that version or of any later version published by
  422 +the Free Software Foundation. If the Library does not specify a
  423 +license version number, you may choose any version ever published by
  424 +the Free Software Foundation.
  425 +
  426 + 14. If you wish to incorporate parts of the Library into other free
  427 +programs whose distribution conditions are incompatible with these,
  428 +write to the author to ask for permission. For software which is
  429 +copyrighted by the Free Software Foundation, write to the Free
  430 +Software Foundation; we sometimes make exceptions for this. Our
  431 +decision will be guided by the two goals of preserving the free status
  432 +of all derivatives of our free software and of promoting the sharing
  433 +and reuse of software generally.
  434 +
  435 + NO WARRANTY
  436 +
  437 + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
  438 +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
  439 +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
  440 +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
  441 +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
  442 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  443 +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
  444 +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
  445 +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  446 +
  447 + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  448 +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
  449 +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
  450 +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  451 +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
  452 +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
  453 +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
  454 +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
  455 +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
  456 +DAMAGES.
  457 +
  458 + END OF TERMS AND CONDITIONS
  459 +
... ...
pacotes/jsobjects/Readme.txt 0 → 100644
... ... @@ -0,0 +1,42 @@
  1 +jsObjects
  2 +By: Jonathan Wise
  3 +www.jonandnic.com
  4 +
  5 +License
  6 +jsObjects are distributed under a lesser GPL license.
  7 +You are free to use this product and/or produce derivative works from it,
  8 +provided that the original source code, and this license are included,
  9 +and that the original author, Jonathan Wise, is credited.
  10 +
  11 +1.0 - Initial Release
  12 +1.2 - Included jsDA-wsBind
  13 +1.3 - Included jsUI-Grid
  14 +1.4 - Included jsUI-Tabstrip
  15 +1.5 - Additions to common functions (jsUI-Global)
  16 +1.6 - Better error handling on jsDA-wsBind, improvements to jsUI-Grid
  17 +1.7 - Asynchronous web service call functionality added
  18 + Changed the way skins load for the tab strip
  19 + getGridData enhanced, now matches getFormData schema
  20 + Improved cell edit mode in Grid
  21 +1.8 - Improves asynchronous calls, adds functionality to the tabstrip
  22 + Introduces keyboard controls and a removeRow function to the Grid
  23 +1.9 - Improved keyboard controls in Grid
  24 + New datatypes added for jsUI-Textbox
  25 +2.0 - Massive improvements to keyboard controls in grid
  26 + Added jsUI-Textbox integration for input constraints
  27 + Changed checkbox behaviour
  28 + Minor changes to jsUI-Textbox
  29 +2.1 - Began project to update all documentation into standard XML schema
  30 +2.1a - More documentation updated
  31 +2.1b - Standardized and began replacing samples
  32 +2.2 - Added currentTab property to the jsUI-Tabstrip
  33 + Fixed sizing problems in jsUI-Toolbar and jsUI-Tabstrip in latest build of Firefox
  34 + Added keyFailed event to jsUI-Textbox
  35 + Updated samples
  36 +2.3 - Finished updating samples
  37 + Major improvements to Grid sizing problems
  38 + Added local sample webservice for jsDA-wsBind, for use on a .NET Framework 2.0
  39 + (or compatible)server
  40 +2.4 - Added Installer
  41 + Minor Grid fixes
  42 +2.4.1 - Minor bug fixes
0 43 \ No newline at end of file
... ...
pacotes/jsobjects/Web.Config 0 → 100644
... ... @@ -0,0 +1,47 @@
  1 +<?xml version="1.0"?>
  2 +<!--
  3 + Note: As an alternative to hand editing this file you can use the
  4 + web admin tool to configure settings for your application. Use
  5 + the Website->Asp.Net Configuration option in Visual Studio.
  6 + A full list of settings and comments can be found in
  7 + machine.config.comments usually located in
  8 + \Windows\Microsoft.Net\Framework\v2.x\Config
  9 +-->
  10 +<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  11 + <appSettings/>
  12 + <connectionStrings/>
  13 + <system.web>
  14 + <!--
  15 + Set compilation debug="true" to insert debugging
  16 + symbols into the compiled page. Because this
  17 + affects performance, set this value to true only
  18 + during development.
  19 + -->
  20 + <compilation debug="true">
  21 + <compilers>
  22 + <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics,System.Web,System.Web.Services /define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics,System.Web,System.Web.Services /define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics,System.Web,System.Web.Services"/></compilers></compilation>
  23 + <!--
  24 + The <authentication> section enables configuration
  25 + of the security authentication mode used by
  26 + ASP.NET to identify an incoming user.
  27 + -->
  28 + <authentication mode="Windows"/>
  29 + <!--
  30 + The <customErrors> section enables configuration
  31 + of what to do if/when an unhandled error occurs
  32 + during the execution of a request. Specifically,
  33 + it enables developers to configure html error pages
  34 + to be displayed in place of a error stack trace.
  35 +
  36 + <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  37 + <error statusCode="403" redirect="NoAccess.htm"/>
  38 + <error statusCode="404" redirect="FileNotFound.htm"/>
  39 + </customErrors>
  40 + -->
  41 + <pages>
  42 + <namespaces>
  43 + <add namespace="Microsoft.VisualBasic"/>
  44 + <add namespace="System.Data"/>
  45 + <add namespace="System.Diagnostics"/>
  46 + <add namespace="System.Web.Services"/></namespaces></pages></system.web>
  47 +</configuration>
... ...
pacotes/jsobjects/documentation.css 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 +ul {text-align:left;list-style-type:none;padding-left: 15px;margin-left:5px; margin-top:15px;}
  2 +li {margin-top:-10px;margin-bottom:15px;}
  3 +.toc {margin-left: 15px;}
  4 +.details {margin-left: 5px;}
  5 +h3 { margin-top:0px; margin-bottom:0px; font-size:18px; color: #3B6BD2;}
  6 +.sample {padding-left: 10px; font-size: 12px; margin-bottom: 25px; padding-bottom: 5px; border-bottom: 5px solid #3B6BD2;}
  7 +.description {padding-left: 10px; font-size: 12px; margin-top: 10px; margin-bottom: 25px; padding-bottom: 5px; border-bottom: 1px dotted gray;}
  8 +.header {background-color: #5B84EE; padding-top:3px;padding-bottom:3px;padding-left:3px;padding-right:3px; border: 1px solid #C0C0C0; }
  9 +.footer {background-color: #E4E4E4;padding-top:3px;padding-bottom:3px;padding-left:10px;padding-right:3px; border: 1px solid #C0C0C0; }
  10 +.code {background-color: #F1F1F1; font-family: Courier New; font-size: 9pt; color: #000080; padding: 5px;}
  11 +.function {width:94%; background-color: #C0C0C0; border: 1px solid #A0A0A0; padding: 5px;font-family: Courier New; font-size: 9pt;}
  12 +body {font-family: verdana;font-size: 8pt;}
  13 +td {font-family: verdana;font-size: 8pt;}
  14 +th {font-family: verdana;font-size: 8pt;}
  15 +.ftable {padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;}
  16 +input { font-size: 11px; }
  17 +select { font-size: 11px; }
... ...
pacotes/jsobjects/documentation.xml 0 → 100644
... ... @@ -0,0 +1,79 @@
  1 +<?xml version="1.0"?>
  2 +<?xml:stylesheet type="text/xsl" href="documentation.xsl"?>
  3 +<?xml-stylesheet href="documentation.xsl" type="text/xsl" media="screen"?>
  4 +<doc xml:whitespace="preserve">
  5 + <assembly>
  6 + <name>jsUI-Treeview</name>
  7 + <code>
  8 + <c>var mytreeview = new Object();</c>
  9 + <c>mytreeview = treeviewNew("mytreeview", "default", document.getElementById("treeCell"), null);</c>
  10 + <c>mytreeview.itemClick = doClick;</c>
  11 + <c>mytreeview.itemExpand = loadBranch;</c>
  12 + <c>mytreeview.createItem("item1", "First Item", "../images/icon.jpg", true, true, true, null);</c>
  13 + <c>mytreeview.createItem("item1-1", "First Item Child", "../images/icon.jpg", true, true, true, "item1");</c>
  14 + </code>
  15 + <remarks>The treeview is a nested navigation control, based on those frequently found in Windows or the MacOS. It is compatible with Internet Explorer 5.0 and FireFox 1.0 or better.</remarks>
  16 + <requirements>
  17 + <para>jsUI-Global/common.js</para>
  18 + <para>jsUI-Global/uiCommon.js</para>
  19 + <para>jsUI-Treeview/component.js</para>
  20 + </requirements>
  21 + <sample>index.htm</sample>
  22 + </assembly>
  23 + <Property>
  24 + <member name="treeviewParent">
  25 + <summary>The DOM object to which the treeview is attached. Frequently a DIV or TD.</summary>
  26 + <code>alert (mytreeview.treeviewParent.id);</code>
  27 + <remarks>DOM Object. This property is assigned on instantiation and is read only.</remarks>
  28 + </member>
  29 + <member name="rootDir">
  30 + <summary>Gets or sets the string value representing the path to the root of the jsObjects directory. Used for calculating style and graphics file paths. Initially set during instantiation.</summary>
  31 + <code>mytreeview.rootDir = "http://localhost/libraries/jsobjects";</code>
  32 + <default>http://&lt;server&gt;/jsObjects</default>
  33 + <remarks>String. This value only needs to be set if jsObjects is installed in a custom location.</remarks>
  34 + </member>
  35 + </Property>
  36 + <Method>
  37 + <member name="treeviewNew (string, string, object, string)">
  38 + <summary>Instantiates the treeview through assignment into a Javascript object.</summary>
  39 + <param name="treeviewName">Required. The name for the new treeview. Must match the name of an empty Javascript object to contain the treeview.</param>
  40 + <param name="skinName">Optional. The name of the CSS (excluding the extension and path) file to use for the treeview. If left blank, "default" will be used.</param>
  41 + <param name="treeviewParent">Optional. The DOM object that the treeview is to be attached to. If no value is passed, the treeview will be appended to document.body</param>
  42 + <param name="rootDir">Optional. The path to the root of the jsObjects directory. If left blank, the default path will be used.</param>
  43 + <code>
  44 + <c>var mytreeview = new Object();</c>
  45 + <c>mytreeview = treeviewNew("mytreeview", "default", document.getElementById("treeviewDiv"), "../jsobjects");</c>
  46 + </code>
  47 + <returns>The treeview object.</returns>
  48 + <remarks>This is the only method that does not appear to be a member of the object -- because the object can't have members until it's instantiated. A blank object is created and will be filled with the jsUI-treeview members.</remarks>
  49 + </member>
  50 + <member name="createItem (string, string, string, boolean, boolean, boolean, string)">
  51 + <summary>Creates a branch icon in the specified folder in the treeview.</summary>
  52 + <param name="itemID">Required. A unique string to be used as the DOM ID for the new tree item.</param>
  53 + <param name="itemName">Required. The text that appears as the title of the new tree item.</param>
  54 + <param name="itemImg">Optional. The icon for the new tree item.</param>
  55 + <param name="hasChildren">Required. Indicates whether or not there are children below the new tree item. If null is passed an "indeterminate" indicator is used to show the user that the heirarchy is not known until the item is expanded.</param>
  56 + <param name="preload">Required. Indicates whether or not the item has been pre-loaded. This is used to determine the show/hide behaviour of children. If a nodes children are populated by a local function, then preload is false, since that function can be called to re-populate the branch next time it is expanded. If, however, the branch was pre-loaded by server-side code, or some non-local function, the parent node's heirarchy will be preserved -- hidden and shown, on collapse/expand -- instead of being destroyed and re-created.</param>
  57 + <param name="show">Required. Determines whether or not to show the item on the tree. If the item is a child of an un-expanded parent, then show should be false.</param>
  58 + <param name="parentID">Required. The parent item to add the new item to. If omitted, the new item will be appended to the root item of the tree, or the last item on the root level.</param>
  59 + <code>mytreeview.createItem("item1", "First Item", "../images/icon.jpg", true, true, true, null);</code>
  60 + <returns>Nothing</returns>
  61 + </member>
  62 + </Method>
  63 + <Event>
  64 + <member name="itemClick">
  65 + <summary>Fires whenever a item is clicked, passing the ID of target object, so that external code can respond.</summary>
  66 + <code>
  67 + mytreeview.itemClick = <i>handler</i>;
  68 + </code>
  69 + <remarks>The handler should accept one string parameter which will contain the ID of the button clicked.</remarks>
  70 + </member>
  71 + <member name="itemExpand">
  72 + <summary>Fires whenever a tree branch expand action happens, passing the ID of target object, so that external code can respond by populating the target node's children.</summary>
  73 + <code>
  74 + mytreeview.itemExpand = <i>handler</i>;
  75 + </code>
  76 + <remarks>The handler should accept one string parameter which will contain the ID of the button clicked.</remarks>
  77 + </member>
  78 + </Event>
  79 +</doc>
0 80 \ No newline at end of file
... ...
pacotes/jsobjects/documentation.xsl 0 → 100644
... ... @@ -0,0 +1,411 @@
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3 + <xsl:template name="JSCRIPT">
  4 + <script>
  5 + <![CDATA[
  6 + var currname = "";
  7 + var currparams = new Array();
  8 + var pcount = 0;
  9 + if (document.all)
  10 + browser = "IE";
  11 + else
  12 + browser = "MOZ";
  13 +
  14 + function getParams(param)
  15 + {
  16 + currparams[pcount] = param;
  17 + pcount=pcount + 1;
  18 + }
  19 + function getCode(name, obj)
  20 + {
  21 + currname = name.split("(");
  22 + var parampart = currname[1];
  23 + parampart = parampart.replace(")", "")
  24 + parampart = parampart.split(",");
  25 +
  26 + for (i = 0; i < parampart.length; i++)
  27 + {
  28 + parampart[i] = "<br/><font color='#c0c0c0'>.....</font>" + parampart[i].replace(" ", "") + " <b>" + currparams[i] + "</b>"
  29 + }
  30 +
  31 + currname = "<b>" + currname[0] + "</b>(" + parampart + "<br/>);";
  32 + if (document.all)
  33 + document.writeln(currname);
  34 + else
  35 + document.getElementById(obj).innerHTML = currname;
  36 + }
  37 + function getFunction(name, obj)
  38 + {
  39 + if(name.indexOf("(") != "-1")
  40 + {
  41 + currname = name.split("(");
  42 + var parampart = currname[1];
  43 + parampart = parampart.replace(")", "")
  44 + parampart = parampart.split(",");
  45 +
  46 + currname = "<b>" + currname[0] + "</b>(" + parampart + ");";
  47 + if (document.all)
  48 + document.writeln(currname);
  49 + else
  50 + document.getElementById(obj).innerHTML = currname;
  51 + }
  52 + else
  53 + {
  54 + if (document.all)
  55 + document.writeln("");
  56 + }
  57 + }
  58 + function getName(name)
  59 + {
  60 + currname = name.split("(");
  61 + document.writeln (currname[0]);
  62 + }
  63 + function resetCount()
  64 + {
  65 + pcount = 0;
  66 + return "";
  67 + }
  68 + ]]>
  69 +
  70 + </script>
  71 + </xsl:template>
  72 + <xsl:template match="doc">
  73 +
  74 + <html>
  75 + <head>
  76 + <title>
  77 + <xsl:value-of select="assembly/name" /> Library Documentation</title>
  78 + <link rel='stylesheet' type='text/css' href='../documentation.css'></link>
  79 + <LINK REL="shortcut icon" HREF="../images/jsobjects-s.ico" TYPE="image/x-icon"/>
  80 + <xsl:call-template name="JSCRIPT"/>
  81 + </head>
  82 + <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" vlink="#0000ff" link="#0000ff" alink="#0000ff">
  83 + <div class="header" width="100%">
  84 + <table border="0" width="98%" cellpadding="0" cellspacing="0">
  85 + <tr><td>
  86 + <b>
  87 + <i>
  88 + <span style="FONT-SIZE: 10pt"><xsl:value-of select="assembly/name" /> Library Documentation</span>
  89 + </i>
  90 + </b>
  91 + <br />
  92 + </td>
  93 + <td align="right">
  94 + <a style="color:white" href="../index.htm">Home</a>
  95 + </td>
  96 + </tr>
  97 + </table>
  98 + </div>
  99 + <xsl:if test="assembly/remarks">
  100 + <blockquote class="details">
  101 + <b>Remarks</b>
  102 + <ul>
  103 + <li>
  104 + <xsl:if test="count(assembly/remarks/para) > 0">
  105 + <xsl:for-each select="assembly/remarks/para">
  106 + <xsl:value-of select="." />
  107 + <br />
  108 + </xsl:for-each>
  109 + </xsl:if>
  110 + <xsl:if test="count(assembly/remarks/para) = 0">
  111 + <xsl:value-of select="assembly/remarks" />
  112 + </xsl:if>
  113 + </li>
  114 + </ul>
  115 + </blockquote>
  116 + </xsl:if>
  117 + <xsl:if test="assembly/requirements">
  118 + <blockquote class="details">
  119 + <b>Requirements</b>
  120 + <ul>
  121 + <li>
  122 + <xsl:if test="count(assembly/requirements/para) > 0">
  123 + <xsl:for-each select="assembly/requirements/para">
  124 + <xsl:value-of select="." />
  125 + <br />
  126 + </xsl:for-each>
  127 + </xsl:if>
  128 + <xsl:if test="count(assembly/requirements/para) = 0">
  129 + <xsl:value-of select="assembly/requirements" />
  130 + </xsl:if>
  131 + </li>
  132 + </ul>
  133 + </blockquote>
  134 + </xsl:if>
  135 + <xsl:if test="assembly/code">
  136 + <blockquote class="details">
  137 + <b>Sample Code</b>
  138 + <br />
  139 + <ul>
  140 + <li class="code">
  141 + <xsl:if test="count(assembly/code/c) > 0">
  142 + <xsl:for-each select="assembly/code/c">
  143 + <xsl:value-of select="." />
  144 + <br />
  145 + </xsl:for-each>
  146 + </xsl:if>
  147 + <xsl:if test="count(assembly/code/c) = 0">
  148 + <xsl:value-of select="assembly/code" />
  149 + </xsl:if>
  150 + </li>
  151 + </ul>
  152 + </blockquote>
  153 + </xsl:if>
  154 + <xsl:if test="assembly/sample">
  155 + <blockquote class="details">
  156 + <b>
  157 + <a>
  158 + <xsl:attribute name="href">
  159 + <xsl:value-of select="assembly/sample"/>
  160 + </xsl:attribute>
  161 + Sample Implementation
  162 + </a>
  163 + </b>
  164 + </blockquote>
  165 + </xsl:if>
  166 + <div class="header" width="100%">
  167 + <table border="0" width="95%" cellpadding="0" cellspacing="0">
  168 + <tr>
  169 + <td>
  170 + <b>
  171 + <span style="font-size: 10pt">
  172 + <a name="members"> Members</a>
  173 + </span>
  174 + </b>
  175 + </td>
  176 + </tr>
  177 + </table>
  178 + </div>
  179 + <!--Table of Contents-->
  180 + <blockquote class="toc">
  181 + <table bgcolor="#A0A0A0" border="0" cellspacing="1" align="center" class="ftable" style="padding:0px">
  182 + <tr>
  183 + <th class="ftable" align="left" bgcolor="#D0D0D0">Type</th>
  184 + <th class="ftable" align="left" bgcolor="#D0D0D0">Member</th>
  185 + <th class="ftable" align="left" bgcolor="#D0D0D0">Description</th>
  186 + </tr>
  187 + <xsl:for-each select="//member">
  188 + <xsl:sort order="ascending" select="name(../.)"/>
  189 + <xsl:sort order="ascending" select="@name" />
  190 + <tr>
  191 + <td class="ftable" bgcolor="#FFFFFF" valign="top">
  192 + <b>
  193 + <xsl:value-of select="name(../.)"/>
  194 + </b>
  195 + </td>
  196 + <td class="ftable" bgcolor="#FFFFFF" width="50%" valign="top">
  197 + <a>
  198 + <xsl:attribute name="href">#<xsl:value-of select="@name" /></xsl:attribute>
  199 + <xsl:value-of select="@name" />
  200 + </a>
  201 + <xsl:if test="@private='true'">
  202 + <i> private</i>
  203 + </xsl:if>
  204 + </td>
  205 + <td class="ftable" bgcolor="#FFFFFF" width="50%" valign="top">
  206 + <xsl:value-of select="summary" />
  207 + </td>
  208 + </tr>
  209 + </xsl:for-each>
  210 + </table>
  211 + <br/>
  212 + </blockquote>
  213 + <hr style="page-break-before: always" size="0" color="#FFFFFF" />
  214 + <!--Each Function-->
  215 + <xsl:for-each select="//member">
  216 + <xsl:sort order="ascending" select="@name" />
  217 + <div class="header" width="100%">
  218 + <table border="0" width="98%" cellpadding="0" cellspacing="0">
  219 + <tr>
  220 + <td>
  221 + <b>
  222 + <a>
  223 + <xsl:attribute name="name">
  224 + <xsl:value-of select="@name" />
  225 + </xsl:attribute>
  226 + <xsl:value-of select="@name" />
  227 + </a>
  228 + </b>
  229 + <xsl:if test="@private='true'">
  230 + <i> Private</i>
  231 + </xsl:if>
  232 + <xsl:value-of select= "concat(' ',name(../.))"/>
  233 + </td>
  234 + <td align="right">
  235 + <a style="color:white" href="#members">Contents</a>
  236 + </td>
  237 + </tr>
  238 + </table>
  239 + </div>
  240 +
  241 + <!--Summary-->
  242 + <ul>
  243 + <li>
  244 + <xsl:if test="count(summary/para) > 0">
  245 + <xsl:for-each select="summary/para">
  246 + <xsl:value-of select="." />
  247 + <br />
  248 + </xsl:for-each>
  249 + </xsl:if>
  250 + <xsl:if test="count(summary/para) = 0">
  251 + <xsl:value-of select="summary" />
  252 + </xsl:if>
  253 + </li>
  254 + <!--Function Code Segment-->
  255 + <xsl:if test="contains(@name, '(')">
  256 + <li></li>
  257 + <li>
  258 + <div class="function">
  259 + <xsl:attribute name="id">
  260 + <xsl:value-of select="@name" />
  261 + </xsl:attribute>
  262 + <script>resetCount()</script>
  263 + <xsl:if test="count(param) > 0">
  264 + <xsl:for-each select="param">
  265 + <script>getParams('<xsl:value-of select="@name" />');</script>
  266 + </xsl:for-each>
  267 + <script>getCode('<xsl:value-of select="@name" />', '<xsl:value-of select="@name"/>');</script>
  268 + </xsl:if>
  269 + <xsl:if test="count(param) = 0">
  270 + <script>getFunction('<xsl:value-of select="@name" />', '<xsl:value-of select="@name"/>')</script>
  271 + </xsl:if>
  272 + </div>
  273 + </li>
  274 + </xsl:if>
  275 + </ul>
  276 + <blockquote class="details">
  277 + <!--Parameters Segment-->
  278 + <xsl:if test="count(param) > 0">
  279 + <b>Parameters</b>
  280 + <ul>
  281 + <xsl:for-each select="param">
  282 + <li>
  283 + <i>
  284 + <xsl:value-of select="@name" />
  285 + </i>
  286 + </li>
  287 + <ul>
  288 + <li>
  289 + <xsl:if test="count(para) > 0">
  290 + <xsl:for-each select="para">
  291 + <xsl:value-of select="." />
  292 + <br />
  293 + </xsl:for-each>
  294 + </xsl:if>
  295 + <xsl:if test="count(para) = 0">
  296 + <xsl:value-of select="." />
  297 + </xsl:if>
  298 + </li>
  299 + </ul>
  300 + </xsl:for-each>
  301 + </ul>
  302 + </xsl:if>
  303 + <!--Returns Segment-->
  304 + <xsl:if test="default">
  305 + <b>Default</b>
  306 + <br />
  307 + <ul>
  308 + <li>
  309 + <xsl:value-of select="default" />
  310 + </li>
  311 + </ul>
  312 + </xsl:if>
  313 + <!--Returns Segment-->
  314 + <xsl:if test="returns">
  315 + <b>Returns</b>
  316 + <br />
  317 + <ul>
  318 + <li>
  319 + <xsl:if test="count(returns/para) > 0">
  320 + <xsl:for-each select="returns/para">
  321 + <xsl:value-of select="." />
  322 + <br />
  323 + </xsl:for-each>
  324 + </xsl:if>
  325 + <xsl:if test="count(returns/para) = 0">
  326 + <xsl:value-of select="returns" />
  327 + </xsl:if>
  328 + </li>
  329 + </ul>
  330 + </xsl:if>
  331 + <!--Sample Code By Itself-->
  332 + <xsl:if test="code">
  333 + <b>Sample Code</b>
  334 + <br />
  335 + <ul>
  336 + <li class="code">
  337 + <xsl:if test="count(code/c) > 0">
  338 + <xsl:for-each select="code/c">
  339 + <xsl:value-of select="." />
  340 + <br />
  341 + </xsl:for-each>
  342 + </xsl:if>
  343 + <xsl:if test="count(code/c) = 0">
  344 + <xsl:value-of select="code" />
  345 + </xsl:if>
  346 + </li>
  347 + </ul>
  348 + </xsl:if>
  349 + <!--Remarks-->
  350 + <xsl:if test="remarks">
  351 + <b>Remarks</b>
  352 + <br />
  353 + <ul>
  354 + <li>
  355 + <xsl:if test="count(remarks/para) > 0">
  356 + <xsl:for-each select="remarks/para">
  357 + <xsl:value-of select="." />
  358 + <br />
  359 + </xsl:for-each>
  360 + </xsl:if>
  361 + <xsl:if test="count(remarks/para) = 0">
  362 + <xsl:value-of select="remarks" />
  363 + </xsl:if>
  364 + </li>
  365 + </ul>
  366 + <!--Example Code within remarks-->
  367 + <xsl:if test="example">
  368 + <b>Example</b>
  369 + <br />
  370 + <ul>
  371 + <li class="code">
  372 + <xsl:if test="count(example/c) > 0">
  373 + <xsl:for-each select="example/c">
  374 + <xsl:value-of select="." />
  375 + <br />
  376 + </xsl:for-each>
  377 + </xsl:if>
  378 + <xsl:if test="count(example/c) = 0">
  379 + <xsl:value-of select="example" />
  380 + </xsl:if>
  381 + </li>
  382 + </ul>
  383 + </xsl:if>
  384 + </xsl:if>
  385 + <!--See Also-->
  386 + <xsl:if test="count(seealso) > 0">
  387 + <b>See Also</b>
  388 + <br />
  389 + <ul>
  390 + <xsl:for-each select="seealso">
  391 + <li>
  392 + <a>
  393 + <xsl:attribute name="href">#<xsl:value-of select="@cref" /></xsl:attribute>
  394 + <xsl:value-of select="@cref" />
  395 + </a>
  396 + </li>
  397 + </xsl:for-each>
  398 + </ul>
  399 + </xsl:if>
  400 + </blockquote>
  401 + <hr style="page-break-before: always" size="0" color="#FFFFFF" />
  402 + </xsl:for-each>
  403 + <br />
  404 + <div class="footer">
  405 + © 2005 Jonathan Wise. <a href="license.txt">Some rights reserved</a>.
  406 + </div>
  407 + <br />
  408 + </body>
  409 + </html>
  410 + </xsl:template>
  411 +</xsl:stylesheet>
0 412 \ No newline at end of file
... ...
pacotes/jsobjects/images/AppCentral.gif 0 → 100644

1.35 KB

pacotes/jsobjects/images/Thumbs.db 0 → 100644
No preview for this file type
pacotes/jsobjects/images/addressbook-s.gif 0 → 100644

116 Bytes

pacotes/jsobjects/images/bgTask.gif 0 → 100644

357 Bytes

pacotes/jsobjects/images/checked.gif 0 → 100644

360 Bytes

pacotes/jsobjects/images/checkmark.gif 0 → 100644

295 Bytes

pacotes/jsobjects/images/cmdBulleted.gif 0 → 100644

91 Bytes

pacotes/jsobjects/images/cmdCenter.gif 0 → 100644

72 Bytes

pacotes/jsobjects/images/cmdImage.gif 0 → 100644

613 Bytes

pacotes/jsobjects/images/cmdIndent.gif 0 → 100644

97 Bytes

pacotes/jsobjects/images/cmdLeft.gif 0 → 100644

73 Bytes

pacotes/jsobjects/images/cmdLink.gif 0 → 100644

1.02 KB

pacotes/jsobjects/images/cmdNumbered.gif 0 → 100644

94 Bytes

pacotes/jsobjects/images/cmdOpen.gif 0 → 100644

112 Bytes

pacotes/jsobjects/images/cmdOutdent.gif 0 → 100644

98 Bytes

pacotes/jsobjects/images/cmdRight.gif 0 → 100644

72 Bytes

pacotes/jsobjects/images/cmdSave.gif 0 → 100644

890 Bytes

pacotes/jsobjects/images/cmdStrike.gif 0 → 100644

204 Bytes

pacotes/jsobjects/images/cmdSub.gif 0 → 100644

211 Bytes

pacotes/jsobjects/images/cmdSuper.gif 0 → 100644

211 Bytes

pacotes/jsobjects/images/cmdToggle.gif 0 → 100644

86 Bytes

pacotes/jsobjects/images/cmdb.gif 0 → 100644

79 Bytes

pacotes/jsobjects/images/cmdi.gif 0 → 100644

71 Bytes

pacotes/jsobjects/images/cmdu.gif 0 → 100644

79 Bytes

pacotes/jsobjects/images/computer-s.gif 0 → 100644

1.01 KB

pacotes/jsobjects/images/connected-s.gif 0 → 100644

996 Bytes

pacotes/jsobjects/images/connected.gif 0 → 100644

1.46 KB

pacotes/jsobjects/images/copy.gif 0 → 100644

895 Bytes

pacotes/jsobjects/images/cut.gif 0 → 100644

872 Bytes

pacotes/jsobjects/images/delete.gif 0 → 100644

868 Bytes

pacotes/jsobjects/images/display-s.gif 0 → 100644

1.52 KB

pacotes/jsobjects/images/doc.gif 0 → 100644

76 Bytes

pacotes/jsobjects/images/dot.gif 0 → 100644

304 Bytes

pacotes/jsobjects/images/drive-s.gif 0 → 100644

564 Bytes

pacotes/jsobjects/images/edit.gif 0 → 100644

908 Bytes

pacotes/jsobjects/images/folder-s.gif 0 → 100644

124 Bytes

pacotes/jsobjects/images/handle.gif 0 → 100644

68 Bytes

pacotes/jsobjects/images/help.gif 0 → 100644

1.72 KB

pacotes/jsobjects/images/info.gif 0 → 100644

1.66 KB

pacotes/jsobjects/images/jsObjects-s.gif 0 → 100644

1.01 KB

pacotes/jsobjects/images/jsObjects-s.ico 0 → 100644
No preview for this file type
pacotes/jsobjects/images/jsObjects.gif 0 → 100644

342 Bytes

pacotes/jsobjects/images/jsObjects.ico 0 → 100644
No preview for this file type
pacotes/jsobjects/images/minus.gif 0 → 100644

303 Bytes

pacotes/jsobjects/images/new.gif 0 → 100644

90 Bytes

pacotes/jsobjects/images/open.gif 0 → 100644

886 Bytes

pacotes/jsobjects/images/paste.gif 0 → 100644

917 Bytes

pacotes/jsobjects/images/plus.gif 0 → 100644

303 Bytes

pacotes/jsobjects/images/rowEdit.gif 0 → 100644

67 Bytes

pacotes/jsobjects/images/save.gif 0 → 100644

890 Bytes

pacotes/jsobjects/images/seperator.gif 0 → 100644

55 Bytes

pacotes/jsobjects/images/unchecked.gif 0 → 100644

351 Bytes

pacotes/jsobjects/images/unknown.gif 0 → 100644

303 Bytes

pacotes/jsobjects/images/user-s.gif 0 → 100644

171 Bytes

pacotes/jsobjects/images/vssver.scc 0 → 100644
No preview for this file type
pacotes/jsobjects/index.htm 0 → 100644
... ... @@ -0,0 +1,179 @@
  1 +<html>
  2 +
  3 +<head>
  4 + <title>jsObjects Collection</title>
  5 + <link rel='stylesheet' type='text/css' href='documentation.css'></link>
  6 + <LINK REL="shortcut icon" HREF="images/jsobjects-s.ico" TYPE="image/x-icon">
  7 +</head>
  8 +
  9 +<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" vlink="#0000ff" link="#0000ff" alink="#0000ff">
  10 +
  11 +<div class="header" width="100%">
  12 + <table cellSpacing="0" cellPadding="0" width="98%" border="0">
  13 + <tr>
  14 + <td><b><i><span style="FONT-SIZE: 10pt">jsObjects Collection</span></i> - Version 2.4.1</b></td>
  15 + <td align="right">
  16 + By: <a style="color:white" href="http://www.jonandnic.com/jonathan">Jonathan Wise</a>&nbsp;</td>
  17 + </tr>
  18 + </table>
  19 +</div>
  20 +<blockquote class="details">
  21 + <p><b>About</b> </p>
  22 + <ul>
  23 + <li><img src="images/jsobjects.gif" align="left" />jsObjects are a collection of <a href="http://en.wikipedia.org/wiki/AJAX">AJAX</a>
  24 + controls that can be used to rapidly build professional
  25 + looking web applications. The objects are written in pure Javascript and, unless
  26 + noted otherwise, work in both Internet Explorer and Firefox.<br />
  27 + Click on the component links below to read the documentation and view a sample.<br /><br />
  28 + - <a href="readme.txt">Change Log</a>
  29 + </li></ul>
  30 +</blockquote>
  31 +<blockquote class="details">
  32 + <p><b>Purpose</b> </p>
  33 + <ul>
  34 + <li>Although DHTML is a powerful tool for controlling page elements, HTML has traditionally lacked the toolkit of a traditional development environment. ActiveX or Java controls can help, but security or virtual machines issues make deployment a problem. DHTML behaviours and XUL offer much of the functionality of these binary (or close to binary) methods, but they are not browser independant.
  35 + jsObjects solves these problems using AJAX -- a relatively new, but increasingly popular, combination of existing
  36 + technologies to create dynamic and interactive applications. jsObjects provides
  37 + controls for both user interface and data access without a single line of compiled
  38 + client-side code.</li></ul>
  39 +</blockquote>
  40 +
  41 +<blockquote class="details">
  42 + <p><b>Requirements</b> </p>
  43 + <ul>
  44 + <li>In general, the components require Internet Explorer 5.0 or Mozilla FireFox 1.0
  45 + as a minimum. The data access components are written to consume .NET webservice
  46 + responses and haven't been tested on any other webservices. The do however, handle
  47 + well formed WSDL, so should theoretically work with any compliant server.&nbsp;</li></ul>
  48 +</blockquote>
  49 +<blockquote class="details">
  50 + <p><b>Get jsObjects</b></p>
  51 + <ul>
  52 + <li>
  53 + - <a href="http://www.jonandnic.com/jsobjects/jsObjects.zip">Download the Zip File</a><br />
  54 + - <a href="http://www.jonandnic.com/jsobjects/jsObjectsSetup.msi">Download the Installer</a> (Windows Servers only)</li></ul>
  55 +</blockquote>
  56 +<div class="header" width="100%">
  57 + <table cellSpacing="0" cellPadding="0" width="98%" border="0">
  58 + <tr>
  59 + <td><b><span style="FONT-SIZE: 10pt"><a name="members">Members</a></span></b></td>
  60 + </tr>
  61 + </table>
  62 +</div>
  63 +<blockquote class="toc">
  64 + <table class="ftable" cellSpacing="1" align="center" bgColor="#a0a0a0" border="0" style="padding:0px">
  65 + <tr>
  66 + <th class="ftable" align="left" bgColor="#d0d0d0" width="100">Type</th>
  67 + <th class="ftable" align="left" bgColor="#d0d0d0" width="165">Member</th>
  68 + <th class="ftable" align="left" bgColor="#d0d0d0">Description</th>
  69 + </tr>
  70 + <tr>
  71 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Common</b></td>
  72 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  73 + <b>jsUI-Global</b><br />
  74 + &nbsp;&nbsp; - <a href="jsui-global/documentation.xml">Reference</a></td>
  75 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  76 + Private and public extensions to Javascript that provide core functionality for
  77 + all jsObjects, as well as enhancing Javascript functionality with simple solutions
  78 + for common problems involved in dealing with XML and cross-browser programming.</td>
  79 + </tr>
  80 + <tr>
  81 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  82 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  83 + <b>jsUI-Taskbar</b><br />
  84 + &nbsp;&nbsp; - <a href="jsui-taskbar/documentation.xml">Reference</a><br />
  85 + &nbsp;&nbsp; - <a href="jsui-taskbar/index.htm">Sample</a></td>
  86 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  87 + A cross-browser functional, re-useable taskbar element that can be easily added
  88 + to any web page. Supports multiple instances, programmatic creation, and skins.</td>
  89 + </tr>
  90 + <tr>
  91 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  92 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  93 + <b>jsUI-Treeview</b><br />
  94 + &nbsp;&nbsp; - <a href="jsUI-Treeview/documentation.xml">Reference</a><br />
  95 + &nbsp;&nbsp; - <a href="jsUI-Treeview/index.htm">Sample</a></td>
  96 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  97 + A cross-browser functional, re-useable treeview element that can be easily added
  98 + to any web page. Supports multiple instances, programmatic creation, and skins.
  99 + Can handle preloaded data, such as server-side population, or by-level data,
  100 + such as a web service call.</td>
  101 + </tr>
  102 + <tr>
  103 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  104 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  105 + <b>jsUI-Toolbar</b><br />
  106 + &nbsp;&nbsp; - <a href="jsUI-Toolbar/documentation.xml">Reference</a><br />
  107 + &nbsp;&nbsp; - <a href="jsUI-Toolbar/index.htm">Sample</a></td>
  108 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  109 + A cross-browser functional, re-useable toolbar element that can be easily added
  110 + to any web page. Supports multiple instances, programmatic creation, and skins.
  111 + Buttons and seperators can be added with a single line of code.</td>
  112 + </tr>
  113 + <tr>
  114 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  115 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  116 + <b>jsUI-Tabstrip</b><br />
  117 + &nbsp;&nbsp; - <a href="jsui-tabstrip/documentation.xml">Reference</a><br />
  118 + &nbsp;&nbsp; - <a href="jsui-tabstrip/index.htm">Sample</a></td>
  119 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  120 + A cross-browser functional, re-useable tabstrip element that can be easily added
  121 + to any web page. Supports multiple instances, programmatic creation, and skins.
  122 + New tabs can be added with a single line of code.</td>
  123 + </tr>
  124 + <tr>
  125 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  126 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  127 + <b>jsUI-Textbox</b><br />
  128 + &nbsp;&nbsp; - <a href="jsUI-Textbox/documentation.xml">Reference</a><br />
  129 + &nbsp;&nbsp; - <a href="jsUI-Textbox/index.htm">Sample</a></td>
  130 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  131 + A cross-browser functional, re-useable textbox enhancer that validates and enforces
  132 + datatypes in textboxes.</td>
  133 + </tr>
  134 + <tr>
  135 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  136 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  137 + <b>jsUI-Grid</b><br />
  138 + &nbsp;&nbsp; - <a href="jsui-grid/documentation.xml">Reference</a><br />
  139 + &nbsp;&nbsp; - <a href="jsui-grid/index.htm">Sample</a></td>
  140 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  141 + <i>final beta</i><br />
  142 + A grid that allows you to programmatically add columns, rows and cells that the
  143 + user can interact with. The grid is cross-browser functional, and supports multiple instances.</td>
  144 + </tr>
  145 + <tr>
  146 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Interface</b></td>
  147 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  148 + <b>jsUI-HTMLEdit</b><br/>
  149 + &nbsp;&nbsp; - <a href="jsUI-HTMLEdit/documentation.xml">Reference</a><br />
  150 + &nbsp;&nbsp; - <a href="jsUI-HTMLEdit/index.htm">Sample</a></td>
  151 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  152 + <i>pre-beta</i><br />
  153 + A cross-browser functional, re-useable editor, using the iframe object. This handles
  154 + all the differences between IE and Mozilla's designModes, and can load HTML from a web address, and return HTML (optionally encoded) for saving. Combined with other
  155 + jsObjects you can make professional looking editors with some very simple code.
  156 + This object contains only the programming interfaces, allowing you to add your own
  157 + UI in whatever method you prefer.</td>
  158 + </tr>
  159 + <tr>
  160 + <td class="ftable" vAlign="top" bgColor="#ffffff" width="100"><b>Data Access</b></td>
  161 + <td class="ftable" vAlign="top" width="165" bgColor="#ffffff">
  162 + <b>jsDA-wsBind</b><br/>
  163 + &nbsp;&nbsp; - <a href="jsDA-wsBind/documentation.xml">Reference</a><br />
  164 + &nbsp;&nbsp; - <a href="jsDA-wsBind/index.htm">Sample</a></td>
  165 + <td class="ftable" vAlign="top" bgColor="#ffffff">
  166 + A data access component that binds a JavaScript object to a webservice, allowing
  167 + you to synchronously or asychronously call a webservice in JavaScript without needing to worry about creating
  168 + the HTTP connections or messages. It drastically simplifies webservice interaction,
  169 + and supports both IE and Mozilla.</td>
  170 + </tr>
  171 + </table>
  172 +</blockquote>
  173 + <br />
  174 + <div class="footer">© 2005 Jonathan Wise. <a href="license.txt">Some rights reserved</a>. </div>
  175 + <br />
  176 +
  177 +</body>
  178 +
  179 +</html>
0 180 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Global/common.js 0 → 100644
... ... @@ -0,0 +1 @@
  1 +var browser;if(document.all)browser="IE";else browser="MOZ";function replace(oldString, findString, replaceString){stringParts=oldString.split(findString);newString="";for(s=0;s<stringParts.length;s++){newString+=stringParts[s];if(s < stringParts.length-1)newString+=replaceString;}return newString;}function objectEvent(target, eventType, currbrowser){var ieEvent, mozEvent;if(!currbrowser)currbrowser=browser;if(typeof(target)!="object")target=document.getElementById(target);try{if(eventType.indexOf("on")!=-1){ieEvent=eventType;mozEvent=replace(eventType, "on", "");}else{ieEvent="on"+eventType;mozEvent=eventType;}if(currbrowser=="IE"){target.fireEvent(ieEvent);return true;}else{oEvent=document.createEvent("MouseEvents");oEvent.initMouseEvent(mozEvent, true, true, window, 1, 1, 1, 1, 1, false, false, false, false, 0, target);target.dispatchEvent(oEvent);}return true;}catch(ex){return false;}}function getAllDescendants(node, tagName){if(tagName !=null && tagName !="" && tagName !=undefined)tagName=tagName.toUpperCase();else tagName="ALL";if(typeof(node)!="object")node=document.getElementById(node);var objArray=new Array();for(var c=0;c<node.childNodes.length;c++){if(node.childNodes[c].tagName==tagName || tagName=="ALL" && node.childNodes[c].tagName !=undefined){objArray[objArray.length]=node.childNodes[c];}if(node.childNodes[c].childNodes.length > 0){var subChildren=getAllDescendants(node.childNodes[c], tagName);for(var s=0;s<subChildren.length;s++)objArray[objArray.length]=subChildren[s];}}return objArray;}function doNothing(){return false;}function getHost(url){url=url+"";url=url.split("/");return url[2];}function getQueryString(path){var queryString=new Object();if(path==null || path=="" || path==undefined)path=document.location+"";var pathParts=path.split("?");if(pathParts.length > 1){pathParts=pathParts[1].split("&");for(var p=0;p<pathParts.length;p++){var paramParts=pathParts[p].split("=");if(paramParts.length > 1){paramParts[1]=replace(paramParts[1], "%20", " ");eval("queryString."+paramParts[0]+"=\""+paramParts[1]+"\"");}}}return queryString;}function serializeObject(currObject){var XMLString="";for(var i in currObject){var nodeType=typeof(currObject[i]);if(typeof(currObject[i])!="object")XMLString+="<"+nodeType+" name=\""+i+"\" value=\""+currObject[i]+"\"/>";else{if(typeof(currObject[i].length)!="undefined")var nodeType="array";else var nodeType="object";XMLString+="<"+nodeType+" name=\""+i+"\">";XMLString+=serializeObject(currObject[i]);XMLString+="</"+nodeType+">";}}return XMLString;}function getFormData(startNode){if(startNode==null || startNode==undefined || startNode=="")startNode=document.body;if(typeof(startNode)!="object")startNode=document.getElementById(startNode);try{var childArray=new Array();childArray=getAllDescendants(startNode);var dataObj=new Object();for(var c=0;c<childArray.length;c++){if(childArray[c].id !=null && childArray[c].id !=""){var tagType;tagType=childArray[c].tagName.toUpperCase();switch(tagType){case "INPUT":{var inputObj=new Object();inputObj.type=childArray[c].type;inputObj.id=childArray[c].id;if(childArray[c].type.toLowerCase()=="checkbox")inputObj.value=childArray[c].checked;else inputObj.value=HTMLEncode(childArray[c].value);if(childArray[c].attributes.getNamedItem("datatype")!=null && childArray[c].attributes.getNamedItem("datatype")!="" && childArray[c].attributes.getNamedItem("datatype")!=undefined)inputObj.datatype=childArray[c].attributes.getNamedItem("datatype").value;eval("dataObj."+childArray[c].id+"=new Object();");eval("dataObj."+childArray[c].id+"=inputObj;");break;}case "SELECT":{var inputObj=new Object();inputObj.type="select";inputObj.id=HTMLEncode(childArray[c].id);inputObj.value=childArray[c].value;eval("dataObj."+childArray[c].id+"=new Object();");eval("dataObj."+childArray[c].id+"=inputObj;");break;}case "TEXTAREA":{var inputObj=new Object();inputObj.type="textarea";inputObj.id=childArray[c].id;inputObj.value=replace(HTMLEncode(childArray[c].value), "\r\n", "&linebreak;");eval("dataObj."+childArray[c].id+"=new Object();");eval("dataObj."+childArray[c].id+"=inputObj;");break;}case "TABLE":{if(childArray[c].className=="GridMain"){var gridName=replace(childArray[c].id, "tbl", "");var data=eval(gridName+".getGridData()");eval("dataObj."+gridName+"=new Object();");eval("dataObj."+gridName+"=data;");}break;}}}}return dataObj;}catch(e){alert(e.message);}}function HTMLEncode(htmldata){htmldata=replace(htmldata, "<", "&lt;");htmldata=replace(htmldata, ">", "&gt;");htmldata=replace(htmldata, "#", "&#163;");htmldata=replace(htmldata, "&", "&amp;");return htmldata;}function xmlDecode(xmldata){xmldata=replace(xmldata, "&amp;", "&");xmldata=replace(xmldata, "&lt;", "<");xmldata=replace(xmldata, "&gt;", ">");xmldata=replace(xmldata, "&#163;", "#");xmldata=replace(xmldata, "&#x0024;", "$");return xmldata;}
0 2 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Global/common_compacto.js 0 → 100644
... ... @@ -0,0 +1 @@
  1 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4 R;5(v.1v)R="1d";u R="1B";j 8(1n,1m,1l){S=1n.N(1m);T="";I(s=0;s<S.b;s++){T+=S[s];5(s<S.b-1)T+=1l}d T}j 1z(w,H,U){4 P,X;5(!U)U=R;5(B(w)!="L")w=v.15(w);1k{5(H.1x("16")!=-1){P=H;X=8(H,"16","")}u{P="16"+H;X=H}5(U=="1d"){w.1D(P);d Y}u{14=v.1C("1F");14.1t(X,Y,Y,1q,1,1,1,1,1,J,J,J,J,0,w);w.1s(14)}d Y}1g(1u){d J}}j 17(g,9){5(9!=M&&9!=""&&9!=D)9=9.1o();u 9="1e";5(B(g)!="L")g=v.15(g);4 G=f 1j();I(4 c=0;c<g.t.b;c++){5(g.t[c].9==9||9=="1e"&&g.t[c].9!=D){G[G.b]=g.t[c]}5(g.t[c].t.b>0){4 12=17(g.t[c],9);I(4 s=0;s<12.b;s++)G[G.b]=12[s]}}d G}j 1S(){d J}j 1W(E){E=E+"";E=E.N("/");d E[2]}j 1X(y){4 13=f m();5(y==M||y==""||y==D)y=v.21+"";4 z=y.N("?");5(z.b>1){z=z[1].N("&");I(4 p=0;p<z.b;p++){4 F=z[p].N("=");5(F.b>1){F[1]=8(F[1],"%20"," ");k("13."+F[0]+"=\\""+F[1]+"\\"")}}}d 13}j 1b(x){4 C="";I(4 i 1O x){4 A=B(x[i]);5(B(x[i])!="L")C+="<"+A+" 1i=\\""+i+"\\" q=\\""+x[i]+"\\"/>";u{5(B(x[i].b)!="D")4 A="1N";u 4 A="L";C+="<"+A+" 1i=\\""+i+"\\">";C+=1b(x[i]);C+="</"+A+">"}}d C}j 1I(o){5(o==M||o==D||o=="")o=v.1J;5(B(o)!="L")o=v.15(o);1k{4 3=f 1j();3=17(o);4 h=f m();I(4 c=0;c<3.b;c++){5(3[c].7!=M&&3[c].7!=""){4 18;18=3[c].9.1o();1U(18){Z"1V":{4 6=f m();6.K=3[c].K;6.7=3[c].7;5(3[c].K.1Y()=="1K")6.q=3[c].1H;u 6.q=Q(3[c].q);5(3[c].10.V("O")!=M&&3[c].10.V("O")!=""&&3[c].10.V("O")!=D)6.O=3[c].10.V("O").q;k("h."+3[c].7+"=f m();");k("h."+3[c].7+"=6;");W}Z"1L":{4 6=f m();6.K="1Q";6.7=Q(3[c].7);6.q=3[c].q;k("h."+3[c].7+"=f m();");k("h."+3[c].7+"=6;");W}Z"1P":{4 6=f m();6.K="1M";6.7=3[c].7;6.q=8(Q(3[c].q),"\\r\\n","&1R;");k("h."+3[c].7+"=f m();");k("h."+3[c].7+"=6;");W}Z"1Z":{5(3[c].1G=="1T"){4 11=8(3[c].7,"1A","");4 1f=k(11+".1r()");k("h."+11+"=f m();");k("h."+11+"=1f;")}W}}}}d h}1g(e){1p(e.1w)}}j Q(l){l=8(l,"<","&1a;");l=8(l,">","&1c;");l=8(l,"#","&#1h;");l=8(l,"&","&19;");d l}j 1E(a){a=8(a,"&19;","&");a=8(a,"&1a;","<");a=8(a,"&1c;",">");a=8(a,"&#1h;","#");a=8(a,"&#1y;","$");d a}',62,126,'|||childArray|var|if|inputObj|id|replace|tagName|xmldata|length||return||new|node|dataObj||function|eval|htmldata|Object||startNode||value|||childNodes|else|document|target|currObject|path|pathParts|nodeType|typeof|XMLString|undefined|url|paramParts|objArray|eventType|for|false|type|object|null|split|datatype|ieEvent|HTMLEncode|browser|stringParts|newString|currbrowser|getNamedItem|break|mozEvent|true|case|attributes|gridName|subChildren|queryString|oEvent|getElementById|on|getAllDescendants|tagType|amp|lt|serializeObject|gt|IE|ALL|data|catch|163|name|Array|try|replaceString|findString|oldString|toUpperCase|alert|window|getGridData|dispatchEvent|initMouseEvent|ex|all|message|indexOf|x0024|objectEvent|tbl|MOZ|createEvent|fireEvent|xmlDecode|MouseEvents|className|checked|getFormData|body|checkbox|SELECT|textarea|array|in|TEXTAREA|select|linebreak|doNothing|GridMain|switch|INPUT|getHost|getQueryString|toLowerCase|TABLE||location'.split('|'),0,{}))
... ...
pacotes/jsobjects/jsUI-Global/common_original.js 0 → 100644
... ... @@ -0,0 +1,268 @@
  1 +var browser;
  2 +if (document.all)
  3 + browser = "IE";
  4 +else
  5 + browser = "MOZ";
  6 +
  7 +function replace(oldString, findString, replaceString)
  8 +{
  9 + stringParts = oldString.split(findString);
  10 + newString = "";
  11 + for (s=0;s<stringParts.length;s++)
  12 + {
  13 + newString += stringParts[s];
  14 + if (s < stringParts.length - 1)
  15 + newString += replaceString;
  16 + }
  17 + return newString;
  18 +}
  19 +
  20 +function objectEvent(target, eventType, currbrowser)
  21 +{
  22 + var ieEvent, mozEvent;
  23 + if(!currbrowser)
  24 + currbrowser = browser;
  25 + if (typeof(target)!="object")
  26 + target = document.getElementById(target);
  27 + try
  28 + {
  29 + //standardize event names
  30 + if (eventType.indexOf("on") != -1)
  31 + {
  32 + ieEvent = eventType;
  33 + mozEvent = replace(eventType, "on", "");
  34 + }
  35 + else
  36 + {
  37 + ieEvent = "on" + eventType;
  38 + mozEvent = eventType;
  39 + }
  40 +
  41 + if (currbrowser == "IE")
  42 + {
  43 + target.fireEvent(ieEvent);
  44 + return true;
  45 + }
  46 + else
  47 + {
  48 + oEvent = document.createEvent("MouseEvents");
  49 + oEvent.initMouseEvent(
  50 + mozEvent, // the type of mouse event
  51 + true, // do you want the event to
  52 + // bubble up through the tree? (sure)
  53 + true, // can the default action for this
  54 + // event, on this element, be cancelled? (yep)
  55 + window, // the 'AbstractView' for this event,
  56 + // which I took to mean the thing sourcing
  57 + // the mouse input. Either way, this is
  58 + // the only value I passed that would work
  59 + 1, // details -- for 'click' type events, this
  60 + // contains the number of clicks. (single click here)
  61 + 1, // screenXArg - I just stuck 1 in cos I
  62 + // really didn't care
  63 + 1, // screenYArg - ditto
  64 + 1, // clientXArg - ditto
  65 + 1, // clientYArg - ditto
  66 + false, // is ctrl key depressed?
  67 + false, // is alt key depressed?
  68 + false, // is shift key depressed?
  69 + false, // is meta key depressed?
  70 + 0, // which button is involved?
  71 + // I believe that 0 = left, 1 = right,
  72 + // 2 = middle
  73 + target // the originator of the event
  74 + // if you wanted to simulate a child
  75 + // element firing the event you'd put
  76 + // its handle here, and call this method
  77 + // on the parent catcher. In this case,
  78 + // they are one and the same.
  79 + );
  80 + target.dispatchEvent(oEvent);
  81 + }
  82 + return true;
  83 + }
  84 + catch(ex)
  85 + {
  86 + return false;
  87 + }
  88 +}
  89 +
  90 +function getAllDescendants(node, tagName)
  91 +{
  92 + if (tagName != null && tagName != "" && tagName != undefined)
  93 + tagName = tagName.toUpperCase();
  94 + else
  95 + tagName = "ALL";
  96 +
  97 + if (typeof(node)!="object")
  98 + node = document.getElementById(node);
  99 +
  100 + var objArray = new Array();
  101 + for(var c=0;c<node.childNodes.length;c++)
  102 + {
  103 + if (node.childNodes[c].tagName == tagName || tagName == "ALL" && node.childNodes[c].tagName != undefined)
  104 + {
  105 + objArray[objArray.length] = node.childNodes[c];
  106 + }
  107 + if (node.childNodes[c].childNodes.length > 0)
  108 + {
  109 + var subChildren = getAllDescendants(node.childNodes[c], tagName);
  110 + for (var s=0;s<subChildren.length;s++)
  111 + objArray[objArray.length] = subChildren[s];
  112 + }
  113 + }
  114 + return objArray;
  115 +}
  116 +
  117 +function doNothing()
  118 +{
  119 + return false;
  120 +}
  121 +
  122 +function getHost(url)
  123 +{
  124 + url = url + "";
  125 + url = url.split("/");
  126 + return url[2];
  127 +}
  128 +
  129 +function getQueryString(path)
  130 +{
  131 + var queryString = new Object();
  132 + if (path == null || path == "" || path == undefined)
  133 + path = document.location + "";
  134 + var pathParts = path.split("?");
  135 + if (pathParts.length > 1)
  136 + {
  137 + pathParts = pathParts[1].split("&");
  138 + for (var p=0;p<pathParts.length;p++)
  139 + {
  140 + var paramParts = pathParts[p].split("=");
  141 + if (paramParts.length > 1)
  142 + {
  143 + paramParts[1] = replace(paramParts[1], "%20", " ");
  144 + eval ("queryString." + paramParts[0] + "=\"" + paramParts[1] + "\"");
  145 + }
  146 + }
  147 + }
  148 + return queryString;
  149 +}
  150 +
  151 +function serializeObject(currObject)
  152 +{
  153 + var XMLString = "";
  154 + for (var i in currObject)
  155 + {
  156 + var nodeType = typeof(currObject[i]);
  157 + if (typeof(currObject[i])!="object")
  158 + XMLString += "<" + nodeType + " name=\"" + i + "\" value=\"" + currObject[i] + "\"/>";
  159 + else
  160 + {
  161 + if (typeof(currObject[i].length)!="undefined")
  162 + var nodeType = "array";
  163 + else
  164 + var nodeType = "object";
  165 + XMLString += "<" + nodeType + " name=\"" + i + "\">";
  166 + XMLString += serializeObject(currObject[i]);
  167 + XMLString += "</" + nodeType+ ">";
  168 + }
  169 + }
  170 + return XMLString;
  171 +}
  172 +
  173 +function getFormData(startNode)
  174 +{
  175 + if (startNode == null || startNode == undefined || startNode == "")
  176 + startNode = document.body;
  177 + if (typeof(startNode)!="object")
  178 + startNode = document.getElementById(startNode);
  179 + try
  180 + {
  181 + var childArray = new Array();
  182 + childArray = getAllDescendants(startNode);
  183 + var dataObj = new Object();
  184 + for (var c=0;c<childArray.length;c++)
  185 + {
  186 + if (childArray[c].id != null && childArray[c].id != "")
  187 + {
  188 + var tagType;
  189 + tagType = childArray[c].tagName.toUpperCase();
  190 + switch(tagType)
  191 + {
  192 + case "INPUT":
  193 + {
  194 + var inputObj = new Object();
  195 + inputObj.type = childArray[c].type;
  196 + inputObj.id = childArray[c].id;
  197 + if (childArray[c].type.toLowerCase() == "checkbox")
  198 + inputObj.value = childArray[c].checked;
  199 + else
  200 + inputObj.value = HTMLEncode(childArray[c].value);
  201 + if (childArray[c].attributes.getNamedItem("datatype") != null && childArray[c].attributes.getNamedItem("datatype") != "" && childArray[c].attributes.getNamedItem("datatype") != undefined)
  202 + inputObj.datatype = childArray[c].attributes.getNamedItem("datatype").value;
  203 + eval("dataObj." + childArray[c].id + "= new Object();");
  204 + eval("dataObj." + childArray[c].id + "= inputObj;");
  205 + break;
  206 + }
  207 + case "SELECT":
  208 + {
  209 + var inputObj = new Object();
  210 + inputObj.type = "select";
  211 + inputObj.id = HTMLEncode(childArray[c].id);
  212 + //inputObj.value = childArray[c].options[childArray[c].selectedIndex].value;
  213 + inputObj.value = childArray[c].value;
  214 + eval("dataObj." + childArray[c].id + "= new Object();");
  215 + eval("dataObj." + childArray[c].id + "= inputObj;");
  216 + break;
  217 + }
  218 + case "TEXTAREA":
  219 + {
  220 + var inputObj = new Object();
  221 + inputObj.type = "textarea";
  222 + inputObj.id = childArray[c].id;
  223 + inputObj.value = replace(HTMLEncode(childArray[c].value), "\r\n", "&linebreak;");
  224 + eval("dataObj." + childArray[c].id + "= new Object();");
  225 + eval("dataObj." + childArray[c].id + "= inputObj;");
  226 + break;
  227 + }
  228 + case "TABLE":
  229 + {
  230 + if (childArray[c].className == "GridMain")
  231 + {
  232 + var gridName = replace(childArray[c].id, "tbl", "");
  233 + var data = eval(gridName + ".getGridData()");
  234 + eval("dataObj." + gridName + "= new Object();");
  235 + eval("dataObj." + gridName + "= data;");
  236 + }
  237 + break;
  238 + }
  239 + }
  240 + }
  241 + }
  242 + return dataObj;
  243 + }
  244 + catch(e)
  245 + {
  246 + alert (e.message);
  247 + }
  248 +}
  249 +
  250 +function HTMLEncode(htmldata)
  251 +{
  252 + htmldata = replace(htmldata, "<", "&lt;");
  253 + htmldata = replace(htmldata, ">", "&gt;");
  254 + //htmldata = replace(htmldata, "\"", "'");
  255 + htmldata = replace(htmldata, "#", "&#163;");
  256 + htmldata = replace(htmldata, "&", "&amp;");
  257 + return htmldata;
  258 +}
  259 +
  260 +function xmlDecode(xmldata)
  261 +{
  262 + xmldata = replace(xmldata, "&amp;", "&");
  263 + xmldata = replace(xmldata, "&lt;", "<");
  264 + xmldata = replace(xmldata, "&gt;", ">");
  265 + xmldata = replace(xmldata, "&#163;", "#");
  266 + xmldata = replace(xmldata, "&#x0024;", "$");
  267 + return xmldata;
  268 +}
0 269 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Global/documentation.xml 0 → 100644
... ... @@ -0,0 +1,79 @@
  1 +<?xml version="1.0"?>
  2 +<?xml:stylesheet type="text/xsl" href="../documentation.xsl"?>
  3 +<?xml-stylesheet href="../documentation.xsl" type="text/xsl" media="screen"?>
  4 +<doc xml:whitespace="preserve">
  5 + <assembly>
  6 + <name>jsUI-Global</name>
  7 + <remarks>
  8 + <para>The global functions include public methods that extend Javascript's abilities, as well as private methods necessary for jsObjects.</para>
  9 + <para>The common.js functions can be used without uiCommon.js functions -- but not vice versa.</para>
  10 + </remarks>
  11 + <requirements>
  12 + <para>jsUI-Global/common.js</para>
  13 + </requirements>
  14 + </assembly>
  15 + <Method>
  16 + <member name="replace (string, string, string)">
  17 + <summary>Returns a string in which a specified substring has been replaced with another substring. Easier to use then the Javascript replace method of the string type.</summary>
  18 + <param name="oldString">Required. String expression containing substring to replace.</param>
  19 + <param name="findString">Required. Substring being searched for.</param>
  20 + <param name="replaceString">Required. Replacement substring. </param>
  21 + <code>
  22 + <c>mystring = replace(mystring, "a", "b");</c>
  23 + </code>
  24 + <returns>The modified string value.</returns>
  25 + </member>
  26 + <member name="objectEvent (object, string, string)">
  27 + <summary>Creates and fires the specified DOM event on the specified object on the page. Works with both IE and Mozilla.</summary>
  28 + <param name="target">Required. The object the event is to be fire on.</param>
  29 + <param name="eventType">Required. The text name of the event. Example: click, blur. Accepts both IE and Mozilla event names (blur OR onBlur)</param>
  30 + <param name="currbrowser">Optional. The user's current browser. Pass "IE" or "MOZ" or leave blank and the browser will be determined by the function.</param>
  31 + <returns>Boolean indicating whether or not the event fired sucessfully.</returns>
  32 + </member>
  33 + <member name="getAllDescendants(object, string)">
  34 + <summary>Returns an array of descendants (children, grandchildren, etc) for a given DOM object, of a specified type. Similar to IE's "document.all" but cross-browser compatible.</summary>
  35 + <param name="node">Required. The DOM object to start the search at. Pass document.body to start at the top of the DOM.</param>
  36 + <param name="tagName">Optional. The tag name for the type of descendants to find. Pass "ALL" or leave empty to find all descendants regardless of tag name.</param>
  37 + <returns>An array of all matching descendant objects.</returns>
  38 + </member>
  39 + <member name="getHost(string)">
  40 + <summary>Returns only the host name of a given URL. Useful to pre-check links for security issues.</summary>
  41 + <param name="url">A fully qualified URL.</param>
  42 + <returns>A string containing the host name.</returns>
  43 + </member>
  44 + <member name="HTMLEncode(string)">
  45 + <summary>Encodes HTML for transmission via XML, replacing tags with their respective entities.</summary>
  46 + <param name="htmldata">The HTML to be encoded.</param>
  47 + <returns>The encoded string.</returns>
  48 + </member>
  49 + <member name="getQueryString(string)">
  50 + <summary>Parses a URL to extract query string parameters into a quickly accessible object. Similar to the Request.QueryString method in ASP.</summary>
  51 + <param name="path">Optional. The URL to be parsed. If left blank, the current document's location will be used.</param>
  52 + <code>
  53 + <c>// URL: http://myserver/webapp/sendRequest.htm?requestType=ShowLatestHits</c>
  54 + <c>var queryParams = getQueryString(document.location);</c>
  55 + <c>alert(queryParams.requestType);</c>
  56 + </code>
  57 + <returns>An object containing a property for each query string parameter.</returns>
  58 + </member>
  59 + <member name="serializeObject(object/array)">
  60 + <summary>Turns a Javascript object into valid XML describing that object.</summary>
  61 + <param name="currObject">The Javascript Object or Array to be described.</param>
  62 + <returns>An XML string describing the Object or Array.</returns>
  63 + <remarks>Warning. Do not use this function on a DOM object, as those objects appear to be recursive in some way, and will cause this function to loop continuously. Use only on pure Javascript Objects or Arrays.</remarks>
  64 + </member>
  65 + <member name="getFormData(object)">
  66 + <summary>Parses all form elements, and corresponding values, on a page into a nested Javascript object.</summary>
  67 + <param name="startNode">Optional. The DOM object to start parsing at. If left blank document.body will be used.</param>
  68 + <returns>A nested Object representing all form elements and values on the page.</returns>
  69 + <code>alert (serializeObject(getFormData());</code>
  70 + <remarks>Can be used in conjunction with serializeObject to allow XML transmission of form data.</remarks>
  71 + </member>
  72 + <member name="xmlDecode(string)">
  73 + <summary>Decodes XML (or HTML) that has been encoded by having it's tags changed to entities for transmission as an XML node value. Restores encoded data.</summary>
  74 + <param name="xmldata">The encoded (entity-replaced) XML (or HTML) to be decoded.</param>
  75 + <returns>A string.</returns>
  76 + <remarks>This is the opposite of the HTMLEncode function.</remarks>
  77 + </member>
  78 + </Method>
  79 +</doc>
0 80 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Global/none.gif 0 → 100644

55 Bytes

pacotes/jsobjects/jsUI-Global/uiCommon.js 0 → 100644
... ... @@ -0,0 +1 @@
  1 +window.onclick=jsUIGblRecordClick;if(window.captureEvents)window.captureEvents(Event.CLICK);document.onkeydown=jsUIGblHandleKeys;if(window.captureEvents)window.captureEvents(Event.KEYPRESS);function jsUIGblAddSkin(component, skinName, rootDir){if(skinName==null || skinName=="")skinName="default";var newStyle=document.createElement("link");newStyle.rel="stylesheet";newStyle.type="text/css";if(component==null || component=="")newStyle.href=rootDir+"/"+skinName+".css";else newStyle.href=rootDir+"/"+component+"/"+skinName+".css";document.body.appendChild(newStyle);return true;}function jsUIGblHandleKeys(e){var keyCode;if(browser=="IE"){obj=window.event.srcElement;e=window.event;keyCode=e.keyCode;}if(browser=="MOZ"){obj=e.target;if(e.target.tagName.toUpperCase()=="HTML")obj=jsUIGblLastClickedElement;keyCode=e.which;}var gridAt="";try{if(obj.tagName.toUpperCase()=="DIV"){if(obj.parentNode.tagName=="TD"){if(obj.parentNode.className=="GridCell" || obj.parentNode.className=="GridCellOver")gridAt=obj.parentNode;}}if(obj.tagName.toUpperCase()=="TD"){if(obj.className=="GridCell" || obj.className=="GridTitleCell")gridAt=obj.parentNode;}}catch(e){}if(gridAt !=""){var currGrid=GridPvtFindRootObject(gridAt);if(keyCode==46){currGrid.removeRow(currGrid.currentRow, e);}else if(keyCode==38)currGrid.moveRow(currGrid.currentRow, "up");else if(keyCode==40)currGrid.moveRow(currGrid.currentRow, "down");else currGrid.editRow(currGrid.currentRow, e);}else{if(keyCode==13){if(obj.tagName.toUpperCase()!="TEXTAREA" && browser=="IE")e.keyCode=9;}if(keyCode==8){if(obj.tagName.toUpperCase()!="TEXTAREA" && obj.tagName.toUpperCase()!="INPUT"){if(browser=="IE")e.returnValue=false;if(browser=="MOZ"){e.stopPropagation();e.preventDefault();}}}}if(keyCode==116){if(browser=="IE"){e.keyCode=0;e.returnValue=false;}if(browser=="MOZ"){e.stopPropagation();e.preventDefault();}try{var updateObj=new Object();updateObj.sender="AppCentral";updateObj.itemID="resetPage";appcentral.update(updateObj);}catch(e){}return false;}if(e.altKey){if(keyCode>=65 && keyCode<=90){var s=String.fromCharCode(keyCode);eval('(window.k'+s+')?eval(\'k\'+s+\'.click();\'):eval();');}}}var jsUIGblLastClickedElement;function jsUIGblRecordClick(e){if(browser=="IE"){obj=window.event.srcElement;e=window.event;}if(browser=="MOZ"){obj=e.target;}jsUIGblLastClickedElement=obj.target;}
0 2 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Global/uiCommon_compacto.js 0 → 100644
... ... @@ -0,0 +1 @@
  1 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4.1t=I;1(4.l)4.l(H.1w);v.1v=C;1(4.l)4.l(H.1u);u 1l(j,d,y){1(d==M||d=="")d="S";7 b=v.R("12");b.14="11";b.X="Y/t";1(j==M||j=="")b.N=y+"/"+d+".t";f b.N=y+"/"+j+"/"+d+".t";v.Z.10(b);J W}u C(e){7 3;1(5=="i"){2=4.m.B;e=4.m;3=e.3}1(5=="r"){2=e.q;1(e.q.a.c()=="15")2=w;3=e.U}7 g="";P{1(2.a.c()=="Q"){1(2.h.a=="E"){1(2.h.p=="D"||2.h.p=="V")g=2.h}}1(2.a.c()=="E"){1(2.p=="D"||2.p=="T")g=2.h}}K(e){}1(g!=""){7 6=1y(g);1(3==1p){6.1o(6.o,e)}f 1(3==1m)6.F(6.o,"1n");f 1(3==16)6.F(6.o,"1s");f 6.1x(6.o,e)}f{1(3==13){1(2.a.c()!="A"&&5=="i")e.3=9}1(3==8){1(2.a.c()!="A"&&2.a.c()!="1b"){1(5=="i")e.G=z;1(5=="r"){e.L();e.O()}}}}1(3==1c){1(5=="i"){e.3=0;e.G=z}1(5=="r"){e.L();e.O()}P{7 n=19 17();n.18="1d";n.1e="1j";1i.1h(n)}K(e){}J z}1(e.1g){1(3>=1r&&3<=1f){7 s=1a.1k(3);x(\'(4.k\'+s+\')?x(\\\'k\\\'+s+\\\'.1q();\\\'):x();\')}}}7 w;u I(e){1(5=="i"){2=4.m.B;e=4.m}1(5=="r"){2=e.q}w=2.q}',62,97,'|if|obj|keyCode|window|browser|currGrid|var|||tagName|newStyle|toUpperCase|skinName||else|gridAt|parentNode|IE|component||captureEvents|event|updateObj|currentRow|className|target|MOZ||css|function|document|jsUIGblLastClickedElement|eval|rootDir|false|TEXTAREA|srcElement|jsUIGblHandleKeys|GridCell|TD|moveRow|returnValue|Event|jsUIGblRecordClick|return|catch|stopPropagation|null|href|preventDefault|try|DIV|createElement|default|GridTitleCell|which|GridCellOver|true|type|text|body|appendChild|stylesheet|link||rel|HTML|40|Object|sender|new|String|INPUT|116|AppCentral|itemID|90|altKey|update|appcentral|resetPage|fromCharCode|jsUIGblAddSkin|38|up|removeRow|46|click|65|down|onclick|KEYPRESS|onkeydown|CLICK|editRow|GridPvtFindRootObject'.split('|'),0,{}))
... ...
pacotes/jsobjects/jsUI-Global/uiCommon_original.js 0 → 100644
... ... @@ -0,0 +1,154 @@
  1 +window.onclick = jsUIGblRecordClick;
  2 +if (window.captureEvents) window.captureEvents(Event.CLICK);
  3 +
  4 +document.onkeydown = jsUIGblHandleKeys;
  5 +if (window.captureEvents) window.captureEvents(Event.KEYPRESS);
  6 +
  7 +function jsUIGblAddSkin(component, skinName, rootDir)
  8 +{
  9 + if (skinName == null || skinName == "")
  10 + skinName = "default";
  11 +
  12 + var newStyle = document.createElement("link");
  13 + newStyle.rel = "stylesheet";
  14 + newStyle.type = "text/css";
  15 +
  16 + if (component == null || component == "")
  17 + newStyle.href = rootDir + "/" + skinName + ".css";
  18 + else
  19 + newStyle.href = rootDir + "/" + component + "/" + skinName + ".css";
  20 + document.body.appendChild(newStyle);
  21 + return true;
  22 +}
  23 +
  24 +//window.attachEvent("onkeypress", "jsUIGblHandleKeys");
  25 +function jsUIGblHandleKeys(e)
  26 +{
  27 + var keyCode;
  28 + if (browser == "IE")
  29 + {
  30 + obj = window.event.srcElement;
  31 + e = window.event;
  32 + keyCode = e.keyCode;
  33 + }
  34 + if (browser == "MOZ")
  35 + {
  36 + obj = e.target;
  37 + if (e.target.tagName.toUpperCase() == "HTML")
  38 + obj = jsUIGblLastClickedElement;
  39 + keyCode = e.which;
  40 + }
  41 +
  42 + //check for a grid
  43 + var gridAt = "";
  44 + try
  45 + {
  46 + if (obj.tagName.toUpperCase() == "DIV")
  47 + {
  48 + if (obj.parentNode.tagName == "TD")
  49 + {
  50 + if (obj.parentNode.className == "GridCell" || obj.parentNode.className == "GridCellOver")
  51 + gridAt = obj.parentNode;
  52 + }
  53 + }
  54 + if (obj.tagName.toUpperCase() == "TD")
  55 + {
  56 + if (obj.className == "GridCell" || obj.className == "GridTitleCell")
  57 + gridAt = obj.parentNode;
  58 + }
  59 + }
  60 + catch(e)
  61 + {
  62 +
  63 + }
  64 +
  65 + //we're in a grid
  66 + if (gridAt != "")
  67 + {
  68 + var currGrid = GridPvtFindRootObject(gridAt);
  69 + if (keyCode==46) //delete
  70 + {
  71 + currGrid.removeRow(currGrid.currentRow, e);
  72 + }
  73 + else if (keyCode == 38) //up
  74 + currGrid.moveRow(currGrid.currentRow, "up");
  75 + else if (keyCode == 40) //down
  76 + currGrid.moveRow(currGrid.currentRow, "down");
  77 + else //all other keys
  78 + currGrid.editRow(currGrid.currentRow, e);
  79 + }
  80 +
  81 + //not in a grid
  82 + else
  83 + {
  84 + if (keyCode==13) //return
  85 + {
  86 + if (obj.tagName.toUpperCase() != "TEXTAREA" && browser == "IE")
  87 + e.keyCode=9;
  88 + }
  89 + if (keyCode==8) //backspace
  90 + {
  91 + if (obj.tagName.toUpperCase() != "TEXTAREA" && obj.tagName.toUpperCase() != "INPUT")
  92 + {
  93 + if (browser == "IE")
  94 + e.returnValue = false;
  95 + if (browser == "MOZ")
  96 + {
  97 + e.stopPropagation();
  98 + e.preventDefault();
  99 + }
  100 + }
  101 + }
  102 + }
  103 +
  104 + if (keyCode==116) //F5
  105 + {
  106 + if (browser == "IE")
  107 + {
  108 + e.keyCode = 0;
  109 + e.returnValue = false;
  110 + }
  111 + if (browser == "MOZ")
  112 + {
  113 + e.stopPropagation();
  114 + e.preventDefault();
  115 + }
  116 + try
  117 + {
  118 + var updateObj = new Object();
  119 + updateObj.sender = "AppCentral";
  120 + updateObj.itemID = "resetPage";
  121 + appcentral.update(updateObj);
  122 + }
  123 + catch(e)
  124 + {
  125 + //do nothing
  126 + }
  127 + return false;
  128 + }
  129 +
  130 + if (e.altKey)
  131 + {
  132 + if (keyCode>=65 && keyCode<=90)
  133 + {
  134 + var s = String.fromCharCode(keyCode);
  135 + eval('(window.k'+s+')?eval(\'k\'+s+\'.click();\'):eval();');
  136 + }
  137 + }
  138 +}
  139 +
  140 +var jsUIGblLastClickedElement;
  141 +function jsUIGblRecordClick(e)
  142 +{
  143 + //if (browser == "MOZ")
  144 + if (browser == "IE")
  145 + {
  146 + obj = window.event.srcElement;
  147 + e = window.event;
  148 + }
  149 + if (browser == "MOZ")
  150 + {
  151 + obj = e.target;
  152 + }
  153 + jsUIGblLastClickedElement = obj.target;
  154 +}
0 155 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Global/vssver.scc 0 → 100644
No preview for this file type
pacotes/jsobjects/jsUI-Treeview/absolute.css 0 → 100644
... ... @@ -0,0 +1,21 @@
  1 +.TreeviewMain
  2 +{
  3 + font-family: Arial, Helvetica; font-size: 11px;
  4 + margin-left: -15px;
  5 +}
  6 +.TreeviewItem
  7 +{
  8 + margin-left: 0px; padding-left: 15px; margin-top: 3px;
  9 +}
  10 +.TreeviewItemTextClicked
  11 +{
  12 + background-color: #E0DFE3; color: black; text-decoration: none; cursor: default; padding: 1px; border: 1px dotted #9D9DA1;
  13 +}
  14 +.TreeviewItemTextOut
  15 +{
  16 + /*text-decoration: none; padding: 2px;*/
  17 +}
  18 +.TreeviewItemTextOver
  19 +{
  20 + /*color: Navy; text-decoration: underline; cursor: default;padding: 2px;*/
  21 +}
0 22 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Treeview/antigo.htm 0 → 100644
... ... @@ -0,0 +1,128 @@
  1 +<html>
  2 +<head>
  3 + <title>jsUI-Treeview Sample</title>
  4 + <script language="javascript" src="../jsUI-Global/common.js"></script>
  5 + <script language="javascript" src="../jsUI-Global/uiCommon.js"></script>
  6 + <script language="javascript" src="../jsUI-Treeview/component.js"></script>
  7 + <script>
  8 + var mytreeview = new Object();
  9 + function addTreeview()
  10 + {
  11 + mytreeview = treeviewNew("mytreeview", "default", document.getElementById("treeviewCell"), null);
  12 + mytreeview.itemClick = doClick;
  13 + mytreeview.itemExpand = doExpand;
  14 + mytreeview.createItem("itmComputer", "Computer", "../images/computer-s.gif", true, true, true, null)
  15 + mytreeview.createItem("itmCDrive", "c:\\", "../images/drive-s.gif", null, true, true, "itmComputer")
  16 + mytreeview.createItem("folder1", "Folder 1", "../images/folder-s.gif", null, true, true, "itmCDrive")
  17 + mytreeview.createItem("file3", "File 3", "../images/addressbook-s.gif", false, true, true, "itmCDrive")
  18 + mytreeview.createItem("folder2", "Folder 2", "../images/folder-s.gif", null, true, true, "itmCDrive")
  19 + mytreeview.createItem("file4a", "File 4a", "../images/addressbook-s.gif", false, true, false, "folder2")
  20 + mytreeview.createItem("file4b", "File 4b", "../images/addressbook-s.gif", false, true, false, "folder2")
  21 +
  22 + //Activate other examples
  23 + document.getElementById("btnAddTreeview").disabled = true;
  24 + document.getElementById("btnAddItem").disabled = false;
  25 + document.getElementById("btnAddCustomItem").disabled = false;
  26 + }
  27 +
  28 + function doClick(itemID)
  29 + {
  30 + document.getElementById("txtItemValue").value = itemID;
  31 + document.getElementById("txtExpandValue").value = "";
  32 + }
  33 +
  34 + function doExpand(itemID)
  35 + {
  36 + document.getElementById("txtItemValue").value = "";
  37 + document.getElementById("txtExpandValue").value = itemID;
  38 +
  39 + if (itemID == "folder1")
  40 + {
  41 + mytreeview.createItem(itemID + "a", "File a", "../images/addressbook-s.gif", false, false, true, itemID)
  42 + mytreeview.createItem(itemID + "b", "File b", "../images/addressbook-s.gif", false, false, true, itemID)
  43 + }
  44 + }
  45 +
  46 + var lastItemNum = 1;
  47 + function addItem()
  48 + {
  49 + mytreeview.createItem("itmUser" + lastItemNum, "User Item " + lastItemNum, "../images/drive-s.gif", null, true, true, "itmComputer")
  50 + lastItemNum++;
  51 + }
  52 +
  53 + function addCustomItem()
  54 + {
  55 + var useParent = document.getElementById("lstParent").options[document.getElementById("lstParent").selectedIndex].value;
  56 + var text = document.getElementById("txtCustomValue").value;
  57 + var image = document.getElementById("lstItemImage").options[document.getElementById("lstItemImage").selectedIndex].value;
  58 + if (useParent != "none" && image != "none")
  59 + {
  60 + mytreeview.createItem("itmUser" + lastItemNum, text, image, false, true, true, useParent)
  61 + lastItemNum++;
  62 + }
  63 + }
  64 +
  65 + </script>
  66 + <link rel='stylesheet' type='text/css' href='../documentation.css'></link>
  67 +</head>
  68 +<body vlink="#0000ff" link="#0000ff" alink="#0000ff">
  69 +<table width="100%"><tr><td valign="bottom">
  70 +<h3>Treeview Sample</h3>
  71 +</td><td align="right" valign="middle"><a href="documentation.xml">Reference</a></td></tr></table>
  72 +<div class="sample">This sample demonstrates how to create and modify a Treeview.
  73 +<br />&nbsp;
  74 +</div>
  75 +<table border="0" width="100%" height="65%" cellpadding="0" cellspacing="0">
  76 +<tr>
  77 +<td style="width:195px;" height="100%" id="treeviewCell" valign="top">
  78 +</td>
  79 +<td valign="top">
  80 + <input type="button" value="Create Treeview" onclick="addTreeview()" id="btnAddTreeview"/>
  81 + <div class="description">
  82 + Instantiate the Treeview into an empty, global object, and add it to the DOM, using the <i>treeviewNew</i> method.
  83 + </div>
  84 +
  85 + Item ID: <input type="text" value="" id="txtItemValue" disabled="true"/>
  86 + <div class="description">
  87 + Handle the <i>itemClick</i> event to get information about items when they are clicked
  88 + </div>
  89 +
  90 + Item ID: <input type="text" value="" id="txtExpandValue" disabled="true"/>
  91 + <div class="description">
  92 + Handle the <i>itemExpand</i> event to get information about items when they are expanded, in order to programmatically add children.
  93 + </div>
  94 +
  95 + <input type="button" value="Add Item" id="btnAddItem" disabled="true" onclick="addItem()"/>
  96 + <div class="description">
  97 + Use the <i>createItem</i> method to add an item to the Treeview
  98 + </div>
  99 +
  100 + Specify button text, choose an image and a parent item...<br />
  101 + <input type="text" id="txtCustomValue" value="Item Text"/>&nbsp;
  102 + <select id="lstItemImage">
  103 + <option value="none">Choose an Image</option>
  104 + <option value="../images/computer-s.gif">Computer</option>
  105 + <option value="../images/folder-s.gif">Folder</option>
  106 + <option value="../images/addressbook-s.gif">Address Book</option>
  107 + <option value="../images/drive-s.gif">Drive</option>
  108 + </select>&nbsp;
  109 + <select id="lstParent">
  110 + <option value="none">Choose a Parent</option>
  111 + <option value="itmComputer">Computer</option>
  112 + <option value="itmCDrive">c:\</option>
  113 + <option value="folder1">Folder 1</option>
  114 + </select><br />
  115 +
  116 + <input type="button" value="Add Item" id="btnAddCustomItem" disabled="true" onclick="addCustomItem()"/>
  117 + <div class="description">
  118 + Use the <i>createTask</i> method to add a task to a specific parent in the Treeview
  119 + </div>
  120 +
  121 + <br />
  122 + </td></tr></table>
  123 + <br />
  124 + <div class="footer">To view the source code, right-click this page and choose View Source from the shortcut menu that appears.</div>
  125 + <br />
  126 + © 2005 Jonathan Wise. Some rights reserved.
  127 +</body>
  128 +</html>
... ...
pacotes/jsobjects/jsUI-Treeview/component.js 0 → 100644
... ... @@ -0,0 +1,243 @@
  1 +function treeviewNew(treeviewName, skinName, treeviewParent, rootDir)
  2 +{
  3 + if (treeviewName == null || treeviewName == "")
  4 + return false;
  5 + if (rootDir == null)
  6 + rootDir = g_locaplic+"/classesjs/jsobjects";
  7 + jsUIGblAddSkin("jsUI-Treeview", skinName, rootDir);
  8 + if (treeviewParent == null || treeviewParent == "" || treeviewParent == undefined)
  9 + treeviewParent = document.body;
  10 + if (typeof(treeviewParent) != "object")
  11 + treeviewParent = document.getElementById(treeviewParent);
  12 + var tvDiv = document.createElement("div");
  13 + //tvDiv.style.height = "100%";
  14 + tvDiv.style.width = "100%";
  15 + tvDiv.style.overflow = "auto"; //era auto
  16 + tvDiv.className = "TreeviewMain";
  17 + tvDiv.id = treeviewName;
  18 + treeviewParent.appendChild(tvDiv);
  19 + var tbObject = TreeviewPvtConstructTaskbar(treeviewName, tvDiv, treeviewParent, rootDir);
  20 + return tbObject;
  21 +}
  22 +
  23 +// Private constructor method
  24 +// Used to attach taskbar elements and methods to a given instance of the treeview
  25 +function TreeviewPvtConstructTaskbar(treeviewName, treeviewDiv, treeviewParent, rootDir)
  26 +{
  27 + var tbObject;
  28 + treeviewName = document.getElementById(treeviewName);
  29 + eval("treeviewName.element = treeviewDiv"); //element
  30 + /*eval(treeviewName + ".createItem = TreeviewPubCreateItem"); //method
  31 + eval(treeviewName + ".itemClick = doNothing"); //event
  32 + eval(treeviewName + ".itemExpand = doNothing"); //event
  33 + eval(treeviewName + ".TreeviewParent = treeviewParent"); //private property
  34 + eval(treeviewName + ".rootDir = rootDir"); //private property
  35 + eval("tbObject = " + treeviewName); //assignment*/
  36 + eval("treeviewName.createItem = TreeviewPubCreateItem"); //method
  37 + eval("treeviewName.itemClick = doNothing"); //event
  38 + eval("treeviewName.itemExpand = doNothing"); //event
  39 + eval("treeviewName.TreeviewParent = treeviewParent"); //private property
  40 + eval("treeviewName.rootDir = rootDir"); //private property
  41 + eval("tbObject = treeviewName"); //assignment
  42 + return tbObject;
  43 +}
  44 +
  45 +function TreeviewPubCreateItem(itemID, itemName, itemImg, hasChildren, preload, show, parentID) //public name: createItem
  46 +{
  47 + var naveg;
  48 + if (document.all)
  49 + naveg = "IE";
  50 + else
  51 + naveg = "MOZ";
  52 + var tbItem = document.createElement("ul");
  53 + //tbItem.style.backgroundColor="gray";
  54 + tbItem.id = itemID;
  55 + if (parentID == null)
  56 + tbItem.style.marginBottom = "0px";
  57 + tbItem.className = "TreeviewItem";
  58 + if (naveg == "MOZ")
  59 + tbItem.style.overflow = "auto";
  60 + else
  61 + tbItem.style.overflow = "hidden";
  62 + tbItem.hasChildren = hasChildren;
  63 + tbItem.preload = preload;
  64 + //tbItem.onmouseover = TreeviewPvtItemOver;
  65 + //tbItem.onmouseout = TreeviewPvtItemOut;
  66 + if (!show)
  67 + tbItem.style.display = "none";
  68 + var tbImg = document.createElement("img");
  69 + if (hasChildren == false)
  70 + tbImg.src = this.rootDir + "/jsUI-Treeview/dot.gif";
  71 + else if (hasChildren == true)
  72 + tbImg.src = this.rootDir + "/jsUI-Treeview/plus.gif";
  73 + else
  74 + tbImg.src = this.rootDir + "/jsUI-Treeview/unknown.gif";
  75 + tbImg.onclick = TreeviewPvtExpandClick;
  76 + //incluido pelo edmar
  77 + if (hasChildren != false)
  78 + {tbItem.appendChild(tbImg);}
  79 +
  80 + if (typeof(itemImg)=="object")
  81 + {var tbIcon = itemImg;}
  82 + else
  83 + {var tbIcon = document.createElement("img");tbIcon.src = itemImg;}
  84 + if (itemImg != null)
  85 + {
  86 + tbIcon.onclick = TreeviewPvtItemClick;
  87 + tbIcon.ondblclick = TreeviewPvtExpandClick;
  88 + tbIcon.style.marginRight = "4px";
  89 + //tbIcon.align = "absmiddle";
  90 + tbItem.appendChild(tbIcon);
  91 + }
  92 + var tbText = document.createElement("span");
  93 + //tbText.style.backgroundColor="gray"
  94 + tbText.className = "TreeviewItemTextOut";
  95 + //tbText.ondblclick = TreeviewPvtExpandClick;
  96 + tbText.ondblclick = TreeviewPvtExpandClick;
  97 + tbText.innerHTML += itemName;
  98 + tbItem.appendChild(tbText);
  99 + if (parentID == null || parentID == "")
  100 + this.element.appendChild(tbItem);
  101 + else
  102 + {
  103 + var parentObj = document.getElementById(parentID);
  104 + if (parentObj.hasChildren != false)
  105 + {
  106 + parentObj.appendChild(tbItem);
  107 + if (show)
  108 + {
  109 + parentObj.childNodes[0].src = this.rootDir + "/jsUI-Treeview/minus.gif";
  110 + //see if there are hidden children and show them too
  111 + var allArray = parentObj.childNodes;
  112 + if (allArray.length > 0)
  113 + {
  114 + for (var a=0;a<allArray.length;a++)
  115 + {
  116 + if (allArray[a].tagName == "UL")
  117 + allArray[a].style.display = "block";
  118 + }
  119 + }
  120 + }
  121 + if (!show)
  122 + parentObj.childNodes[0].src = this.rootDir + "/jsUI-Treeview/plus.gif";
  123 + }
  124 + }
  125 +}
  126 +
  127 +var oldClass = "";
  128 +function TreeviewPvtItemOver(e)
  129 +{
  130 + if (this.childNodes[2].className != "TreeviewItemTextOver")
  131 + oldClass = this.childNodes[2].className;
  132 + if (this.childNodes[2].className != "TreeviewItemTextClicked")
  133 + this.childNodes[2].className = "TreeviewItemTextOver";
  134 + if (!e)
  135 + var e = window.event;
  136 + e.cancelBubble = true;
  137 + if (e.stopPropagation)
  138 + e.stopPropagation();
  139 +}
  140 +
  141 +function TreeviewPvtItemOut(e)
  142 +{
  143 + this.childNodes[2].className = oldClass;
  144 + if (!e)
  145 + var e = window.event;
  146 + e.cancelBubble = true;
  147 + if (e.stopPropagation)
  148 + e.stopPropagation();
  149 +}
  150 +
  151 +function TreeviewPvtItemClick(e)
  152 +{
  153 + if (!e)
  154 + var e = window.event;
  155 +
  156 + var currTree = TreeviewPvtFindRootObject(this);
  157 + node = currTree.element;
  158 +
  159 + var allArray = getAllDescendants(node, "UL");
  160 +
  161 + for (var a=0;a<allArray.length;a++)
  162 + {
  163 + if (allArray[a].childNodes[2])
  164 + allArray[a].childNodes[2].className="TreeviewItemTextOut";
  165 + }
  166 + this.parentNode.childNodes[2].className = "TreeviewItemTextClicked";
  167 + oldClass = "TreeviewItemTextClicked";
  168 +
  169 + currTree.itemClick(this.parentNode.id);
  170 +
  171 + e.cancelBubble = true;
  172 + if (e.stopPropagation)
  173 + e.stopPropagation();
  174 + e.returnValue = true;
  175 +
  176 +}
  177 +
  178 +function TreeviewPvtExpandClick(e)
  179 +{
  180 + if (!e)
  181 + var e = window.event;
  182 +
  183 + var currTree = TreeviewPvtFindRootObject(this);
  184 + var node = this.parentNode.childNodes[0];
  185 + var currSrc = node.src;
  186 + currSrc = currSrc.split("jsUI-Treeview/");
  187 + if (currSrc[1] == "plus.gif")
  188 + {
  189 + var allArray = this.parentNode.childNodes;
  190 + var hiddenChildren = false;
  191 + if (allArray.length > 0)
  192 + {
  193 + for (var a=0;a<allArray.length;a++)
  194 + {
  195 + if (allArray[a].tagName == "UL")
  196 + {
  197 + allArray[a].style.display = "block";
  198 + hiddenChildren = true;
  199 + }
  200 + }
  201 + node.src = g_locaplic+"/classesjs/jsobjects" + "/jsUI-Treeview/minus.gif";
  202 + }
  203 + if (!hiddenChildren)
  204 + node.src = g_locaplic+"/classesjs/jsobjects" + "/jsUI-Treeview/minus.gif";
  205 + currTree.itemExpand(this.parentNode.id);
  206 + }
  207 + else if (currSrc[1] == "minus.gif")
  208 + {
  209 + node.src = g_locaplic+"/classesjs/jsobjects" + "/jsUI-Treeview/plus.gif";
  210 + var allArray = getAllDescendants(node.parentNode, "UL");
  211 + for (var a=0;a<allArray.length;a++)
  212 + {
  213 + if (allArray[a].preload)
  214 + {
  215 + if (allArray[a].parentNode == node.parentNode)
  216 + allArray[a].style.display = "none";
  217 + }
  218 + else
  219 + {
  220 + if (allArray[a].parentNode == node.parentNode)
  221 + allArray[a].parentNode.removeChild(allArray[a]);
  222 + }
  223 + }
  224 + }
  225 + else if (currSrc[1] == "unknown.gif")
  226 + currTree.itemExpand(this.parentNode.id);
  227 + else if (currSrc[1] == "dot.gif")
  228 + objectEvent(node.parentNode.childNodes[1], "onclick", browser);
  229 +
  230 + e.cancelBubble = true;
  231 + if (e.stopPropagation)
  232 + e.stopPropagation();
  233 + e.returnValue = false;
  234 +}
  235 +
  236 +function TreeviewPvtFindRootObject(currTree)
  237 +{
  238 + while(currTree.tagName != "DIV")
  239 + currTree = currTree.parentNode;
  240 + var obj = eval ("document.getElementById('" + currTree.id + "')");
  241 + currTree = obj;
  242 + return currTree;
  243 +}
0 244 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Treeview/component_compacto.js 0 → 100644
... ... @@ -0,0 +1 @@
  1 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('p 1z(8,1m,f,i){3(8==t||8=="")O v;3(i==t)i=1G+"/1E/1D";1H("1h-1g",1m,i);3(f==t||f==""||f==1J)f=g.1C;3(1j(f)!="18")f=g.R(f);4 r=g.F("1B");r.k.1x="1K%";r.k.Z="1f";r.6="1I";r.u=8;f.w(r);4 D=1t(8,r,f,i);O D}p 1t(8,1i,f,i){4 D;8=g.R(8);n("8.W = 1i");n("8.1F = 1d");n("8.1s = 1a");n("8.Y = 1a");n("8.1A = f");n("8.i = i");n("D = 8");O D}p 1d(1c,1v,C,s,U,L,E){4 H;3(g.1y)H="1O";j H="1e";4 c=g.F("1Y");c.u=1c;3(E==t)c.k.1X="1W";c.6="1V";3(H=="1e")c.k.Z="1f";j c.k.Z="20";c.s=s;c.U=U;3(!L)c.k.Q="1r";4 o=g.F("14");o.6="z";o.10=7.i+"/../../17/19/"+16+"/15.S";3(s==v)o.6="A";j 3(s==q)o.6="z";j o.10=7.i+"/1h-1g/1l.S";o.V=K;3(s!=v){c.w(o)}3(1j(C)=="18"){4 m=C}j{4 m=g.F("14");m.10=7.i+"/../../17/19/"+16+"/15.S";m.6=C}3(C!=t){m.V=1q;m.1k=K;m.k.22="21";c.w(m)}4 B=g.F("1Z");B.6="1p";B.1k=K;B.1T+=1v;c.w(B);3(E==t||E=="")7.W.w(c);j{4 y=g.R(E);3(y.s!=v){y.w(c);3(L){y.9[0].6="A";4 5=y.9;3(5.x>0){T(4 a=0;a<5.x;a++){3(5[a].X=="M")5[a].k.Q="1u"}}}3(!L)y.9[0].6="z"}}}4 J="";p 1L(e){3(7.9[2].6!="1o")J=7.9[2].6;3(7.9[2].6!="11")7.9[2].6="1o";3(!e)4 e=I.N;e.P=q;3(e.l)e.l()}p 1U(e){7.9[2].6=J;3(!e)4 e=I.N;e.P=q;3(e.l)e.l()}p 1q(e){3(!e)4 e=I.N;4 d=13(7);h=d.W;4 5=1w(h,"M");T(4 a=0;a<5.x;a++){3(5[a].9[2])5[a].9[2].6="1p"}7.b.9[2].6="11";J="11";d.1s(7.b.u);e.P=q;3(e.l)e.l();e.1n=q}p K(e){3(!e)4 e=I.N;4 d=13(7);4 h=7.b.9[0];4 G=h.6;3(G=="z"){4 5=7.b.9;4 12=v;3(5.x>0){T(4 a=0;a<5.x;a++){3(5[a].X=="M"){5[a].k.Q="1u";12=q}}h.6="A"}3(!12)h.6="A";d.Y(7.b.u)}j 3(G=="A"){h.6="z";4 5=1w(h.b,"M");T(4 a=0;a<5.x;a++){3(5[a].U){3(5[a].b==h.b)5[a].k.Q="1r"}j{3(5[a].b==h.b)5[a].b.1N(5[a])}}}j 3(G=="1l.S")d.Y(7.b.u);j 3(G=="1M")1P(h.b.9[1],"V",1Q);e.P=q;3(e.l)e.l();e.1n=v}p 13(d){1S(d.X!="1R")d=d.b;4 1b=n("g.R(\'"+d.u+"\')");d=1b;O d}',62,127,'|||if|var|allArray|className|this|treeviewName|childNodes||parentNode|tbItem|currTree||treeviewParent|document|node|rootDir|else|style|stopPropagation|tbIcon|eval|tbImg|function|true|tvDiv|hasChildren|null|id|false|appendChild|length|parentObj|mais|menos|tbText|itemImg|tbObject|parentID|createElement|currSrc|naveg|window|oldClass|TreeviewPvtExpandClick|show|UL|event|return|cancelBubble|display|getElementById|gif|for|preload|onclick|element|tagName|itemExpand|overflow|src|TreeviewItemTextClicked|hiddenChildren|TreeviewPvtFindRootObject|img|branco|g_visual|imagens|object|visual|doNothing|obj|itemID|TreeviewPubCreateItem|MOZ|auto|Treeview|jsUI|treeviewDiv|typeof|ondblclick|unknown|skinName|returnValue|TreeviewItemTextOver|TreeviewItemTextOut|TreeviewPvtItemClick|none|itemClick|TreeviewPvtConstructTaskbar|block|itemName|getAllDescendants|width|all|treeviewNew|TreeviewParent|div|body|jsobjects|classesjs|createItem|g_locaplic|jsUIGblAddSkin|TreeviewMain|undefined|100|TreeviewPvtItemOver|ponto|removeChild|IE|objectEvent|browser|DIV|while|innerHTML|TreeviewPvtItemOut|TreeviewItem|0px|marginBottom|ul|span|hidden|4px|marginRight'.split('|'),0,{}))
... ...
pacotes/jsobjects/jsUI-Treeview/component_i3geo.js 0 → 100644
... ... @@ -0,0 +1,249 @@
  1 +function treeviewNew(treeviewName, skinName, treeviewParent, rootDir)
  2 +{
  3 + if (treeviewName == null || treeviewName == "")
  4 + return false;
  5 + if (rootDir == null)
  6 + rootDir = g_locaplic+"/classesjs/jsobjects";
  7 + jsUIGblAddSkin("jsUI-Treeview", skinName, rootDir);
  8 + if (treeviewParent == null || treeviewParent == "" || treeviewParent == undefined)
  9 + treeviewParent = document.body;
  10 + if (typeof(treeviewParent) != "object")
  11 + treeviewParent = document.getElementById(treeviewParent);
  12 + var tvDiv = document.createElement("div");
  13 + //tvDiv.style.height = "100%";
  14 + tvDiv.style.width = "100%";
  15 + tvDiv.style.overflow = "auto"; //era auto
  16 + tvDiv.className = "TreeviewMain";
  17 + tvDiv.id = treeviewName;
  18 + treeviewParent.appendChild(tvDiv);
  19 + var tbObject = TreeviewPvtConstructTaskbar(treeviewName, tvDiv, treeviewParent, rootDir);
  20 + return tbObject;
  21 +}
  22 +
  23 +// Private constructor method
  24 +// Used to attach taskbar elements and methods to a given instance of the treeview
  25 +function TreeviewPvtConstructTaskbar(treeviewName, treeviewDiv, treeviewParent, rootDir)
  26 +{
  27 + var tbObject;
  28 + treeviewName = document.getElementById(treeviewName);
  29 + eval("treeviewName.element = treeviewDiv"); //element
  30 + /*eval(treeviewName + ".createItem = TreeviewPubCreateItem"); //method
  31 + eval(treeviewName + ".itemClick = doNothing"); //event
  32 + eval(treeviewName + ".itemExpand = doNothing"); //event
  33 + eval(treeviewName + ".TreeviewParent = treeviewParent"); //private property
  34 + eval(treeviewName + ".rootDir = rootDir"); //private property
  35 + eval("tbObject = " + treeviewName); //assignment*/
  36 + eval("treeviewName.createItem = TreeviewPubCreateItem"); //method
  37 + eval("treeviewName.itemClick = doNothing"); //event
  38 + eval("treeviewName.itemExpand = doNothing"); //event
  39 + eval("treeviewName.TreeviewParent = treeviewParent"); //private property
  40 + eval("treeviewName.rootDir = rootDir"); //private property
  41 + eval("tbObject = treeviewName"); //assignment
  42 + return tbObject;
  43 +}
  44 +
  45 +function TreeviewPubCreateItem(itemID, itemName, itemImg, hasChildren, preload, show, parentID) //public name: createItem
  46 +{
  47 + var naveg;
  48 + if (document.all)
  49 + naveg = "IE";
  50 + else
  51 + naveg = "MOZ";
  52 + var tbItem = document.createElement("ul");
  53 + //tbItem.style.backgroundColor="gray";
  54 + tbItem.id = itemID;
  55 + if (parentID == null)
  56 + tbItem.style.marginBottom = "0px";
  57 + tbItem.className = "TreeviewItem";
  58 + if (naveg == "MOZ")
  59 + tbItem.style.overflow = "auto";
  60 + else
  61 + tbItem.style.overflow = "hidden";
  62 + tbItem.hasChildren = hasChildren;
  63 + tbItem.preload = preload;
  64 + //tbItem.onmouseover = TreeviewPvtItemOver;
  65 + //tbItem.onmouseout = TreeviewPvtItemOut;
  66 + if (!show)
  67 + tbItem.style.display = "none";
  68 + var tbImg = document.createElement("img");
  69 + tbImg.className = "mais";
  70 + tbImg.src = this.rootDir + "/../../imagens/visual/"+g_visual+"/branco.gif";
  71 + if (hasChildren == false)
  72 + tbImg.className = "menos";
  73 + else if (hasChildren == true)
  74 + tbImg.className = "mais";
  75 + else
  76 + tbImg.src = this.rootDir + "/jsUI-Treeview/unknown.gif";
  77 + tbImg.onclick = TreeviewPvtExpandClick;
  78 + //incluido pelo edmar
  79 + if (hasChildren != false)
  80 + {tbItem.appendChild(tbImg);}
  81 +
  82 + if (typeof(itemImg)=="object")
  83 + {var tbIcon = itemImg;}
  84 + else
  85 + {
  86 + var tbIcon = document.createElement("img");
  87 + //tbIcon.src = itemImg;
  88 + tbIcon.src = this.rootDir + "/../../imagens/visual/"+g_visual+"/branco.gif";
  89 + tbIcon.className = itemImg;
  90 + }
  91 + if (itemImg != null)
  92 + {
  93 + tbIcon.onclick = TreeviewPvtItemClick;
  94 + tbIcon.ondblclick = TreeviewPvtExpandClick;
  95 + tbIcon.style.marginRight = "4px";
  96 + //tbIcon.align = "absmiddle";
  97 + tbItem.appendChild(tbIcon);
  98 + }
  99 + var tbText = document.createElement("span");
  100 + //tbText.style.backgroundColor="gray"
  101 + tbText.className = "TreeviewItemTextOut";
  102 + //tbText.ondblclick = TreeviewPvtExpandClick;
  103 + tbText.ondblclick = TreeviewPvtExpandClick;
  104 + tbText.innerHTML += itemName;
  105 + tbItem.appendChild(tbText);
  106 + if (parentID == null || parentID == "")
  107 + this.element.appendChild(tbItem);
  108 + else
  109 + {
  110 + var parentObj = document.getElementById(parentID);
  111 + if (parentObj.hasChildren != false)
  112 + {
  113 + parentObj.appendChild(tbItem);
  114 + if (show)
  115 + {
  116 + parentObj.childNodes[0].className = "menos";
  117 + //see if there are hidden children and show them too
  118 + var allArray = parentObj.childNodes;
  119 + if (allArray.length > 0)
  120 + {
  121 + for (var a=0;a<allArray.length;a++)
  122 + {
  123 + if (allArray[a].tagName == "UL")
  124 + allArray[a].style.display = "block";
  125 + }
  126 + }
  127 + }
  128 + if (!show)
  129 + parentObj.childNodes[0].className = "mais";
  130 + }
  131 + }
  132 +}
  133 +
  134 +var oldClass = "";
  135 +function TreeviewPvtItemOver(e)
  136 +{
  137 + if (this.childNodes[2].className != "TreeviewItemTextOver")
  138 + oldClass = this.childNodes[2].className;
  139 + if (this.childNodes[2].className != "TreeviewItemTextClicked")
  140 + this.childNodes[2].className = "TreeviewItemTextOver";
  141 + if (!e)
  142 + var e = window.event;
  143 + e.cancelBubble = true;
  144 + if (e.stopPropagation)
  145 + e.stopPropagation();
  146 +}
  147 +
  148 +function TreeviewPvtItemOut(e)
  149 +{
  150 + this.childNodes[2].className = oldClass;
  151 + if (!e)
  152 + var e = window.event;
  153 + e.cancelBubble = true;
  154 + if (e.stopPropagation)
  155 + e.stopPropagation();
  156 +}
  157 +
  158 +function TreeviewPvtItemClick(e)
  159 +{
  160 + if (!e)
  161 + var e = window.event;
  162 +
  163 + var currTree = TreeviewPvtFindRootObject(this);
  164 + node = currTree.element;
  165 +
  166 + var allArray = getAllDescendants(node, "UL");
  167 +
  168 + for (var a=0;a<allArray.length;a++)
  169 + {
  170 + if (allArray[a].childNodes[2])
  171 + allArray[a].childNodes[2].className="TreeviewItemTextOut";
  172 + }
  173 + this.parentNode.childNodes[2].className = "TreeviewItemTextClicked";
  174 + oldClass = "TreeviewItemTextClicked";
  175 +
  176 + currTree.itemClick(this.parentNode.id);
  177 +
  178 + e.cancelBubble = true;
  179 + if (e.stopPropagation)
  180 + e.stopPropagation();
  181 + e.returnValue = true;
  182 +
  183 +}
  184 +
  185 +function TreeviewPvtExpandClick(e)
  186 +{
  187 + if (!e)
  188 + var e = window.event;
  189 +
  190 + var currTree = TreeviewPvtFindRootObject(this);
  191 + var node = this.parentNode.childNodes[0];
  192 + var currSrc = node.className;
  193 + if (currSrc == "mais")
  194 + {
  195 + var allArray = this.parentNode.childNodes;
  196 + var hiddenChildren = false;
  197 + if (allArray.length > 0)
  198 + {
  199 + for (var a=0;a<allArray.length;a++)
  200 + {
  201 + if (allArray[a].tagName == "UL")
  202 + {
  203 + allArray[a].style.display = "block";
  204 + hiddenChildren = true;
  205 + }
  206 + }
  207 + node.className = "menos";
  208 + }
  209 + if (!hiddenChildren)
  210 + node.className = "menos";
  211 + currTree.itemExpand(this.parentNode.id);
  212 + }
  213 + else if (currSrc == "menos")
  214 + {
  215 + node.className = "mais";
  216 + var allArray = getAllDescendants(node.parentNode, "UL");
  217 + for (var a=0;a<allArray.length;a++)
  218 + {
  219 + if (allArray[a].preload)
  220 + {
  221 + if (allArray[a].parentNode == node.parentNode)
  222 + allArray[a].style.display = "none";
  223 + }
  224 + else
  225 + {
  226 + if (allArray[a].parentNode == node.parentNode)
  227 + allArray[a].parentNode.removeChild(allArray[a]);
  228 + }
  229 + }
  230 + }
  231 + else if (currSrc == "unknown.gif")
  232 + currTree.itemExpand(this.parentNode.id);
  233 + else if (currSrc == "ponto")
  234 + objectEvent(node.parentNode.childNodes[1], "onclick", browser);
  235 +
  236 + e.cancelBubble = true;
  237 + if (e.stopPropagation)
  238 + e.stopPropagation();
  239 + e.returnValue = false;
  240 +}
  241 +
  242 +function TreeviewPvtFindRootObject(currTree)
  243 +{
  244 + while(currTree.tagName != "DIV")
  245 + currTree = currTree.parentNode;
  246 + var obj = eval ("document.getElementById('" + currTree.id + "')");
  247 + currTree = obj;
  248 + return currTree;
  249 +}
0 250 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Treeview/default.css 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +.TreeviewMain
  2 +{font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 11px;margin-left: -15px;}
  3 +.TreeviewItem
  4 +{margin-left: 0px; padding-left: 15px; margin-top: 3px;}
  5 +.TreeviewItemTextClicked
  6 +{background-color: buttonface; color: black; text-decoration: none; cursor: default; padding: 1px; border: 1px dotted threedshadow;}
  7 +.TreeviewItemTextOut
  8 +{cursor:pointer;}
  9 +.TreeviewItemTextOver
  10 +{cursor:pointer;}
0 11 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Treeview/documentation.xml 0 → 100644
... ... @@ -0,0 +1,79 @@
  1 +<?xml version="1.0"?>
  2 +<?xml:stylesheet type="text/xsl" href="../documentation.xsl"?>
  3 +<?xml-stylesheet href="../documentation.xsl" type="text/xsl" media="screen"?>
  4 +<doc xml:whitespace="preserve">
  5 + <assembly>
  6 + <name>jsUI-Treeview</name>
  7 + <code>
  8 + <c>var mytreeview = new Object();</c>
  9 + <c>mytreeview = treeviewNew("mytreeview", "default", document.getElementById("treeCell"), null);</c>
  10 + <c>mytreeview.itemClick = doClick;</c>
  11 + <c>mytreeview.itemExpand = loadBranch;</c>
  12 + <c>mytreeview.createItem("item1", "First Item", "../images/icon.jpg", true, true, true, null);</c>
  13 + <c>mytreeview.createItem("item1-1", "First Item Child", "../images/icon.jpg", true, true, true, "item1");</c>
  14 + </code>
  15 + <remarks>The treeview is a nested navigation control, based on those frequently found in Windows or the MacOS. It is compatible with Internet Explorer 5.0 and FireFox 1.0 or better.</remarks>
  16 + <requirements>
  17 + <para>jsUI-Global/common.js</para>
  18 + <para>jsUI-Global/uiCommon.js</para>
  19 + <para>jsUI-Treeview/component.js</para>
  20 + </requirements>
  21 + <sample>index.htm</sample>
  22 + </assembly>
  23 + <Property>
  24 + <member name="treeviewParent">
  25 + <summary>The DOM object to which the treeview is attached. Frequently a DIV or TD.</summary>
  26 + <code>alert (mytreeview.treeviewParent.id);</code>
  27 + <remarks>DOM Object. This property is assigned on instantiation and is read only.</remarks>
  28 + </member>
  29 + <member name="rootDir">
  30 + <summary>Gets or sets the string value representing the path to the root of the jsObjects directory. Used for calculating style and graphics file paths. Initially set during instantiation.</summary>
  31 + <code>mytreeview.rootDir = "http://localhost/libraries/jsobjects";</code>
  32 + <default>http://&lt;server&gt;/jsObjects</default>
  33 + <remarks>String. This value only needs to be set if jsObjects is installed in a custom location.</remarks>
  34 + </member>
  35 + </Property>
  36 + <Method>
  37 + <member name="treeviewNew (string, string, object, string)">
  38 + <summary>Instantiates the treeview through assignment into a Javascript object.</summary>
  39 + <param name="treeviewName">Required. The name for the new treeview. Must match the name of an empty Javascript object to contain the treeview.</param>
  40 + <param name="skinName">Optional. The name of the CSS (excluding the extension and path) file to use for the treeview. If left blank, "default" will be used.</param>
  41 + <param name="treeviewParent">Optional. The DOM object that the treeview is to be attached to. If no value is passed, the treeview will be appended to document.body</param>
  42 + <param name="rootDir">Optional. The path to the root of the jsObjects directory. If left blank, the default path will be used.</param>
  43 + <code>
  44 + <c>var mytreeview = new Object();</c>
  45 + <c>mytreeview = treeviewNew("mytreeview", "default", document.getElementById("treeviewDiv"), "../jsobjects");</c>
  46 + </code>
  47 + <returns>The treeview object.</returns>
  48 + <remarks>This is the only method that does not appear to be a member of the object -- because the object can't have members until it's instantiated. A blank object is created and will be filled with the jsUI-treeview members.</remarks>
  49 + </member>
  50 + <member name="createItem (string, string, string, boolean, boolean, boolean, string)">
  51 + <summary>Creates a branch icon in the specified folder in the treeview.</summary>
  52 + <param name="itemID">Required. A unique string to be used as the DOM ID for the new tree item.</param>
  53 + <param name="itemName">Required. The text that appears as the title of the new tree item.</param>
  54 + <param name="itemImg">Optional. The icon for the new tree item.</param>
  55 + <param name="hasChildren">Required. Indicates whether or not there are children below the new tree item. If null is passed an "indeterminate" indicator is used to show the user that the heirarchy is not known until the item is expanded.</param>
  56 + <param name="preload">Required. Indicates whether or not the item has been pre-loaded. This is used to determine the show/hide behaviour of children. If a nodes children are populated by a local function, then preload is false, since that function can be called to re-populate the branch next time it is expanded. If, however, the branch was pre-loaded by server-side code, or some non-local function, the parent node's heirarchy will be preserved -- hidden and shown, on collapse/expand -- instead of being destroyed and re-created.</param>
  57 + <param name="show">Required. Determines whether or not to show the item on the tree. If the item is a child of an un-expanded parent, then show should be false.</param>
  58 + <param name="parentID">Required. The parent item to add the new item to. If omitted, the new item will be appended to the root item of the tree, or the last item on the root level.</param>
  59 + <code>mytreeview.createItem("item1", "First Item", "../images/icon.jpg", true, true, true, null);</code>
  60 + <returns>Nothing</returns>
  61 + </member>
  62 + </Method>
  63 + <Event>
  64 + <member name="itemClick">
  65 + <summary>Fires whenever a item is clicked, passing the ID of target object, so that external code can respond.</summary>
  66 + <code>
  67 + mytreeview.itemClick = <i>handler</i>;
  68 + </code>
  69 + <remarks>The handler should accept one string parameter which will contain the ID of the button clicked.</remarks>
  70 + </member>
  71 + <member name="itemExpand">
  72 + <summary>Fires whenever a tree branch expand action happens, passing the ID of target object, so that external code can respond by populating the target node's children.</summary>
  73 + <code>
  74 + mytreeview.itemExpand = <i>handler</i>;
  75 + </code>
  76 + <remarks>The handler should accept one string parameter which will contain the ID of the button clicked.</remarks>
  77 + </member>
  78 + </Event>
  79 +</doc>
0 80 \ No newline at end of file
... ...
pacotes/jsobjects/jsUI-Treeview/dot.gif 0 → 100644

304 Bytes

pacotes/jsobjects/jsUI-Treeview/index.htm 0 → 100644
... ... @@ -0,0 +1,155 @@
  1 +<html>
  2 +<head>
  3 + <title>jsUI-Treeview Sample</title>
  4 + <script language="javascript" src="../jsUI-Global/common.js"></script>
  5 + <script language="javascript" src="../jsUI-Global/uiCommon.js"></script>
  6 + <script language="javascript" src="../jsUI-Treeview/component.js"></script>
  7 +
  8 + <link rel='stylesheet' type='text/css' href='../documentation.css'></link>
  9 +</head>
  10 +<body vlink="#0000ff" link="#0000ff" alink="#0000ff">
  11 +<div id="menutemas" >
  12 +</div>
  13 +<div id='bloco'></div>
  14 +</body>
  15 +<script>
  16 +
  17 +var mytreeview = new Object();
  18 +mytreeview = treeviewNew("mytreeview", "default", document.getElementById("treeCell"), null);
  19 +//mytreeview.itemClick = doClick;
  20 +//mytreeview.itemExpand = loadBranch;
  21 +mytreeview.createItem("item1", "MMA", "../../../imagens/iconlimites.png", true, true, true, null);
  22 +function doClick(itemID)
  23 +{alert(itemID)}
  24 + </script>
  25 +
  26 +<script>
  27 +var mytreeview = new Object();
  28 +mytreeview = treeviewNew("mytreeview", "default", document.getElementById("menutemas"), null);
  29 +//mytreeview.itemClick = doClick;
  30 +//mytreeview.itemExpand = loadBranch;
  31 +mytreeview.createItem("item1", "MMA", "../../../imagens/iconlimites.png", true, true, true, null);
  32 +function doClick(itemID)
  33 +{alert(itemID)}
  34 +//detec&ccedil;&atilde;o do navegador
  35 +navm = false // IE
  36 +navn = false // netscape
  37 +var app = navigator.appName.substring(0,1)
  38 +if (app=='N') navn=true; else navm=true
  39 +//load xml file
  40 +if (window.ActiveXObject)
  41 +{
  42 + var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  43 + xmlDoc.async=false; //Enforce download of XML file first. IE only.
  44 +}
  45 +else if (document.implementation && document.implementation.createDocument)
  46 +{
  47 + var xmlDoc= document.implementation.createDocument("","doc",null);
  48 +}
  49 +if (typeof xmlDoc!="undefined")
  50 +xmlDoc.load("../../../menutemas/menutemas.xml");
  51 +
  52 +//Regular expression used to match any non-whitespace character
  53 +var notWhitespace = /\S/
  54 +function pegaval()
  55 +{
  56 + ng = xmlDoc.getElementsByTagName("TEMA").length
  57 + novo = '<table width="550">'
  58 + grupoantes = ""
  59 + sgrupoantes = ""
  60 + idgrupo = 0
  61 + idsgrupo = 0
  62 + idtema = 0
  63 + for (ig=0;ig<ng;ig++)
  64 + {
  65 + var msgobj=xmlDoc.getElementsByTagName("TEMA")[ig]
  66 + //REMOVE white spaces in XML file. Intended mainly for NS6/Mozilla
  67 + for (i=0;i<msgobj.childNodes.length;i++)
  68 + {
  69 + if ((msgobj.childNodes[i].nodeType == 3)&& (!notWhitespace.test(msgobj.childNodes[i].nodeValue)))
  70 + {
  71 + // that is, if it's a whitespace text node
  72 + msgobj.removeChild(msgobj.childNodes[i])
  73 + i--
  74 + }
  75 + }
  76 + tid = xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[0].firstChild.nodeValue
  77 + tnome = xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[1].firstChild.nodeValue
  78 + tdesc = xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[2].firstChild.nodeValue
  79 + tfonte = ""
  80 + if (xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[3].firstChild)
  81 + {
  82 + tfonte = xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[3].firstChild.nodeValue
  83 + if (navn)
  84 + {
  85 + sgrupo = xmlDoc.getElementsByTagName("TEMA")[ig].parentNode.childNodes[1].firstChild.nodeValue
  86 + grupo = xmlDoc.getElementsByTagName("TEMA")[ig].parentNode.parentNode.childNodes[1].firstChild.nodeValue
  87 + //ico = xmlDoc.getElementsByTagName("TEMA")[ig].parentNode.parentNode.childNodes[7].firstChild.nodeValue
  88 + }
  89 + else
  90 + {
  91 + sgrupo = xmlDoc.getElementsByTagName("TEMA")[ig].parentNode.childNodes[0].firstChild.nodeValue
  92 + grupo = xmlDoc.getElementsByTagName("TEMA")[ig].parentNode.parentNode.childNodes[0].firstChild.nodeValue
  93 + //ico = xmlDoc.getElementsByTagName("TEMA")[ig].parentNode.parentNode.childNodes[3].firstChild.nodeValue
  94 + }
  95 + if (grupoantes != grupo)
  96 + {
  97 + idgrupo = idgrupo + 1
  98 + mytreeview.createItem("grupo"+idgrupo, grupo, "../../../imagens/folder-s.gif", true, true, true, "item1");
  99 + //novo = novo+'<tr><td colspan=3 style="color:red"><img src="../imagens/'+ico+'"/><b> '+grupo+'</b></td></tr>'
  100 + grupoantes = grupo
  101 + }
  102 + if (sgrupoantes != sgrupo)
  103 + {
  104 + idsgrupo = idsgrupo + 1
  105 + mytreeview.createItem("sgrupo"+idsgrupo, sgrupo, "../../../imagens/arquivos.gif", true, true, false, "grupo"+idgrupo);
  106 + //novo = novo+'<tr><td colspan=3 style="color:gray">'+sgrupo+'</td></tr>'
  107 + sgrupoantes = sgrupo
  108 + }
  109 + if (xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[4].firstChild)
  110 + {
  111 + idtema = idtema + 1
  112 + lk = xmlDoc.getElementsByTagName("TEMA")[ig].childNodes[4].firstChild.nodeValue
  113 + tnome = "<input type=\"checkbox\" name=\"layer\" value=\"TID\" onclick=\"mudaboxf(this)\"/>"+tnome
  114 + mytreeview.createItem("tema"+idtema, tnome, "../../../imagens/branco.gif", false, true, false, "sgrupo"+idsgrupo);
  115 + //novo = novo + '<tr><td width="50" style="text-align:right"><input style="cursor:pointer" type="button" name="'+tid+'" value="ver" onclick="exec(this.name)"/></td><td width="235" style="cursor:default" title="'+tdesc+'"><p>'+tnome+'</p></td><td width="345" style="cursor:default" ><a href="'+lk+'" target="blank">'+tfonte+'</a></td>'
  116 + }
  117 + else
  118 + {
  119 + //novo = novo + '<tr><td width="50" style="text-align:right"><input style="cursor:pointer" type="button" name="'+tid+'" value="ver" onclick="exec(this.name)"/></td><td width="235" style="cursor:default" title="'+tdesc+'"><p>'+tnome+'</p></td><td width="345" style="cursor:default" ><p>'+tfonte+'</p></td>'
  120 + idtema = idtema + 1
  121 + tnome = "<input type=\"checkbox\" name=\"layer\" value=\"TID\" onclick=\"mudaboxf(this)\"/>"+tnome
  122 + mytreeview.createItem("tema"+idtema, tnome, "../../../imagens/branco.gif", false, true, false, "sgrupo"+idsgrupo);
  123 + }
  124 + }
  125 + }
  126 + novo = novo+'</table>'
  127 + //document.getElementById("bloco").innerHTML = document.getElementById("bloco").innerHTML + novo
  128 +}
  129 +
  130 +if (typeof xmlDoc!="undefined")
  131 +{
  132 + if (window.ActiveXObject) //if IE, simply execute script (due to async prop).
  133 + pegaval()
  134 + else //else if NS6, execute script when XML object has loaded
  135 + xmlDoc.onload=pegaval
  136 +}
  137 +
  138 +function exec(tema)
  139 +{
  140 + host = window.location.host
  141 + if (navn)
  142 + {
  143 + w = window.innerWidth - 150;
  144 + h = window.innerHeight - 100;
  145 + }
  146 + if (navm)
  147 + {
  148 + w = window.screen.availWidth - 150;
  149 + h = window.screen.availHeight - 230;
  150 + }
  151 + mapsize= w+" "+h
  152 + jan = 'http://'+host+'/mapas/mma/ms_criamapa.php?serv='+host+'&layers='+tema+' estadosl &base=reduzido&mapext=-75.048889 -36.906765 -31.048889 7.004346&temasa='+tema+' estadosl&mapsize='+mapsize
  153 + window.open(jan)
  154 +}
  155 +
... ...
pacotes/jsobjects/jsUI-Treeview/maisamarelo.png 0 → 100644

324 Bytes

pacotes/jsobjects/jsUI-Treeview/maisverde.png 0 → 100644

330 Bytes

pacotes/jsobjects/jsUI-Treeview/maisvermelho.png 0 → 100644

324 Bytes

pacotes/jsobjects/jsUI-Treeview/minus.gif 0 → 100644

303 Bytes

pacotes/jsobjects/jsUI-Treeview/plus.gif 0 → 100644

303 Bytes

pacotes/jsobjects/jsUI-Treeview/unknown.gif 0 → 100644

303 Bytes

pacotes/jsobjects/jsUI-Treeview/vssver.scc 0 → 100644
No preview for this file type
pacotes/jsobjects/normal.css 0 → 100644
... ... @@ -0,0 +1,11 @@
  1 +.PageTitle {font-family: Century Gothic, Arial; font-size: 20px; letter-spacing: 0.0pt; font-weight: bold; color: #31344A}
  2 +.TopicHeader {font-size:14px;margin-top:15px;width:200px;margin-bottom:10px;color:#31344A;font-weight:bold}
  3 +.PostHeader {border-bottom:solid 1px #585C8F;font-size:14px;text-align:left;margin-top:10px;width:350px;margin-bottom:5px;color:#31344A;font-weight:bold}
  4 +.PostFooter {font-size:11px;margin-top:5px;margin-bottom:20px;color:gray;}
  5 +.SiteDesc {color: #31344A;font-weight:bold;}
  6 +.menu {border:1px solid #000;padding:10px;width:160px;margin:12px 15px 10px 0px;background-color:#eee}
  7 +.main {margin:12px 15px 10px 10px; padding:15px; border: 1px solid #000;background-color:white}
  8 +Body {margin-top:10px; margin-left:10px;background-color:#ACB0BF;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#ACB0BF', EndColorStr='#31344A');font-family:arial,helvetica; font-size: 9pt;}
  9 +TD {font-family:arial,helvetica; font-size: 9pt;}
  10 +a {text-decoration:none; color: #585C8F}
  11 +a:hover {background-color: #ACB0BF; text-decoration: none; color: #000000}
0 12 \ No newline at end of file
... ...
pacotes/jsobjects/vssver.scc 0 → 100644
No preview for this file type