Anj78
asked on
java programming
I am trying to understand the following method.Is this methos using inner classes?
" ZeroParameterRoutine " is that class ?
protected boolean handleDomainScopeChange(Ob ject pNewScopeOverride) {
boolean wChangingToPrivate = getCustomDfnEditor().isPri vate();
// set the exclude privatedfns flag.
getCustomDfnWorkModel().se tExcludePr ivateDfns( !wChanging ToPrivate) ;
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().se tCurrentUs erID(getCu stomDfnEdi tor().getC urrentUser IDForCusto mDfnQuery( ));
return null;
}
};
ViewUtilities.invokeLater( getDomainC ontext(), wRoutine);
}
return true;
}
" ZeroParameterRoutine " is that class ?
protected boolean handleDomainScopeChange(Ob
boolean wChangingToPrivate = getCustomDfnEditor().isPri
// set the exclude privatedfns flag.
getCustomDfnWorkModel().se
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().se
return null;
}
};
ViewUtilities.invokeLater(
}
return true;
}
Yes. Its using anonymous inner class.
ASKER
is there a specific resion using annonymous class and name.?explain me littel more thanks.
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().se tCurrentUs erID(getCu stomDfnEdi tor().getC urrentUser
IDForCustomDfnQuery());
return null;
}
};
The inner class here provide programming continence.
ZeroParameterRoutine wRoutine = new ZeroParameterRoutine() {
public Object perform() {
// wait till the corrent user id is in the security pane after
domain scope change...
getCustomDfnWorkModel().se
IDForCustomDfnQuery());
return null;
}
};
The inner class here provide programming continence.
ASKER
continence?...
can you explain me benefites of this?
can you explain me benefites of this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.