Overridden methods in the autocomplete comp should be protected.
This commit is contained in:
parent
8376cf3e8f
commit
34abb38d39
@ -17,8 +17,7 @@ import java.util.Iterator;
|
||||
*
|
||||
* private static final long serialVersionUID = 1L;
|
||||
*
|
||||
* @Override
|
||||
* public void action(AjaxRequestTarget pTarget, Employee newSelection) {
|
||||
* protected void action(AjaxRequestTarget pTarget, Employee newSelection) {
|
||||
* System.out.println(newSelection.getNameAsString());
|
||||
* }
|
||||
*
|
||||
@ -74,7 +73,7 @@ public abstract class AuthorAutoComplete extends AutoCompleteObjectField<Student
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNewSelection(AjaxRequestTarget pTarget, Student newSelection) {
|
||||
protected void onNewSelection(AjaxRequestTarget pTarget, Student newSelection) {
|
||||
super.onNewSelection(pTarget, newSelection);
|
||||
if (newSelection != null) {
|
||||
if (pTarget != null) {
|
||||
@ -91,8 +90,8 @@ public abstract class AuthorAutoComplete extends AutoCompleteObjectField<Student
|
||||
/**
|
||||
* Override this method for actions to be performed when an object is selected.
|
||||
*
|
||||
* @param pTarget
|
||||
* @param newSelection
|
||||
* @param pTarget ajax
|
||||
* @param newSelection employee
|
||||
*/
|
||||
public abstract void action(AjaxRequestTarget pTarget, Student newSelection);
|
||||
protected abstract void action(AjaxRequestTarget pTarget, Student newSelection);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user