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: + + +
+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); ++ +
+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); ++
+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); ++
+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> +
+Guide Index | + JavaDoc | + Previous | + Next + | +
+
+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 + | +
+
+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 + | +
+
+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 + + + Boys Girls Total + 1997 16 18 34 + + + 1998 22 31 53 + + Total 38 49 87
+
+Guide Index | + JavaDoc | + Previous | + Next + | +
+
+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 Pixels 10% 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/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 @@ + + +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) + +
+ +
++ + 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 @@ + + +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. + +
+
++ + 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 @@ + + + + + +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." + +
+
CalHTMLManager
+ +CalHTMLObserver + +CalHTMLPane + +CalHTMLPreferences + +DefaultCalHTMLObserver + + |
+
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + | + +--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
.
+
+
CalHTMLPane
+Method Summary | +|
+static void |
+addUserComponent(javax.swing.JComponent component)
+
++ Adds a JComponent to the Manager's component cache. |
+
+static void |
+addUserComponentArray(javax.swing.JComponent[] componentArray,
+ java.lang.String classname)
+
++ Adds an array of JComponents to the Manager's component cache. |
+
+static void |
+addUserImage(java.awt.Image img,
+ java.lang.String name)
+
++ Adds an Image to the Manager's image cache. |
+
+static void |
+emptyDocumentCache()
+
++ Empties the Manager's document cache. |
+
+static int |
+getDocumentCacheCurrentSize()
+
++ Returns the Manager's estimate of the current memory being taken up by cached documents. |
+
+static int |
+getDocumentCacheMaximumSize()
+
++ Returns the max size of the document cache used by the Manager. |
+
+static javax.swing.JComponent |
+getUserComponent(java.lang.String classname,
+ java.lang.String name)
+
++ Retrieves a JComponent from the Manager's component cache. |
+
+static java.awt.Image |
+getUserImage(java.lang.String name)
+
++ Retrieves an Image from the Manager's image cache. |
+
+static boolean |
+isCacheDocumentsEnabled()
+
++ Indicates whether document caching is currently enabled. |
+
+static boolean |
+isCalFocusManagerEnabled()
+
++ Indicates whether a CalFocusManager is currently enabled. |
+
+static void |
+removeOldestDocumentFromCache()
+
++ Removes the oldest document from the Manager's document cache. |
+
+static void |
+removeUserComponent(java.lang.String name)
+
++ Removes a JComponent from the Manager's component cache. |
+
+static void |
+removeUserComponentArray(java.lang.String classname)
+
++ Removes a JComponent array from the Manager's component cache. |
+
+static void |
+removeUserImage(java.lang.String name)
+
++ Removes an Image from the Manager's image cache. |
+
+static void |
+setCacheDocuments(boolean enabled)
+
++ Enables or disables the caching of documents by the Manager. |
+
+static void |
+setCalFocusManagerEnabled(boolean enabled)
+
++ Enables or disables the CalFocusManager . |
+
+static void |
+setDocumentCacheMaximumSize(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 | +
+public static void addUserComponent(javax.swing.JComponent component)+
AWT Component setName()
method).
+ JComponents sent to this method which do not have a name will not be cached by the Manager.component
- the JComponent to be added.+public static void removeUserComponent(java.lang.String name)+
name
- the name of the JComponent to be removed.+public static void addUserComponentArray(javax.swing.JComponent[] componentArray, + java.lang.String classname)+
componentArray
- the JComponent array to be added.classname
- a class identifier for the JComponent array.+public static void removeUserComponentArray(java.lang.String classname)+
classname
- the class identifier of the JComponent array to be removed.+public static javax.swing.JComponent getUserComponent(java.lang.String classname, + java.lang.String name)+
classname
- the class identifier of the array the JComponent resides in (may be null).name
- the name of the target JComponent.null
if no JComponent matching the sent
+ parameters can be foundaddUserComponent(javax.swing.JComponent)
,
+addUserComponentArray(javax.swing.JComponent[], java.lang.String)
+public static void addUserImage(java.awt.Image img, + java.lang.String name)+
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.
img
- the Image to be cached.name
- a name given to the Image for retrieval purposes.getUserImage(java.lang.String)
+public static java.awt.Image getUserImage(java.lang.String name)+
name
- the name of the target Image.null
if no Image matching the sent
+ name can be foundaddUserImage(java.awt.Image, java.lang.String)
+public static void removeUserImage(java.lang.String name)+
name
- the name of the Image to be removed.+public static void setCacheDocuments(boolean enabled)+
enabled
- a flag indicating whether the Manager should cache documents.+public static boolean isCacheDocumentsEnabled()+
+public static void setDocumentCacheMaximumSize(int size)+
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.
size
- the required size in kilobytes of the Manager's document cache.+public static int getDocumentCacheMaximumSize()+
+public static int getDocumentCacheCurrentSize()+
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.
+public static void removeOldestDocumentFromCache()+
+public static void emptyDocumentCache()+
+public static void setCalFocusManagerEnabled(boolean enabled)+
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).CalFocusManager
has been implemented in this way.
+ (Note that this method will neither install nor uninstall the CalFocusManager.)
enabled
- a flag indicating whether a CalFocusManager should handle keyboard control within
+ a CalHTMLPane
.+public static boolean isCalFocusManagerEnabled()+
CalFocusManager
should handle keyboard traversalsetCalFocusManagerEnabled(boolean)
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+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
.
+
+
CalHTMLPane
+Method Summary | +|
+ 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. |
+
+ void |
+historyUpdate(CalHTMLPane pane,
+ int position)
+
++ Notification of a change in position within the Pane's document history. |
+
+ 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. |
+
+ void |
+linkFocusedUpdate(CalHTMLPane pane,
+ java.net.URL url)
+
++ Notification that a hyperlink has received or lost keyboard/mouse focus. |
+
+ 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. |
+
+ 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. |
+
+Method Detail | +
+public void linkActivatedUpdate(CalHTMLPane pane, + java.net.URL url, + java.lang.String targetFrame, + java.lang.String jname)+
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.pane
- the CalHTMLPane
which has called this methodurl
- the URL
of the link that has been activatedtargetFrame
- the name of the frame where the contents of the URL
are
+ to be displayedjname
- A name given to the link so it can be handled outside the calling Pane+public void linkFocusedUpdate(CalHTMLPane pane, + java.net.URL url)+
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.
pane
- the CalHTMLPane
which has called this methodurl
- the URL
of the focused link, or null
if no link has the focus+public void statusUpdate(CalHTMLPane pane, + int status, + java.net.URL url, + int value, + java.lang.String message)+
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
URL
to receive data.
+ CalCons.PARSE_FAILED
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
URL
and is receiving any content.
+ CalCons.DOC_LENGTH
URL
is known and is contained
+ in the value
argument.
+ CalCons.TITLE
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
URL
. This will most
+ likely be an IOException
such as a server time-out.
+ CalCons.WAITING_FOR_IMAGES
CalCons.DOC_LOADED
pane
- the CalHTMLPane
which has called this methodstatus
- the status code of the updateurl
- a URL
related to the status codevalue
- a value related to the status codemessage
- a message related to the status code+public void formSubmitUpdate(CalHTMLPane pane, + java.net.URL docBaseURL, + int method, + java.lang.String action, + java.lang.String data)+
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.
pane
- the CalHTMLPane
which has called this methoddocBaseURL
- the URL
of the document containing the form, possibly modified
+ by the <BASE> tagmethod
- a code for the form method - GET, POST or JFORMaction
- the value of the action attribute (if any) specified in the FORM tagdata
- the concatenated, encoded form resultsCalHTMLPreferences.setHandleFormSubmission(boolean)
+public void historyUpdate(CalHTMLPane pane, + int position)+
+ 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
+ }
+ }
+
pane
- the CalHTMLPane
which has called this methodposition
- a value denoting the current position within the Pane's history+public void showNewFrameRequest(CalHTMLPane pane, + java.lang.String targetFrame, + java.net.URL url)+
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.
pane
- the CalHTMLPane
which has called this methodtargetFrame
- the name to be given to the top-level frame of the new Pane,
+ or null
if no name has been specifiedurl
- the URL
of the document to be displayed in the new PaneCalHTMLPreferences.setHandleNewFrames(boolean)
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + | + +--java.awt.Component + | + +--java.awt.Container + | + +--javax.swing.JComponent + | + +--javax.swing.JLayeredPane + | + +--calpa.html.CalHTMLPane ++
+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. +
+
CalHTMLPreferences
,
+CalHTMLObserver
, Serialized FormInner 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 | +|
+ void |
+closeDialog()
+
++ Closes the Pane's dialog if it is currently visible. |
+
+ java.util.Hashtable |
+getIDComponents(java.lang.String targetFrame)
+
++ Returns a Hashtable containing all components in the target frame which have the HTML 'id' attribute. |
+
+ void |
+goBack()
+
++ Show the previous document in the Pane's history list. |
+
+ void |
+goForward()
+
++ Show the next document in the Pane's history list. |
+
+ void |
+goHome()
+
++ Show the contents of the URL specified as homeURL
+ by CalHTMLPreferences in the top level frame of the Pane. |
+
+ boolean |
+isFocusTraversable()
+
++ Overrides JComponent isFocusTraversable() . |
+
+ boolean |
+isLoadSynchronouslyEnabled()
+
++ Returns whether documents will be loaded by the CalPane synchronously or asynchronously. |
+
+ boolean |
+isManagingFocus()
+
++ Overrides JComponent isManagingFocus() . |
+
+ void |
+keyPressed(java.awt.event.KeyEvent e)
+
++ Public due to implementation requirements. |
+
+ void |
+keyReleased(java.awt.event.KeyEvent e)
+
++ Public due to implementation requirements. |
+
+ void |
+keyTyped(java.awt.event.KeyEvent e)
+
++ Public due to implementation requirements. |
+
+ void |
+reloadDocument()
+
++ Reloads the current document. |
+
+ void |
+scrollToReference(java.lang.String ref,
+ java.lang.String targetFrame)
+
++ Scrolls the document view to the specified anchor reference in the named target frame. |
+
+ void |
+setBounds(int x,
+ int y,
+ int w,
+ int h)
+
++ Public due to inheritance. |
+
+ void |
+setLoadSynchronously(boolean b)
+
++ Enables/disables the synchronous loading of documents. |
+
+ boolean |
+setScrollBarPolicy(int n)
+
++ Sets the scrollbar policy of the Pane. |
+
+ void |
+showDialog(java.lang.String message)
+
++ Parses the sent message as HTML and displays the result in the Pane's dialog. |
+
+ 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. |
+
+ void |
+showHTMLDocument(java.lang.String s)
+
++ Formats and displays the specified String as an HTML document in the top level frame of the Pane. |
+
+ 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. |
+
+ void |
+showHTMLDocument(java.net.URL url)
+
++ Shows the contents of the specified URL in the top level frame of
+ the Pane. |
+
+ void |
+showHTMLDocument(java.net.URL url,
+ java.lang.String targetFrame,
+ boolean reload)
+
++ Shows the contents of the specified URL in the named
+ target frame. |
+
+ void |
+stopAll()
+
++ 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 | +
+public CalHTMLPane()+
CalHTMLPane
with default CalHTMLPreferences
,
+ a default CalHTMLObserver
and default top-level frame name.+public CalHTMLPane(CalHTMLPreferences prefs, + CalHTMLObserver obs, + java.lang.String name)+
CalHTMLPane
with the specified CalHTMLObserver
,
+ CalHTMLPreferences
and top-level frame name. If any of the arguments are
+ null
then a default will be used.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 | +
+public void setBounds(int x, + int y, + int w, + int h)+
super.setBounds(x, y, w, h)
if you override
+ this method or the Pane may not function correctly.+public void showHTMLDocument(java.net.URL url)+
URL
in the top level frame of
+ the Pane. A cached document will be used if one is available and caching is enabled.url
- the URL of the document to be displayed.+public void showHTMLDocument(java.net.URL url, + java.lang.String targetFrame, + boolean reload)+
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:
+ handleNewFrames
is enabled in the
+ CalHTMLPreferences
controlling the Pane then a new CalHTMLPane
+ will be created to show the document.
+ 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.
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.+public void showHTMLDocument(java.lang.String s)+
s
- a String to be formatted as an HTML document.+public void showHTMLDocument(java.lang.String s, + java.lang.String targetFrame)+
handleNewFrames
is enabled in the
+ CalHTMLPreferences
controlling the Pane then a new CalHTMLPane
+ will be created to show the document.
+ handleNewFrames
is not enabled
+ then a showNewFrameRequest
will be sent to the Pane's resident
+ CalHTMLObserver
.
+ s
- a String to be formatted as an HTML document.targetFrame
- the HTML frame that the document should be displayed in.+public void scrollToReference(java.lang.String ref, + java.lang.String targetFrame)+
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.
ref
- a named anchor reference within a document.targetFrame
- the HTML frame that contains the document with the anchor reference.+public void goBack()+
+public void goForward()+
+public void goHome()+
URL
specified as homeURL
+ by CalHTMLPreferences
in the top level frame of the Pane.+public void reloadDocument()+
+public void stopAll()+
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.
+public boolean setScrollBarPolicy(int n)+
+
CalCons.VIEWER
(The default setting)ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
+ ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
CalCons.V_YES
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
+ ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
CalCons.V_NO
ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER,
+ ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER
CalCons.V_AUTO
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.
n
- a value which dictates the scrollbar policy for the Pane.true
if a supported scrollbar policy was sent to this method+public boolean isManagingFocus()+
JComponent isManagingFocus()
. Programmers are advised not to
+ override this method.+public boolean isFocusTraversable()+
JComponent isFocusTraversable()
. Programmers are advised not to
+ override this method.+public void keyPressed(java.awt.event.KeyEvent e)+
+public void keyReleased(java.awt.event.KeyEvent e)+
+public void keyTyped(java.awt.event.KeyEvent e)+
+public void showDialog(java.lang.String message)+
message
- a String to be formatted as HTML in the Pane's dialog.+public void showDialog(java.lang.String message, + java.lang.String messageName, + int x, + int y, + int w, + int h)+
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.
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.+public void closeDialog()+
+public java.util.Hashtable getIDComponents(java.lang.String targetFrame)+
+ 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.
targetFrame
- the name of the frame containing the components, or all frames if null
Hashtable
of components, with their HTML 'id' values as keys+public void setLoadSynchronously(boolean b)+
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.
+public boolean isLoadSynchronouslyEnabled()+
CalPane
synchronously or asynchronously.true
if documents will load synchronously.setLoadSynchronously(boolean)
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + | + +--calpa.html.CalHTMLPreferences ++
+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.
+
+
CalHTMLPane
+Constructor Summary | +|
CalHTMLPreferences()
+
++ Creates a new CalHTMLPreferences object which will have all fields
+ set to default values. |
+
+Method Summary | +|
+ java.awt.Font |
+getDefaultButtonFont(int displaySize)
+
++ Returns a default font being used within THREEDEE and FLUSH
+ Buttons and ComboBoxes. |
+
+ java.awt.Color |
+getDefaultColor(int attributeType)
+
++ Returns a default color used by a CalHTMLPane to render documents. |
+
+ java.awt.Font |
+getDefaultFont(int displaySize)
+
++ Returns a default font being used by a CalHTMLPane |
+
+ java.awt.Font |
+getDefaultFormTextFont(int displaySize)
+
++ Returns a default font being used within THREEDEE and FLUSH
+ Textfields, TextAreas and Lists. |
+
+ int |
+getDefaultFrameSpacing()
+
++ Returns the default spacing in pixels between frames within a Frameset document. |
+
+ int |
+getDefaultMarginheight()
+
++ Returns the default vertical margin of a document. |
+
+ int |
+getDefaultMarginwidth()
+
++ Returns the default horizontal margin of a document. |
+
+ int |
+getFormRenderingStyle()
+
++ Returns the default rendering style of FORM components within a
+ CalHTMLPane . |
+
+ 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. |
+
+ java.net.URL |
+getHomeURL()
+
++ Returns the URL which will accessed if a CalHTMLPane's
+ goHome() method is called |
+
+ int |
+getOptimizeDisplay()
+
++ Returns whether a CalHTMLPane will
+ adjust display parameters based on frame size. |
+
+ java.util.Hashtable |
+getVisitedHash()
+
++ Returns a Hashtable containing references to visited URLs . |
+
+ boolean |
+isAutomaticallyFollowHyperlinksEnabled()
+
++ Returns whether a CalHTMLPane will automatically navigate activated hyperlinks. |
+
+ boolean |
+isDisplayErrorDialogsEnabled()
+
++ Returns whether a CalHTMLPane will automatically display a dialog when
+ errors such as failed hyperlinks occur. |
+
+ boolean |
+isHandleFormSubmissionEnabled()
+
++ Returns whether a CalHTMLPane will
+ automatically handle GET and POST form submissions. |
+
+ boolean |
+isHandleNewFramesEnabled()
+
++ Returns whether a new CalHTMLPane will
+ automatically be created if specified by an HTML tag. |
+
+ boolean |
+isLoadImagesEnabled()
+
++ Returns whether a CalHTMLPane will
+ automatically load images within documents. |
+
+ boolean |
+isRequestFocusOnMouseClickEnabled()
+
++ Returns whether a CalHTMLPane will request keyboard focus if the mouse is
+ clicked within it. |
+
+ boolean |
+isShowHyperlinkOnMouseFocusEnabled()
+
++ Returns whether a CalHTMLPane will only show a hyperlink when the link has mouse focus. |
+
+ boolean |
+isShowTestNavBarEnabled()
+
++ Returns whether a CalHTMLPane will display a diagnostic navigation bar on startup. |
+
+ boolean |
+isShowWarningBeforePostEnabled()
+
++ Returns whether a CalHTMLPane will show a warning to the user before a form POST
+ submission is made. |
+
+ boolean |
+isUnderlineLinksEnabled()
+
++ Returns whether a CalHTMLPane will underline hyperlinks. |
+
+ void |
+setAutomaticallyFollowHyperlinks(boolean b)
+
++ Enables/disables the automatic navigation of activated hyperlinks in a CalHTMLPane . |
+
+ void |
+setDefaultButtonFont(int displaySize,
+ java.awt.Font font)
+
++ Sets a default font to be used within form Buttons and ComboBoxes. |
+
+ void |
+setDefaultColor(int attributeType,
+ java.awt.Color c)
+
++ Sets a default color. |
+
+ void |
+setDefaultFont(int displaySize,
+ java.awt.Font font)
+
++ Sets a default font to be used by a CalHTMLPane . |
+
+ void |
+setDefaultFont(int displaySize,
+ int fontFamily,
+ int sizeIndex)
+
++ Deprecated. Use setDefaultFont(int, Font) which allows the setting of
+ system fonts. |
+
+ void |
+setDefaultFormTextFont(int displaySize,
+ java.awt.Font font)
+
++ Sets a default font to be used within form TextFields, TextAreas and Lists. |
+
+ void |
+setDefaultFrameSpacing(int n)
+
++ Sets the default spacing in pixels between frames within a Frameset document. |
+
+ void |
+setDefaultMarginheight(int n)
+
++ Sets the default vertical margin of a document. |
+
+ void |
+setDefaultMarginwidth(int n)
+
++ Sets the default horizontal margin of a document. |
+
+ void |
+setDisplayErrorDialogs(boolean b)
+
++ Enables/disables the automatic display of error dialogs within a CalHTMLPane . |
+
+ void |
+setFormFont(int displaySize,
+ int fontFamily,
+ int fontStyle,
+ int sizeArrayIndex)
+
++ Deprecated. Use either setDefaultButtonFont(int, Font) or
+ setDefaultFormTextFont(int, Font) . |
+
+ void |
+setFormRenderingStyle(int style)
+
++ Sets the rendering style of FORM components within a CalHTMLPane . |
+
+ 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. |
+
+ void |
+setHandleFormSubmission(boolean b)
+
++ Enables/disables the automatic processing of GET and POST html forms + within a CalHTMLPane . |
+
+ void |
+setHandleNewFrames(boolean b)
+
++ Enables/disables the automatic creation of a new CalHTMLPane if
+ specified by an HTML tag. |
+
+ void |
+setHomeURL(java.net.URL url)
+
++ Sets the URL which will be accessed if a CalHTMLPane's
+ goHome() method is called. |
+
+ void |
+setLoadImages(boolean b)
+
++ Enables/disables the automatic loading of images within a CalHTMLPane . |
+
+ void |
+setOptimizeDisplay(int optimizeLevel)
+
++ Determines whether a CalHTMLPane will
+ adjust display parameters based on frame width. |
+
+ void |
+setRequestFocusOnMouseClick(boolean b)
+
++ Determines whether a CalHTMLPane or one of its subframes will request keyboard focus
+ if the mouse is clicked within it. |
+
+ void |
+setShowHyperlinkOnMouseFocus(boolean b)
+
++ Determines whether a hyperlink will only be marked as such when it has mouse focus. |
+
+ void |
+setShowTestNavBar(boolean b)
+
++ Enables/disables the display of a diagnostic navigation bar. |
+
+ void |
+setShowWarningBeforePost(boolean b)
+
++ Enables/disables the showing of a warning message before a form POST submission + is made. |
+
+ void |
+setUnderlineLinks(boolean b)
+
++ Enables/disables the underlining of hyperlinks within a CalHTMLPane . |
+
+ void |
+setVisitedHash(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 | +
+public CalHTMLPreferences()+
CalHTMLPreferences
object which will have all fields
+ set to default values.+Method Detail | +
+public java.util.Hashtable getVisitedHash()+
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.
setVisitedHash(java.util.Hashtable)
+public void setVisitedHash(java.util.Hashtable table)+
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.table
- a Hashtable containing Integer/Long pairs representing visited document URLsgetVisitedHash()
+public void setOptimizeDisplay(int optimizeLevel)+
CalHTMLPane
will
+ adjust display parameters based on frame width.
+ The arguments which can be sent to this method are:+
CalCons.NO_OPTIMIZATION
CalCons.OPTIMIZE_FONTS
CalCons.OPTIMIZE_ALL
See the README.TXT file accompanying this document for more details on optimizeDisplay.
optimizeLevel
- a value indicating the level (if any) of display optimization requiredsetFrameDisplayWidth(int, int)
,
+setDefaultFont(int, int, int)
+public int getOptimizeDisplay()+
CalHTMLPane
will
+ adjust display parameters based on frame size.
+ See the README.TXT file accompanying this document for more details on optimizeDisplay.
+public void setFrameDisplayWidth(int displaySize, + int width)+
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.
+public int getFrameDisplayWidth(int displaySize)+
CalHTMLPane
will
+ start scaling its display if optimizeDisplay
is enabled.
+ The permitted displaySize arguments are:+
CalCons.S_SMALL
+ - CalCons.S_MEDIUM
+public void setDefaultFont(int displaySize, + int fontFamily, + int sizeIndex)+
setDefaultFont(int, Font)
which allows the setting of
+ system fonts.+public void setDefaultFont(int displaySize, + java.awt.Font font)+
CalHTMLPane
.
+ This method takes three different size arguments:
+ CalCons.S_SMALL
+ - CalCons.S_MEDIUM
+
- CalCons.S_LARGE
+
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.
setOptimizeDisplay(int)
+public java.awt.Font getDefaultFont(int displaySize)+
CalHTMLPane
setDefaultFont(int, java.awt.Font)
+public void setFormFont(int displaySize, + int fontFamily, + int fontStyle, + int sizeArrayIndex)+
setDefaultButtonFont(int, Font)
or
+ setDefaultFormTextFont(int, Font)
.+public void setDefaultButtonFont(int displaySize, + java.awt.Font font)+
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
+
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.
setOptimizeDisplay(int)
+public java.awt.Font getDefaultButtonFont(int displaySize)+
THREEDEE
and FLUSH
+ Buttons and ComboBoxes.setDefaultButtonFont(int, java.awt.Font)
+public void setDefaultFormTextFont(int displaySize, + java.awt.Font font)+
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
+
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.
setOptimizeDisplay(int)
+public java.awt.Font getDefaultFormTextFont(int displaySize)+
THREEDEE
and FLUSH
+ Textfields, TextAreas and Lists.setDefaultFormTextFont(int, java.awt.Font)
+public void setDefaultColor(int attributeType, + java.awt.Color c)+
+
attributeType | Default | Description |
---|---|---|
CalCons.A_BGCOLOR |
+ Color.white | Document background color |
CalCons.A_TEXT |
+ Color.black | Document text color |
CalCons.A_LINK |
+ Color(0xOOOOEA) | Normal link color |
CalCons.A_VLINK |
+ Color(0x800080) | Visited link color |
CalCons.A_ALINK |
+ Color.red | Active link color |
CalCons.FORM_CONTROL |
+ UIControl | Control color of form components |
CalCons.FORM_HIGHLIGHT |
+ UIHighlight | Highlight color of form components |
CalCons.FORM_SHADOW |
+ UIShadow | Shadow color of form components |
CalCons.FORM_TEXT_BACKGROUND |
+ Color.white | Background color within form components such + as textfields |
CalCons.FORM_TEXT_COLOR |
+ Color.black | Text color within form components such + as textfields |
CalCons.TAB_FOCUS_BACKGROUND |
+ Color(0x300060) | Background color of hyperlinks which have + keyboard focus |
CalCons.TAB_FOCUS_FOREGROUND |
+ Color(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.
+public java.awt.Color getDefaultColor(int attributeType)+
CalHTMLPane
to render documents.
+ See setDefaultColor()
for allowed attributeTypessetDefaultColor(int, java.awt.Color)
+public void setFormRenderingStyle(int style)+
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.
style
- a value which determines the default rendering style of HTML form components+public int getFormRenderingStyle()+
FORM
components within a
+ CalHTMLPane
.setFormRenderingStyle(int)
+public void setDefaultFrameSpacing(int n)+
n
- the default spacing in pixels between HTML frames in a Frameset document+public int getDefaultFrameSpacing()+
+public void setDefaultMarginwidth(int n)+
n
- the default horizontal margin in pixels between a document and the border of the frame it
+ resides in.+public int getDefaultMarginwidth()+
+public void setDefaultMarginheight(int n)+
n
- the default vertical margin in pixels between a document and the border of the frame it
+ resides in.+public int getDefaultMarginheight()+
+public void setHomeURL(java.net.URL url)+
URL
which will be accessed if a CalHTMLPane's
+ goHome()
method is called. The default setting is http://www.w3.orgurl
- the default URL
to be accessed.+public java.net.URL getHomeURL()+
URL
which will accessed if a CalHTMLPane's
+ goHome()
method is calledURL
which will be accessed.+public void setUnderlineLinks(boolean b)+
CalHTMLPane
.
+ The default value is true.b
- a flag indicating whether hyperlinks should be underlined+public boolean isUnderlineLinksEnabled()+
CalHTMLPane
will underline hyperlinks.true
if hyperlinks will be underlined+public void setShowHyperlinkOnMouseFocus(boolean b)+
b
- a flag indicating whether hyperlinks will only be marked as such if they have mouse focus+public boolean isShowHyperlinkOnMouseFocusEnabled()+
CalHTMLPane
will only show a hyperlink when the link has mouse focus.true
if a hyperlink will only be marked as such when it has mouse focus+public void setLoadImages(boolean b)+
CalHTMLPane
.
+ The default value is true.b
- a flag indicating whether images within documents should be loaded and displayed+public boolean isLoadImagesEnabled()+
CalHTMLPane
will
+ automatically load images within documents.true
if images within documents will be loaded and displayed+public void setDisplayErrorDialogs(boolean b)+
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
b
- a flag indicating whether an dialog should be displayed if an error occurs within a Pane.+public boolean isDisplayErrorDialogsEnabled()+
CalHTMLPane
will automatically display a dialog when
+ errors such as failed hyperlinks occur.true
if an error dialog will be displayed if an error occurs within a Pane.+public void setShowTestNavBar(boolean b)+
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.
b
- a flag indicating whether a CalHTMLPane's
test navigation controls should be
+ displayed.+public boolean isShowTestNavBarEnabled()+
CalHTMLPane
will display a diagnostic navigation bar on startup.true
if a CalHTMLPane
will display test navigation controls.+public void setAutomaticallyFollowHyperlinks(boolean b)+
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
b
- a flag indicating whether hyperlinks should be followed if activated by mouse or keyboard.+public boolean isAutomaticallyFollowHyperlinksEnabled()+
CalHTMLPane
will automatically navigate activated hyperlinks.true
if hyperlinks should be followed if activated by keyboard or mouse.+public void setHandleFormSubmission(boolean b)+
CalHTMLPane
. The default value is true. If set to false,
+ form submissions will still be passed to the resident CalHTMLObserver
b
- a flag indicating whether http GET and POST form submissions should be handled automatically
+ by a CalHTMLPane
+public boolean isHandleFormSubmissionEnabled()+
CalHTMLPane
will
+ automatically handle GET and POST form submissions.true
if http GET and POST form submissions will be handled automatically
+ by a CalHTMLPane
+public void setShowWarningBeforePost(boolean b)+
b
- a flag indicating whether a warning message will displayed before an http form POST
+ submission+public boolean isShowWarningBeforePostEnabled()+
CalHTMLPane
will show a warning to the user before a form POST
+ submission is made.true
if a warning message will displayed before an http form POST
+ submission+public void setHandleNewFrames(boolean b)+
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
b
- a flag indicating whether a new CalHTMLPane
should automatically be
+ displayed if specified by an HTML tag.+public boolean isHandleNewFramesEnabled()+
CalHTMLPane
will
+ automatically be created if specified by an HTML tag.true
if a new CalHTMLPane
will automatically be
+ displayed if specified by an HTML tag.+public void setRequestFocusOnMouseClick(boolean b)+
CalHTMLPane
or one of its subframes will request keyboard focus
+ if the mouse is clicked within it. The default value is false.b
- a flag indicating whether a CalHTMLPane
frame should call
+ requestFocus()
if the mouse is clicked within it.+public boolean isRequestFocusOnMouseClickEnabled()+
CalHTMLPane
will request keyboard focus if the mouse is
+ clicked within it.true
if a CalHTMLPane
frame will call
+ requestFocus()
if the mouse is clicked within it.
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + | + +--calpa.html.DefaultCalHTMLObserver ++
+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.
+
+
CalHTMLObserver
+Constructor Summary | +|
DefaultCalHTMLObserver()
+
++ |
+
+Method Summary | +|
+ void |
+formSubmitUpdate(CalHTMLPane pane,
+ java.net.URL docBaseURL,
+ int method,
+ java.lang.String action,
+ java.lang.String data)
+
++ |
+
+ void |
+historyUpdate(CalHTMLPane pane,
+ int position)
+
++ |
+
+ void |
+linkActivatedUpdate(CalHTMLPane pane,
+ java.net.URL url,
+ java.lang.String targetFrame,
+ java.lang.String jName)
+
++ |
+
+ void |
+linkFocusedUpdate(CalHTMLPane pane,
+ java.net.URL url)
+
++ |
+
+ void |
+showNewFrameRequest(CalHTMLPane pane,
+ java.lang.String targetFrame,
+ java.net.URL url)
+
++ |
+
+ void |
+statusUpdate(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 | +
+public DefaultCalHTMLObserver()+
+Method Detail | +
+public void linkActivatedUpdate(CalHTMLPane pane, + java.net.URL url, + java.lang.String targetFrame, + java.lang.String jName)+
+public void linkFocusedUpdate(CalHTMLPane pane, + java.net.URL url)+
+public void statusUpdate(CalHTMLPane pane, + int status, + java.net.URL url, + int value, + java.lang.String message)+
+public void formSubmitUpdate(CalHTMLPane pane, + java.net.URL docBaseURL, + int method, + java.lang.String action, + java.lang.String data)+
+public void historyUpdate(CalHTMLPane pane, + int position)+
+public void showNewFrameRequest(CalHTMLPane pane, + java.lang.String targetFrame, + java.net.URL url)+
+
+
|
++ + | +||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES | +||||||
+ SUMMARY: INNER | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
+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) . |
+
+
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
+ +++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
+ +++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:
+
+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.- 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
+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 fromjava.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.
+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.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
CalHTMLPane
.CalHTMLPane
at
+ construction time and will thereafter receive notification of events which have occured within the Pane.CalHTMLPane
with default CalHTMLPreferences
,
+ a default CalHTMLObserver
and default top-level frame name.
+CalHTMLPane
with the specified CalHTMLObserver
,
+ CalHTMLPreferences
and top-level frame name.
+CalHTMLPane
.CalHTMLPreferences
object which will have all fields
+ set to default values.
+CalHTMLObserver
interface.THREEDEE
and FLUSH
+ Buttons and ComboBoxes.
+CalHTMLPane
to render documents.
+CalHTMLPane
+THREEDEE
and FLUSH
+ Textfields, TextAreas and Lists.
+FORM
components within a
+ CalHTMLPane
.
+CalHTMLPane
will
+ start scaling its display if optimizeDisplay
is enabled.
+URL
which will accessed if a CalHTMLPane's
+ goHome()
method is called
+CalHTMLPane
will
+ adjust display parameters based on frame size.
+Hashtable
containing references to visited URLs
.
+URL
specified as homeURL
+ by CalHTMLPreferences
in the top level frame of the Pane.
+CalHTMLPane
will automatically navigate activated hyperlinks.
+CalHTMLPane
will automatically display a dialog when
+ errors such as failed hyperlinks occur.
+JComponent isFocusTraversable()
.
+CalHTMLPane
will
+ automatically handle GET and POST form submissions.
+CalHTMLPane
will
+ automatically be created if specified by an HTML tag.
+CalHTMLPane
will
+ automatically load images within documents.
+CalPane
synchronously or asynchronously.
+JComponent isManagingFocus()
.
+CalHTMLPane
will request keyboard focus if the mouse is
+ clicked within it.
+CalHTMLPane
will only show a hyperlink when the link has mouse focus.
+CalHTMLPane
will display a diagnostic navigation bar on startup.
+CalHTMLPane
will show a warning to the user before a form POST
+ submission is made.
+CalHTMLPane
will underline hyperlinks.
+CalHTMLPane
.
+CalFocusManager
.
+CalHTMLPane
.
+setDefaultFont(int, Font)
which allows the setting of
+ system fonts.
+CalHTMLPane
.
+setDefaultButtonFont(int, Font)
or
+ setDefaultFormTextFont(int, Font)
.
+FORM
components within a CalHTMLPane
.
+CalHTMLPane
will
+ start scaling its display if optimizeDisplay
is enabled.
+CalHTMLPane
.
+CalHTMLPane
if
+ specified by an HTML tag.
+URL
which will be accessed if a CalHTMLPane's
+ goHome()
method is called.
+CalHTMLPane
.
+CalHTMLPane
will
+ adjust display parameters based on frame width.
+CalHTMLPane
or one of its subframes will request keyboard focus
+ if the mouse is clicked within it.
+CalHTMLPane
.
+Hashtable
containing references to URLs
which
+ will be used by a CalHTMLPane
to mark visited
+ hyperlinks.
+URL
in the top level frame of
+ the Pane.
+URL
in the named
+ target frame.
+CalHTMLPane
to be created with
+ the specified top-level frame name and showing the specified document.
+
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
+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.
+
+Link to Non-frame version.
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +
+
+
|
++ + | +||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES | +