PDA

View Full Version : [CLOSED] Component.applyState() not overrideable?



DataSurfer
29 Apr 2009, 9:22 AM
Why is Component.applyState protected and not public as seems is intended by Component.initState()?

sven
29 Apr 2009, 9:24 AM
Because you are not calling it from the outside. CLOSED

sven
29 Apr 2009, 9:25 AM
Also you can override it when it is protected. This is basic Java.

DataSurfer
29 Apr 2009, 9:27 AM
I have custom Components that have state that needs to be saved and applied to and from the StateManager.

How do I do that if my custom components can't override applyState?

sven
29 Apr 2009, 9:27 AM
You can override it.

DataSurfer
29 Apr 2009, 9:28 AM
No I can't its protected

DataSurfer
29 Apr 2009, 9:31 AM
Oops nevermind