You need to sign in to do that
Don't have an account?
parkerAPT
Can you extend Non-User classes, like SelectOption?
I'm trying to extend the SelectOption class. Does visualforce allow this?
public abstract class ActionableSelectOption extends SelectOption {
public ActionableSelectOption(String val, String labl){
this(val, labl,false);
}
public ActionableSelectOption(String val, String lab, Boolean isDisabled){
super(val,lab,isDisabled);
}
// The method that gets called to perform whatever action is associated with this Selected Item
public abstract boolean performAction();
}
I get the following error message:
Save error: ActionableSelectOption: Non-exception class must extend another user-defined non-exception class: SelectOption
Thanks
P
public abstract class ActionableSelectOption extends SelectOption {
public ActionableSelectOption(String val, String labl){
this(val, labl,false);
}
public ActionableSelectOption(String val, String lab, Boolean isDisabled){
super(val,lab,isDisabled);
}
// The method that gets called to perform whatever action is associated with this Selected Item
public abstract boolean performAction();
}
I get the following error message:
Save error: ActionableSelectOption: Non-exception class must extend another user-defined non-exception class: SelectOption
Thanks
P
dchasman
No really a VF issue - and the answer is current no Apex Code does not support this type of extension. Can you provide some more info about why you need to do this - we'll try to help identify alternate approaches.