Does GWT 1.7 support Class.getSimpleName()?

47 views
Skip to first unread message

Pandaman

unread,
Jul 15, 2009, 1:00:30 PM7/15/09
to Google Web Toolkit
Does GWT 1.7 support Class.getSimpleName()?

Adam T

unread,
Jul 16, 2009, 1:38:55 AM7/16/09
to Google Web Toolkit
GWT supports the following: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html

//Adam

On 15 Juli, 19:00, Pandaman <p4nda...@gmail.com> wrote:
> Does GWT 1.7 support Class.getSimpleName()?

lumo

unread,
Jul 16, 2009, 1:08:16 AM7/16/09
to Google-We...@googlegroups.com
if not

[code]
    public String getSimpleClassName() {
        String className = this.getClass().getName();
        return className.substring(
                className.lastIndexOf(".") + 1, className.length());
    }
[/code]

2009/7/15 Pandaman <p4nd...@gmail.com>

Pandaman

unread,
Jul 16, 2009, 9:14:20 AM7/16/09
to Google Web Toolkit
But that is for GWT 1.6, I already know what this supports.

Pandaman

unread,
Jul 16, 2009, 9:16:56 AM7/16/09
to Google Web Toolkit
Yeah I know about this implementation, but I would like to use a
library function... I guess I can compromise until it's supported,
just wondering if the newer version of GWT supports Class.getSimpleName
()

Thanks though.

On Jul 16, 1:08 am, lumo <lumo2...@gmail.com> wrote:
> if not
>
> [code]
>     public String getSimpleClassName() {
>         String className = this.getClass().getName();
>         return className.substring(
>                 className.lastIndexOf(".") + 1, className.length());
>     }
> [/code]
>
> 2009/7/15 Pandaman <p4nda...@gmail.com>

Pandaman

unread,
Jul 16, 2009, 12:28:58 PM7/16/09
to Google Web Toolkit

Patrick Tucker

unread,
Nov 2, 2011, 4:30:10 PM11/2/11
to google-we...@googlegroups.com, Google Web Toolkit
Reply all
Reply to author
Forward
0 new messages