• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

java programming

I am trying to understand the following method.Is this methos using inner classes?
" ZeroParameterRoutine " is that class ?


protected boolean handleDomainScopeChange(Object pNewScopeOverride) {          
    boolean wChangingToPrivate = getCustomDfnEditor().isPrivate();    
   
    // set the exclude privatedfns flag.
    getCustomDfnWorkModel().setExcludePrivateDfns(!wChangingToPrivate);
   
    if (wChangingToPrivate) {
      ZeroParameterRoutine wRoutine = new ZeroParameterRoutine() {
        public Object perform() {
          // wait till the corrent user id is in the security pane after domain scope change...
          getCustomDfnWorkModel().setCurrentUserID(getCustomDfnEditor().getCurrentUserIDForCustomDfnQuery());
          return null;
        }
      };
      ViewUtilities.invokeLater(getDomainContext(), wRoutine);
    }
    return true;  
  }
0
Anj78
Asked:
Anj78
  • 3
  • 2
1 Solution
 
Ajay-SinghCommented:
Yes. Its using anonymous inner class.
0
 
Anj78Author Commented:
is there a specific resion using annonymous class and name.?explain me littel more thanks.
0
 
Ajay-SinghCommented:
Look at this portion
 
ZeroParameterRoutine wRoutine = new ZeroParameterRoutine() {
        public Object perform() {
          // wait till the corrent user id is in the security pane after
domain scope change...
 
getCustomDfnWorkModel().setCurrentUserID(getCustomDfnEditor().getCurrentUser
IDForCustomDfnQuery());
          return null;
        }
      };

 
The inner class here provide programming continence.
0
 
Anj78Author Commented:
continence?...
can you explain me benefites of this?
0
 
Ajay-SinghCommented:
[copy from last comment]
 
> The inner class here provide programming continence.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now