From 0643096899dcda7b7b55454dcc1e4596ff0d96a8 Mon Sep 17 00:00:00 2001 From: dchandler Date: Sat, 5 Jul 2003 22:13:17 +0000 Subject: [PATCH] Initial revision --- extensions/calpa/CHANGES.txt | 130 ++ extensions/calpa/Docs/CalGuide.html | 100 ++ .../MyFifthCalPaneApplication.java | 26 + .../MyFirstCalPaneApplication.java | 31 + .../MyFourthCalPaneApplication.java | 50 + .../MySecondCalPaneApplication.java | 36 + .../MySixthCalPaneApplication.java | 48 + .../MyThirdCalPaneApplication.java | 68 + .../Docs/html/guide-Forms-accesskey.html | 102 ++ .../calpa/Docs/html/guide-Forms-button.html | 178 +++ .../Docs/html/guide-Forms-buttontag.html | 123 ++ .../calpa/Docs/html/guide-Forms-checkbox.html | 151 ++ .../calpa/Docs/html/guide-Forms-color.html | 133 ++ .../calpa/Docs/html/guide-Forms-combobox.html | 188 +++ .../calpa/Docs/html/guide-Forms-labeltag.html | 101 ++ .../calpa/Docs/html/guide-Forms-radio.html | 151 ++ .../Docs/html/guide-Forms-selection.html | 154 ++ .../calpa/Docs/html/guide-Forms-style.html | 188 +++ .../calpa/Docs/html/guide-Forms-text.html | 143 ++ .../Docs/html/guide-Forms-uiscrollcolors.html | 149 ++ .../calpa/Docs/html/guide-Frames-iframe.html | 99 ++ .../Docs/html/guide-Images-imagemap.html | 169 +++ .../calpa/Docs/html/guide-Misc-align.html | 128 ++ .../Docs/html/guide-Misc-colornames.html | 262 ++++ .../calpa/Docs/html/guide-Misc-float.html | 126 ++ .../calpa/Docs/html/guide-Misc-lines.html | 119 ++ .../calpa/Docs/html/guide-Prog-answers.html | 103 ++ .../Docs/html/guide-Tables-background.html | 133 ++ .../Docs/html/guide-Tables-bordercolors.html | 107 ++ .../calpa/Docs/html/guide-Tables-borders.html | 174 +++ .../calpa/Docs/html/guide-Tables-widths.html | 104 ++ extensions/calpa/Docs/html/images/bill.gif | Bin 0 -> 4665 bytes extensions/calpa/Docs/html/images/flash.gif | Bin 0 -> 1692 bytes extensions/calpa/Docs/html/images/gift.gif | Bin 0 -> 1370 bytes extensions/calpa/Docs/html/images/map.gif | Bin 0 -> 1340 bytes extensions/calpa/Docs/html/images/orchid.gif | Bin 0 -> 7554 bytes extensions/calpa/Docs/html/images/phone.gif | Bin 0 -> 916 bytes extensions/calpa/Docs/html/images/scott.gif | Bin 0 -> 3402 bytes extensions/calpa/Docs/html/mapcircle.html | 8 + extensions/calpa/Docs/html/maprect.html | 8 + extensions/calpa/Docs/html/maptriangle.html | 8 + extensions/calpa/Docs/html/newsflash.html | 34 + extensions/calpa/Docs/html/newsflash2.html | 23 + extensions/calpa/Docs/html/techupdate.html | 36 + .../calpa/Docs/javadoc/allclasses-frame.html | 33 + .../javadoc/calpa/html/CalHTMLManager.html | 545 +++++++ .../javadoc/calpa/html/CalHTMLObserver.html | 387 +++++ .../Docs/javadoc/calpa/html/CalHTMLPane.html | 1190 +++++++++++++++ .../calpa/html/CalHTMLPreferences.html | 1319 +++++++++++++++++ .../calpa/html/DefaultCalHTMLObserver.html | 346 +++++ .../calpa/Docs/javadoc/deprecated-list.html | 108 ++ extensions/calpa/Docs/javadoc/help-doc.html | 136 ++ extensions/calpa/Docs/javadoc/index-all.html | 482 ++++++ extensions/calpa/Docs/javadoc/index.html | 22 + .../calpa/Docs/javadoc/overview-tree.html | 113 ++ extensions/calpa/Docs/javadoc/stylesheet.css | 29 + extensions/calpa/LICENSE.txt | 114 ++ extensions/calpa/README.txt | 1309 ++++++++++++++++ extensions/calpa/html/CalBAB.class | Bin 0 -> 2799 bytes extensions/calpa/html/CalBUI.class | Bin 0 -> 6322 bytes extensions/calpa/html/CalButton.class | Bin 0 -> 4428 bytes extensions/calpa/html/CalCBUI$1.class | Bin 0 -> 761 bytes extensions/calpa/html/CalCBUI$2.class | Bin 0 -> 697 bytes extensions/calpa/html/CalCBUI$3.class | Bin 0 -> 547 bytes extensions/calpa/html/CalCBUI$CalCBLM.class | Bin 0 -> 943 bytes extensions/calpa/html/CalCBUI.class | Bin 0 -> 3724 bytes extensions/calpa/html/CalCDoc.class | Bin 0 -> 283 bytes extensions/calpa/html/CalCL.class | Bin 0 -> 1748 bytes extensions/calpa/html/CalCP.class | Bin 0 -> 981 bytes extensions/calpa/html/CalColGroup.class | Bin 0 -> 376 bytes extensions/calpa/html/CalColTag.class | Bin 0 -> 230 bytes extensions/calpa/html/CalColor.class | Bin 0 -> 14366 bytes extensions/calpa/html/CalCons.class | Bin 0 -> 12223 bytes extensions/calpa/html/CalDialog.class | Bin 0 -> 4170 bytes extensions/calpa/html/CalDoc.class | Bin 0 -> 2769 bytes .../calpa/html/CalEB$ForTargetListener.class | Bin 0 -> 1002 bytes extensions/calpa/html/CalEB.class | Bin 0 -> 1628 bytes extensions/calpa/html/CalECB.class | Bin 0 -> 2190 bytes extensions/calpa/html/CalEDA.class | Bin 0 -> 951 bytes extensions/calpa/html/CalEDB.class | Bin 0 -> 945 bytes extensions/calpa/html/CalESB.class | Bin 0 -> 408 bytes extensions/calpa/html/CalESP$ISB.class | Bin 0 -> 1099 bytes extensions/calpa/html/CalESP.class | Bin 0 -> 977 bytes extensions/calpa/html/CalETA.class | Bin 0 -> 198 bytes extensions/calpa/html/CalElement.class | Bin 0 -> 839 bytes extensions/calpa/html/CalFO.class | Bin 0 -> 1100 bytes extensions/calpa/html/CalFP.class | Bin 0 -> 23682 bytes extensions/calpa/html/CalFocusManager.class | Bin 0 -> 1153 bytes extensions/calpa/html/CalFonts.class | Bin 0 -> 2683 bytes extensions/calpa/html/CalForm.class | Bin 0 -> 14010 bytes extensions/calpa/html/CalFormHandler.class | Bin 0 -> 6334 bytes extensions/calpa/html/CalFormItem.class | Bin 0 -> 3178 bytes .../html/CalFrameset$CursorListener.class | Bin 0 -> 1556 bytes .../html/CalFrameset$FramesetLayout.class | Bin 0 -> 1273 bytes .../html/CalFrameset$ResizeListener.class | Bin 0 -> 630 bytes extensions/calpa/html/CalFrameset.class | Bin 0 -> 11294 bytes extensions/calpa/html/CalHTMLManager.class | Bin 0 -> 4751 bytes extensions/calpa/html/CalHTMLObserver.class | Bin 0 -> 614 bytes extensions/calpa/html/CalHTMLPane$PFL.class | Bin 0 -> 435 bytes extensions/calpa/html/CalHTMLPane.class | Bin 0 -> 13809 bytes .../calpa/html/CalHTMLPreferences.class | Bin 0 -> 6815 bytes extensions/calpa/html/CalHistoryItem.class | Bin 0 -> 486 bytes extensions/calpa/html/CalHistoryManager.class | Bin 0 -> 1302 bytes extensions/calpa/html/CalImage.class | Bin 0 -> 5147 bytes extensions/calpa/html/CalImageMap.class | Bin 0 -> 2882 bytes extensions/calpa/html/CalImageMapArea.class | Bin 0 -> 2032 bytes extensions/calpa/html/CalImageMapCoords.class | Bin 0 -> 452 bytes extensions/calpa/html/CalLP.class | Bin 0 -> 9743 bytes extensions/calpa/html/CalLayoutAdapter.class | Bin 0 -> 685 bytes extensions/calpa/html/CalLength.class | Bin 0 -> 211 bytes extensions/calpa/html/CalLiner.class | Bin 0 -> 23374 bytes extensions/calpa/html/CalMetrics.class | Bin 0 -> 9521 bytes .../calpa/html/CalNavBar$NavListener.class | Bin 0 -> 2271 bytes extensions/calpa/html/CalNavBar.class | Bin 0 -> 3269 bytes extensions/calpa/html/CalObject.class | Bin 0 -> 1661 bytes extensions/calpa/html/CalPixels.class | Bin 0 -> 2807 bytes extensions/calpa/html/CalRBUI.class | Bin 0 -> 2933 bytes extensions/calpa/html/CalRowGroup.class | Bin 0 -> 260 bytes extensions/calpa/html/CalSBUI.class | Bin 0 -> 3281 bytes extensions/calpa/html/CalScrollPane.class | Bin 0 -> 2088 bytes extensions/calpa/html/CalSpecial.class | Bin 0 -> 2444 bytes extensions/calpa/html/CalStackFloatItem.class | Bin 0 -> 248 bytes extensions/calpa/html/CalStackFont.class | Bin 0 -> 311 bytes extensions/calpa/html/CalStackList.class | Bin 0 -> 243 bytes extensions/calpa/html/CalTable.class | Bin 0 -> 19083 bytes extensions/calpa/html/CalTableCell.class | Bin 0 -> 896 bytes extensions/calpa/html/CalTableItem.class | Bin 0 -> 977 bytes extensions/calpa/html/CalTableRow.class | Bin 0 -> 530 bytes extensions/calpa/html/CalTableView.class | Bin 0 -> 4211 bytes extensions/calpa/html/CalTagFrame.class | Bin 0 -> 1986 bytes extensions/calpa/html/CalTagFrameset.class | Bin 0 -> 1794 bytes extensions/calpa/html/CalThreadLiner.class | Bin 0 -> 3472 bytes extensions/calpa/html/CalUtilities.class | Bin 0 -> 1108 bytes extensions/calpa/html/CalView.class | Bin 0 -> 7526 bytes .../calpa/html/CalViewer$CursorListener.class | Bin 0 -> 563 bytes .../calpa/html/CalViewer$LinkListener.class | Bin 0 -> 3181 bytes extensions/calpa/html/CalViewer.class | Bin 0 -> 27277 bytes extensions/calpa/html/CalViewport.class | Bin 0 -> 2465 bytes .../calpa/html/DefaultCalHTMLObserver.class | Bin 0 -> 829 bytes 139 files changed, 10024 insertions(+) create mode 100644 extensions/calpa/CHANGES.txt create mode 100644 extensions/calpa/Docs/CalGuide.html create mode 100644 extensions/calpa/Docs/ReadMeExamples/MyFifthCalPaneApplication.java create mode 100644 extensions/calpa/Docs/ReadMeExamples/MyFirstCalPaneApplication.java create mode 100644 extensions/calpa/Docs/ReadMeExamples/MyFourthCalPaneApplication.java create mode 100644 extensions/calpa/Docs/ReadMeExamples/MySecondCalPaneApplication.java create mode 100644 extensions/calpa/Docs/ReadMeExamples/MySixthCalPaneApplication.java create mode 100644 extensions/calpa/Docs/ReadMeExamples/MyThirdCalPaneApplication.java create mode 100644 extensions/calpa/Docs/html/guide-Forms-accesskey.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-button.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-buttontag.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-checkbox.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-color.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-combobox.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-labeltag.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-radio.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-selection.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-style.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-text.html create mode 100644 extensions/calpa/Docs/html/guide-Forms-uiscrollcolors.html create mode 100644 extensions/calpa/Docs/html/guide-Frames-iframe.html create mode 100644 extensions/calpa/Docs/html/guide-Images-imagemap.html create mode 100644 extensions/calpa/Docs/html/guide-Misc-align.html create mode 100644 extensions/calpa/Docs/html/guide-Misc-colornames.html create mode 100644 extensions/calpa/Docs/html/guide-Misc-float.html create mode 100644 extensions/calpa/Docs/html/guide-Misc-lines.html create mode 100644 extensions/calpa/Docs/html/guide-Prog-answers.html create mode 100644 extensions/calpa/Docs/html/guide-Tables-background.html create mode 100644 extensions/calpa/Docs/html/guide-Tables-bordercolors.html create mode 100644 extensions/calpa/Docs/html/guide-Tables-borders.html create mode 100644 extensions/calpa/Docs/html/guide-Tables-widths.html create mode 100644 extensions/calpa/Docs/html/images/bill.gif create mode 100644 extensions/calpa/Docs/html/images/flash.gif create mode 100644 extensions/calpa/Docs/html/images/gift.gif create mode 100644 extensions/calpa/Docs/html/images/map.gif create mode 100644 extensions/calpa/Docs/html/images/orchid.gif create mode 100644 extensions/calpa/Docs/html/images/phone.gif create mode 100644 extensions/calpa/Docs/html/images/scott.gif create mode 100644 extensions/calpa/Docs/html/mapcircle.html create mode 100644 extensions/calpa/Docs/html/maprect.html create mode 100644 extensions/calpa/Docs/html/maptriangle.html create mode 100644 extensions/calpa/Docs/html/newsflash.html create mode 100644 extensions/calpa/Docs/html/newsflash2.html create mode 100644 extensions/calpa/Docs/html/techupdate.html create mode 100644 extensions/calpa/Docs/javadoc/allclasses-frame.html create mode 100644 extensions/calpa/Docs/javadoc/calpa/html/CalHTMLManager.html create mode 100644 extensions/calpa/Docs/javadoc/calpa/html/CalHTMLObserver.html create mode 100644 extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPane.html create mode 100644 extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPreferences.html create mode 100644 extensions/calpa/Docs/javadoc/calpa/html/DefaultCalHTMLObserver.html create mode 100644 extensions/calpa/Docs/javadoc/deprecated-list.html create mode 100644 extensions/calpa/Docs/javadoc/help-doc.html create mode 100644 extensions/calpa/Docs/javadoc/index-all.html create mode 100644 extensions/calpa/Docs/javadoc/index.html create mode 100644 extensions/calpa/Docs/javadoc/overview-tree.html create mode 100644 extensions/calpa/Docs/javadoc/stylesheet.css create mode 100644 extensions/calpa/LICENSE.txt create mode 100644 extensions/calpa/README.txt create mode 100644 extensions/calpa/html/CalBAB.class create mode 100644 extensions/calpa/html/CalBUI.class create mode 100644 extensions/calpa/html/CalButton.class create mode 100644 extensions/calpa/html/CalCBUI$1.class create mode 100644 extensions/calpa/html/CalCBUI$2.class create mode 100644 extensions/calpa/html/CalCBUI$3.class create mode 100644 extensions/calpa/html/CalCBUI$CalCBLM.class create mode 100644 extensions/calpa/html/CalCBUI.class create mode 100644 extensions/calpa/html/CalCDoc.class create mode 100644 extensions/calpa/html/CalCL.class create mode 100644 extensions/calpa/html/CalCP.class create mode 100644 extensions/calpa/html/CalColGroup.class create mode 100644 extensions/calpa/html/CalColTag.class create mode 100644 extensions/calpa/html/CalColor.class create mode 100644 extensions/calpa/html/CalCons.class create mode 100644 extensions/calpa/html/CalDialog.class create mode 100644 extensions/calpa/html/CalDoc.class create mode 100644 extensions/calpa/html/CalEB$ForTargetListener.class create mode 100644 extensions/calpa/html/CalEB.class create mode 100644 extensions/calpa/html/CalECB.class create mode 100644 extensions/calpa/html/CalEDA.class create mode 100644 extensions/calpa/html/CalEDB.class create mode 100644 extensions/calpa/html/CalESB.class create mode 100644 extensions/calpa/html/CalESP$ISB.class create mode 100644 extensions/calpa/html/CalESP.class create mode 100644 extensions/calpa/html/CalETA.class create mode 100644 extensions/calpa/html/CalElement.class create mode 100644 extensions/calpa/html/CalFO.class create mode 100644 extensions/calpa/html/CalFP.class create mode 100644 extensions/calpa/html/CalFocusManager.class create mode 100644 extensions/calpa/html/CalFonts.class create mode 100644 extensions/calpa/html/CalForm.class create mode 100644 extensions/calpa/html/CalFormHandler.class create mode 100644 extensions/calpa/html/CalFormItem.class create mode 100644 extensions/calpa/html/CalFrameset$CursorListener.class create mode 100644 extensions/calpa/html/CalFrameset$FramesetLayout.class create mode 100644 extensions/calpa/html/CalFrameset$ResizeListener.class create mode 100644 extensions/calpa/html/CalFrameset.class create mode 100644 extensions/calpa/html/CalHTMLManager.class create mode 100644 extensions/calpa/html/CalHTMLObserver.class create mode 100644 extensions/calpa/html/CalHTMLPane$PFL.class create mode 100644 extensions/calpa/html/CalHTMLPane.class create mode 100644 extensions/calpa/html/CalHTMLPreferences.class create mode 100644 extensions/calpa/html/CalHistoryItem.class create mode 100644 extensions/calpa/html/CalHistoryManager.class create mode 100644 extensions/calpa/html/CalImage.class create mode 100644 extensions/calpa/html/CalImageMap.class create mode 100644 extensions/calpa/html/CalImageMapArea.class create mode 100644 extensions/calpa/html/CalImageMapCoords.class create mode 100644 extensions/calpa/html/CalLP.class create mode 100644 extensions/calpa/html/CalLayoutAdapter.class create mode 100644 extensions/calpa/html/CalLength.class create mode 100644 extensions/calpa/html/CalLiner.class create mode 100644 extensions/calpa/html/CalMetrics.class create mode 100644 extensions/calpa/html/CalNavBar$NavListener.class create mode 100644 extensions/calpa/html/CalNavBar.class create mode 100644 extensions/calpa/html/CalObject.class create mode 100644 extensions/calpa/html/CalPixels.class create mode 100644 extensions/calpa/html/CalRBUI.class create mode 100644 extensions/calpa/html/CalRowGroup.class create mode 100644 extensions/calpa/html/CalSBUI.class create mode 100644 extensions/calpa/html/CalScrollPane.class create mode 100644 extensions/calpa/html/CalSpecial.class create mode 100644 extensions/calpa/html/CalStackFloatItem.class create mode 100644 extensions/calpa/html/CalStackFont.class create mode 100644 extensions/calpa/html/CalStackList.class create mode 100644 extensions/calpa/html/CalTable.class create mode 100644 extensions/calpa/html/CalTableCell.class create mode 100644 extensions/calpa/html/CalTableItem.class create mode 100644 extensions/calpa/html/CalTableRow.class create mode 100644 extensions/calpa/html/CalTableView.class create mode 100644 extensions/calpa/html/CalTagFrame.class create mode 100644 extensions/calpa/html/CalTagFrameset.class create mode 100644 extensions/calpa/html/CalThreadLiner.class create mode 100644 extensions/calpa/html/CalUtilities.class create mode 100644 extensions/calpa/html/CalView.class create mode 100644 extensions/calpa/html/CalViewer$CursorListener.class create mode 100644 extensions/calpa/html/CalViewer$LinkListener.class create mode 100644 extensions/calpa/html/CalViewer.class create mode 100644 extensions/calpa/html/CalViewport.class create mode 100644 extensions/calpa/html/DefaultCalHTMLObserver.class diff --git a/extensions/calpa/CHANGES.txt b/extensions/calpa/CHANGES.txt new file mode 100644 index 0000000..ed7d779 --- /dev/null +++ b/extensions/calpa/CHANGES.txt @@ -0,0 +1,130 @@ + calpa.html Java package + + Changes since Version 2.0 beta + + +Version 2.021 + + - Verison 2.02 was very short-lived. The system font bug in Java 2 + which had been pointed out in the KNOWN PROBLEMS of readme.txt was + causing a number of unforseen problems for CalPane users when the + tag was used. Regrettably therefore the support of + system fonts has once again been disabled within CalPane. The code + will be reactivated when JavaSoft have fixed the Java 2 bug. + + +Version 2.02 + + - New methods in CalHTMLPane to force synchronous loading of + documents: + + setLoadSynchronously(boolean b) + isLoadSynchronouslyEnabled() + + If loadSynchronously is enabled then showHTMLDocument() methods + will not return until a document has loaded. In addition documents + loading from activated hyperlinks will also load synchronously. + + Loading synchronously effectively blocks the current AWT thread + which will reduce the responsiveness of CalPane, but can be useful + for programmers who want to be sure that a document has loaded + before proceeding with another operation. Generally it is better + to use the callback methods in CalHTMLObserver to determine when a + document has finished loading. + + + - New method in CalHTMLPane to allow access to form components: + + getIDComponents(String targetFrame) + + This method returns a Hashtable containing all components in the + target frame which have the HTML 'id' attribute, as for example: + + + + This method allows programmers to get handles to HTML form + components after they have been created, either to monitor/ + manipulate their state, or programmatically fire a form submission. + + If the target frame is null then all id components within the + CalPane are returned. + + + - Enhancement of form submission to give feedback on custom + components. When a custom component is included in a form via the + OBJECT tag, the CalPane will call that component's toString() method + and include this string in the form submission. This enables users + to pass information regarding the state of the component by + overriding the toString() method. For example, if you had added a + JColorChooser like this: + + + + ...you could override toString() to pass the RGB values of the + selected color. The form submission would include the text: + + chooser=[whatever toString() returns] + + + - New methods added to CalHTMLPreferences to allow programmers to + handle hyperlink events themselves: + + setAutomaticallyFollowHyperlinks(boolean) + isAutomaticallyFollowHyperlinksEnabled() + + + - New method added to CalHTMLPane for programmers using HTML + Strings rather than URLs: + + scrollToReference(String ref, String targetFrame) + + + - The CalGuide now includes a page containing answers to some common + programming questions. + + + - New methods added to CalHTMLPreferences: + + setDefaultFont(int displaySize, Font font) + getDefaultFont(int displaySize) + setDefaultButtonFont(int displaySize, Font font) + getDefaultButtonFont(int displaySize) + setDefaultFormTextFont(int displaySize, Font font) + getDefaultFormTextFont(int displaySize) + + These methods have been incorporated to allow the setting of + system fonts under Java 2. They replace the following 1.1 methods + which are now deprecated: + + setDefaultFont(int, int, int) + setFormFont(int, int, int, int) + + + - New methods added to CalHTMLPreferences: + + setShowHyperlinkOnMouseFocus(boolean) + isShowHyperlinkOnMouseFocusEnabled() + + This hyperlink policy is commonly used in help systems where it is + obvious that all text is a hyperlink entry, and users only need to + know which hyperlink currently has focus. + + + - Bug Fixes: A few changes made to fix problems with borderless + frames. In particular the 'frameborder' attribute was incorrectly + implemented in FRAMESET tags: frameborder=no and frameborder=yes + were working the wrong way round. In addition viewport borders + were not being drawn around borderless framesets. + + +Version 2.01b + + - Bug Fix: An exception was being thrown when loading a document + containing over 8000 hyperlinks. + + - Bug Fix: The DOC_LOADED call from the top level frame was + incorrectly being sent twice to the statusUpdate() method + of CalHTMLObserver. + + - Bug Fix: The 'reload' argument sent to the CalPane's + showHTMLDocument() method was being ignored. diff --git a/extensions/calpa/Docs/CalGuide.html b/extensions/calpa/Docs/CalGuide.html new file mode 100644 index 0000000..e745431 --- /dev/null +++ b/extensions/calpa/Docs/CalGuide.html @@ -0,0 +1,100 @@ + + + + + + + +
+CalHTMLPane v2.0 + +Guide Index +
+
+ + + + +

+

CalHTMLPane v2.0 Guide

+ +
    +
  1. General +

    +

      +
    1. Getting started/Author's notes + +
    +

    +

  2. Example Tag Usage +

    +

      +
    1. Tables + +

      +

    2. Forms + +

      +

    3. Frames + +

      +

    4. Images + +

      +

    5. Misc + +
    +

    +

  3. Programming the CalHTMLPane +

    +

      +
    1. Javadoc + +
    2. Misc + +
    +
+

+


+
+Copyright © 1999 Andrew Moulden, 82A Queens Road, Leicester, LE2 1TU, United Kingdom +
+ + diff --git a/extensions/calpa/Docs/ReadMeExamples/MyFifthCalPaneApplication.java b/extensions/calpa/Docs/ReadMeExamples/MyFifthCalPaneApplication.java new file mode 100644 index 0000000..f9bbb52 --- /dev/null +++ b/extensions/calpa/Docs/ReadMeExamples/MyFifthCalPaneApplication.java @@ -0,0 +1,26 @@ +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MyFifthCalPaneApplication { + + public static void main(String args[]) { + + String markup = "

Hello World

"; + + //create ColorChooser, name it, add it to CalHTMLManager + JColorChooser chooser = new JColorChooser(); + chooser.setName("mycolorchooser"); + CalHTMLManager.addUserComponent(chooser); + + JFrame f = new JFrame(); + CalHTMLPane pane = new CalHTMLPane(); + f.getContentPane().add(pane, "Center"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + pane.showHTMLDocument(markup); + } +} + diff --git a/extensions/calpa/Docs/ReadMeExamples/MyFirstCalPaneApplication.java b/extensions/calpa/Docs/ReadMeExamples/MyFirstCalPaneApplication.java new file mode 100644 index 0000000..ed2fbe1 --- /dev/null +++ b/extensions/calpa/Docs/ReadMeExamples/MyFirstCalPaneApplication.java @@ -0,0 +1,31 @@ +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MyFirstCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + //This is an example URL. You need to format your own. + //If you use an http URL you'll need an open http connection + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + CalHTMLPane pane = new CalHTMLPane(); + f.getContentPane().add(pane, "Center"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + pane.requestFocus(); + } + } +} diff --git a/extensions/calpa/Docs/ReadMeExamples/MyFourthCalPaneApplication.java b/extensions/calpa/Docs/ReadMeExamples/MyFourthCalPaneApplication.java new file mode 100644 index 0000000..d317531 --- /dev/null +++ b/extensions/calpa/Docs/ReadMeExamples/MyFourthCalPaneApplication.java @@ -0,0 +1,50 @@ +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MyFourthCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + JLabel label = new JLabel("0"); + label.setBorder(BorderFactory.createEmptyBorder(2, 8, 2, 8)); + label.setPreferredSize(label.getPreferredSize()); + label.setText(""); + CalHTMLPane pane = new CalHTMLPane(null, new MyCalHTMLObserver(label), null); + f.getContentPane().add(pane, "Center"); + f.getContentPane().add(label, "South"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + } + } + + + private static class MyCalHTMLObserver extends DefaultCalHTMLObserver { + + JLabel label; + + public MyCalHTMLObserver(JLabel label) { + + super(); + this.label = label; + } + + public void linkFocusedUpdate(CalHTMLPane p, URL url) { + + label.setText((url == null) ? "" : url.toExternalForm()); + } + } +} diff --git a/extensions/calpa/Docs/ReadMeExamples/MySecondCalPaneApplication.java b/extensions/calpa/Docs/ReadMeExamples/MySecondCalPaneApplication.java new file mode 100644 index 0000000..cd30b60 --- /dev/null +++ b/extensions/calpa/Docs/ReadMeExamples/MySecondCalPaneApplication.java @@ -0,0 +1,36 @@ +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MySecondCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + + //create a Preferences object + CalHTMLPreferences pref = new CalHTMLPreferences(); + + //use one of its methods to enable the test navbar + pref.setShowTestNavBar(true); + + //now pass the pref object to the Pane's constructor + CalHTMLPane pane = new CalHTMLPane(pref, null, null); + f.getContentPane().add(pane, "Center"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + } + } +} diff --git a/extensions/calpa/Docs/ReadMeExamples/MySixthCalPaneApplication.java b/extensions/calpa/Docs/ReadMeExamples/MySixthCalPaneApplication.java new file mode 100644 index 0000000..1e61d66 --- /dev/null +++ b/extensions/calpa/Docs/ReadMeExamples/MySixthCalPaneApplication.java @@ -0,0 +1,48 @@ +import java.awt.*; +import java.awt.event.*; +import javax.swing.*; +import calpa.html.*; + +public class MySixthCalPaneApplication { + + public static void main(String args[]) { + + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + d.width = Math.min(d.width, 800); + d.height = Math.min(d.height, 600); + JFrame f = new JFrame(); + CalHTMLPane pane = new CalHTMLPane(); + JPanel p = new JPanel(); + JTextArea ta = new JTextArea(); + ta.setLineWrap(true); + JScrollPane sp = new JScrollPane(ta); + sp.setPreferredSize(new Dimension(d.width / 2, d.height / 4)); + JButton b = new JButton("Show Dialog"); + b.addActionListener(new MyListener(pane, ta)); + p.add(sp); + p.add(b); + f.getContentPane().add(pane, "Center"); + f.getContentPane().add(p, "South"); + f.setSize(new Dimension(d.width - 10, d.height - 40)); + f.setVisible(true); + } + + private static class MyListener implements ActionListener { + + CalHTMLPane pane; + JTextArea ta; + + public MyListener(CalHTMLPane pane, JTextArea ta) { + + this.pane = pane; + this.ta = ta; + } + + public void actionPerformed(ActionEvent e) { + + pane.showDialog(ta.getText(), null, -1, -1, -1, -1); + } + } + +} + diff --git a/extensions/calpa/Docs/ReadMeExamples/MyThirdCalPaneApplication.java b/extensions/calpa/Docs/ReadMeExamples/MyThirdCalPaneApplication.java new file mode 100644 index 0000000..17934a1 --- /dev/null +++ b/extensions/calpa/Docs/ReadMeExamples/MyThirdCalPaneApplication.java @@ -0,0 +1,68 @@ +import java.net.*; +import java.awt.*; +import java.awt.event.*; +import javax.swing.*; +import calpa.html.*; + +public class MyThirdCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + CalHTMLPane pane = new CalHTMLPane(); + f.getContentPane().add(pane, "Center"); + + //create a panel, add buttons, and add a listener to the buttons + JPanel p = new JPanel(); + MyListener ml = new MyListener(pane); + String[] s = {"Reload", "Back", "Forward", "Stop"}; + JButton b; + for (int i=0; i<4; i++) { + b = new JButton(s[i]); + b.addActionListener(ml); + p.add(b); + } + f.getContentPane().add(p, "South"); + + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + } + } + + + private static class MyListener implements ActionListener { + + CalHTMLPane pane; + + public MyListener(CalHTMLPane pane) { + + this.pane = pane; + } + + public void actionPerformed(ActionEvent e) { + + String s = e.getActionCommand(); + + if (("Reload").equals(s)) { + pane.reloadDocument(); + } else if (("Back").equals(s)) { + pane.goBack(); + } else if (("Forward").equals(s)) { + pane.goForward(); + } else if (("Stop").equals(s)) { + pane.stopAll(); + } + } + } +} diff --git a/extensions/calpa/Docs/html/guide-Forms-accesskey.html b/extensions/calpa/Docs/html/guide-Forms-accesskey.html new file mode 100644 index 0000000..c22d01f --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-accesskey.html @@ -0,0 +1,102 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Attr: accesskey
+ +

+ + + + + + + + + +
+Synopsis:
+Use this attribute to give a keyboard accelerator to a form component. + +

For form buttons created with the INPUT tag the button text will show +the accelerator underlined. + +

For other controls the U (underline) tag can be used to mark the key +accelerator. + +

Note that the LABEL tag can be used to pass focus to another form +component by using the for attribute (see HTML4.0 spec). + +

+

+Example: +

+ + + + +
+ +<P align=center>
+<INPUT type=button value="Press me" accesskey="P">  
+Your <U>n</U>ame: <INPUT type=text accesskey=n>
+<P align=center>
+<LABEL bgcolor=white for=mycombo accesskey='c'><U>C</U>omposer</LABEL>
+<SELECT id=mycombo>
+  <OPTION>Mozart
+  <OPTION>Schubert
+  <OPTION>Bach
+</SELECT>
+
+

+ + +

+Rendering: +Note: Java 1.2 has a bug (no. 4159610) relating to this example. If +the textfield has focus and an accelerator is used for a different control, the +accelerator character will show within the textfield +

+   +Your name: +

+ + +
+
+ +

+

+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-button.html b/extensions/calpa/Docs/html/guide-Forms-button.html new file mode 100644 index 0000000..86e53e9 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-button.html @@ -0,0 +1,178 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: INPUT (submit)
+Tag: INPUT (reset)
+Tag: INPUT (button)
+

+

+ + + + + + + + + + + + + +
+Default Rendering (no color modification): +

+

+ ++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
 lookandfeelthreedeeflush
uicontrol +
white +
black +
(light) +
(dark) +
+
+
+
+Setting color attributes: +

+ + + + +
+<TABLE border=2 cellspacing=2 cellpadding=5 width=200 bgcolor=uicontrol>
+  <COLGROUP span=2 align=center width=50%></COLGROUP>
+  <TR><TH>threedee</TH><TH>flush</TH></TR>
+  <TR bgcolor=aa88aa><TD>
+    <INPUT type=button style=threedee bgcolor=aa88aa value="Press Me">
+    <INPUT type=button style=flush bgcolor=aa88aa value="Press Me">
+  </TD></TR>
+ +  <TR><TD>
+    <INPUT type=button style=threedee bgcolor=779988 value="Press Me">
+    <INPUT type=buton style=flush bgcolor=779988 value="Press Me">
+  </TD></TR>
+ +  <TR bgcolor=ee99aa><TD>
+    <INPUT type=button style=threedee bgcolor=ee99aa value="Press Me">
+    <INPUT type=button style=flush bgcolor=ee99aa value="Press Me">
+  </TD></TR>
+ +  <TR><TD>
+    <INPUT type=button style=threedee bgcolor=ccaa22 value="Press Me">
+    <INPUT type=button style=flush bgcolor=ccaa22 value="Press Me">
+  </TD></TR>
+ + +</TABLE>
+
+

+

+

+Rendering: +
+ ++ + + + + + + + + + + + + + + + + + +
threedeeflush
+
+

+The inner highlight of the flush style can be removed by +setting the control's bordercolorlight to the same color as its background +

+ + +
+<TABLE align=center border=2 cellspacing=2 cellpadding=5 width=100 bgcolor=aabbcc>
+<TR><TD>
+  <INPUT type=button align=bottom style=flush bgcolor=aabbcc
+  bordercolorlight=aabbcc value="Press Me">
+</TD></TR>
+</TABLE> +
+

+ + + + +
+ +
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-buttontag.html b/extensions/calpa/Docs/html/guide-Forms-buttontag.html new file mode 100644 index 0000000..d9b2119 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-buttontag.html @@ -0,0 +1,123 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: BUTTON
+

+

+ + + + + + + + + + + + + + + +
+Synopsis:
+The BUTTON tag can contain HTML content, although it cannot contain +other form components, framesets, or hyperlinks. +

Within the threedee and flush styles the marginwidth and marginheight +attributes determine the button's insets (the gap between the button's border +and its content). The default marginwidth is 5 pixels, default marginheight 2 pixels. +

This tag takes the type attribute. The default type is submit. +

Note that to get the spacing and word-wrap you desire within the button it +is often advisable to format content using tables. +

+Example: +

+ + + + +
+<BUTTON style=lookandfeel bgcolor=ccaacc>
+  <IMG src="images/gift.gif" align=left>
+  <DIV align=center>Click<BR>here for<BR clear=left>your special<BR>
+  <FONT color=red><B><I>FREE GIFT!!</I></B></FONT></DIV>
+</BUTTON> +

+<BUTTON style=threedee bgcolor=palegreen>
+  <IMG src="images/gift.gif" align=left>
+  <DIV align=center>Click<BR>here for<BR clear=left>your special<BR>
+  <FONT color=red><B><I>FREE GIFT!!</I></B></FONT></DIV>
+</BUTTON> +

+<BUTTON style=flush bgcolor=aaaaee>
+  <IMG src="images/gift.gif" align=left>
+  <DIV align=center>Click<BR>here for<BR clear=left>your special<BR>
+  <FONT color=yellow><B><I>FREE GIFT!!</I></B></FONT></DIV>
+</BUTTON> +

+

+

+Rendering: +

+ ++ + + + + + + +
lookandfeelthreedeeflush
+ + + + + +
+
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-checkbox.html b/extensions/calpa/Docs/html/guide-Forms-checkbox.html new file mode 100644 index 0000000..24cb3d2 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-checkbox.html @@ -0,0 +1,151 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: INPUT (checkbox)
+

+

+ + + + + + + + + + + + +
+Default Rendering (no color modification): +

+ ++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
 lookandfeelthreedeeflush
uicontrol + Text Text Text
white + Text Text Text
black + Text Text Text
(light) + Text Text Text
(dark) + Text Text Text
+
+

+Setting color attributes: +

+ + + + +
+<TABLE border=2 cellspacing=2 cellpadding=5 width=200 bgcolor=uicontrol>
+  <COLGROUP span=2 align=center width=50%></COLGROUP>
+  <TR><TH>threedee</TH><TH>flush</TH></TR>
+  <TR><TD>
+    <INPUT type=checkbox style=threedee bgcolor=uicontrol> Text
+    <INPUT type=checkbox style=flush bgcolor=green text=white> Text
+  </TD></TR>
+ +  <TR bgcolor=779988><TD>
+    <INPUT type=checkbox style=threedee bgcolor=779988> Text
+    <INPUT type=checkbox style=flush bgcolor=779988 text=yellow> Text
+  </TD></TR>
+ +  <TR bgcolor=ee99aa><TD>
+    <INPUT type=checkbox style=threedee bgcolor=ee99aa> Text
+    <INPUT type=checkbox style=flush bgcolor=red text=white> Text
+  </TD></TR>
+ +  <TR bgcolor=ccaa22><TD>
+    <INPUT type=checkbox style=threedee bgcolor=ccaa22> Text
+    <INPUT type=checkbox style=flush bgcolor=ccaa22> Text
+  </TD></TR>
+ + +</TABLE>
+
+

+

+

+Rendering: +
+ ++ + + + + + + + + + + + + + + + + + +
threedeeflush
Text Text
Text Text
Text Text
Text Text
+
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-color.html b/extensions/calpa/Docs/html/guide-Forms-color.html new file mode 100644 index 0000000..03bda10 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-color.html @@ -0,0 +1,133 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Attr: bgcolor
+Attr: bordercolorlight
+Attr: bordercolordark
+Attr: bordercolor
+Attr: text
+Attr: arrowcolor
+

+

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Use Within:
+<INPUT> <TEXTAREA>, <SELECT>, <BUTTON>, + <LABEL> +
+Arguments: A hexidecimal color code or default color name
+e.g. bordercolorlight=A0A0A0 bordercolordark=green +
+Synopsis:
+bgcolor determines the base control color of the form component. +

bordercolorlight sets the highlight color of the component. +

bordercolordark sets the shadow color of the component. +

bordercolor sets the background of text components, lists etc.
+except when used within <LABEL> when it sets the label border color +

text sets the foreground (text) color. +

arrowcolor sets the color of arrows within comboboxes and scroll buttons. +

+Example: +

+ + + + +
+<TABLE border=3 cellspacing=3 cellpadding=5 bgcolor=6688aa>
+  <TR><TD align=center>
+    <SELECT style=flush text=white arrowcolor=white align=bottom>
+      <OPTION>Winnie the Pooh
+      <OPTION>Bambi
+      <OPTION>Babe
+      <OPTION>E.T.
+    </SELECT>
+  </TD></TR>
+  <TR><TD>
+    <TEXTAREA style=threedee bgcolor=6688aa rows=4 bordercolor=ddddff
+    align=bottom>Target locked...
+    </TEXTAREA>
+  </TD></TR>
+  <TR><TD align=center>
+    <INPUT style=threedee type=button bgcolor=dd0000 text=white
+     value=Fire align=bottom>
+  </TD></TR>
+</TABLE>
+
+

+

+Rendering: +
+ + + + + +
+ +
+
+
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-combobox.html b/extensions/calpa/Docs/html/guide-Forms-combobox.html new file mode 100644 index 0000000..e3f6ae9 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-combobox.html @@ -0,0 +1,188 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: SELECT (combobox)
+

+

+ + + + + + + + + + + + +
+Default Rendering (no color modification): +

+

+ ++ + + + + + + +
lookandfeelthreedeeflush
+ + + + + +
+
+
+With color attributes: +

+ + +
+<SELECT style=threedee bgcolor=ccbbcc>
+<SELECT style=flush bgcolor=ccbbcc>
+
+

+ ++ + + + +
threedeeflush
+ + + +
+
+

+Use the bordercolorlight attribute to soften the inner highlight color +of the flush style +

+ + +
+<SELECT style=flush bgcolor=ccbbcc bordercolorlight=eeddee>
+
+

+ + +
+ + +
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-labeltag.html b/extensions/calpa/Docs/html/guide-Forms-labeltag.html new file mode 100644 index 0000000..e53ac18 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-labeltag.html @@ -0,0 +1,101 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: LABEL
+

+

+ + + + + + + + + + + + + + +
+Synopsis:
+The LABEL tag can contain HTML content, although it cannot contain +other form components, framesets, or hyperlinks. + +

The marginwidth and marginheight +attributes determine the label's insets (the gap between the button's border +and its content). The default marginwidth is 3 pixels, default marginheight 2 pixels. + +

Use the for attribute to transfer focus from a label to another +form component (see HTML4.0 spec). + +

Use the border attribute to set the size of the label's border and +the bordercolor attribute to set the border's color. + +

Use the dropshadow attribute to give the label a small shadow effect. + +

Note that to get the spacing and word-wrap you desire within the label it +is often advisable to format content using tables. + +

+Example: +

+ + + + +
+<LABEL dropshadow border=1 bordercolor=black bgcolor=ddddee>
+  <TABLE cellspacing=2><TR><TD align=center>
+    <FONT size=-1 face=helvetica>Call now for<BR>information</FONT>
+  </TD><TD>
+    <IMG src="images/phone.gif">
+  </TD></TR></TABLE>
+</LABEL>
+
+

+

+Rendering: +
+ +
+
+
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-radio.html b/extensions/calpa/Docs/html/guide-Forms-radio.html new file mode 100644 index 0000000..afc5f75 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-radio.html @@ -0,0 +1,151 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: INPUT (radio)
+

+

+ + + + + + + + + + +
+Default Rendering (no color modification): +

+ + ++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
 lookandfeelthreedeeflush
uicontrol + Text Text Text
white + Text Text Text
black + Text Text Text
(light) + Text Text Text
(dark) + Text Text Text
+ +
+

+Setting color attributes: +

+ + + + +
+<TABLE border=2 cellspacing=2 cellpadding=5 width=200 bgcolor=uicontrol>
+  <COLGROUP span=2 align=center width=50%></COLGROUP>
+  <TR><TH>threedee</TH><TH>flush</TH></TR>
+  <TR bgcolor=aa88aa><TD>
+    <INPUT type=radio style=threedee bgcolor=aa88aa> Text
+    <INPUT type=radio style=flush bgcolor=aa88aa> Text
+  </TD></TR>
+ +  <TR bgcolor=779988><TD>
+    <INPUT type=radio style=threedee bgcolor=779988> Text
+    <INPUT type=radio style=flush bgcolor=779988> Text
+  </TD></TR>
+ +  <TR bgcolor=ee99aa><TD>
+    <INPUT type=radio style=threedee bgcolor=ee99aa> Text
+    <INPUT type=radio style=flush bgcolor=ee99aa> Text
+  </TD></TR>
+ +  <TR bgcolor=ccaa22><TD>
+    <INPUT type=radio style=threedee bgcolor=ccaa22> Text
+    <INPUT type=radio style=flush bgcolor=ccaa22> Text
+  </TD></TR>
+ + +</TABLE>
+
+

+

+

+Rendering: +
+ ++ + + + + + + + + + + + + + + + + + +
threedeeflush
Text Text
Text Text
Text Text
Text Text
+
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-selection.html b/extensions/calpa/Docs/html/guide-Forms-selection.html new file mode 100644 index 0000000..d4fe659 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-selection.html @@ -0,0 +1,154 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: SELECT (list)
+

+

+ + + + + + + +
+Default Rendering (no color modification): +

+

+ ++ + + + + + + +
lookandfeelthreedeeflush
+ + + + + +
+
+
+With color attributes: +

+ + +
+<SELECT style=threedee bgcolor=mediumturquoise size=5>
+<SELECT style=flush bgcolor=mediumturquoise size=5>
+
+

+ ++ + + + +
threedeeflush
+ + + +
+
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-style.html b/extensions/calpa/Docs/html/guide-Forms-style.html new file mode 100644 index 0000000..c760ea0 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-style.html @@ -0,0 +1,188 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Attr: style
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Use Within:
+<INPUT> <TEXTAREA>, <SELECT>, <BUTTON> +
+Arguments: lookandfeel | threedee | flush +
+Synopsis:
+Certain Swing Look & Feel controls do not render well within HTML documents +due to default color, sizing, opacity and border settings on the component. +The CalHTMLPane supports two additional rendering styles: threedee +and flush which will give consistent rendering irrespective of the +installed Look & Feel. + +

Note that styles can be freely mixed within a document. +

+

Examples of THREEDEE style form rendering
+ + +
+ + + + + + + +
Personal Details
Your name
Address
Zip Code
Email address
+ +
+
+
+ + +
+ + + + + + + +
Personal Details
Your name
Address
Zip Code
Email address
+ +
+
+
Examples of FLUSH style form rendering
+ + +
+ + + + + + + +
Personal Details
Your name
Address
Zip Code
Email address
+ +
+
+
+ + +
+ + + + + + + +
Personal Details
Your name
Address
Zip Code
Email address
+ +
+
+
Examples of LOOKANDFEEL style form rendering
+ + +
+ + + + + + + +
Personal Details
Your name
Address
Zip Code
Email address
+ +
+
+
+ + +
+ + + + + + + +
Personal Details
Your name
Address
Zip Code
Email address
+ +
+
+
+ +

+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-text.html b/extensions/calpa/Docs/html/guide-Forms-text.html new file mode 100644 index 0000000..0340d55 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-text.html @@ -0,0 +1,143 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Tag: INPUT (text)
+Tag: INPUT (password)
+Tag: TEXTAREA

+

+

+ + + + + + + + + + + + + +
+Default Rendering (no color modification, size=18): +

+ + ++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 uicontrol backgroundwhite background
lookandfeel +
threedee +
flush +
 light backgrounddark background
lookandfeel +
threedee +
flush +
+
+

+Setting color attributes: +

+ + + + +
+<TABLE border=2 cellspacing=2 cellpadding=5 bgcolor=gray>
+  <COLGROUP span=2 align=center></COLGROUP>
+  <TR>
+    <TH><FONT color=white>threedee</FONT></TH>
+    <TH><FONT color=white>flush</FONT></TH>
+  </TR>
+  <TR>
+    <TD><TEXTAREA rows=4 style=threedee
+      bgcolor=gray>Some sample text</TEXTAREA></TD>
+    <TD><TEXTAREA rows=4 style=flush bordercolor=maroon
+      text=yellow>Some sample text</TEXTAREA></TD>
+  <TR>
+</TABLE>
+
+

+

+

+Rendering: +
+ ++ + + + + + +
threedeeflush
+ +
+
+

+Implementation Notes:
+
    +
  • Note that the background color of text components is set with the bordercolor
    +attribute. +
  • Input into textfields can be constrained using the maxlength attribute +
  • Swing's JTextArea normally allows tabbing within it, but this has been changed
    +within the CalPane to allow for consistent keyboard navigation +
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Forms-uiscrollcolors.html b/extensions/calpa/Docs/html/guide-Forms-uiscrollcolors.html new file mode 100644 index 0000000..ffd053b --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Forms-uiscrollcolors.html @@ -0,0 +1,149 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+2: Forms +

+

+

+Attr: uiscrollcolors
+

+

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Use Within:
+<TEXTAREA>, <SELECT>, +
+Arguments: None +
+Synopsis:
+This attribute attempts to match the scrollbar thumb color in the +THREEDEE and FLUSH rendering styles to that of the installed Look And +Feel. +

It relies on consistent information being available within the PLAF +UIDefaults hashtable. +

To see the effect of using this attribute you need to view the given example +in a L&F which uses a distinctive scrollbar thumb color, such as MetalLookAndFeel. +

+Example: +

+ + + + +
+<TABLE border=2 cellspacing=2 cellpadding=20 bgcolor=uicontrol>
+  <TR><TD align=center>
+    <SELECT style=threedee uiscrollcolors align=abstop>
+      <OPTION>One
+      <OPTION>Two
+      <OPTION>Three
+      <OPTION>Four
+      <OPTION>Five
+      <OPTION>Six
+      <OPTION>Seven
+      <OPTION>Eight
+      <OPTION>Nine
+      <OPTION>Ten
+      <OPTION>Eleven
+      <OPTION>Twelve
+    </SELECT>
+    &nbsp;
+    <SELECT style=flush size=4 uiscrollcolors align=abstop>
+      <OPTION>Monday
+      <OPTION>Tuesday
+      <OPTION>Wednesday
+      <OPTION>Thursday
+      <OPTION>Friday
+      <OPTION>Saturday
+      <OPTION>Sunday
+    </SELECT>
+ +  </TD></TR>
+</TABLE>
+
+

+

+Rendering: +
+ + + +
+ +  + +
+
+
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Frames-iframe.html b/extensions/calpa/Docs/html/guide-Frames-iframe.html new file mode 100644 index 0000000..b732403 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Frames-iframe.html @@ -0,0 +1,99 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+3: Frames +

+

+

+Tag: IFRAME
+

+

+ + + + + + + + + + + + + + + +
+Synopsis:
+Creates an inline frame which can be dynamically updated with documents. +See the HTML4.0 spec for details. Placing an IFRAME in your document is much +like placing an image. For this reason the hspace and vspace +attributes are supported in addition to the usual frame attributes. +

Always remember to use the closing </IFRAME> tag. Content between +the opening and closing tags is for HTML viewers which do not support inline +frames, and you will lose the rest of the document if you omit the closing +tag (not just in the CalPane, but in browsers such as IE4 as well). +
+

+Example: +

+ + + + +
+<IFRAME hspace=4 vspace=4 align=left src="newsflash.html"
+  width=400 height=300 name=myiframe></IFRAME>
+This is a floating inline frame. Text will wrap around it as normal. Note
+that the frame will handle its own internal links or it can be updated
+externally. +<BR clear=left>
+<P align=center><A href="techupdate.html" target=myiframe>
+Press here to update the frame with a new document</A><BR> +
+
+

+

+Rendering: +

+ +This is a floating inline frame. Text will wrap around it as normal. Note +that the frame will handle its own internal links or it can be updated +externally. + +
+

Press here +to update the frame with a new document
+ +
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next + +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Images-imagemap.html b/extensions/calpa/Docs/html/guide-Images-imagemap.html new file mode 100644 index 0000000..daea46f --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Images-imagemap.html @@ -0,0 +1,169 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+4: Images +

+

+

+Tag: MAP
+Tag:AREA
+Attr: usemap +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Synopsis:
+The CalHTMLPane supports the rect, circle and poly shapes within the +AREA tag. + +

Coords can be expressed in absolute or percentage terms. +

+Example 1: +

+ + + + +
+<P align=center>
+<IMG src="images/map.gif" usemap="#test" width=200 height=100>
+<MAP name=test>
+<AREA shape="rect" coords="25,25,55,85" href="maprect.html" target=myiframe2>
+<AREA shape="circle" coords="100,50,15" href="mapcircle.html" target=myiframe2>
+<AREA shape="poly" coords=150,25,125,70,175,70 href="maptriangle.html" target=myiframe2>
+</MAP>
+<P align=center>
+<TABLE frame=void rules=all cellspacing=0 cellpadding=0>
+<TR><TD bordercolor=black>
+<IFRAME frameborder=0 scrolling=no name="myiframe2" width=300 height=100></IFRAME>
+</TD></TR>
+</TABLE>
+ + +
+

+

+Rendering: +
+

+ + + + + + +

+ + +
+ +
+
+

+Example 2:
+In the first example we used the actual size of the image (200 x 100 pixels) and used +the real coords of the shapes within that image. If we placed the image in +a document at a different size (say 250 x 125 pixels) the imagemap would no +longer work correctly. However, by using percentage instead of absolute coordinates we can place +the image at any size within our document, providing its aspect ratio is +maintained. + +

Take the rectangle as an example. You can see that its coords in the +200 x 100 image are 25, 25, 55, 85. This is equivalent to 12.5%, 25%, 27.5%, 85%. +We can't use fractions so we enter these coords into the map as: +

coords="12%,25%,27%,85%" +

The percentage coords are therefore slightly inexact, but this is not +normally much of a problem. + +

Here's the whole example using percentage coords, demonstrating that two +completely different image sizes can use the same map: +

+ + + + +
+<P align=center>
+<IMG src="images/map.gif" usemap="#test2" width=300 height=150>
+<IMG src="images/map.gif" usemap="#test2" width=150 height=75>
+<MAP name=test2>
+<AREA shape="rect" coords="12%,25%,27%,85%" href="maprect.html" target=myiframe3>
+<AREA shape="circle" coords="50%,50%,7%" href="mapcircle.html" target=myiframe3>
+<AREA shape="poly" coords=75%,25%,62%,70%,87%,70% href="maptriangle.html" target=myiframe3>
+</MAP>
+<P align=center>
+<TABLE frame=void rules=all cellspacing=0 cellpadding=0>
+<TR><TD bordercolor=black>
+<IFRAME frameborder=0 scrolling=no name="myiframe3" width=300 height=100></IFRAME>
+</TD></TR>
+</TABLE>
+
+

+

+Rendering: +
+

+ + + + + + + +

+ + +
+ +
+
+

+ + +

+ + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Misc-align.html b/extensions/calpa/Docs/html/guide-Misc-align.html new file mode 100644 index 0000000..9f79336 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Misc-align.html @@ -0,0 +1,128 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+5: Misc +

+

+

+Attr: align +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Use With:
+Images, form components, inline frames, <OBJECT> tag +
+Arguments: +abstop | top | absmiddle | middle | texttop | baseline | bottom | absbottom | left | right
+
+Synopsis:
+abstop aligns the object to the top of the line +

top and texttop align the object to the top of any text +

absmiddle aligns the object to the center point of the line +

middle aligns the object to the middle of any text +

bottom and baseline align the object to the baseline of any text +

absbottom aligns the object to the bottom of the line +

left will float the object on the left margin +

right will float the object on the right margin +

+Example: +

+ + + + +
+ +<TABLE width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=black><TR><TD></TD></TR></TABLE>
+<IMG src="nosrc.gif" alt="top texttop" align=top width=80 height=80>
+Some text
+<IMG src="nosrc.gif" alt="bottom baseline" align=bottom width=80 height=50>
+more
+<IMG src="nosrc.gif" alt="abstop" align=abstop width=80 height=80>
+more
+<IMG src="nosrc.gif" alt="middle" align=middle width=80 height=80>
+more
+<IMG src="nosrc.gif" alt="absmiddle" align=absmiddle width=100 height=80>
+more
+<IMG src="nosrc.gif" alt="absbottom" align=absbottom width=100 height=50>
+<TABLE width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=black><TR><TD></TD></TR></TABLE>
+ + + + + + + +
+

+

+Rendering: +
+

+
+top texttop +Some text +bottom baseline +more +abstop +more +middle +more +absmiddle +more +absbottom +
+
+
+

+ +

+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Misc-colornames.html b/extensions/calpa/Docs/html/guide-Misc-colornames.html new file mode 100644 index 0000000..0099074 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Misc-colornames.html @@ -0,0 +1,262 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+5: Misc +

+

+

+Default Color Names
+The following default color names are supported by the CalHTMLPane: +

+ ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameExampleHex valueNameExampleHex value
aliceblue #f0f8fflightskyblue #87cefa
antiquewhite #faebd7lightslategray #778899
aqua #00fffflightsteelblue #b0c4de
aquamarine #7fffd4lightyellow #ffffe0
azure #f0fffflime #00ff00
beige #f5f5dclimegreen #32cd32
bisque #ffe4c4linen #faf0e6
black #000000magenta #ff00ff
blanchedalmond #ffebcdmaroon #800000
blue #0000ffmediumaquamarine #66cdaa
blueviolet #8a2be2mediumblue #0000cd
brown #a52a2amediumorchid #ba55d3
burlywood #deb887mediumpurple #9370db
cadetblue #5f9ea0mediumseagreen #3cb371
chartreuse #7fff00mediumslateblue #7b68ee
chocolate #d2691emediumspringgreen #00fa9a
coral #ff7f50mediumturquoise #48d1cc
cornflowerblue #6495edmediumvioletred #c71585
cornsilk #fff8dcmidnightblue #191970
crimson #dc143cmintcream #f5fffa
cyan #00ffffmistyrose #ffe4e1
darkblue #00008bmoccasin #ffe4b5
darkcyan #008b8bnavajowhite #ffdead
darkgoldenrod #b8860bnavy #000080
darkgray #a9a9a9oldlace #fdf5e6
darkgreen #006400olive #808000
darkkhaki #bdb76bolivedrab #6b8e23
darkmagenta #8b008borange #ffa500
darkolivegreen #556b2forangered #ff4500
darkorange #ff8c00orchid #da70d6
darkorchid #9932ccpalegoldenrod #eee8aa
darkred #8b0000palegreen #98fb98
darksalmon #e9967apaleturquoise #afeeee
darkseagreen #8fbc8fpalevioletred #db7093
darkslateblue #483d8bpapayawhip #ffefd5
darkslategray #2f4f4fpeachpuff #ffdab9
darkturquoise #00ced1peru #cd853f
darkviolet #9400d3pink #ffc0cb
deeppink #ff1493plum #dda0dd
deepskyblue #00bfffpowderblue #b0e0e6
dimgray #696969purple #800080
dodgerblue #1e90ffred #ff0000
firebrick #b22222rosybrown #bc8f8f
floralwhite #fffaf0royalblue #4169e1
forestgreen #228b22saddlebrown #8b4513
fuchsia #ff00ffsalmon #fa8072
ghostwhite #f8f8ffsandybrown #f4a460
gainsboro #dcdcdcseagreen #2e8b57
gold #ffd700seashell #fff5ee
goldenrod #daa520sienna #a0522d
gray #808080silver #c0c0c0
green #008000skyblue #87ceeb
greenyellow #adff2fslateblue #6a5acd
honeydew #f0fff0slategray #708090
hotpink #ff69b4snow #fffafa
indianred #cd5c5cspringgreen #00ff7f
indigo #4b0082steelblue #4682b4
ivory #fffff0tan #d2b48c
khaki #f0e68cteal #008080
lavender #e6e6fathistle #d8bfd8
lavenderblush #fff0f5tomato #ff6347
lawngreen #7cfc00turquoise #40e0d0
lemonchiffon #fffacduicontrol (variable)
lightblue #add8e6uihighlight (variable)
lightcoral #f08080uishadow (variable)
lightcyan #e0ffffviolet #ee82ee
lightgoldenrodyellow #fafad2wheat #f5deb3
lightgreen #90ee90white #ffffff
lightgrey #d3d3d3whitesmoke #f5f5f5
lightpink #ffb6c1yellow #ffff00
lightsalmon #ffa07ayellowgreen #9acd32
lightseagreen #20b2aa   
+
+

+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Misc-float.html b/extensions/calpa/Docs/html/guide-Misc-float.html new file mode 100644 index 0000000..beb85df --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Misc-float.html @@ -0,0 +1,126 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+5: Misc +

+

+

+Attr: align (floating) +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Use With:
+Tables, Images, form components, inline frames, <OBJECT> tag +
+Arguments: +left | right
+
+Synopsis:
+

left will float the object on the left margin +

right will float the object on the right margin +

Multiple objects may be floated left and right. +

  • Note that you need to be sure when using right-aligned floats that there is sufficient +space between the left and right margins. If horizontal space becomes too +narrow you may see rendering problems as +text or other objects begin to overlap the right hand float. You should be +able to see this happen in the example below if you gradually reduce the width +of the display frame. This is an effect of asynchronous +parsing/loading, and you will experience the same rendering effect on a Web browser +such as Internet Explorer 4. +
+
+Example: +

+ + + + +
+This is a start of the text and you can
+<IMG src="images/orchid.gif" width=100 height=94 align=left>
+<IMG src="images/orchid.gif" width=100 height=94 align=right>
+see that even though we inserted two images between the words 'can' and 'see', +the text
+<TABLE border align=left cellpadding=3>
+  <TR><TD>Floating table</TD></TR>
+</TABLE>
+<INPUT align=right type=button value="Floating button">
+will continue on the same line as if the images have been ignored. +Only when a new line occurs will the images be inserted against the right and +left margins. We've also floated a table and a form component to demonstrate +that multiple objects can be floated. You need to be careful when using +right margin floats if you are authoring documents for small displays. +Rendering errors can occur if the display width becomes too narrow. +
+

+

+Rendering: +
+

+This is a start of the text and you can + + +see that even though we inserted two images between the words 'can' and 'see', +the text +
Floating table
+ +will continue on the same line as if the images have been ignored. +Only when a new line occurs will the images be inserted against the right and +left margins. We've also floated a table and a form component to demonstrate +that multiple objects can be floated. You need to be careful when using +right margin floats if you are authoring documents for small displays. +Rendering errors can occur if the display width becomes too narrow. +
+
+

+ +

+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Misc-lines.html b/extensions/calpa/Docs/html/guide-Misc-lines.html new file mode 100644 index 0000000..fe67c5e --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Misc-lines.html @@ -0,0 +1,119 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+5: Misc +

+

+

+Drawing horizontal lines
+

+

+ + + + + + +
+The standard way to draw a horizontal line is to use the <HR> tag: +

+ + +
+<HR width=100%> +
+


+ +


+In a CalHTMLPane this tag can also take a color argument: +

+ +
+<HR width=100% color=green size=1> +
+


+ +


+The <HR> tag line-breaks and creates automatic spacing. However this is +not always desired, and in such cases the <TABLE> tag can be used to +create lines. We draw two such lines below to show that no space is created +between successive lines. +

+ +
+<TABLE width=100% bgcolor=blue cellspacing=0 border=0 cellpadding=1>
+  <TR><TD></TD></TR>
+</TABLE>
+<TABLE width=50% bgcolor=yellow cellspacing=0 border=0 cellpadding=1>
+  <TR><TD></TD></TR>
+</TABLE> +
+
+

+ + +
+ + +
+ +


+Lines drawn using the <TABLE> tag can be inset: +

+ +
+<TABLE width=100% frame=none cellspacing=0 cellpadding=0 rules=all>
+  <TR><TD></TD></TR>
+</TABLE>
+
+
+

+ + +
+ +


+...or by reversing the cell border colors, a raised line can be drawn: +

+ +
+<TABLE width=100% frame=none cellspacing=0 cellpadding=0 rules=all>
+  <TR><TD bordercolorlight=uishadow bordercolordark=uicontrol></TD></TR>
+</TABLE>
+
+
+

+ + +
+ +
+

+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Prog-answers.html b/extensions/calpa/Docs/html/guide-Prog-answers.html new file mode 100644 index 0000000..909eff6 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Prog-answers.html @@ -0,0 +1,103 @@ + + + + + + + + +
+CalHTMLPane v2.0 Guide + +Programming Answers +
+
+ +

Programming Answers

+
+ +

+


+

+1. I don't want hyperlinks to be marked as visited and I can't see +a method in CalHTMLPreferences to turn this feature off. +

+The easiest way to turn this off is simply to set the default color of +visited links to that of unvisited links. You can do this through a +method in CalHTMLPreferences. + +So your code will look something like this: +

+CalHTMLPreferences pref = new CalHTMLPreferences();
+pref.setDefaultColor(CalCons.A_VLINK, pref.getDefaultColor(CalCons.A_LINK));
+CalHTMLPane pane = new CalHTMLPane(pref, null, null);
+
+ +
+
2. CalPane uses THREEDEE style form components as default. I'd like +to have LOOKANDFEEL components as default. How do I do this? +

+You can make all components render in the current Look And Feel by +setting a property in CalHTMLPreferences: +

+CalHTMLPreferences pref = new CalHTMLPreferences();
+pref.setFormRenderingStyle(CalCons.USE_LOOK_AND_FEEL);
+CalHTMLPane pane = new CalHTMLPane(pref, null, null);
+
+
+3. Is it possible to do something like hyperlink-hover which you see in +some help systems? +

+Yes, there's a method in CalHTMLPreferences that enables you to do this: +

+CalHTMLPreferences pref = new CalHTMLPreferences();
+pref.setShowHyperlinkOnMouseFocus(true);
+CalHTMLPane pane = new CalHTMLPane(pref, null, null);
+
+
+
4. I'm including some form components in a table. Each component is +in its own table cell and the cell has got a border. I want the component to fill the cell, +but there's always a gap above it. How can I get rid of this? +

+Change the alignment of the form component to something other than its default, which is a few +pixels below the text baseline. For example: +

+<TD><INPUT type=text align=top></TD> +

+
+5. I've got a document which has many form controls, each of which has its +own id. I get the the CalPane to load this document and then I call the getIDComponents() +method to access the components. However the Hashtable returned from this call is empty. +Here's my code: + +

+pane.showHTMLDocument(url);
+pane.getIDComponents(null);
+
+ +The CalPane will load the document asynchronously, so the showHTMLDocument() method will return +immediately, and you are consequently making the call to get the components before they +have been created. You need to ensure that the document has loaded before you try and get the components. You can +either do this by using CalHTMLObserver callbacks to monitor document loading, or you can force +the document to load synchronously with the setLoadSynchronously() method like this: + +
+pane.setLoadSynchronously(true);
+pane.showHTMLDocument(url);
+pane.setLoadSynchronously(false);
+pane.getIDComponents(null);
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Tables-background.html b/extensions/calpa/Docs/html/guide-Tables-background.html new file mode 100644 index 0000000..76b8523 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Tables-background.html @@ -0,0 +1,133 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+1: Tables +

+

+

+Attr: bgcolor +

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Use Within:
+<TABLE> <THEAD>, <TBODY>, <TFOOT>, + <TR>, <COLGROUP>, <COL>, <TH>, and <TD> +
+Arguments: A hexidecimal color code or default color name.
+(e.g. bgcolor=4488AA, bgcolor=silver) +
+Synopsis:
+Sets the background color of a table, table row, table cell etc. +

+When used within the <TABLE> tag, Netscape Navigator applies the +specified color only to the <TD/TH> elements within the table - any +border areas produced with the cellspacing attribute remain in the +background color of the table's parent (either the document itself or perhaps +a parent <TD/TH> element). Internet Explorer however renders +all of the table in the specified background color. +

+The CalPane follows Explorer in this respect, except +the Pane uses computed colors for any highlight and shadow lines in the table. +

+Example: +

+ + + + +
+<TABLE border=1 cellspacing=3 cellpadding=2 bgcolor=mediumaquamarine>
+  <TR><TD> Background Test +</TD></TR>
+</TABLE>
+
+

+

+Rendering: + + + + + + + + + + + + +
Navigator Explorer CalPane
+ + +
Background test
+
    +
Background test
+
    +
Background test
+
+
+Implementation Notes:
+
    +
  • Some document authors who do not test their pages across multiple browsers +assume all table rendering is identical to Navigator. They therefore often +remove the border from a table similar to the one above in order to get +'empty space' around the TD element. They then proceed to align text and +images alongside the table, not realising that when such markup is viewed on a browser such +as Explorer no such 'empty space' exists. This leaves the text and images +completely flush to the table making the document seem poorly formatted. +
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Tables-bordercolors.html b/extensions/calpa/Docs/html/guide-Tables-bordercolors.html new file mode 100644 index 0000000..169a089 --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Tables-bordercolors.html @@ -0,0 +1,107 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+1: Tables +

+

+

+Attr: bordercolor
+Attr: bordercolorlight
+Attr: bordercolordark +

+

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Use Within:
+<TABLE> <THEAD>, <TBODY>, <TFOOT>, + <TR>, <COLGROUP>, <COL>, <TH>, and <TD> +
+Arguments: A hexidecimal color code or default color name
+e.g. bordercolorlight="#4444dd" bordercolordark=navy +
+Synopsis:
Set the highlight color of table borders and rules + with bordercolorlight. +

Set the shadow color with bordercolordark. +

For single-color borders and rules use bordercolor. +

+Example: +

+ + + + +
+<TABLE border=3 cellspacing=3 cellpadding=5 bgcolor=aaccdd>
+  <TR>
+    <TD bordercolor=red> Red border +</TD>
+    <TD bordercolorlight=yellow bordercolordark=blue>
+       Blue shadow +<BR> Yellow highlight
+    </TD>
+  </TR>
+</TABLE>
+
+

+

+Rendering: +
+ + + + +
Red border +Blue shadow
Yellow highlight
+
+
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Tables-borders.html b/extensions/calpa/Docs/html/guide-Tables-borders.html new file mode 100644 index 0000000..5a4347d --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Tables-borders.html @@ -0,0 +1,174 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+1: Tables +

+

+

+Attr: frame
+Attr: border
+Attr: rules
+ +

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Use Within:
+<TABLE> +
+Arguments:
+frame: void | border | box | +hsides | vsides | above | below | lhs | rhs
+border: A number >=0 or no argument
+rules: none | groups | cols | +rows | all
+ + +
+Synopsis:
The border attribute specifies the thickness of any +border to be drawn around a table. +

The frame attribute determines which sides of the table any border +should be drawn. +

The rules attribute determines how lines between table cells are +drawn. + +

+

    +
  • "border=0" is equivalent to "frame=void"
    +
  • "frame=border" is equivalent to "frame=box"
    +
  • "border" with no argument is now deprecated but backward compatibility +requires a rendering equivalent to: "frame=border" "border=1" "rules=all" +

    +

+Example 1: +

+ + + + +
+<TABLE cellspacing=2 cellpadding=2 border=2 frame=hsides
bordercolor=maroon rules=none>
+  <TR>
+    <TD> Frequently Asked Questions +</TD>
+  </TR>
+</TABLE>
+
+

+

+Rendering: +
+ + +
Frequently Asked Questions
+
+
+Example 2: +

+ + + + +
+ +<TABLE width=250 rules=groups bgcolor=plum border=3
+frame=box cellspacing=0>
+<COLGROUP span=1 align=center></COLGROUP>
+<COLGROUP span=2 align=center></COLGROUP>
+<COLGROUP span=1 align=center></COLGROUP>
+<THEAD>
+  <TR><TD colspan=4 align=center><B>Junior Attendees</B></TD></TR>
+</THEAD>
+<TBODY>
+  <TR><TH></TH><TH>Boys</TH><TH>Girls</TH><TH>Total</TH></TR>
+</TBODY>
+<TBODY>
+  <TR><TH>1997</TH><TD>16</TD><TD>18</TD><TD>34</TD></TR>
+  <TR><TH>1997</TH><TD>22</TD><TD>31</TD><TD>53</TD></TR>
+</TBODY>
+<TBODY>
+  <TR><TH>Total</TH><TD>38</TD><TD>49</TD><TD>87</TD></TR>
+</TBODY>
+</TABLE>
+
+

+ + +

+Rendering: +
+ + + + + + + + + + + + + + + + + +
Junior Attendees
BoysGirlsTotal
1997161834
1998223153
Total384987
+
+
+
+
+ + + + + +
+Guide Index  | + JavaDoc  | + Previous  | + Next +
+ + + diff --git a/extensions/calpa/Docs/html/guide-Tables-widths.html b/extensions/calpa/Docs/html/guide-Tables-widths.html new file mode 100644 index 0000000..6f7064c --- /dev/null +++ b/extensions/calpa/Docs/html/guide-Tables-widths.html @@ -0,0 +1,104 @@ + + +

+ + + + + +
+CalHTMLPane v2.0 Guide + +Example Tag Usage +
+


+

+1: Tables +

+

+

+Column widths
+ +

+ + + + + + + + + +
+Synopsis:
+Table column widths can be expressed in absolute, percentage, or relative +form. See HTML4.0 spec for details. +
+Example: +

+ + + + +
+ +<TABLE border=1 width=100% align=center cellpadding=2 bgcolor=sandybrown>
+  <COLGROUP align=center>
+    <COL width=100>
+    <COL width=10%>
+    <COL width=0*>
+    <COL span=3 width=*>
+    <COL width=2*>
+  </COLGROUP>
+  <TR>
+    <TD>100 Pixels</TD><TD>10%</TD><TD>0*</TD>
+    <TD>1*</TD><TD>1*</TD><TD>1*</TD><TD>2*</TD>
+  </TR>
+</TABLE>
+
+

+ + +

+Rendering: +

+ +++++++ + + + + +
100 Pixels10%0*1*1*1*2*
+

+Column 1 requests an absolute width of 100 pixels
+Column 2 requests 10% of available width
+Column 3 requests that it always be set to its minimum width
+Columns 4-7 request proportions of the remaining width +
  • Columns 4, 5 and 6 each request one portion of the remainder +
  • Column 7 requests two portions of the remainder + +

    Note that the eventual apportionment of widths to each column depends +very much on the amount of space available to the table. +

  • +
    +

    + + + + + +
    +Guide Index  | + JavaDoc  | + Previous  | + Next +
    + + + diff --git a/extensions/calpa/Docs/html/images/bill.gif b/extensions/calpa/Docs/html/images/bill.gif new file mode 100644 index 0000000000000000000000000000000000000000..c91ae3704d55c4a70a2f23d0fd074fd48962f496 GIT binary patch literal 4665 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 literal 0 HcmV?d00001 diff --git a/extensions/calpa/Docs/html/images/gift.gif b/extensions/calpa/Docs/html/images/gift.gif new file mode 100644 index 0000000000000000000000000000000000000000..71564100e41cc75eb16ec0a1e935c5cd3c6ef570 GIT binary patch literal 1370 zcmZ?wbhEHblxC1&_|Cw<%)}_h#VjezA|oZLE68r5!EUOn6(qov&CBR*!k(|s>0@bB zWTGDB%$DcJ8sMo{5NZ$_?4RQ2S)3PGQC2vCgK@bC`y^A&6}n8*EDiQ(YMkd_KWol@ z*~)6VqtFg_nJGEUD=RrR`6yp?61nTA_QccVdAj{xFVDt=_|CfGkD-3o6CHk~NB&7k z-rUPJtKIC>OonTV8D8$-JUv7C#yZQlyVU=jV*hzwv!~f>?$rEG`+fghbiaBu_y4o3 zDU&BInbx~;P5Y*e>kn;Tclpeu?=PpEKeqb!x9#`u@A~%n6vHSO4FN(Sp!k!8k%7UT zK?kG|lqVQC{xS4(h}!+`{W4m$=B38y6~ ze2nt_PXsJkI48+4GyL$7U~yoUHqUvmiAoGY7jA59?hsTKkm2J|*wnx*Zk5{N z@nL}@gSctOsfv#a7M@o&U9Fa(!O+4ZVasSSV_~y810$zHLqL_viWmXD8Pn!+D;(+B z$tcsnA?TEJO2JT=gDvsuvJ)%IKK7Y17&cvJ>XJ6maX664)XCeZ@+Hx71rs}`6;r}1 zQHDkqE&&~b3l|((F0t?_tOz*R)XK#n@WSoE?L(}roA*j-oN(BBondD=v;BiRUmKYj zR9bWvIMDsJ)eRVXO7u#`M^WH$VBBAP*n zL!^<>D6T-5LtN)&RQd9Q6B#Qs` cj|oj1PpEMR3S9Z;kh|ql+Um6qjEoG{0DrP4R{#J2 literal 0 HcmV?d00001 diff --git a/extensions/calpa/Docs/html/images/map.gif b/extensions/calpa/Docs/html/images/map.gif new file mode 100644 index 0000000000000000000000000000000000000000..3aeea9afa199426a136734541ccf6b55078a4d3a GIT binary patch literal 1340 zcmc(e|4-C)9LHa6Ou;rs*_7GIa;`$qR=txQV%jS0Ag76~ozokV^oCBRH624)W}FFw zO6|tM8}tYc1P_gGhjrQ1CeYpW#)2~%OVEY`yF(hS6ldJK=ll92djIym*X#9sJ)Y0^ z=U&U$U`)&LQ7+x1{|+PKM1n{XDO?yaMx2pgBpE5xI5AF~li(ydDYOb=g18_dND5Mz zl*A-)NkWp8q!hG>DdLKRBB}HZ($Iz&rqQnSO&`vfU`#TmuoV~1IA?-0$(aHKYJzdW zgkVxI1tzpg#w8PyNy!wTp`{pCOeiLmUJGbwff|_LLJ^xG4Q+^FTIr(Rgd;eYoGaMF zR$K%Zf=j^_+yVkM$%W)na)mfRiDAWs;!KBCiTM_qp`|Ib;W*XsWQ#YU(t&R}Z);yYXHg5({( z_WCQO@yjw#nmQVKD-xLXy063a{jn!rDK}(vHu~*JTirYSolQSfJ-aJ#GNbEsf30y} z=(@kF`Nz7KZ1a|6dRhitCVR3a;5id)e#4b{Dzn@DbE~<_Iuht^{iSW^mGUJQuGxmW z@`G+m@lfmBrh>7+`d_t|Jfcwp1A3AH8gSJl%Q0 zym!D~l)^54vTe^>fmhRuH+Y9{jny}d)m+{9r{||@j`dGD?krk0>GR~--ZcD`IyF+g zE;J|fp#8mp#8S0lzA>%fGkY)}p?{-h~rE`%ryCx=s-pKY#)d#(W(<3V#_s)Ef zzJL5y@Q;EUCl2*auep=GZgWS`=Gny$C7k&1{`6PbMGKa;*bgT>cl&rrT3US%&% zLJNkNi-l;A)e}Ay{`M%{(SLR3ZCidiTtL#tn%fX%J$S`H9MU#)|Mwf%?z1NJ8Q<9+=&5e>$19w^TKC6L)P%Q gugBftFTcGT3b$RJlQP-fvvBuhhi~Yyc%t-w0W~OYjQ{`u literal 0 HcmV?d00001 diff --git a/extensions/calpa/Docs/html/images/orchid.gif b/extensions/calpa/Docs/html/images/orchid.gif new file mode 100644 index 0000000000000000000000000000000000000000..b9e77ce4cf5a81c5904c7e8baa43a8f7e312bfc3 GIT binary patch literal 7554 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 SaN?b{80)+J*_i-f`~LuHuTTE~ literal 0 HcmV?d00001 diff --git a/extensions/calpa/Docs/html/images/phone.gif b/extensions/calpa/Docs/html/images/phone.gif new file mode 100644 index 0000000000000000000000000000000000000000..c4c69daf18b1a48db03d82500cab373d1b2d4c66 GIT binary patch literal 916 zcmchWJ!@4#5QayHm_i|msQ7_kP@^IU4wx?yf+5}%ijdYODnm*ySX+q7MHGVyGKHYE zg(5sJh$OFSnx%V2q)MoyQK`Bi z3W=6YTvJ~z6%x!*%&0FUx-z?HvuiHZ?3g#?<;G^08q$Uj#gFcW)JBf^8*cnXY91n} zP;2%?2J&B?Bfke)pVJlVpOC?>Y#Th(S$Q=h(<7&@eYo{{^}*1=3y(V8_p<{#c8zv^ z4c(Y~ym$D(&58BJncmptk=b|ai+5j~nY?mu|H9YRVEsUeD>wJFDHK-|MYP9+4W=dx4&O~d;ZPgor5y{2Y8!*B>(^b literal 0 HcmV?d00001 diff --git a/extensions/calpa/Docs/html/images/scott.gif b/extensions/calpa/Docs/html/images/scott.gif new file mode 100644 index 0000000000000000000000000000000000000000..20eb92e55100ea98b245ef6b347498c028da7634 GIT binary patch literal 3402 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 literal 0 HcmV?d00001 diff --git a/extensions/calpa/Docs/html/mapcircle.html b/extensions/calpa/Docs/html/mapcircle.html new file mode 100644 index 0000000..8ffd62c --- /dev/null +++ b/extensions/calpa/Docs/html/mapcircle.html @@ -0,0 +1,8 @@ + + +
    +

    Circle Link

    +You clicked within the circle +
    + + diff --git a/extensions/calpa/Docs/html/maprect.html b/extensions/calpa/Docs/html/maprect.html new file mode 100644 index 0000000..71a67e4 --- /dev/null +++ b/extensions/calpa/Docs/html/maprect.html @@ -0,0 +1,8 @@ + + +
    +

    Rectangle Link

    +You clicked within the rectangle +
    + + diff --git a/extensions/calpa/Docs/html/maptriangle.html b/extensions/calpa/Docs/html/maptriangle.html new file mode 100644 index 0000000..8129a38 --- /dev/null +++ b/extensions/calpa/Docs/html/maptriangle.html @@ -0,0 +1,8 @@ + + +
    +

    Triangle Link

    +You clicked within the triangle +
    + + diff --git a/extensions/calpa/Docs/html/newsflash.html b/extensions/calpa/Docs/html/newsflash.html new file mode 100644 index 0000000..82384b3 --- /dev/null +++ b/extensions/calpa/Docs/html/newsflash.html @@ -0,0 +1,34 @@ + + +
    + + + + + + + +
        
    + +

    Gates and McNealy accused of collusion

    + +
    + + diff --git a/extensions/calpa/Docs/html/newsflash2.html b/extensions/calpa/Docs/html/newsflash2.html new file mode 100644 index 0000000..cf583b1 --- /dev/null +++ b/extensions/calpa/Docs/html/newsflash2.html @@ -0,0 +1,23 @@ + + +
    +

    + +

    Former Microsoft vice-president retracts collusion claims

    + +
    +

    Washington Tues 9th 2001: Former Microsoft executive +Ima Lyer this afternoon surprisingly retracted his earlier claims that Microsoft +chairman William Gates and Sun Microsytems chief Scott McNealy conspired +to create a duopoly within the software marketplace. + +

    Speaking from the footsteps of his new $25 million private jet which was about +to whisk him away to his new luxury island retreat in the Caribbean, Mr. Lyer +said that he had been overworking recently and this had led him to make +"spurious and unsupportable claims" about the two industry leaders. + +

    Earlier news + +

    + + diff --git a/extensions/calpa/Docs/html/techupdate.html b/extensions/calpa/Docs/html/techupdate.html new file mode 100644 index 0000000..b88c1e1 --- /dev/null +++ b/extensions/calpa/Docs/html/techupdate.html @@ -0,0 +1,36 @@ + + +
    +

    TECH NEWS

    +

    Sun claims HotSpot JIT 'almost ready'

    + + +

    Palo Alto Tues 9th 2001: In a presentation to assembled +computer journalists this morning, Sun Microsystems executives announced +that the eagerly-awaited HotSpot Just-In-Time compiler was on the verge of +being released. +

    +"There are just a few last minute problems to clear and then we'll be +shipping," said a confident Dan Pinocchio, leader of the HotSpot design team. +

    +Details also emerged of the hardware that will be required to run the HotSpot +package, which Sun officials claim will enable Java applications to run at up +to ten times their normal speed. +

    +"You can run HotSpot on a 500Mhz PIII, but you won't see much of a boost," +Pinocchio explained. "We've found the best performance uplift comes when you +combine HotSpot with one of the new Cray XMP6 PC accelerator cards. Okay, +they cost $25,000, but you should see Java fly...". +

    +Asked to be a little more specific about a release date, marketing +vice-president Jerry Vaporware wasn't going to pinned down: +

    +"I'm not going to make any promises," he told the packed press room. "Our +developers have waited a long time for this and we want to get it right. A +few more ye...excuse me...weeks won't hurt." + +

    Latest news + +

    + + diff --git a/extensions/calpa/Docs/javadoc/allclasses-frame.html b/extensions/calpa/Docs/javadoc/allclasses-frame.html new file mode 100644 index 0000000..6e61098 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/allclasses-frame.html @@ -0,0 +1,33 @@ + + + + + + +All Classes + + + + + +All Classes +
    + + + + + +
    CalHTMLManager +
    +CalHTMLObserver +
    +CalHTMLPane +
    +CalHTMLPreferences +
    +DefaultCalHTMLObserver +
    +
    + + + diff --git a/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLManager.html b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLManager.html new file mode 100644 index 0000000..bbeebe3 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLManager.html @@ -0,0 +1,545 @@ + + + + + + +: Class CalHTMLManager + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + +

    + +calpa.html +
    +Class CalHTMLManager

    +
    +java.lang.Object
    +  |
    +  +--calpa.html.CalHTMLManager
    +
    +
    +
    +
    public class CalHTMLManager
    extends java.lang.Object
    + +

    +A class with static members and methods which primarily controls the caching of data + which will be available to all current instances of CalHTMLPane. +

    +

    +
    See Also:
    CalHTMLPane
    +
    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    +static voidaddUserComponent(javax.swing.JComponent component) + +
    +          Adds a JComponent to the Manager's component cache.
    +static voidaddUserComponentArray(javax.swing.JComponent[] componentArray, + java.lang.String classname) + +
    +          Adds an array of JComponents to the Manager's component cache.
    +static voidaddUserImage(java.awt.Image img, + java.lang.String name) + +
    +          Adds an Image to the Manager's image cache.
    +static voidemptyDocumentCache() + +
    +          Empties the Manager's document cache.
    +static intgetDocumentCacheCurrentSize() + +
    +          Returns the Manager's estimate of the current memory being taken up by cached documents.
    +static intgetDocumentCacheMaximumSize() + +
    +          Returns the max size of the document cache used by the Manager.
    +static javax.swing.JComponentgetUserComponent(java.lang.String classname, + java.lang.String name) + +
    +          Retrieves a JComponent from the Manager's component cache.
    +static java.awt.ImagegetUserImage(java.lang.String name) + +
    +          Retrieves an Image from the Manager's image cache.
    +static booleanisCacheDocumentsEnabled() + +
    +          Indicates whether document caching is currently enabled.
    +static booleanisCalFocusManagerEnabled() + +
    +          Indicates whether a CalFocusManager is currently enabled.
    +static voidremoveOldestDocumentFromCache() + +
    +          Removes the oldest document from the Manager's document cache.
    +static voidremoveUserComponent(java.lang.String name) + +
    +          Removes a JComponent from the Manager's component cache.
    +static voidremoveUserComponentArray(java.lang.String classname) + +
    +          Removes a JComponent array from the Manager's component cache.
    +static voidremoveUserImage(java.lang.String name) + +
    +          Removes an Image from the Manager's image cache.
    +static voidsetCacheDocuments(boolean enabled) + +
    +          Enables or disables the caching of documents by the Manager.
    +static voidsetCalFocusManagerEnabled(boolean enabled) + +
    +          Enables or disables the CalFocusManager.
    +static voidsetDocumentCacheMaximumSize(int size) + +
    +          Sets the size of the document cache used by the Manager.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    clone, +equals, +finalize, +getClass, +hashCode, +notify, +notifyAll, +toString, +wait, +wait, +wait
    +  +

    + + + + + + + + + + + + + + +
    +Method Detail
    + +

    +addUserComponent

    +
    +public static void addUserComponent(javax.swing.JComponent component)
    +
    +
    Adds a JComponent to the Manager's component cache. The component can then be incorporated + into an HTML document using the <OBJECT> tag.
    + The component must have an assigned name (set by calling the + AWT Component setName() method). + JComponents sent to this method which do not have a name will not be cached by the Manager.
    +
    Parameters:
    component - the JComponent to be added.
    +
    +
    +
    + +

    +removeUserComponent

    +
    +public static void removeUserComponent(java.lang.String name)
    +
    +
    Removes a JComponent from the Manager's component cache.
    +
    Parameters:
    name - the name of the JComponent to be removed.
    +
    +
    +
    + +

    +addUserComponentArray

    +
    +public static void addUserComponentArray(javax.swing.JComponent[] componentArray,
    +                                         java.lang.String classname)
    +
    +
    Adds an array of JComponents to the Manager's component cache. + Individual components from this array can then be incorporated + into an HTML document using the <OBJECT> tag.
    + The component array must have an assigned class name. + Arrays sent to this method which do not have a class name will not be cached by the Manager.
    +
    Parameters:
    componentArray - the JComponent array to be added.
    classname - a class identifier for the JComponent array.
    +
    +
    +
    + +

    +removeUserComponentArray

    +
    +public static void removeUserComponentArray(java.lang.String classname)
    +
    +
    Removes a JComponent array from the Manager's component cache.
    +
    Parameters:
    classname - the class identifier of the JComponent array to be removed.
    +
    +
    +
    + +

    +getUserComponent

    +
    +public static javax.swing.JComponent getUserComponent(java.lang.String classname,
    +                                                      java.lang.String name)
    +
    +
    Retrieves a JComponent from the Manager's component cache. If the JComponent was added to + the cache as part of a component array then the class name of the array must be sent to + this method in order to retrieve it.
    +
    Parameters:
    classname - the class identifier of the array the JComponent resides in (may be null).
    name - the name of the target JComponent.
    Returns:
    the requested JComponent or null if no JComponent matching the sent + parameters can be found
    See Also:
    addUserComponent(javax.swing.JComponent), +addUserComponentArray(javax.swing.JComponent[], java.lang.String)
    +
    +
    +
    + +

    +addUserImage

    +
    +public static void addUserImage(java.awt.Image img,
    +                                java.lang.String name)
    +
    +
    Adds an Image to the Manager's image cache. The Image can then be incorporated + into an HTML document by naming the image within an <IMG> tag. + Incorporating images into documents via the Manager allows the programmer to ensure + that a fully loaded image is always available. In addition the image will always be + displayed, even if loadImages in CalHTMLPreferences has + been disabled. This can be useful when images are being displayed in buttons and other + form controls. +

    See the README.TXT file accompanying this documentation for further details.

    +
    Parameters:
    img - the Image to be cached.
    name - a name given to the Image for retrieval purposes.
    See Also:
    getUserImage(java.lang.String)
    +
    +
    +
    + +

    +getUserImage

    +
    +public static java.awt.Image getUserImage(java.lang.String name)
    +
    +
    Retrieves an Image from the Manager's image cache.
    +
    Parameters:
    name - the name of the target Image.
    Returns:
    the requested Image or null if no Image matching the sent + name can be found
    See Also:
    addUserImage(java.awt.Image, java.lang.String)
    +
    +
    +
    + +

    +removeUserImage

    +
    +public static void removeUserImage(java.lang.String name)
    +
    +
    Removes an Image from the Manager's image cache.
    +
    Parameters:
    name - the name of the Image to be removed.
    +
    +
    +
    + +

    +setCacheDocuments

    +
    +public static void setCacheDocuments(boolean enabled)
    +
    +
    Enables or disables the caching of documents by the Manager. The default setting + is true (enabled).
    +
    Parameters:
    enabled - a flag indicating whether the Manager should cache documents.
    +
    +
    +
    + +

    +isCacheDocumentsEnabled

    +
    +public static boolean isCacheDocumentsEnabled()
    +
    +
    Indicates whether document caching is currently enabled.
    +
    Returns:
    a flag indicating whether the Manager is currently able to cache documents.
    +
    +
    +
    + +

    +setDocumentCacheMaximumSize

    +
    +public static void setDocumentCacheMaximumSize(int size)
    +
    +
    Sets the size of the document cache used by the Manager. The size value represents Kilobytes + and should be greater than 0. The default value is 8000 (8Mb). Note that this can only be a + guide to the Manager as to how many documents to cache. + It is possible that the cache size figure may be exceeded + due to the difficulty of calculating the memory usage of a fully-parsed HTML document. +

    Once the cache size has been exceeded the Manager will empty the oldest document from the cache + and repeat this process until the memory taken up by documents in the cache falls below the cache size. +

    Documents in the Manager's cache do not contain images. These are cached by the JVM and will take + up additional memory (sometimes far in excess of the memory taken by documents). +

    Note: Kilobytes have been used in order to allow for the creation of very small cache sizes. + A cache size of 50K will be meaningless when dealing with normal HTML documents, but it allows for + the caching of mini 'documents' which have been created via Strings rather than URLs.

    +
    Parameters:
    size - the required size in kilobytes of the Manager's document cache.
    +
    +
    +
    + +

    +getDocumentCacheMaximumSize

    +
    +public static int getDocumentCacheMaximumSize()
    +
    +
    Returns the max size of the document cache used by the Manager.
    +
    Returns:
    the size in kilobytes of the Manager's document cache.
    +
    +
    +
    + +

    +getDocumentCacheCurrentSize

    +
    +public static int getDocumentCacheCurrentSize()
    +
    +
    Returns the Manager's estimate of the current memory being taken up by cached documents. The + return value represents Kilobytes. +

    The estimate does not include memory which is being taken up by cached document + images. These are managed separately by the JVM. Note also that a call to + Runtime.getRuntime().freeMemory() will invariably show a memory usage greater + than indicated by this method. This is due to the additional memory being used by any + CalHTMLPane objects and subsidiary objects related to the current document view + they are displaying.

    +
    Returns:
    an estimate of the current memory (in kilobytes) being used by cached documents.
    +
    +
    +
    + +

    +removeOldestDocumentFromCache

    +
    +public static void removeOldestDocumentFromCache()
    +
    +
    Removes the oldest document from the Manager's document cache.
    +
    + +

    +emptyDocumentCache

    +
    +public static void emptyDocumentCache()
    +
    +
    Empties the Manager's document cache.
    +
    + +

    +setCalFocusManagerEnabled

    +
    +public static void setCalFocusManagerEnabled(boolean enabled)
    +
    +
    Enables or disables the CalFocusManager. When a CalHTMLPane is + first instantiated it will replace the incumbent FocusManager with a + CalFocusManager unless disabled from doing so by this method. + The CalFocusManager should function identically to Swing's + DefaultFocusManager outside a CalHTMLPane but extends functionality when a + CalHTMLPane has keyboard focus (e.g. it enables tabbing between hyperlinks).
    + See the README.TXT file accompanying this documentation for more details on why the + CalFocusManager has been implemented in this way. +

    (Note that this method will neither install nor uninstall the CalFocusManager.)

    +
    Parameters:
    enabled - a flag indicating whether a CalFocusManager should handle keyboard control within + a CalHTMLPane.
    +
    +
    +
    + +

    +isCalFocusManagerEnabled

    +
    +public static boolean isCalFocusManagerEnabled()
    +
    +
    Indicates whether a CalFocusManager is currently enabled.
    +
    Returns:
    a flag indicating whether a CalFocusManager should handle keyboard traversal
    See Also:
    setCalFocusManagerEnabled(boolean)
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLObserver.html b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLObserver.html new file mode 100644 index 0000000..555a3d3 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLObserver.html @@ -0,0 +1,387 @@ + + + + + + +: Interface CalHTMLObserver + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + +

    + +calpa.html +
    +Interface CalHTMLObserver

    +
    +
    All Known Implementing Classes:
    DefaultCalHTMLObserver
    +
    +
    +
    +
    public abstract interface CalHTMLObserver
    + +

    +A class implementing this interface can be passed to a CalHTMLPane at + construction time and will thereafter receive notification of events which have occured within the Pane. + A CalHTMLPane always has one, and only one, attached CalHTMLObserver. +

    If a CalHTMLObserver is not passed to the Pane during construction, a + DefaultCalHTMLObserver + will be used. DefaultCalHTMLObserver implements all the methods of this + interface as null-ops, allowing the programmer to extend the class and only implement + those methods of interest. +

    Note that the same CalHTMLObserver may be used with several + CalHTMLPanes. +

    +

    +
    See Also:
    CalHTMLPane
    +
    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidformSubmitUpdate(CalHTMLPane pane, + java.net.URL docBaseURL, + int method, + java.lang.String action, + java.lang.String data) + +
    +          Notification that a form submission has been initiated.
    + voidhistoryUpdate(CalHTMLPane pane, + int position) + +
    +          Notification of a change in position within the Pane's document history.
    + voidlinkActivatedUpdate(CalHTMLPane pane, + java.net.URL url, + java.lang.String targetFrame, + java.lang.String jname) + +
    +          Notification that a hyperlink has been activated via the keyboard or mouse.
    + voidlinkFocusedUpdate(CalHTMLPane pane, + java.net.URL url) + +
    +          Notification that a hyperlink has received or lost keyboard/mouse focus.
    + voidshowNewFrameRequest(CalHTMLPane pane, + java.lang.String targetFrame, + java.net.URL url) + +
    +          Notification for a new CalHTMLPane to be created with + the specified top-level frame name and showing the specified document.
    + voidstatusUpdate(CalHTMLPane pane, + int status, + java.net.URL url, + int value, + java.lang.String message) + +
    +          Gives general notifications of events or errors which are occuring within the Pane.
    +  +

    + + + + + + + + + + + + + + +
    +Method Detail
    + +

    +linkActivatedUpdate

    +
    +public void linkActivatedUpdate(CalHTMLPane pane,
    +                                java.net.URL url,
    +                                java.lang.String targetFrame,
    +                                java.lang.String jname)
    +
    +
    Notification that a hyperlink has been activated via the keyboard or mouse. + If the jname argument is null the link will be automatically followed by the calling Pane, unless + the URL protocol is 'mailto', which the Pane cannot currently handle. + If the jname argument is not null the pane will not attempt to follow the link, allowing + it to be handled here.
    +
    Parameters:
    pane - the CalHTMLPane which has called this method
    url - the URL of the link that has been activated
    targetFrame - the name of the frame where the contents of the URL are + to be displayed
    jname - A name given to the link so it can be handled outside the calling Pane
    +
    +
    +
    + +

    +linkFocusedUpdate

    +
    +public void linkFocusedUpdate(CalHTMLPane pane,
    +                              java.net.URL url)
    +
    +
    Notification that a hyperlink has received or lost keyboard/mouse focus. + This method is called when there has been a change in focus. If the URL + sent is not null then a new link has now received focus. + If the URL is null then a link which previously had focus + has now lost it, and no link is currently focused. +

    This method can be used, for example, to update a status display which shows the currently + focused link on the user's screen.

    +
    Parameters:
    pane - the CalHTMLPane which has called this method
    url - the URL of the focused link, or null if no link has the focus
    +
    +
    +
    + +

    +statusUpdate

    +
    +public void statusUpdate(CalHTMLPane pane,
    +                         int status,
    +                         java.net.URL url,
    +                         int value,
    +                         java.lang.String message)
    +
    +
    Gives general notifications of events or errors which are occuring within the Pane. Apart from + the DOC_LENGTH status argument listed below, the value argument sent + will be the nesting level of the frame initiating this call. A nesting of 0 indicates the + Pane's top level frame has made the call. Often you will only be interested in calls from the + top level frame. For example, if a frameset document is loading you may get the DOC_LOADED + status call several times, but the one that really counts is the frame 0 call, and this is + never sent until all sub-frames have finished loading. +

    The current status arguments sent to this method are: +

      +
    • CalCons.PRE_CONNECT
      + The Pane is attempting to connect to the given URL to receive data. +
    • CalCons.PARSE_FAILED
      + The Pane was unable to connect to the given URL or was unable to parse the content. + Most likely this will be due to an incorrectly specified URL. + The message argument may contain further details of the reason for failure. +
    • CalCons.CONNECTED
      + The Pane has established a connection to the given URL and is receiving any content. +
    • CalCons.DOC_LENGTH
      + The size of the content at the given URL is known and is contained + in the value argument. +
    • CalCons.TITLE
      + The title of the document for the given URL is known and is contained + in the message argument. Only the title of a document in the Pane's top level frame + will be sent to this method. If the document has no name, the message will be null, unless the + document is a Frameset document in which case the message "Frameset" will be sent. +
    • CalCons.PARSE_FAILED_POST_CONNECT
      + An exception has been thrown during parsing of the data from the URL. This will most + likely be an IOException such as a server time-out. +
    • CalCons.WAITING_FOR_IMAGES
      + The document has been parsed but formatting cannot be completed because the document contains images + of unspecified size. The parsing thread is waiting for image updates to give it the information + it needs to format and display the document. +
    • CalCons.DOC_LOADED
      + All text and image data has been received, parsed and the document structure determined. +
    +
    Parameters:
    pane - the CalHTMLPane which has called this method
    status - the status code of the update
    url - a URL related to the status code
    value - a value related to the status code
    message - a message related to the status code
    +
    +
    +
    + +

    +formSubmitUpdate

    +
    +public void formSubmitUpdate(CalHTMLPane pane,
    +                             java.net.URL docBaseURL,
    +                             int method,
    +                             java.lang.String action,
    +                             java.lang.String data)
    +
    +
    Notification that a form submission has been initiated. Whether the Pane handles the + submission directly depends on whether handleFormSubmission is enabled or + disabled by the CalHTMLPreferences object controlling the Pane. +

    The method argument will be either CalCons.V_GET, CalCons.V_POST, or CalCons.V_JFORM
    + If the argument is V_JFORM then the Pane will take no action, irrespective of whether + handleFormSubmission is enabled. This allows the programmer to treat this method as + a pseudo actionListener for controls placed within documents. +

    The data argument sent to this method is an x-www-form-urlencoded concatenated string of the + form results gathered from successful form controls.

    +
    Parameters:
    pane - the CalHTMLPane which has called this method
    docBaseURL - the URL of the document containing the form, possibly modified + by the <BASE> tag
    method - a code for the form method - GET, POST or JFORM
    action - the value of the action attribute (if any) specified in the FORM tag
    data - the concatenated, encoded form results
    See Also:
    CalHTMLPreferences.setHandleFormSubmission(boolean)
    +
    +
    +
    + +

    +historyUpdate

    +
    +public void historyUpdate(CalHTMLPane pane,
    +                          int position)
    +
    +
    Notification of a change in position within the Pane's document history. + This method's primary purpose is to allow the programmer to enable/disable controls which + navigate the Pane's history. Note that it is possible for the Pane to be simultaneously at the + top and bottom of its history (when the Pane has only shown a single document for example). + It's easiest to show how you might use this method with some simple pseudo-code: +
    + if (position == CalCons.AT_HISTORY_MIDDLE) {
    +     //...enable both the 'back' and 'forward' buttons
    + } else {
    +     if ((position & CalCons.AT_HISTORY_TOP) > 0) {
    +         //...disable the 'forward' button
    +     } else {
    +         //...enable the 'forward' button
    +     }
    +     if ((position & CalCons.AT_HISTORY_BOTTOM) > 0) {
    +         //...disable the 'back' button
    +     } else {
    +         //...enable the 'back' button
    +     }
    + } +
    +
    Parameters:
    pane - the CalHTMLPane which has called this method
    position - a value denoting the current position within the Pane's history
    +
    +
    +
    + +

    +showNewFrameRequest

    +
    +public void showNewFrameRequest(CalHTMLPane pane,
    +                                java.lang.String targetFrame,
    +                                java.net.URL url)
    +
    +
    Notification for a new CalHTMLPane to be created with + the specified top-level frame name and showing the specified document.
    +

    This method will be only be called if handleNewFrames is disabled in the + CalHTMLPreferences object controlling the Pane. The need for a new frame + occurs when an HTML anchor or other tag specifies that a URL should be displayed in a + frame which has a name unknown to the Pane, or when the reserved HTML name "_blank" is + specified.

    +
    Parameters:
    pane - the CalHTMLPane which has called this method
    targetFrame - the name to be given to the top-level frame of the new Pane, + or null if no name has been specified
    url - the URL of the document to be displayed in the new Pane
    See Also:
    CalHTMLPreferences.setHandleNewFrames(boolean)
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPane.html b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPane.html new file mode 100644 index 0000000..6a24077 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPane.html @@ -0,0 +1,1190 @@ + + + + + + +: Class CalHTMLPane + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + +

    + +calpa.html +
    +Class CalHTMLPane

    +
    +java.lang.Object
    +  |
    +  +--java.awt.Component
    +        |
    +        +--java.awt.Container
    +              |
    +              +--javax.swing.JComponent
    +                    |
    +                    +--javax.swing.JLayeredPane
    +                          |
    +                          +--calpa.html.CalHTMLPane
    +
    +
    +
    +
    public class CalHTMLPane
    extends javax.swing.JLayeredPane
    implements calpa.html.CalCons, java.awt.event.KeyListener
    + +

    +A component class which has the capacity to display HTML-formatted content. + The default rendering style of the Pane and other aspects of its operation + are controlled by a CalHTMLPreferences object. The Pane + communicates internal events (e.g. a selected hyperlink) to a + CalHTMLObserver object so that futher processing of such events + can be handled by the programmer. +

    Documents are displayed in the JLayeredPane.DEFAULT_LAYER.
    + The Pane's dialog (if used) is displayed in the JLayeredPane.MODAL_LAYER.
    + The Pane's test navigation bar (if used) is displayed in the JLayeredPane.PALETTE_LAYER. +

    See the README.TXT file accompanying this document for further details on how to use + this class. +

    +

    +
    See Also:
    CalHTMLPreferences, +CalHTMLObserver, Serialized Form
    +
    + +

    + + + + + + + + + + +
    Inner classes inherited from class javax.swing.JLayeredPane
    javax.swing.JLayeredPane.AccessibleJLayeredPane
    + + + + + + + +
    Inner classes inherited from class javax.swing.JComponent
    javax.swing.JComponent.AccessibleJComponent
    +  + + + + + + + + + + +
    Fields inherited from class javax.swing.JLayeredPane
    DEFAULT_LAYER, +DRAG_LAYER, +FRAME_CONTENT_LAYER, +LAYER_PROPERTY, +MODAL_LAYER, +PALETTE_LAYER, +POPUP_LAYER
    + + + + + + + +
    Fields inherited from class javax.swing.JComponent
    accessibleContext, +listenerList, +TOOL_TIP_TEXT_KEY, +ui, +UNDEFINED_CONDITION, +WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, +WHEN_FOCUSED, +WHEN_IN_FOCUSED_WINDOW
    + + + + + + + +
    Fields inherited from class java.awt.Component
    BOTTOM_ALIGNMENT, +CENTER_ALIGNMENT, +LEFT_ALIGNMENT, +RIGHT_ALIGNMENT, +TOP_ALIGNMENT
    +  + + + + + + + + + + + + + +
    +Constructor Summary
    CalHTMLPane() + +
    +          Constructs a CalHTMLPane with default CalHTMLPreferences, + a default CalHTMLObserver and default top-level frame name.
    CalHTMLPane(CalHTMLPreferences prefs, + CalHTMLObserver obs, + java.lang.String name) + +
    +          Constucts a CalHTMLPane with the specified CalHTMLObserver, + CalHTMLPreferences and top-level frame name.
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidcloseDialog() + +
    +          Closes the Pane's dialog if it is currently visible.
    + java.util.HashtablegetIDComponents(java.lang.String targetFrame) + +
    +          Returns a Hashtable containing all components in the target frame which have the HTML 'id' attribute.
    + voidgoBack() + +
    +          Show the previous document in the Pane's history list.
    + voidgoForward() + +
    +          Show the next document in the Pane's history list.
    + voidgoHome() + +
    +          Show the contents of the URL specified as homeURL + by CalHTMLPreferences in the top level frame of the Pane.
    + booleanisFocusTraversable() + +
    +          Overrides JComponent isFocusTraversable().
    + booleanisLoadSynchronouslyEnabled() + +
    +          Returns whether documents will be loaded by the CalPane synchronously or asynchronously.
    + booleanisManagingFocus() + +
    +          Overrides JComponent isManagingFocus().
    + voidkeyPressed(java.awt.event.KeyEvent e) + +
    +          Public due to implementation requirements.
    + voidkeyReleased(java.awt.event.KeyEvent e) + +
    +          Public due to implementation requirements.
    + voidkeyTyped(java.awt.event.KeyEvent e) + +
    +          Public due to implementation requirements.
    + voidreloadDocument() + +
    +          Reloads the current document.
    + voidscrollToReference(java.lang.String ref, + java.lang.String targetFrame) + +
    +          Scrolls the document view to the specified anchor reference in the named target frame.
    + voidsetBounds(int x, + int y, + int w, + int h) + +
    +          Public due to inheritance.
    + voidsetLoadSynchronously(boolean b) + +
    +          Enables/disables the synchronous loading of documents.
    + booleansetScrollBarPolicy(int n) + +
    +          Sets the scrollbar policy of the Pane.
    + voidshowDialog(java.lang.String message) + +
    +          Parses the sent message as HTML and displays the result in the Pane's dialog.
    + voidshowDialog(java.lang.String message, + java.lang.String messageName, + int x, + int y, + int w, + int h) + +
    +          Parses the sent message as HTML and displays the result in the Pane's dialog.
    + voidshowHTMLDocument(java.lang.String s) + +
    +          Formats and displays the specified String as an HTML document in the top level frame of the Pane.
    + voidshowHTMLDocument(java.lang.String s, + java.lang.String targetFrame) + +
    +          Formats and displays the specified String as an HTML document in the named + target frame.
    + voidshowHTMLDocument(java.net.URL url) + +
    +          Shows the contents of the specified URL in the top level frame of + the Pane.
    + voidshowHTMLDocument(java.net.URL url, + java.lang.String targetFrame, + boolean reload) + +
    +          Shows the contents of the specified URL in the named + target frame.
    + voidstopAll() + +
    +          Stops all processes within the Pane.
    + + + + + + + +
    Methods inherited from class javax.swing.JLayeredPane
    addImpl, +getAccessibleContext, +getComponentCountInLayer, +getComponentsInLayer, +getComponentToLayer, +getIndexOf, +getLayer, +getLayer, +getLayeredPaneAbove, +getObjectForLayer, +getPosition, +highestLayer, +insertIndexForLayer, +isOptimizedDrawingEnabled, +lowestLayer, +moveToBack, +moveToFront, +paint, +paramString, +putLayer, +remove, +setLayer, +setLayer, +setPosition
    + + + + + + + +
    Methods inherited from class javax.swing.JComponent
    addAncestorListener, +addNotify, +addPropertyChangeListener, +addVetoableChangeListener, +computeVisibleRect, +contains, +createToolTip, +firePropertyChange, +firePropertyChange, +firePropertyChange, +firePropertyChange, +firePropertyChange, +firePropertyChange, +firePropertyChange, +firePropertyChange, +firePropertyChange, +fireVetoableChange, +getActionForKeyStroke, +getAlignmentX, +getAlignmentY, +getAutoscrolls, +getBorder, +getBounds, +getClientProperty, +getComponentGraphics, +getConditionForKeyStroke, +getDebugGraphicsOptions, +getGraphics, +getHeight, +getInsets, +getInsets, +getLocation, +getMaximumSize, +getMinimumSize, +getNextFocusableComponent, +getPreferredSize, +getRegisteredKeyStrokes, +getRootPane, +getSize, +getToolTipLocation, +getToolTipText, +getToolTipText, +getTopLevelAncestor, +getUIClassID, +getVisibleRect, +getWidth, +getX, +getY, +grabFocus, +hasFocus, +isDoubleBuffered, +isFocusCycleRoot, +isLightweightComponent, +isOpaque, +isPaintingTile, +isRequestFocusEnabled, +isValidateRoot, +paintBorder, +paintChildren, +paintComponent, +paintImmediately, +paintImmediately, +processComponentKeyEvent, +processFocusEvent, +processKeyEvent, +processMouseMotionEvent, +putClientProperty, +registerKeyboardAction, +registerKeyboardAction, +removeAncestorListener, +removeNotify, +removePropertyChangeListener, +removeVetoableChangeListener, +repaint, +repaint, +requestDefaultFocus, +requestFocus, +resetKeyboardActions, +reshape, +revalidate, +scrollRectToVisible, +setAlignmentX, +setAlignmentY, +setAutoscrolls, +setBackground, +setBorder, +setDebugGraphicsOptions, +setDoubleBuffered, +setEnabled, +setFont, +setForeground, +setMaximumSize, +setMinimumSize, +setNextFocusableComponent, +setOpaque, +setPreferredSize, +setRequestFocusEnabled, +setToolTipText, +setUI, +setVisible, +unregisterKeyboardAction, +update, +updateUI
    + + + + + + + +
    Methods inherited from class java.awt.Container
    add, +add, +add, +add, +add, +addContainerListener, +countComponents, +deliverEvent, +doLayout, +findComponentAt, +findComponentAt, +getComponent, +getComponentAt, +getComponentAt, +getComponentCount, +getComponents, +getLayout, +insets, +invalidate, +isAncestorOf, +layout, +list, +list, +locate, +minimumSize, +paintComponents, +preferredSize, +print, +printComponents, +processContainerEvent, +processEvent, +remove, +removeAll, +removeContainerListener, +setLayout, +validate, +validateTree
    + + + + + + + +
    Methods inherited from class java.awt.Component
    action, +add, +addComponentListener, +addFocusListener, +addInputMethodListener, +addKeyListener, +addMouseListener, +addMouseMotionListener, +addPropertyChangeListener, +bounds, +checkImage, +checkImage, +coalesceEvents, +contains, +createImage, +createImage, +disable, +disableEvents, +dispatchEvent, +enable, +enable, +enableEvents, +enableInputMethods, +getBackground, +getBounds, +getColorModel, +getComponentOrientation, +getCursor, +getDropTarget, +getFont, +getFontMetrics, +getForeground, +getInputContext, +getInputMethodRequests, +getLocale, +getLocation, +getLocationOnScreen, +getName, +getParent, +getPeer, +getSize, +getToolkit, +getTreeLock, +gotFocus, +handleEvent, +hide, +imageUpdate, +inside, +isDisplayable, +isEnabled, +isLightweight, +isShowing, +isValid, +isVisible, +keyDown, +keyUp, +list, +list, +list, +location, +lostFocus, +mouseDown, +mouseDrag, +mouseEnter, +mouseExit, +mouseMove, +mouseUp, +move, +nextFocus, +paintAll, +postEvent, +prepareImage, +prepareImage, +printAll, +processComponentEvent, +processInputMethodEvent, +processMouseEvent, +remove, +removeComponentListener, +removeFocusListener, +removeInputMethodListener, +removeKeyListener, +removeMouseListener, +removeMouseMotionListener, +removePropertyChangeListener, +repaint, +repaint, +repaint, +resize, +resize, +setBounds, +setComponentOrientation, +setCursor, +setDropTarget, +setLocale, +setLocation, +setLocation, +setName, +setSize, +setSize, +show, +show, +size, +toString, +transferFocus
    + + + + + + + +
    Methods inherited from class java.lang.Object
    clone, +equals, +finalize, +getClass, +hashCode, +notify, +notifyAll, +wait, +wait, +wait
    +  +

    + + + + + + + + + + + +
    +Constructor Detail
    + +

    +CalHTMLPane

    +
    +public CalHTMLPane()
    +
    +
    Constructs a CalHTMLPane with default CalHTMLPreferences, + a default CalHTMLObserver and default top-level frame name.
    +
    + +

    +CalHTMLPane

    +
    +public CalHTMLPane(CalHTMLPreferences prefs,
    +                   CalHTMLObserver obs,
    +                   java.lang.String name)
    +
    +
    Constucts a CalHTMLPane with the specified CalHTMLObserver, + CalHTMLPreferences and top-level frame name. If any of the arguments are + null then a default will be used.
    +
    Parameters:
    prefs - the CalHTMLPreferences which determines the Pane's behaviour.
    obs - the CalHTMLObserver that will receive updates from the Pane.
    name - the name of the Pane's top-level frame.
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +setBounds

    +
    +public void setBounds(int x,
    +                      int y,
    +                      int w,
    +                      int h)
    +
    +
    Public due to inheritance. Call super.setBounds(x, y, w, h) if you override + this method or the Pane may not function correctly.
    +
    Overrides:
    setBounds in class java.awt.Component
    +
    +
    +
    + +

    +showHTMLDocument

    +
    +public void showHTMLDocument(java.net.URL url)
    +
    +
    Shows the contents of the specified URL in the top level frame of + the Pane. A cached document will be used if one is available and caching is enabled.
    +
    Parameters:
    url - the URL of the document to be displayed.
    +
    +
    +
    + +

    +showHTMLDocument

    +
    +public void showHTMLDocument(java.net.URL url,
    +                             java.lang.String targetFrame,
    +                             boolean reload)
    +
    +
    Shows the contents of the specified URL in the named + target frame. If the target frame is null the document will be displayed in the top level + frame of the Pane. If the target frame is not a currently recognised frame: +
    • if handleNewFrames is enabled in the + CalHTMLPreferences controlling the Pane then a new CalHTMLPane + will be created to show the document. +
    • if handleNewFrames is not enabled + then a showNewFrameRequest will be sent to the Pane's resident + CalHTMLObserver. +
    +

    If reload is false a cached document will be used if one is + available and caching is enabled. Otherwise the document will be reloaded from the + specified URL.

    +
    Parameters:
    url - the URL of the document to be displayed.
    targetFrame - the HTML frame that the document should be displayed in.
    reload - if true forces the document to be reloaded even if a cached + version is available.
    +
    +
    +
    + +

    +showHTMLDocument

    +
    +public void showHTMLDocument(java.lang.String s)
    +
    +
    Formats and displays the specified String as an HTML document in the top level frame of the Pane.
    +
    Parameters:
    s - a String to be formatted as an HTML document.
    +
    +
    +
    + +

    +showHTMLDocument

    +
    +public void showHTMLDocument(java.lang.String s,
    +                             java.lang.String targetFrame)
    +
    +
    Formats and displays the specified String as an HTML document in the named + target frame. If the target frame is null the document will be displayed in the top level + frame of the Pane. If the target frame is not a currently recognised frame: +
    • if handleNewFrames is enabled in the + CalHTMLPreferences controlling the Pane then a new CalHTMLPane + will be created to show the document. +
    • if handleNewFrames is not enabled + then a showNewFrameRequest will be sent to the Pane's resident + CalHTMLObserver. +
    +
    Parameters:
    s - a String to be formatted as an HTML document.
    targetFrame - the HTML frame that the document should be displayed in.
    +
    +
    +
    + +

    +scrollToReference

    +
    +public void scrollToReference(java.lang.String ref,
    +                              java.lang.String targetFrame)
    +
    +
    Scrolls the document view to the specified anchor reference in the named target frame. + If the targetFrame argument is null then the reference will be + looked for in the document in the CalPane's top level frame. +

    This method has been incorporated to assist programmers who are displaying HTML Strings + and who wish to navigate to internal links in their String HTML documents. For example, if + there is an anchor in your String such as: <A name="contactinfo"> then you can call + this method with scrollToReference("contactinfo", null). +

    Note that you will need to ensure that the String document has been parsed/loaded before + attempting to navigate to anchors within it. Calling showHTMLDocument(String s) + and then immediately calling this method may fail because the String is still being asynchronously + parsed and the reference has not been encountered. You can use the CalHTMLObserver + class to determine when the String has been fully parsed, or you could set the CalPane's + loading policy to synchronous loading. +

    Programmers using URL documents need not use this method. They can create a new URL which + incorporates the anchor reference and call showHTMLDocument(URL) instead, which has + the advantage that no check need be made to see if the document has loaded - the CalPane will + automatically navigate to the anchor as soon as it is available.

    +
    Parameters:
    ref - a named anchor reference within a document.
    targetFrame - the HTML frame that contains the document with the anchor reference.
    +
    +
    +
    + +

    +goBack

    +
    +public void goBack()
    +
    +
    Show the previous document in the Pane's history list. If the Pane is already + at the bottom of its history then the call will be ignored.
    +
    +
    +
    +
    + +

    +goForward

    +
    +public void goForward()
    +
    +
    Show the next document in the Pane's history list. If the Pane is already + at the top of its history then the call will be ignored.
    +
    +
    +
    +
    + +

    +goHome

    +
    +public void goHome()
    +
    +
    Show the contents of the URL specified as homeURL + by CalHTMLPreferences in the top level frame of the Pane.
    +
    +
    +
    +
    + +

    +reloadDocument

    +
    +public void reloadDocument()
    +
    +
    Reloads the current document.
    +
    +
    +
    +
    + +

    +stopAll

    +
    +public void stopAll()
    +
    +
    Stops all processes within the Pane. In most cases cancellation of any current document loading will + be immediate. However, this call has a slightly different effect on a thread that is currently waiting + for image data, for this reason: +
    Some document authors do not specify widths and heights for images in their documents. + This presents a problem when parsing/loading. A temporary default image size could be used so that + the document could be displayed 'on the fly', but this means reformatting the whole document once the + true image size becomes available. This can considerably lengthen parsing time and is disconcerting + for the document reader. The alternative is to delay the display of the document until all image sizes + are known. +

    The latter policy is followed by the CalHTMLPane. On occasions however the image data fails + to arrive, and the parsing thread then becomes 'locked' as it waits for this data, even though the + rest of the document has been parsed and is ready to be formatted. + When this method is called (usually by the user pressing a 'STOP' button) a thread which is looping + in this way will be freed and document parsing will continue, with default sizes being used for + images with incomplete data.

    +
    +
    +
    +
    + +

    +setScrollBarPolicy

    +
    +public boolean setScrollBarPolicy(int n)
    +
    +
    Sets the scrollbar policy of the Pane. + The arguments which can be sent to this method are:

    +

    • CalCons.VIEWER (The default setting)
      +     Equivalent to ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, + ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
      +
    • CalCons.V_YES
      +     Equivalent to ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, + ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
      +
    • CalCons.V_NO
      +     Equivalent to ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER, + ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER
      +
    • CalCons.V_AUTO
      +     Equivalent to ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, + ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
      +
    +

    Note that unless scrolling policy is set to V_NO, documents will always be formatted + on the assumption that a vertical scrollbar is present, even if one is not currently visible. + This is due to the asynchronous loading of documents. When a Pane loads a document it cannot 'know' + whether or not a vertical scrollbar is going to be required, and adjusting for the sudden appearance + of one would necessitate a reformat of the whole document.

    +
    Parameters:
    n - a value which dictates the scrollbar policy for the Pane.
    Returns:
    true if a supported scrollbar policy was sent to this method
    +
    +
    +
    + +

    +isManagingFocus

    +
    +public boolean isManagingFocus()
    +
    +
    Overrides JComponent isManagingFocus(). Programmers are advised not to + override this method.
    +
    Overrides:
    isManagingFocus in class javax.swing.JComponent
    +
    +
    +
    + +

    +isFocusTraversable

    +
    +public boolean isFocusTraversable()
    +
    +
    Overrides JComponent isFocusTraversable(). Programmers are advised not to + override this method.
    +
    Overrides:
    isFocusTraversable in class javax.swing.JComponent
    +
    +
    +
    + +

    +keyPressed

    +
    +public void keyPressed(java.awt.event.KeyEvent e)
    +
    +
    Public due to implementation requirements. Programmers are advised not to + override this method.
    +
    Specified by:
    keyPressed in interface java.awt.event.KeyListener
    +
    +
    +
    + +

    +keyReleased

    +
    +public void keyReleased(java.awt.event.KeyEvent e)
    +
    +
    Public due to implementation requirements. Programmers are advised not to + override this method.
    +
    Specified by:
    keyReleased in interface java.awt.event.KeyListener
    +
    +
    +
    + +

    +keyTyped

    +
    +public void keyTyped(java.awt.event.KeyEvent e)
    +
    +
    Public due to implementation requirements. Programmers are advised not to + override this method.
    +
    Specified by:
    keyTyped in interface java.awt.event.KeyListener
    +
    +
    +
    + +

    +showDialog

    +
    +public void showDialog(java.lang.String message)
    +
    +
    Parses the sent message as HTML and displays the result in the Pane's dialog. See the + README.TXT file accompanying this documentation for more details regarding the Pane's dialog.
    +
    Parameters:
    message - a String to be formatted as HTML in the Pane's dialog.
    +
    +
    +
    + +

    +showDialog

    +
    +public void showDialog(java.lang.String message,
    +                       java.lang.String messageName,
    +                       int x,
    +                       int y,
    +                       int w,
    +                       int h)
    +
    +
    Parses the sent message as HTML and displays the result in the Pane's dialog.
    + If a messageName is given the Pane will attempt to use a cached version of the message + which has already been parsed under the same name. The message sent to this method may be + null if the messageName is not null; +

    If x >= 0 the Pane will use this value as a guide to the left-horizontal coordinate + for setting the dialog's bounds. +
    If y >= 0 the Pane will use this value as a guide to the top-vertical coordinate + for setting the dialog's bounds. +
    If w > 0 the Pane will use this value as a guide to the width of the dialog. +
    If h > 0 the Pane will use this value as a guide to the height of the dialog. +

    The Pane will honour any sent bounds values where it can, but it will always try and ensure that + the dialog is fully visible and that the dialog's contents fit properly within its bounds. +

    See the README.TXT file accompanying this documentation for more + details on programming the Pane's dialog.

    +
    Parameters:
    message - a String to be formatted as HTML in the Pane's dialog.
    messageName - a name given to the message for caching purposes.
    x - the left-horizontal coordinate of the dialog's bounds.
    y - the top-vertical coordinate of the dialog's bounds.
    w - the width of the dialog.
    h - the height of the dialog.
    +
    +
    +
    + +

    +closeDialog

    +
    +public void closeDialog()
    +
    +
    Closes the Pane's dialog if it is currently visible. Any current parsing of a dialog message + will be halted. If the dialog is not visible this method call is ignored.
    +
    +
    +
    +
    + +

    +getIDComponents

    +
    +public java.util.Hashtable getIDComponents(java.lang.String targetFrame)
    +
    +
    Returns a Hashtable containing all components in the target frame which have the HTML 'id' attribute. + If the target frame is null then all id components within the CalPane are returned. +

    + An example component would be one created with the following HTML: +

    +    <INPUT type=text name=username id=username> +

    + The keys in the Hashtable are the id values of the components. + This method allows programmers to get handles to HTML components after they have been created, + either to monitor/manipulate their state or, for example, to programmatically fire a form submission. +

    Note that programmers should ensure that a document has finished loading before trying to access + any components within it, otherwise this method may return before the components have been created.

    +
    Parameters:
    targetFrame - the name of the frame containing the components, or all frames if null
    Returns:
    a Hashtable of components, with their HTML 'id' values as keys
    +
    +
    +
    + +

    +setLoadSynchronously

    +
    +public void setLoadSynchronously(boolean b)
    +
    +
    Enables/disables the synchronous loading of documents. + If loadSynchronously is enabled then showHTMLDocument() methods + will not return until a document has loaded. In addition documents + loading from activated hyperlinks will also load synchronously. +

    + Loading synchronously effectively blocks the current AWT thread + which will reduce the responsiveness of the CalHTMLPane (and will freeze the rest of + your application), but it can be useful + for programmers who want to be sure that a document has loaded before proceeding with another + operation. Generally it is better to use the callback methods in CalHTMLObserver + to determine when a document has finished loading. +

    The default policy is to load documents asynchronously.

    +
    +
    +
    +
    + +

    +isLoadSynchronouslyEnabled

    +
    +public boolean isLoadSynchronouslyEnabled()
    +
    +
    Returns whether documents will be loaded by the CalPane synchronously or asynchronously.
    +
    Returns:
    true if documents will load synchronously.
    See Also:
    setLoadSynchronously(boolean)
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPreferences.html b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPreferences.html new file mode 100644 index 0000000..f9072f5 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/calpa/html/CalHTMLPreferences.html @@ -0,0 +1,1319 @@ + + + + + + +: Class CalHTMLPreferences + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + +

    + +calpa.html +
    +Class CalHTMLPreferences

    +
    +java.lang.Object
    +  |
    +  +--calpa.html.CalHTMLPreferences
    +
    +
    +
    +
    public class CalHTMLPreferences
    extends java.lang.Object
    implements calpa.html.CalCons
    + +

    +A class used to control the default operation and rendering methods + of a CalHTMLPane. The same CalHTMLPreferences + object can be used with multiple panes. During construction all fields of + the preferences object are set to default values. Individual fields + can then be modified through the access methods listed.

    Certain methods + can only modify fields before the preferences object has been passed to + a CalHTMLPane. Calling such methods after this point will not + throw an exception - the calls are simply ignored. +

    +

    +
    See Also:
    CalHTMLPane
    +
    + +

    + + + + + + + + + + + + + + + + +
    +Constructor Summary
    CalHTMLPreferences() + +
    +          Creates a new CalHTMLPreferences object which will have all fields + set to default values.
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + java.awt.FontgetDefaultButtonFont(int displaySize) + +
    +          Returns a default font being used within THREEDEE and FLUSH + Buttons and ComboBoxes.
    + java.awt.ColorgetDefaultColor(int attributeType) + +
    +          Returns a default color used by a CalHTMLPane to render documents.
    + java.awt.FontgetDefaultFont(int displaySize) + +
    +          Returns a default font being used by a CalHTMLPane
    + java.awt.FontgetDefaultFormTextFont(int displaySize) + +
    +          Returns a default font being used within THREEDEE and FLUSH + Textfields, TextAreas and Lists.
    + intgetDefaultFrameSpacing() + +
    +          Returns the default spacing in pixels between frames within a Frameset document.
    + intgetDefaultMarginheight() + +
    +          Returns the default vertical margin of a document.
    + intgetDefaultMarginwidth() + +
    +          Returns the default horizontal margin of a document.
    + intgetFormRenderingStyle() + +
    +          Returns the default rendering style of FORM components within a + CalHTMLPane.
    + intgetFrameDisplayWidth(int displaySize) + +
    +          Returns the width for the specified displaySize at which point a CalHTMLPane will + start scaling its display if optimizeDisplay is enabled.
    + java.net.URLgetHomeURL() + +
    +          Returns the URL which will accessed if a CalHTMLPane's + goHome() method is called
    + intgetOptimizeDisplay() + +
    +          Returns whether a CalHTMLPane will + adjust display parameters based on frame size.
    + java.util.HashtablegetVisitedHash() + +
    +          Returns a Hashtable containing references to visited URLs.
    + booleanisAutomaticallyFollowHyperlinksEnabled() + +
    +          Returns whether a CalHTMLPane will automatically navigate activated hyperlinks.
    + booleanisDisplayErrorDialogsEnabled() + +
    +          Returns whether a CalHTMLPane will automatically display a dialog when + errors such as failed hyperlinks occur.
    + booleanisHandleFormSubmissionEnabled() + +
    +          Returns whether a CalHTMLPane will + automatically handle GET and POST form submissions.
    + booleanisHandleNewFramesEnabled() + +
    +          Returns whether a new CalHTMLPane will + automatically be created if specified by an HTML tag.
    + booleanisLoadImagesEnabled() + +
    +          Returns whether a CalHTMLPane will + automatically load images within documents.
    + booleanisRequestFocusOnMouseClickEnabled() + +
    +          Returns whether a CalHTMLPane will request keyboard focus if the mouse is + clicked within it.
    + booleanisShowHyperlinkOnMouseFocusEnabled() + +
    +          Returns whether a CalHTMLPane will only show a hyperlink when the link has mouse focus.
    + booleanisShowTestNavBarEnabled() + +
    +          Returns whether a CalHTMLPane will display a diagnostic navigation bar on startup.
    + booleanisShowWarningBeforePostEnabled() + +
    +          Returns whether a CalHTMLPane will show a warning to the user before a form POST + submission is made.
    + booleanisUnderlineLinksEnabled() + +
    +          Returns whether a CalHTMLPane will underline hyperlinks.
    + voidsetAutomaticallyFollowHyperlinks(boolean b) + +
    +          Enables/disables the automatic navigation of activated hyperlinks in a CalHTMLPane.
    + voidsetDefaultButtonFont(int displaySize, + java.awt.Font font) + +
    +          Sets a default font to be used within form Buttons and ComboBoxes.
    + voidsetDefaultColor(int attributeType, + java.awt.Color c) + +
    +          Sets a default color.
    + voidsetDefaultFont(int displaySize, + java.awt.Font font) + +
    +          Sets a default font to be used by a CalHTMLPane.
    + voidsetDefaultFont(int displaySize, + int fontFamily, + int sizeIndex) + +
    +          Deprecated. Use setDefaultFont(int, Font) which allows the setting of + system fonts.
    + voidsetDefaultFormTextFont(int displaySize, + java.awt.Font font) + +
    +          Sets a default font to be used within form TextFields, TextAreas and Lists.
    + voidsetDefaultFrameSpacing(int n) + +
    +          Sets the default spacing in pixels between frames within a Frameset document.
    + voidsetDefaultMarginheight(int n) + +
    +          Sets the default vertical margin of a document.
    + voidsetDefaultMarginwidth(int n) + +
    +          Sets the default horizontal margin of a document.
    + voidsetDisplayErrorDialogs(boolean b) + +
    +          Enables/disables the automatic display of error dialogs within a CalHTMLPane.
    + voidsetFormFont(int displaySize, + int fontFamily, + int fontStyle, + int sizeArrayIndex) + +
    +          Deprecated. Use either setDefaultButtonFont(int, Font) or + setDefaultFormTextFont(int, Font).
    + voidsetFormRenderingStyle(int style) + +
    +          Sets the rendering style of FORM components within a CalHTMLPane.
    + voidsetFrameDisplayWidth(int displaySize, + int width) + +
    +          Sets the width for the specified displaySize at which point a CalHTMLPane will + start scaling its display if optimizeDisplay is enabled.
    + voidsetHandleFormSubmission(boolean b) + +
    +          Enables/disables the automatic processing of GET and POST html forms + within a CalHTMLPane.
    + voidsetHandleNewFrames(boolean b) + +
    +          Enables/disables the automatic creation of a new CalHTMLPane if + specified by an HTML tag.
    + voidsetHomeURL(java.net.URL url) + +
    +          Sets the URL which will be accessed if a CalHTMLPane's + goHome() method is called.
    + voidsetLoadImages(boolean b) + +
    +          Enables/disables the automatic loading of images within a CalHTMLPane.
    + voidsetOptimizeDisplay(int optimizeLevel) + +
    +          Determines whether a CalHTMLPane will + adjust display parameters based on frame width.
    + voidsetRequestFocusOnMouseClick(boolean b) + +
    +          Determines whether a CalHTMLPane or one of its subframes will request keyboard focus + if the mouse is clicked within it.
    + voidsetShowHyperlinkOnMouseFocus(boolean b) + +
    +          Determines whether a hyperlink will only be marked as such when it has mouse focus.
    + voidsetShowTestNavBar(boolean b) + +
    +          Enables/disables the display of a diagnostic navigation bar.
    + voidsetShowWarningBeforePost(boolean b) + +
    +          Enables/disables the showing of a warning message before a form POST submission + is made.
    + voidsetUnderlineLinks(boolean b) + +
    +          Enables/disables the underlining of hyperlinks within a CalHTMLPane.
    + voidsetVisitedHash(java.util.Hashtable table) + +
    +          Sets the Hashtable containing references to URLs which + will be used by a CalHTMLPane to mark visited + hyperlinks.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    clone, +equals, +finalize, +getClass, +hashCode, +notify, +notifyAll, +toString, +wait, +wait, +wait
    +  +

    + + + + + + + + + + + +
    +Constructor Detail
    + +

    +CalHTMLPreferences

    +
    +public CalHTMLPreferences()
    +
    +
    Creates a new CalHTMLPreferences object which will have all fields + set to default values.
    + + + + + + + + +
    +Method Detail
    + +

    +getVisitedHash

    +
    +public java.util.Hashtable getVisitedHash()
    +
    +
    Returns a Hashtable containing references to visited URLs. + This hashtable can be passed into a new CalHTMLPreferences object + at a later date so that a user's visited links are persistent. The + method of storing the hashtable's contents outside of this class + is left to the programmer. +

    The keys within the hashtable are all Integer objects, + each representing a hashcode of a visited URL (note that this is + not the hashcode returned from the URL.hashcode() method). +
    The values within the hashtable are all Long objects + representing the System.currentTimeMillis() when the + link was last visited. The programmer may therefore remove 'old' + links if so desired.

    +
    Returns:
    a Hashtable recording visited document URLs
    See Also:
    setVisitedHash(java.util.Hashtable)
    +
    +
    +
    + +

    +setVisitedHash

    +
    +public void setVisitedHash(java.util.Hashtable table)
    +
    +
    Sets the Hashtable containing references to URLs which + will be used by a CalHTMLPane to mark visited + hyperlinks. Only pass in a hashtable which was previously + obtained from a CalHTMLPreferences object via the + getVisitedHash() method.
    +
    Parameters:
    table - a Hashtable containing Integer/Long pairs representing visited document URLs
    See Also:
    getVisitedHash()
    +
    +
    +
    + +

    +setOptimizeDisplay

    +
    +public void setOptimizeDisplay(int optimizeLevel)
    +
    +
    Determines whether a CalHTMLPane will + adjust display parameters based on frame width. + The arguments which can be sent to this method are:

    +

      +
    • CalCons.NO_OPTIMIZATION
      + No adjustments will be made for frame width. This is the default value. +
    • CalCons.OPTIMIZE_FONTS
      + Font size may be scaled based on frame width. +
    • CalCons.OPTIMIZE_ALL
      + In addition to font scaling, other parameters such as table cellspacing + and cellpadding may be adjusted in an attempt to fit the document into the current frame. +
    +

    See the README.TXT file accompanying this document for more details on optimizeDisplay.

    +
    Parameters:
    optimizeLevel - a value indicating the level (if any) of display optimization required
    See Also:
    setFrameDisplayWidth(int, int), +setDefaultFont(int, int, int)
    +
    +
    +
    + +

    +getOptimizeDisplay

    +
    +public int getOptimizeDisplay()
    +
    +
    Returns whether a CalHTMLPane will + adjust display parameters based on frame size. +

    See the README.TXT file accompanying this document for more details on optimizeDisplay.

    +
    Returns:
    a value indicating the current level of display optimization
    +
    +
    +
    + +

    +setFrameDisplayWidth

    +
    +public void setFrameDisplayWidth(int displaySize,
    +                                 int width)
    +
    +
    Sets the width for the specified displaySize at which point a CalHTMLPane will + start scaling its display if optimizeDisplay is enabled. + The permitted displaySize arguments are:

    +

    • CalCons.S_SMALL
    • CalCons.S_MEDIUM
    +

    There is no need to set a width for displaySize CalCons.S_LARGE as a + CalHTMLPane will treat any width greater than the CalCons.S_MEDIUM + width as a large display. +

    Default values are: S_SMALL: 250 pixels, S_MEDIUM: 400 pixels +

    See the README.TXT file accompanying this document for more details on optimizeDisplay.

    +
    +
    +
    +
    + +

    +getFrameDisplayWidth

    +
    +public int getFrameDisplayWidth(int displaySize)
    +
    +
    Returns the width for the specified displaySize at which point a CalHTMLPane will + start scaling its display if optimizeDisplay is enabled. + The permitted displaySize arguments are:

    +

    • CalCons.S_SMALL +
    • CalCons.S_MEDIUM
    +
    +
    +
    +
    + +

    +setDefaultFont

    +
    +public void setDefaultFont(int displaySize,
    +                           int fontFamily,
    +                           int sizeIndex)
    +
    +
    Deprecated. Use setDefaultFont(int, Font) which allows the setting of + system fonts.
    +
    +
    +
    +
    + +

    +setDefaultFont

    +
    +public void setDefaultFont(int displaySize,
    +                           java.awt.Font font)
    +
    +
    Sets a default font to be used by a CalHTMLPane. + This method takes three different size arguments: +
    • CalCons.S_SMALL +
    • CalCons.S_MEDIUM +
    • CalCons.S_LARGE

      +

    + In most cases you will call this method with the CalCons.S_LARGE argument. + The S_SMALL and S_MEDIUM arguments are used in special cases + relating to printing (which is not yet supported in the Java 2 version of CalPane) and + the optimizeDisplay feature of CalHTMLPane. +

    This method replaces the now deprecated + setDefaultFont(int displaySize, int fontFamily, int sizeIndex) method because + Java 2 allows access to system fonts, rather than just Java's logical fonts. +

    The font point sizes supported in CalPane are: 10, 11, 12, 13, 14, 16, 18, 20, 22, 24, 28, 36, 48 +

    If the size of the font sent to this method does not exactly match a supported size, then the + closest supported value will be used.

    +
    See Also:
    setOptimizeDisplay(int)
    +
    +
    +
    + +

    +getDefaultFont

    +
    +public java.awt.Font getDefaultFont(int displaySize)
    +
    +
    Returns a default font being used by a CalHTMLPane
    +
    See Also:
    setDefaultFont(int, java.awt.Font)
    +
    +
    +
    + +

    +setFormFont

    +
    +public void setFormFont(int displaySize,
    +                        int fontFamily,
    +                        int fontStyle,
    +                        int sizeArrayIndex)
    +
    +
    Deprecated. Use either setDefaultButtonFont(int, Font) or + setDefaultFormTextFont(int, Font).
    +
    +
    +
    +
    + +

    +setDefaultButtonFont

    +
    +public void setDefaultButtonFont(int displaySize,
    +                                 java.awt.Font font)
    +
    +
    Sets a default font to be used within form Buttons and ComboBoxes. This method only applies + to THREEDEE and FLUSH form components. LOOKANDFEEL + components will not be affected. + This method takes three different size arguments: +
    • CalCons.S_SMALL +
    • CalCons.S_MEDIUM +
    • CalCons.S_LARGE

      +

    + In most cases you will call this method with the CalCons.S_LARGE argument. + The S_SMALL and S_MEDIUM arguments are used in special cases + relating to the optimizeDisplay feature of CalHTMLPane. +

    The font point sizes supported in CalPane are: 10, 11, 12, 13, 14, 16, 18, 20, 22, 24, 28, 36, 48 +

    If the size of the font sent to this method does not exactly match a supported size, then the + closest supported value will be used.

    +
    See Also:
    setOptimizeDisplay(int)
    +
    +
    +
    + +

    +getDefaultButtonFont

    +
    +public java.awt.Font getDefaultButtonFont(int displaySize)
    +
    +
    Returns a default font being used within THREEDEE and FLUSH + Buttons and ComboBoxes.
    +
    See Also:
    setDefaultButtonFont(int, java.awt.Font)
    +
    +
    +
    + +

    +setDefaultFormTextFont

    +
    +public void setDefaultFormTextFont(int displaySize,
    +                                   java.awt.Font font)
    +
    +
    Sets a default font to be used within form TextFields, TextAreas and Lists. This method only applies + to THREEDEE and FLUSH form components. LOOKANDFEEL + components will not be affected. + This method takes three different size arguments: +
    • CalCons.S_SMALL +
    • CalCons.S_MEDIUM +
    • CalCons.S_LARGE

      +

    + In most cases you will call this method with the CalCons.S_LARGE argument. + The S_SMALL and S_MEDIUM arguments are used in special cases + relating to the optimizeDisplay feature of CalHTMLPane. +

    The font point sizes supported in CalPane are: 10, 11, 12, 13, 14, 16, 18, 20, 22, 24, 28, 36, 48 +

    If the size of the font sent to this method does not exactly match a supported size, then the + closest supported value will be used.

    +
    See Also:
    setOptimizeDisplay(int)
    +
    +
    +
    + +

    +getDefaultFormTextFont

    +
    +public java.awt.Font getDefaultFormTextFont(int displaySize)
    +
    +
    Returns a default font being used within THREEDEE and FLUSH + Textfields, TextAreas and Lists.
    +
    See Also:
    setDefaultFormTextFont(int, java.awt.Font)
    +
    +
    +
    + +

    +setDefaultColor

    +
    +public void setDefaultColor(int attributeType,
    +                            java.awt.Color c)
    +
    +
    Sets a default color. Permitted values are: +

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    attributeTypeDefaultDescription
    CalCons.A_BGCOLORColor.whiteDocument background color
    CalCons.A_TEXTColor.blackDocument text color
    CalCons.A_LINKColor(0xOOOOEA)Normal link color
    CalCons.A_VLINKColor(0x800080)Visited link color
    CalCons.A_ALINKColor.redActive link color
    CalCons.FORM_CONTROLUIControlControl color of form components
    CalCons.FORM_HIGHLIGHTUIHighlightHighlight color of form components
    CalCons.FORM_SHADOWUIShadowShadow color of form components
    CalCons.FORM_TEXT_BACKGROUNDColor.whiteBackground color within form components such + as textfields
    CalCons.FORM_TEXT_COLORColor.blackText color within form components such + as textfields
    CalCons.TAB_FOCUS_BACKGROUNDColor(0x300060)Background color of hyperlinks which have + keyboard focus
    CalCons.TAB_FOCUS_FOREGROUNDColor(0xFFFFD0)Foreground color of hyperlinks which have + keyboard focus
    +

    This method should be called prior to passing the + CalHTMLPreferences to a CalHTMLPane. Calls after this point + will be ignored.

    +
    +
    +
    +
    + +

    +getDefaultColor

    +
    +public java.awt.Color getDefaultColor(int attributeType)
    +
    +
    Returns a default color used by a CalHTMLPane to render documents. + See setDefaultColor() for allowed attributeTypes
    +
    See Also:
    setDefaultColor(int, java.awt.Color)
    +
    +
    +
    + +

    +setFormRenderingStyle

    +
    +public void setFormRenderingStyle(int style)
    +
    +
    Sets the rendering style of FORM components within a CalHTMLPane. + The permitted style values are:

    +

    • CalCons.USE_LOOK_AND_FEEL +
    • CalCons.USE_CALPA_THREEDEE +
    • CalCons.USE_CALPA_FLUSH +
    +

    The USE_LOOK_AND_FEEL argument will use standard Swing components based + on the currently installed Look&Feel. Generally these will provide an acceptable + display, but with certain document background colors these components lose + style features due to a clash between the background color of the document + and the control, shadow, and highlight color of the component. +

    The USE_CALPA_THREEDEE and USE_CALPA_FLUSH styles have + been incorporated to help overcome such a situation. These components support + author-specific color attributes which can be made to blend satisfactorily with + the surrounding document color. +

    Note that setting the default style via this method does not prevent the + document author from setting individual styles within the document itself. Styles + can be freely mixed by specifying style attributes within the relevant document + form tags. +

    Although this method can be called at any time during program execution, + existing form components will remain in their original style. +

    The default rendering style of form components is USE_CALPA_THREEDEE +

    See the README.TXT file accompanying this document for more details on form rendering.

    +
    Parameters:
    style - a value which determines the default rendering style of HTML form components
    +
    +
    +
    + +

    +getFormRenderingStyle

    +
    +public int getFormRenderingStyle()
    +
    +
    Returns the default rendering style of FORM components within a + CalHTMLPane.
    +
    Returns:
    a value indicating the default rendering style of HTML form components
    See Also:
    setFormRenderingStyle(int)
    +
    +
    +
    + +

    +setDefaultFrameSpacing

    +
    +public void setDefaultFrameSpacing(int n)
    +
    +
    Sets the default spacing in pixels between frames within a Frameset document. The default + setting is 4 pixels.
    +
    Parameters:
    n - the default spacing in pixels between HTML frames in a Frameset document
    +
    +
    +
    + +

    +getDefaultFrameSpacing

    +
    +public int getDefaultFrameSpacing()
    +
    +
    Returns the default spacing in pixels between frames within a Frameset document.
    +
    Returns:
    the default spacing in pixels between HTML frames in a Frameset document
    +
    +
    +
    + +

    +setDefaultMarginwidth

    +
    +public void setDefaultMarginwidth(int n)
    +
    +
    Sets the default horizontal margin of a document. The default setting is 6 pixels.
    +
    Parameters:
    n - the default horizontal margin in pixels between a document and the border of the frame it + resides in.
    +
    +
    +
    + +

    +getDefaultMarginwidth

    +
    +public int getDefaultMarginwidth()
    +
    +
    Returns the default horizontal margin of a document.
    +
    Returns:
    the default horizontal margin in pixels between a document and the border of the frame it + resides in.
    +
    +
    +
    + +

    +setDefaultMarginheight

    +
    +public void setDefaultMarginheight(int n)
    +
    +
    Sets the default vertical margin of a document. The default setting is 6 pixels.
    +
    Parameters:
    n - the default vertical margin in pixels between a document and the border of the frame it + resides in.
    +
    +
    +
    + +

    +getDefaultMarginheight

    +
    +public int getDefaultMarginheight()
    +
    +
    Returns the default vertical margin of a document.
    +
    Returns:
    the default vertical margin in pixels between a document and the border of the frame it + resides in.
    +
    +
    +
    + +

    +setHomeURL

    +
    +public void setHomeURL(java.net.URL url)
    +
    +
    Sets the URL which will be accessed if a CalHTMLPane's + goHome() method is called. The default setting is http://www.w3.org
    +
    Parameters:
    url - the default URL to be accessed.
    +
    +
    +
    + +

    +getHomeURL

    +
    +public java.net.URL getHomeURL()
    +
    +
    Returns the URL which will accessed if a CalHTMLPane's + goHome() method is called
    +
    Returns:
    the default URL which will be accessed.
    +
    +
    +
    + +

    +setUnderlineLinks

    +
    +public void setUnderlineLinks(boolean b)
    +
    +
    Enables/disables the underlining of hyperlinks within a CalHTMLPane. + The default value is true.
    +
    Parameters:
    b - a flag indicating whether hyperlinks should be underlined
    +
    +
    +
    + +

    +isUnderlineLinksEnabled

    +
    +public boolean isUnderlineLinksEnabled()
    +
    +
    Returns whether a CalHTMLPane will underline hyperlinks.
    +
    Returns:
    true if hyperlinks will be underlined
    +
    +
    +
    + +

    +setShowHyperlinkOnMouseFocus

    +
    +public void setShowHyperlinkOnMouseFocus(boolean b)
    +
    +
    Determines whether a hyperlink will only be marked as such when it has mouse focus. This is + commonly used in help systems where it is obvious that all text is a hyperlink entry, and users + only need to know which hyperlink is currently active. + The default value is false.
    +
    Parameters:
    b - a flag indicating whether hyperlinks will only be marked as such if they have mouse focus
    +
    +
    +
    + +

    +isShowHyperlinkOnMouseFocusEnabled

    +
    +public boolean isShowHyperlinkOnMouseFocusEnabled()
    +
    +
    Returns whether a CalHTMLPane will only show a hyperlink when the link has mouse focus.
    +
    Returns:
    true if a hyperlink will only be marked as such when it has mouse focus
    +
    +
    +
    + +

    +setLoadImages

    +
    +public void setLoadImages(boolean b)
    +
    +
    Enables/disables the automatic loading of images within a CalHTMLPane. + The default value is true.
    +
    Parameters:
    b - a flag indicating whether images within documents should be loaded and displayed
    +
    +
    +
    + +

    +isLoadImagesEnabled

    +
    +public boolean isLoadImagesEnabled()
    +
    +
    Returns whether a CalHTMLPane will + automatically load images within documents.
    +
    Returns:
    true if images within documents will be loaded and displayed
    +
    +
    +
    + +

    +setDisplayErrorDialogs

    +
    +public void setDisplayErrorDialogs(boolean b)
    +
    +
    Enables/disables the automatic display of error dialogs within a CalHTMLPane. + At present such errors will most commonly arise from a failure to navigate to a + selected URL. The default value is true. If set to false, errors will not be displayed + to the screen but will still be passed to the resident CalHTMLObserver
    +
    Parameters:
    b - a flag indicating whether an dialog should be displayed if an error occurs within a Pane.
    +
    +
    +
    + +

    +isDisplayErrorDialogsEnabled

    +
    +public boolean isDisplayErrorDialogsEnabled()
    +
    +
    Returns whether a CalHTMLPane will automatically display a dialog when + errors such as failed hyperlinks occur.
    +
    Returns:
    true if an error dialog will be displayed if an error occurs within a Pane.
    +
    +
    +
    + +

    +setShowTestNavBar

    +
    +public void setShowTestNavBar(boolean b)
    +
    +
    Enables/disables the display of a diagnostic navigation bar. The default value is false. +

    The navigation bar is a legacy of testing the component and is very basic, + but it has not been removed as it can be useful at times. + It is expected that users will implement their own custom navigation controls if required. +

    The NavBar operates independently of the CalHTMLObserver monitoring the + Pane, and will not interfere with updates to that object. Note also that the NavBar controls do not + receive keyboard focus when tabbing. +

    This method should be called prior to passing the + CalHTMLPreferences to a CalHTMLPane. Calls after this point + will be ignored.

    +
    Parameters:
    b - a flag indicating whether a CalHTMLPane's test navigation controls should be + displayed.
    +
    +
    +
    + +

    +isShowTestNavBarEnabled

    +
    +public boolean isShowTestNavBarEnabled()
    +
    +
    Returns whether a CalHTMLPane will display a diagnostic navigation bar on startup.
    +
    Returns:
    true if a CalHTMLPane will display test navigation controls.
    +
    +
    +
    + +

    +setAutomaticallyFollowHyperlinks

    +
    +public void setAutomaticallyFollowHyperlinks(boolean b)
    +
    +
    Enables/disables the automatic navigation of activated hyperlinks in a CalHTMLPane. + The default value is true. If set to false, activated hyperlinks will not be followed + but the event will still be passed to the resident CalHTMLObserver
    +
    Parameters:
    b - a flag indicating whether hyperlinks should be followed if activated by mouse or keyboard.
    +
    +
    +
    + +

    +isAutomaticallyFollowHyperlinksEnabled

    +
    +public boolean isAutomaticallyFollowHyperlinksEnabled()
    +
    +
    Returns whether a CalHTMLPane will automatically navigate activated hyperlinks.
    +
    Returns:
    true if hyperlinks should be followed if activated by keyboard or mouse.
    +
    +
    +
    + +

    +setHandleFormSubmission

    +
    +public void setHandleFormSubmission(boolean b)
    +
    +
    Enables/disables the automatic processing of GET and POST html forms + within a CalHTMLPane. The default value is true. If set to false, + form submissions will still be passed to the resident CalHTMLObserver
    +
    Parameters:
    b - a flag indicating whether http GET and POST form submissions should be handled automatically + by a CalHTMLPane
    +
    +
    +
    + +

    +isHandleFormSubmissionEnabled

    +
    +public boolean isHandleFormSubmissionEnabled()
    +
    +
    Returns whether a CalHTMLPane will + automatically handle GET and POST form submissions.
    +
    Returns:
    true if http GET and POST form submissions will be handled automatically + by a CalHTMLPane
    +
    +
    +
    + +

    +setShowWarningBeforePost

    +
    +public void setShowWarningBeforePost(boolean b)
    +
    +
    Enables/disables the showing of a warning message before a form POST submission + is made. The default value is true. This setting only has any meaning if the Pane is + handling form submissions.
    +
    Parameters:
    b - a flag indicating whether a warning message will displayed before an http form POST + submission
    +
    +
    +
    + +

    +isShowWarningBeforePostEnabled

    +
    +public boolean isShowWarningBeforePostEnabled()
    +
    +
    Returns whether a CalHTMLPane will show a warning to the user before a form POST + submission is made.
    +
    Returns:
    true if a warning message will displayed before an http form POST + submission
    +
    +
    +
    + +

    +setHandleNewFrames

    +
    +public void setHandleNewFrames(boolean b)
    +
    +
    Enables/disables the automatic creation of a new CalHTMLPane if + specified by an HTML tag. The default value is true. If set to false, a request + for a new frame will be sent to the resident CalHTMLObserver
    +
    Parameters:
    b - a flag indicating whether a new CalHTMLPane should automatically be + displayed if specified by an HTML tag.
    +
    +
    +
    + +

    +isHandleNewFramesEnabled

    +
    +public boolean isHandleNewFramesEnabled()
    +
    +
    Returns whether a new CalHTMLPane will + automatically be created if specified by an HTML tag.
    +
    Returns:
    true if a new CalHTMLPane will automatically be + displayed if specified by an HTML tag.
    +
    +
    +
    + +

    +setRequestFocusOnMouseClick

    +
    +public void setRequestFocusOnMouseClick(boolean b)
    +
    +
    Determines whether a CalHTMLPane or one of its subframes will request keyboard focus + if the mouse is clicked within it. The default value is false.
    +
    Parameters:
    b - a flag indicating whether a CalHTMLPane frame should call + requestFocus() if the mouse is clicked within it.
    +
    +
    +
    + +

    +isRequestFocusOnMouseClickEnabled

    +
    +public boolean isRequestFocusOnMouseClickEnabled()
    +
    +
    Returns whether a CalHTMLPane will request keyboard focus if the mouse is + clicked within it.
    +
    Returns:
    true if a CalHTMLPane frame will call + requestFocus() if the mouse is clicked within it.
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/calpa/html/DefaultCalHTMLObserver.html b/extensions/calpa/Docs/javadoc/calpa/html/DefaultCalHTMLObserver.html new file mode 100644 index 0000000..92bcce1 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/calpa/html/DefaultCalHTMLObserver.html @@ -0,0 +1,346 @@ + + + + + + +: Class DefaultCalHTMLObserver + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + +

    + +calpa.html +
    +Class DefaultCalHTMLObserver

    +
    +java.lang.Object
    +  |
    +  +--calpa.html.DefaultCalHTMLObserver
    +
    +
    +
    +
    public class DefaultCalHTMLObserver
    extends java.lang.Object
    implements CalHTMLObserver
    + +

    +A default implementation of the CalHTMLObserver interface. + All methods in this class are null-ops. Users of this class need only + override those methods of interest. +

    +

    +
    See Also:
    CalHTMLObserver
    +
    + +

    + + + + + + + + + + + + + + + + +
    +Constructor Summary
    DefaultCalHTMLObserver() + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidformSubmitUpdate(CalHTMLPane pane, + java.net.URL docBaseURL, + int method, + java.lang.String action, + java.lang.String data) + +
    +           
    + voidhistoryUpdate(CalHTMLPane pane, + int position) + +
    +           
    + voidlinkActivatedUpdate(CalHTMLPane pane, + java.net.URL url, + java.lang.String targetFrame, + java.lang.String jName) + +
    +           
    + voidlinkFocusedUpdate(CalHTMLPane pane, + java.net.URL url) + +
    +           
    + voidshowNewFrameRequest(CalHTMLPane pane, + java.lang.String targetFrame, + java.net.URL url) + +
    +           
    + voidstatusUpdate(CalHTMLPane pane, + int status, + java.net.URL url, + int value, + java.lang.String message) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    clone, +equals, +finalize, +getClass, +hashCode, +notify, +notifyAll, +toString, +wait, +wait, +wait
    +  +

    + + + + + + + + + + + +
    +Constructor Detail
    + +

    +DefaultCalHTMLObserver

    +
    +public DefaultCalHTMLObserver()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +linkActivatedUpdate

    +
    +public void linkActivatedUpdate(CalHTMLPane pane,
    +                                java.net.URL url,
    +                                java.lang.String targetFrame,
    +                                java.lang.String jName)
    +
    +
    +
    Specified by:
    linkActivatedUpdate in interface CalHTMLObserver
    +
    +
    +
    + +

    +linkFocusedUpdate

    +
    +public void linkFocusedUpdate(CalHTMLPane pane,
    +                              java.net.URL url)
    +
    +
    +
    Specified by:
    linkFocusedUpdate in interface CalHTMLObserver
    +
    +
    +
    + +

    +statusUpdate

    +
    +public void statusUpdate(CalHTMLPane pane,
    +                         int status,
    +                         java.net.URL url,
    +                         int value,
    +                         java.lang.String message)
    +
    +
    +
    Specified by:
    statusUpdate in interface CalHTMLObserver
    +
    +
    +
    + +

    +formSubmitUpdate

    +
    +public void formSubmitUpdate(CalHTMLPane pane,
    +                             java.net.URL docBaseURL,
    +                             int method,
    +                             java.lang.String action,
    +                             java.lang.String data)
    +
    +
    +
    Specified by:
    formSubmitUpdate in interface CalHTMLObserver
    +
    +
    +
    + +

    +historyUpdate

    +
    +public void historyUpdate(CalHTMLPane pane,
    +                          int position)
    +
    +
    +
    Specified by:
    historyUpdate in interface CalHTMLObserver
    +
    +
    +
    + +

    +showNewFrameRequest

    +
    +public void showNewFrameRequest(CalHTMLPane pane,
    +                                java.lang.String targetFrame,
    +                                java.net.URL url)
    +
    +
    +
    Specified by:
    showNewFrameRequest in interface CalHTMLObserver
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/deprecated-list.html b/extensions/calpa/Docs/javadoc/deprecated-list.html new file mode 100644 index 0000000..dd7e4b3 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/deprecated-list.html @@ -0,0 +1,108 @@ + + + + + + +: Deprecated List + + + + + + + + + + + + + + + + + +
    + +
    + + +
    +
    +

    +Deprecated API

    +
    + + + + + + + + + + + +
    +Deprecated Methods
    calpa.html.CalHTMLPreferences.setDefaultFont(int, int, int) +
    +          Use setDefaultFont(int, Font) which allows the setting of + system fonts. 
    calpa.html.CalHTMLPreferences.setFormFont(int, int, int, int) +
    +          Use either setDefaultButtonFont(int, Font) or + setDefaultFormTextFont(int, Font). 
    +  +

    +


    + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/help-doc.html b/extensions/calpa/Docs/javadoc/help-doc.html new file mode 100644 index 0000000..f5ab828 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/help-doc.html @@ -0,0 +1,136 @@ + + + + + + +: API Help + + + + + + + + + + + + + + + + + +
    + +
    + + +
    +
    +

    +How This API Document Is Organized

    +
    +This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

    +Package

    +
    + +

    +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

      +
    • Interfaces (italic)
    • Classes
    • Exceptions
    • Errors
    +
    +

    +Class/Interface

    +
    + +

    +Each class, interface, inner class and inner interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

      +
    • Class inheritance diagram
    • Direct Subclasses
    • All Known Subinterfaces
    • All Known Implementing Classes
    • Class/interface declaration
    • Class/interface description +

      +

    • Inner Class Summary
    • Field Summary
    • Constructor Summary
    • Method Summary +

      +

    • Field Detail
    • Constructor Detail
    • Method Detail
    +Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
    +

    +Tree (Class Hierarchy)

    +
    +There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    +
    +

    +Deprecated API

    +
    +The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
    +

    +Index

    +
    +The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
    +

    +Prev/Next

    +These links take you to the next or previous class, interface, package, or related page.

    +Frames/No Frames

    +These links show and hide the HTML frames. All pages are available with or without frames. +

    +

    +Serialized Form

    +Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

    + + +This help file applies to API documentation generated using the standard doclet. + +
    +


    + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/index-all.html b/extensions/calpa/Docs/javadoc/index-all.html new file mode 100644 index 0000000..3fb336d --- /dev/null +++ b/extensions/calpa/Docs/javadoc/index-all.html @@ -0,0 +1,482 @@ + + + + + + +: Index + + + + + + + + + + + + + + + + + +
    + +
    + + +A C D E F G H I K L R S
    +

    +A

    +
    +
    addUserComponent(JComponent) - +Static method in class calpa.html.CalHTMLManager +
    Adds a JComponent to the Manager's component cache. +
    addUserComponentArray(JComponent[], String) - +Static method in class calpa.html.CalHTMLManager +
    Adds an array of JComponents to the Manager's component cache. +
    addUserImage(Image, String) - +Static method in class calpa.html.CalHTMLManager +
    Adds an Image to the Manager's image cache. +
    +
    +

    +C

    +
    +
    CalHTMLManager - class calpa.html.CalHTMLManager.
    A class with static members and methods which primarily controls the caching of data + which will be available to all current instances of CalHTMLPane.
    CalHTMLObserver - interface calpa.html.CalHTMLObserver.
    A class implementing this interface can be passed to a CalHTMLPane at + construction time and will thereafter receive notification of events which have occured within the Pane.
    CalHTMLPane - class calpa.html.CalHTMLPane.
    A component class which has the capacity to display HTML-formatted content.
    CalHTMLPane() - +Constructor for class calpa.html.CalHTMLPane +
    Constructs a CalHTMLPane with default CalHTMLPreferences, + a default CalHTMLObserver and default top-level frame name. +
    CalHTMLPane(CalHTMLPreferences, CalHTMLObserver, String) - +Constructor for class calpa.html.CalHTMLPane +
    Constucts a CalHTMLPane with the specified CalHTMLObserver, + CalHTMLPreferences and top-level frame name. +
    CalHTMLPreferences - class calpa.html.CalHTMLPreferences.
    A class used to control the default operation and rendering methods + of a CalHTMLPane.
    CalHTMLPreferences() - +Constructor for class calpa.html.CalHTMLPreferences +
    Creates a new CalHTMLPreferences object which will have all fields + set to default values. +
    closeDialog() - +Method in class calpa.html.CalHTMLPane +
    Closes the Pane's dialog if it is currently visible. +
    +
    +

    +D

    +
    +
    DefaultCalHTMLObserver - class calpa.html.DefaultCalHTMLObserver.
    A default implementation of the CalHTMLObserver interface.
    DefaultCalHTMLObserver() - +Constructor for class calpa.html.DefaultCalHTMLObserver +
      +
    +
    +

    +E

    +
    +
    emptyDocumentCache() - +Static method in class calpa.html.CalHTMLManager +
    Empties the Manager's document cache. +
    +
    +

    +F

    +
    +
    formSubmitUpdate(CalHTMLPane, URL, int, String, String) - +Method in interface calpa.html.CalHTMLObserver +
    Notification that a form submission has been initiated. +
    formSubmitUpdate(CalHTMLPane, URL, int, String, String) - +Method in class calpa.html.DefaultCalHTMLObserver +
      +
    +
    +

    +G

    +
    +
    getDefaultButtonFont(int) - +Method in class calpa.html.CalHTMLPreferences +
    Returns a default font being used within THREEDEE and FLUSH + Buttons and ComboBoxes. +
    getDefaultColor(int) - +Method in class calpa.html.CalHTMLPreferences +
    Returns a default color used by a CalHTMLPane to render documents. +
    getDefaultFont(int) - +Method in class calpa.html.CalHTMLPreferences +
    Returns a default font being used by a CalHTMLPane +
    getDefaultFormTextFont(int) - +Method in class calpa.html.CalHTMLPreferences +
    Returns a default font being used within THREEDEE and FLUSH + Textfields, TextAreas and Lists. +
    getDefaultFrameSpacing() - +Method in class calpa.html.CalHTMLPreferences +
    Returns the default spacing in pixels between frames within a Frameset document. +
    getDefaultMarginheight() - +Method in class calpa.html.CalHTMLPreferences +
    Returns the default vertical margin of a document. +
    getDefaultMarginwidth() - +Method in class calpa.html.CalHTMLPreferences +
    Returns the default horizontal margin of a document. +
    getDocumentCacheCurrentSize() - +Static method in class calpa.html.CalHTMLManager +
    Returns the Manager's estimate of the current memory being taken up by cached documents. +
    getDocumentCacheMaximumSize() - +Static method in class calpa.html.CalHTMLManager +
    Returns the max size of the document cache used by the Manager. +
    getFormRenderingStyle() - +Method in class calpa.html.CalHTMLPreferences +
    Returns the default rendering style of FORM components within a + CalHTMLPane. +
    getFrameDisplayWidth(int) - +Method in class calpa.html.CalHTMLPreferences +
    Returns the width for the specified displaySize at which point a CalHTMLPane will + start scaling its display if optimizeDisplay is enabled. +
    getHomeURL() - +Method in class calpa.html.CalHTMLPreferences +
    Returns the URL which will accessed if a CalHTMLPane's + goHome() method is called +
    getIDComponents(String) - +Method in class calpa.html.CalHTMLPane +
    Returns a Hashtable containing all components in the target frame which have the HTML 'id' attribute. +
    getOptimizeDisplay() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will + adjust display parameters based on frame size. +
    getUserComponent(String, String) - +Static method in class calpa.html.CalHTMLManager +
    Retrieves a JComponent from the Manager's component cache. +
    getUserImage(String) - +Static method in class calpa.html.CalHTMLManager +
    Retrieves an Image from the Manager's image cache. +
    getVisitedHash() - +Method in class calpa.html.CalHTMLPreferences +
    Returns a Hashtable containing references to visited URLs. +
    goBack() - +Method in class calpa.html.CalHTMLPane +
    Show the previous document in the Pane's history list. +
    goForward() - +Method in class calpa.html.CalHTMLPane +
    Show the next document in the Pane's history list. +
    goHome() - +Method in class calpa.html.CalHTMLPane +
    Show the contents of the URL specified as homeURL + by CalHTMLPreferences in the top level frame of the Pane. +
    +
    +

    +H

    +
    +
    historyUpdate(CalHTMLPane, int) - +Method in interface calpa.html.CalHTMLObserver +
    Notification of a change in position within the Pane's document history. +
    historyUpdate(CalHTMLPane, int) - +Method in class calpa.html.DefaultCalHTMLObserver +
      +
    +
    +

    +I

    +
    +
    isAutomaticallyFollowHyperlinksEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will automatically navigate activated hyperlinks. +
    isCacheDocumentsEnabled() - +Static method in class calpa.html.CalHTMLManager +
    Indicates whether document caching is currently enabled. +
    isCalFocusManagerEnabled() - +Static method in class calpa.html.CalHTMLManager +
    Indicates whether a CalFocusManager is currently enabled. +
    isDisplayErrorDialogsEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will automatically display a dialog when + errors such as failed hyperlinks occur. +
    isFocusTraversable() - +Method in class calpa.html.CalHTMLPane +
    Overrides JComponent isFocusTraversable(). +
    isHandleFormSubmissionEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will + automatically handle GET and POST form submissions. +
    isHandleNewFramesEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a new CalHTMLPane will + automatically be created if specified by an HTML tag. +
    isLoadImagesEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will + automatically load images within documents. +
    isLoadSynchronouslyEnabled() - +Method in class calpa.html.CalHTMLPane +
    Returns whether documents will be loaded by the CalPane synchronously or asynchronously. +
    isManagingFocus() - +Method in class calpa.html.CalHTMLPane +
    Overrides JComponent isManagingFocus(). +
    isRequestFocusOnMouseClickEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will request keyboard focus if the mouse is + clicked within it. +
    isShowHyperlinkOnMouseFocusEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will only show a hyperlink when the link has mouse focus. +
    isShowTestNavBarEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will display a diagnostic navigation bar on startup. +
    isShowWarningBeforePostEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will show a warning to the user before a form POST + submission is made. +
    isUnderlineLinksEnabled() - +Method in class calpa.html.CalHTMLPreferences +
    Returns whether a CalHTMLPane will underline hyperlinks. +
    +
    +

    +K

    +
    +
    keyPressed(KeyEvent) - +Method in class calpa.html.CalHTMLPane +
    Public due to implementation requirements. +
    keyReleased(KeyEvent) - +Method in class calpa.html.CalHTMLPane +
    Public due to implementation requirements. +
    keyTyped(KeyEvent) - +Method in class calpa.html.CalHTMLPane +
    Public due to implementation requirements. +
    +
    +

    +L

    +
    +
    linkActivatedUpdate(CalHTMLPane, URL, String, String) - +Method in interface calpa.html.CalHTMLObserver +
    Notification that a hyperlink has been activated via the keyboard or mouse. +
    linkActivatedUpdate(CalHTMLPane, URL, String, String) - +Method in class calpa.html.DefaultCalHTMLObserver +
      +
    linkFocusedUpdate(CalHTMLPane, URL) - +Method in interface calpa.html.CalHTMLObserver +
    Notification that a hyperlink has received or lost keyboard/mouse focus. +
    linkFocusedUpdate(CalHTMLPane, URL) - +Method in class calpa.html.DefaultCalHTMLObserver +
      +
    +
    +

    +R

    +
    +
    reloadDocument() - +Method in class calpa.html.CalHTMLPane +
    Reloads the current document. +
    removeOldestDocumentFromCache() - +Static method in class calpa.html.CalHTMLManager +
    Removes the oldest document from the Manager's document cache. +
    removeUserComponent(String) - +Static method in class calpa.html.CalHTMLManager +
    Removes a JComponent from the Manager's component cache. +
    removeUserComponentArray(String) - +Static method in class calpa.html.CalHTMLManager +
    Removes a JComponent array from the Manager's component cache. +
    removeUserImage(String) - +Static method in class calpa.html.CalHTMLManager +
    Removes an Image from the Manager's image cache. +
    +
    +

    +S

    +
    +
    scrollToReference(String, String) - +Method in class calpa.html.CalHTMLPane +
    Scrolls the document view to the specified anchor reference in the named target frame. +
    setAutomaticallyFollowHyperlinks(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the automatic navigation of activated hyperlinks in a CalHTMLPane. +
    setBounds(int, int, int, int) - +Method in class calpa.html.CalHTMLPane +
    Public due to inheritance. +
    setCacheDocuments(boolean) - +Static method in class calpa.html.CalHTMLManager +
    Enables or disables the caching of documents by the Manager. +
    setCalFocusManagerEnabled(boolean) - +Static method in class calpa.html.CalHTMLManager +
    Enables or disables the CalFocusManager. +
    setDefaultButtonFont(int, Font) - +Method in class calpa.html.CalHTMLPreferences +
    Sets a default font to be used within form Buttons and ComboBoxes. +
    setDefaultColor(int, Color) - +Method in class calpa.html.CalHTMLPreferences +
    Sets a default color. +
    setDefaultFont(int, Font) - +Method in class calpa.html.CalHTMLPreferences +
    Sets a default font to be used by a CalHTMLPane. +
    setDefaultFont(int, int, int) - +Method in class calpa.html.CalHTMLPreferences +
    Deprecated. Use setDefaultFont(int, Font) which allows the setting of + system fonts. +
    setDefaultFormTextFont(int, Font) - +Method in class calpa.html.CalHTMLPreferences +
    Sets a default font to be used within form TextFields, TextAreas and Lists. +
    setDefaultFrameSpacing(int) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the default spacing in pixels between frames within a Frameset document. +
    setDefaultMarginheight(int) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the default vertical margin of a document. +
    setDefaultMarginwidth(int) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the default horizontal margin of a document. +
    setDisplayErrorDialogs(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the automatic display of error dialogs within a CalHTMLPane. +
    setDocumentCacheMaximumSize(int) - +Static method in class calpa.html.CalHTMLManager +
    Sets the size of the document cache used by the Manager. +
    setFormFont(int, int, int, int) - +Method in class calpa.html.CalHTMLPreferences +
    Deprecated. Use either setDefaultButtonFont(int, Font) or + setDefaultFormTextFont(int, Font). +
    setFormRenderingStyle(int) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the rendering style of FORM components within a CalHTMLPane. +
    setFrameDisplayWidth(int, int) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the width for the specified displaySize at which point a CalHTMLPane will + start scaling its display if optimizeDisplay is enabled. +
    setHandleFormSubmission(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the automatic processing of GET and POST html forms + within a CalHTMLPane. +
    setHandleNewFrames(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the automatic creation of a new CalHTMLPane if + specified by an HTML tag. +
    setHomeURL(URL) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the URL which will be accessed if a CalHTMLPane's + goHome() method is called. +
    setLoadImages(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the automatic loading of images within a CalHTMLPane. +
    setLoadSynchronously(boolean) - +Method in class calpa.html.CalHTMLPane +
    Enables/disables the synchronous loading of documents. +
    setOptimizeDisplay(int) - +Method in class calpa.html.CalHTMLPreferences +
    Determines whether a CalHTMLPane will + adjust display parameters based on frame width. +
    setRequestFocusOnMouseClick(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Determines whether a CalHTMLPane or one of its subframes will request keyboard focus + if the mouse is clicked within it. +
    setScrollBarPolicy(int) - +Method in class calpa.html.CalHTMLPane +
    Sets the scrollbar policy of the Pane. +
    setShowHyperlinkOnMouseFocus(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Determines whether a hyperlink will only be marked as such when it has mouse focus. +
    setShowTestNavBar(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the display of a diagnostic navigation bar. +
    setShowWarningBeforePost(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the showing of a warning message before a form POST submission + is made. +
    setUnderlineLinks(boolean) - +Method in class calpa.html.CalHTMLPreferences +
    Enables/disables the underlining of hyperlinks within a CalHTMLPane. +
    setVisitedHash(Hashtable) - +Method in class calpa.html.CalHTMLPreferences +
    Sets the Hashtable containing references to URLs which + will be used by a CalHTMLPane to mark visited + hyperlinks. +
    showDialog(String) - +Method in class calpa.html.CalHTMLPane +
    Parses the sent message as HTML and displays the result in the Pane's dialog. +
    showDialog(String, String, int, int, int, int) - +Method in class calpa.html.CalHTMLPane +
    Parses the sent message as HTML and displays the result in the Pane's dialog. +
    showHTMLDocument(String) - +Method in class calpa.html.CalHTMLPane +
    Formats and displays the specified String as an HTML document in the top level frame of the Pane. +
    showHTMLDocument(String, String) - +Method in class calpa.html.CalHTMLPane +
    Formats and displays the specified String as an HTML document in the named + target frame. +
    showHTMLDocument(URL) - +Method in class calpa.html.CalHTMLPane +
    Shows the contents of the specified URL in the top level frame of + the Pane. +
    showHTMLDocument(URL, String, boolean) - +Method in class calpa.html.CalHTMLPane +
    Shows the contents of the specified URL in the named + target frame. +
    showNewFrameRequest(CalHTMLPane, String, URL) - +Method in interface calpa.html.CalHTMLObserver +
    Notification for a new CalHTMLPane to be created with + the specified top-level frame name and showing the specified document. +
    showNewFrameRequest(CalHTMLPane, String, URL) - +Method in class calpa.html.DefaultCalHTMLObserver +
      +
    statusUpdate(CalHTMLPane, int, URL, int, String) - +Method in interface calpa.html.CalHTMLObserver +
    Gives general notifications of events or errors which are occuring within the Pane. +
    statusUpdate(CalHTMLPane, int, URL, int, String) - +Method in class calpa.html.DefaultCalHTMLObserver +
      +
    stopAll() - +Method in class calpa.html.CalHTMLPane +
    Stops all processes within the Pane. +
    +
    +A C D E F G H I K L R S + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/index.html b/extensions/calpa/Docs/javadoc/index.html new file mode 100644 index 0000000..4b4e402 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/index.html @@ -0,0 +1,22 @@ + + + + + + +Generated Documentation (Untitled) + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to <A HREF="calpa/html/CalHTMLManager.html">Non-frame version.</A> + diff --git a/extensions/calpa/Docs/javadoc/overview-tree.html b/extensions/calpa/Docs/javadoc/overview-tree.html new file mode 100644 index 0000000..2918699 --- /dev/null +++ b/extensions/calpa/Docs/javadoc/overview-tree.html @@ -0,0 +1,113 @@ + + + + + + +: Class Hierarchy + + + + + + + + + + + + + + + + + +
    + +
    + + +
    +
    +

    +Hierarchy For All Packages

    +
    +

    +Class Hierarchy +

    +
      +
    • class java.lang.Object
        +
      • class calpa.html.CalHTMLManager
      • class calpa.html.CalHTMLPreferences (implements calpa.html.CalCons) +
      • class java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) +
          +
        • class java.awt.Container
            +
          • class javax.swing.JComponent (implements java.io.Serializable) +
              +
            • class javax.swing.JLayeredPane (implements javax.accessibility.Accessible) +
                +
              • class calpa.html.CalHTMLPane (implements calpa.html.CalCons, java.awt.event.KeyListener) +
              +
            +
          +
        +
      • class calpa.html.DefaultCalHTMLObserver (implements calpa.html.CalHTMLObserver) +
      +
    +

    +Interface Hierarchy +

    + +
    + + + + + + + + + + + + + +
    + +
    + + +
    + + + diff --git a/extensions/calpa/Docs/javadoc/stylesheet.css b/extensions/calpa/Docs/javadoc/stylesheet.css new file mode 100644 index 0000000..539689f --- /dev/null +++ b/extensions/calpa/Docs/javadoc/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Table colors */ +#TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +#TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +#TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +#FrameTitleFont { font-size: normal; font-family: normal } +#FrameHeadingFont { font-size: normal; font-family: normal } +#FrameItemFont { font-size: normal; font-family: normal } + +/* Example of smaller, sans-serif font in frames */ +/* #FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ + +/* Navigation bar fonts and colors */ +#NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ +#NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ +#NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +#NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +#NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +#NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + diff --git a/extensions/calpa/LICENSE.txt b/extensions/calpa/LICENSE.txt new file mode 100644 index 0000000..2ea7a81 --- /dev/null +++ b/extensions/calpa/LICENSE.txt @@ -0,0 +1,114 @@ + + + Binary Code License + + calpa.html Java package + + Version 2.021 + +This binary code license ("License") contains rights and +restrictions associated with use of the accompanying class files +of the Version 2.021 calpa.html Java package (the "Software") +and documentation (the "Documentation"). You should read the +License carefully before using the Software. By using the Software +you agree to the terms and conditions of this License. + +1. Limited Nonexclusive License + +You acknowledge that you are acquiring only a limited nonexclusive +license to use the Software and Documentation. Andrew Moulden of +82A Queens Road, Leicester, United Kingdom (the "Author") remains +the owner of all right, title, and interest in the Software and +Documentation, and in any copies of either. + +You agree not to engage in nor to permit the decompilation, +disassembly, or other reverse engineering of the Software. + + +2. Distribution outside software applications + +Where the Software is not being used within a Java or other software +application the License permits you to make multiple copies of the +Software and Documentation, and distribute it to others (including +transmission via electronic networks) provided that: + + (a) all copyright notices and this License are included with the + distribution. + + (b) no modification is made to the Software or Documentation. + + (c) no charge is made for the Software or Documentation. + + +3. Use within Java or other applications + +The License permits you, without fee to the Author, to make multiple +copies of the Software and include it within your own software +application provided that: + + (a) a copyright notice acknowledging the Author's ownership of the + Software is included with your application. + + (b) no modification is made to the Software. + + (c) the Software is used: + + (i) within a non-commercial application. + + or: + + (ii) to assist in the display of Help, Support, or Tutorial + documentation within your application and where the + prime function of your application is not the display + of Help, Support or Tutorial documentation. + + or: + + (iii) to assist in the display of Advertising or Promotional + material relating to your application, organization or + business. + + +Where your application does not qualify under the above provisions +you are permitted under this License to use the Software within +a single copy of your application for evaluation purposes. Under no +circumstances are you permitted to distribute the Software with your +application. + + +4. No incidental or consequential damages + +IN NO EVENT WILL THE AUTHOR BE LIABLE TO YOU FOR ANY INCIDENTAL, +SPECIAL, PUNITIVE, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ARISING FROM +OR CONNECTED WITH THIS AGREEMENT OR YOUR USE OF THE SOFTWARE OR +DOCUMENTATION regardless of whether the Author knows or has reason +to know of the possibility of such damages. + + +5. Your indemnity to the Author + +Independent of the foregoing provisions, you agree to defend and +indemnify the Author against, and hold the Author harmless from, +any and all claims, damages, losses, and expenses of any kind arising +from or connected with the operation of your business. + + +6. Disclaimer of Warranty + +The Software and Documentation is provided "AS IS," without a +warranty of any kind. ALL EXPRESS OR IMPLIED REPRESENTATIONS AND +WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. + + +7. Termination + +If you materially breach this License argreement, the Author may +terminate your right to use the Software by notice to you. + + +8. Governing Law + +Any action related to this License will be governed by the laws +of the United Kingdom of Great Britain & Northern Ireland. + diff --git a/extensions/calpa/README.txt b/extensions/calpa/README.txt new file mode 100644 index 0000000..4730c55 --- /dev/null +++ b/extensions/calpa/README.txt @@ -0,0 +1,1309 @@ + README + + CalHTMLPane 2.021 + + +----------------------------------------------------------------------- +CONTENTS + + - Overview + - License for use + - Requirements + - Using a CalPane + - Adding your own components and images + - Intercepting events from within a document + - Supported tags and attributes + - Form components + - The Pane's Dialog + - The Pane's Focus Manager + - Optimize Display + - Viewing Web pages + - Bug reports + - Known problems + - Contacting the author + + +----------------------------------------------------------------------- + OVERVIEW +----------------------------------------------------------------------- + +This is version 2.021 of the CalHTMLPane ('CalPane' or 'Pane'). + +The CalHTMLPane is a sub-component of a Java development package +named Calpa, and was built to provide two main services to the package: + + -Instantly accessible HTML Help documentation without the need to + start up a native Web browser. + -The display of HTML documents dynamically authored from online + databases. + +A CalHTMLPane allows Java application builders to incorporate HTML +documents into a GUI display. It supports a wide range of HTML3.2 and +HTML4.0 tags so that documents can be authored with popular HTML +editors and immediately displayed within a Java application. HTML form +components can be included in these documents in the normal way, and a +programming API is provided to enable the controlling Java application +to interact with those components, and to enable programmers to +customize the component within their own applications. The Pane also +contains caching and history features which remove much of the burden +of document management. Keyboard support is provided, including +tabbing between and activating hyperlinks via the keyboard. + +The Pane can be used to display Web pages from within an application, +and Web browsing capabilities can be built around it. It can +automatically handle basic form submissions, with more complex server +interaction being dealt with by the programmer if so desired. +However the Pane cannot be expected to handle documents which +incorporate inline scripts. That is not the purpose of its design. + +This document gives the class user a general introduction to the +CalHTMLPane's API and discusses certain aspects of its implementation. +It is not necessary to read all of the sections below to begin using +a CalPane, but following the first five examples will give the reader +a good insight into how the calpa.html public classes relate to one +another. + +Additional documentation is also provided: JavaDoc for the CalPane's +public classes, and HTML documentation giving examples of tag and +attribute usage. The HTML documents need to be viewed within a +running CalPane, not a normal Web browser, as they demonstrate +aspects of the component's form rendering styles as well as other +features specific to a CalPane. 'CalGuide.html' is the main index +of this documentation. + +The rest of these notes presume a certain level of Java programming +experience on the part of the reader, and strong familiarity with the +Swing package. + +----------------------------------------------------------------------- + LICENSE FOR USE +----------------------------------------------------------------------- + +You must read the license that accompanies the calp.html package class +files before you may use them. Briefly, however, and without prejudice +to the terms of the license, you are permitted to use the class files: + + -for non-commercial use. + + -for commercial use, provided that you are only using the class + files to show either : + + (a) Help, Support or Tutorial documentation within your + application, and provided that the use of the classes + is incidental to the main function of that application. + or: + + (b) Advertising or Promotional material relating to your + application or business. + +For other commercial uses you should email the copyright holder at +the following address stating the desired use of the classes, and +consideration will be given to the grant of a commercial license. + +Contact: + + Andrew J. Moulden + offshore@netcomuk.co.uk + + +----------------------------------------------------------------------- + REQUIREMENTS +----------------------------------------------------------------------- + +Version 2.0 of the CalHTMLPane requires a Java 2 Virtual Machine, and +the classes have not been tested against any version of the Java +Development Kit before 1.2 Final. + +This component was built and tested on a Win32 machine running +Windows95. It is believed to be written in 100% Java using Sun's JDK +tools and should perform identically elsewhere. + +It is best to give an increased amount of memory to the JVM running a +CalPane. The first instantiation of the Pane (including its static +support classes) uses 300K - 400K of memory, but it is the HTML +documents which take up space. As a general guide (assuming you are +caching documents) : + + -For showing fairly simple Help documentation 2MB of system memory + should be sufficient. + -For more complex documentation such as the JDK API, 4MB min is + recommended if 50+ documents will be viewed and cached. + -For viewing the sort of documents found on commercial Web sites + consider 8MB+. The images within such pages can consume a great + deal of memory. + +The amount of memory given to the JVM can be set by using the -ms +switch when a program is run. To give an application 8MB of RAM the +command would be: + + java -ms8m MyApplication + +Memory specification is not mandatory however. The VM will allocate +memory on an as-needed basis, though this may slow document loading. + +The caching of documents is programmable, and the CalPane's Manager +will start removing the oldest documents from the cache when it gets +full. Caching of images is left to the JVM. + +If the CalHTMLPane is run in conjunction with a Just-In-Time (JIT) +compiler, the first two or three documents will load quite slowly +and the mouse cursor may not focus hyperlinks for a brief moment. +However there should be a significant performance boost thereafter. +On many machines parsing matches or even surpasses that of a native +Web browser, allowing the disabling of caching if documents are +being loaded from a local file system. + + +----------------------------------------------------------------------- + USING A CALPANE +----------------------------------------------------------------------- +The CalHTMLPane is a Swing JComponent. Specifically it extends the +JLayeredPane class. It is therefore recommended that the component be +used in a 'lightweight' Swing environment rather than mixing it with +'heavyweight' AWT components. + +The JAR file containing the CalPane classes (calpahtml.jar) needs to +be in your classpath. The following code should then load and display +an HTML document of your choosing: + +---------------------------------------- +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MyFirstCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + //This is an example URL. You need to format your own. + //If you use an http URL you'll need an open http connection + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + CalHTMLPane pane = new CalHTMLPane(); + f.getContentPane().add(pane, "Center"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + pane.requestFocus(); + } + } +} +---------------------------------------- +Assuming the document has displayed correctly you should find that you +can navigate any hyperlinks. Any links which can't be followed +will result in an error dialog appearing. This dialog will be +discussed later. + +Keyboard navigation should be avaialable within the document. We +called requestFocus() for the Pane, and pressing the TAB key should +move focus to the next hyperlink or form control if either exist. + + -SHIFT-TAB will move backwards through the focus cycle. + -ENTER will activate a hyperlink if one has focus. + -CURSOR-DOWN or SPACE will scroll the Pane downward if the + document is long enough. + -CURSOR-UP or SHIFT_SPACE will scroll upward. + -CURSOR_LEFT, CURSOR_RIGHT scroll left and right. + -PAGE_UP and PAGE_DOWN scroll up and down a page at at time + +If there is a Frameset document on screen it is possible to tab +between frames by pressing CTRL-TAB (which also gets the user out +of the Pane completely if there are other controls in the +application which can accept keyboard focus). + + * * * + +The CalPane is a component, not an application, and so it is left +to the class user to create customized navigation buttons such +as 'back' and 'forward'. However, the Pane has an internal navigation +bar which is useful for testing purposes, and in the next example we +will make this visible. + +This introduces another of the calpa.html public classes - +CalHTMLPreferences. A CalHTMLPreferences ('CalPref') object controls +aspects of a CalPane's behaviour and rendering policy - whether to +underline hyperlinks, handle form submission etc. Every Pane has a +controlling CalHTMLPreferences object, and when the first example +above was run, a default CalPref was used. The programmer can +create an instance of CalHTMLPreferences, modify selected values by +using its access methods, and then pass it to a CalPane constructor. +It is possible to change certain preferences after the Pane has been +constructed, but only before construction can *all* preferences be +set. Note also that a single CalPref can control any number of +CalPanes. + +So, in the following slightly modified version of the first example we +will create a CalHTMLPreferences object and use one of its public +methods to get the CalPane's test navigation bar showing: + +---------------------------------------- +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MySecondCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + + //create a Preferences object + CalHTMLPreferences pref = new CalHTMLPreferences(); + + //use one of its methods to enable the test navbar + pref.setShowTestNavBar(true); + + //now pass the pref object to the Pane's constructor + CalHTMLPane pane = new CalHTMLPane(pref, null, null); + f.getContentPane().add(pane, "Center"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + } + } +} +---------------------------------------- + +You should see a rather unexciting navigation bar when you run the +program, but at least it is now possible to traverse the CalPane's +history, reload a document, stop any processes if necessary, navigate +by entering a URL in the textfield, and get some status information +on document loading. Note that this navbar is actually *within* the +Pane and is ignored by the Pane's focus manager. You cannot tab to the +controls because they do not exist as far as the Pane is concerned. + +(The textfield will accept a single name as an argument. If you type +'amazon' for example it will treat this as 'http://www.amazon.com') + + * * * + +Designing your own custom controls for a CalHTMLPane is very +straightforward, as demonstrated in Example 3. We will create some +external buttons ('Back', 'Forward', 'Reload' and 'Stop') to +demonstrate how controls can easily be added. + +[ Dean Jones' icon collection at: + + http://webart.javalobby.org/jlicons/ + + contains a number of icons which are well-suited for buttons to + control a CalHTMLPane. Dean has generously made these free + for use within Java applications. +] + + +---------------------------------------- +import java.net.*; +import java.awt.*; +import java.awt.event.*; +import javax.swing.*; +import calpa.html.*; + +public class MyThirdCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + CalHTMLPane pane = new CalHTMLPane(); + f.getContentPane().add(pane, "Center"); + + //create a panel, add buttons, and add a listener to the buttons + JPanel p = new JPanel(); + MyListener ml = new MyListener(pane); + String[] s = {"Reload", "Back", "Forward", "Stop"}; + JButton b; + for (int i=0; i<4; i++) { + b = new JButton(s[i]); + b.addActionListener(ml); + p.add(b); + } + f.getContentPane().add(p, "South"); + + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + } + } + + + private static class MyListener implements ActionListener { + + CalHTMLPane pane; + + public MyListener(CalHTMLPane pane) { + + this.pane = pane; + } + + public void actionPerformed(ActionEvent e) { + + String s = e.getActionCommand(); + + if (("Reload").equals(s)) { + pane.reloadDocument(); + } else if (("Back").equals(s)) { + pane.goBack(); + } else if (("Forward").equals(s)) { + pane.goForward(); + } else if (("Stop").equals(s)) { + pane.stopAll(); + } + } + } +} +---------------------------------------- + +The JavaDoc included in the download gives details regarding the methods +which can be used to directly control a CalHTMLPane. The reader may be +wondering however how the buttons on the test navbar in example 2 'knew' +when to turn on and off. This introduces a third calpa.html public class +- CalHTMLObserver ('CalObs' or 'Observer'). In the same way a Pane always +has a resident Preferences object, it also always has an Observer. Once +again a default CalHTMLObserver is used if one is not passed to the +Pane's constructor. + +CalHTMLObserver is an interface, and an Observer can be created for a +CalHTMLPane in one of two ways: + + -by implementing CalHTMLObserver in a class. This means + implementing all methods of the interface. + + -by extending the public DefaultCalHTMLObserver class. This class + implements all the methods of CalHTMLObserver as null-ops, so + only those methods of interest need be overridden. + +The methods of CalHTMLObserver are basically all update methods. When +certain events occur within a CalHTMLPane (e.g. a form submit button is +pressed, a hyperlink gets focus, a document has finished loading) the +Pane will pass information about the event to its resident CalObs, and +from these updates the programmer can determine whether buttons should +be on or off, what the title of the current document is, and so on. + +A single CalObs can listen to any number of CalPanes, and centralising +events into this single interface is far more efficient than using +normal AWT event firing, additionally avoiding potentially dangerous +synchronization problems. Event multicasting is not normally required +in a component of this type, but if this is necessary the programmer +can maintain listener lists within the CalHTMLObserver implementation. + +In the next example we instantiate a CalHTMLPane as before, and this +time add a single label at the bottom in place of the buttons in the +previous example. We create our own CalHTMLObserver by extending +DefaultCalHTMLObserver, and override a single method which allows us +to get updates on focused hyperlinks. We then show the URL of the link +in the label. + +---------------------------------------- +import java.net.*; +import java.awt.*; +import javax.swing.*; +import calpa.html.*; + +public class MyFourthCalPaneApplication { + + public static void main(String args[]) { + + URL url = null; + try { + url = new URL("file:///c:/jdk1.2/docs/api/overview-summary.html"); + } catch (MalformedURLException e) { + System.err.println("Malformed URL"); + System.exit(1); + } + + JFrame f = new JFrame(); + JLabel label = new JLabel("0"); + label.setBorder(BorderFactory.createEmptyBorder(2, 8, 2, 8)); + label.setPreferredSize(label.getPreferredSize()); + label.setText(""); + CalHTMLPane pane = new CalHTMLPane(null, new MyCalHTMLObserver(label), null); + f.getContentPane().add(pane, "Center"); + f.getContentPane().add(label, "South"); + Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); + f.setSize(new Dimension(Math.min(d.width - 10, 800), Math.min(d.height - 40, 600))); + f.setVisible(true); + if (url != null) { + pane.showHTMLDocument(url); + } + } + + + private static class MyCalHTMLObserver extends DefaultCalHTMLObserver { + + JLabel label; + + public MyCalHTMLObserver(JLabel label) { + + super(); + this.label = label; + } + + public void linkFocusedUpdate(CalHTMLPane p, URL url) { + + label.setText((url == null) ? "" : url.toExternalForm()); + } + } +} +---------------------------------------- + +When the above example is run, links which get either mouse or +keyboard focus should be shown at the bottom of the frame. When no link +has focus the label's text will be blank (actually, the label does not +clear itself when you go from one document to another, but that would +mean using another update method which would complicate the example). + +The example is in fact a little flawed. In the linkFocusedUpdate() +method there is no check made to ensure that the CalHTMLPane sending +the update is the one we originally instantiated. Although it seems +obvious that the CalHTMLPane sending the updates to the CalObserver +*must* be the Pane we created earlier, this is not necessarily so. +HTML allows the author to specify a target frame in hyperlinks, and +if the target is called '_blank' or is not the name of a currently +visible frame, then a new frame should be created to show the linked +document. By default a CalHTMLPane will create a new CalPane if it +comes across a link like this, and this could have happened when the +above example was run. + +In most cases the programmer will want a customized version of the +CalHTMLPane to appear in circumstances such as this, and the automatic +opening of new frames can be disabled through a method in +CalHTMLPreferences. When so disabled, the CalPane will call an update +method in CalHTMLObserver requesting the programmer to create a new +CalHTMLPane. + + +----------------------------------------------------------------------- + ADDING YOUR OWN COMPONENTS AND IMAGES TO A CALPANE +----------------------------------------------------------------------- + +There is just one more public calpa.html class that needs to be +discussed - CalHTMLManager ('Manager'). This class consists of a number +of static fields and methods and basically acts as a storage point for +all the CalPanes running in an application. The Manager caches documents +and imagemaps, and performs some other behind-the-scenes +housekeeping functions. + +There are also some public methods in CalHTMLManager which allow the +programmer to store JComponents and Images (i.e. instances of +java.awt.Image) with the Manager. Once these are cached with the Manager +they can be incorporated into HTML documents simply by naming them within +a relevant tag. A component or image can be referenced and reused in any +number of documents, and shown in any running CalPane (though of course, +a component can only be in one place at a time). + +The ability to add images in this manner was put into the Calpa package +because there are times when it is desirable to display an image which +the class user can be *sure* is available and fully loaded. A document +may for example contain form controls created with the new HTML4.0 +
    +

    Washington Tues 9th 2001: The computer world was left reeling today as +sensational evidence emerged that Sun Microsysytems chief Scott McNealy and +Microsoft chairman William H. Gates had agreed almost ten years ago on a +strategy that would leave them in complete dominance of the computer software +marketplace. + +

    Former Microsoft vice-president Ima Lyer claims he has 'irrefutable evidence' +that the two industry giants have been hoodwinking both politicians +and public for the past decade. In a written statement released by his legal +advisors to the press this morning, Lyer gives a detailed account of how +'Operation JAVA' was formulated by Gates and McNealy to remove all but minor +competition in the software industry.
    +(More details to follow) + +

    Next news + +