This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: silly newbie question about inner classes


John Whittaker wrote:
Per,

Thank you so much for the quick response.  If I might
amplify a bit, I have another question.

How would I create a subclass of
javax.swing.text.html.HTMLEditorKit.$ParserCallback?

It's javax.swing.text.html.HTMLEditorKit$ParserCallback . (The '$' replaces the '.'; it's not in addition.)

Doing something like this (below) doesn't work:

(define-simple-class my-parser-callback (
<javax.swing.text.html.HTMLEditorKit.$ParserCallback>
)
   ((handleText (data :: <char[]>)  (pos :: <int>))
::<void> access: 'public
    (write data) (newline))

It does if you leave out the extra '.' before the '$':


(define-simple-class my-parser-callback (
<javax.swing.text.html.HTMLEditorKit$ParserCallback>
)
   ((handleText (data :: <char[]>)  (pos :: <int>))
::<void> access: 'public
    (write data) (newline)))

--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]