This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: silly newbie question about inner classes
- From: Per Bothner <per at bothner dot com>
- To: John Whittaker <john dot whittaker at sbcglobal dot net>
- Cc: kawa at sourceware dot org
- Date: Fri, 02 Nov 2007 10:33:26 -0700
- Subject: Re: silly newbie question about inner classes
- References: <510567.89846.qm@web81104.mail.mud.yahoo.com>
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/