• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AW: a smaall question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: a smaall question


  • Subject: AW: a smaall question
  • From: Helge Staedtler <email@hidden>
  • Date: Thu, 18 Aug 2005 11:41:02 +0200

You could let all your WOComponents inherit from a subclass you create e.g.
from the following stuff...

public class WOMySubclass extends WOComponent {

    public WOMySubclass (WOContext context) {
        super(context);
    }

    public Session castedSession() {
        return (Session)session();
    }

}

Then you only have to call castedSession(). You have saved 4 brackets. ;-)
If only all problems could be solved that easy...

Regards,
Helge





Am 18.08.2005 11:23 Uhr schrieb "Amedeo Mantica" unter
<email@hidden>:

> I have a variable declared in my Session.java
>
> when I need to access it i need alway to prepend "((Session)session
> ())".... ok
>
> But the is another method to do this.... some times some funcions
> become log and confusive... only ((Session)session()) are six
> brackets.... :=)
>
> Thanks and best regards
> Amedeo
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

--
Helge Städtler

- Expect and Respect.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AW: a smaall question
      • From: David Teran <email@hidden>
References: 
 >a smaall question (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: a smaall question
  • Next by Date: Re: a smaall question
  • Previous by thread: a smaall question
  • Next by thread: Re: AW: a smaall question
  • Index(es):
    • Date
    • Thread