Add ContactListCellFactory
- Refactor chatList to userList in ContactSearchScene and GroupCreationScene - Narrow contact searches down to users on a datamodel basis - Refactor ContactSearchRequest and ContactSearchResult to UserSearchRequest and UserSearchResult
This commit is contained in:
		@@ -1,26 +0,0 @@
 | 
			
		||||
package envoy.event.contact;
 | 
			
		||||
 | 
			
		||||
import envoy.event.Event;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Requests a contact search from the server.<br>
 | 
			
		||||
 * <br>
 | 
			
		||||
 * Project: <strong>envoy-common</strong><br>
 | 
			
		||||
 * File: <strong>ContactSearchRequest.java</strong><br>
 | 
			
		||||
 * Created: <strong>05.02.2020</strong><br>
 | 
			
		||||
 *
 | 
			
		||||
 * @author Maximilian Käfer
 | 
			
		||||
 * @since Envoy Common v0.2-alpha
 | 
			
		||||
 */
 | 
			
		||||
public class ContactSearchRequest extends Event<String> {
 | 
			
		||||
 | 
			
		||||
	private static final long serialVersionUID = 0L;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Initializes a {@link ContactSearchRequest}.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param searchPhrase the search phrase to use in the contact search
 | 
			
		||||
	 * @since Envoy Common v0.2-alpha
 | 
			
		||||
	 */
 | 
			
		||||
	public ContactSearchRequest(String searchPhrase) { super(searchPhrase); }
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,26 @@
 | 
			
		||||
package envoy.event.contact;
 | 
			
		||||
 | 
			
		||||
import envoy.event.Event;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Requests a user search from the server.
 | 
			
		||||
 * <p>
 | 
			
		||||
 * Project: <strong>envoy-common</strong><br>
 | 
			
		||||
 * File: <strong>UserSearchRequest.java</strong><br>
 | 
			
		||||
 * Created: <strong>05.02.2020</strong><br>
 | 
			
		||||
 *
 | 
			
		||||
 * @author Maximilian Käfer
 | 
			
		||||
 * @since Envoy Common v0.2-alpha
 | 
			
		||||
 */
 | 
			
		||||
public class UserSearchRequest extends Event<String> {
 | 
			
		||||
 | 
			
		||||
	private static final long serialVersionUID = 0L;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Initializes a {@link UserSearchRequest}.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param searchPhrase the search phrase to use in the user search
 | 
			
		||||
	 * @since Envoy Common v0.2-alpha
 | 
			
		||||
	 */
 | 
			
		||||
	public UserSearchRequest(String searchPhrase) { super(searchPhrase); }
 | 
			
		||||
}
 | 
			
		||||
@@ -2,28 +2,28 @@ package envoy.event.contact;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import envoy.data.Contact;
 | 
			
		||||
import envoy.data.User;
 | 
			
		||||
import envoy.event.Event;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Contains a list of {@link Contact}s for which a search was performed.<br>
 | 
			
		||||
 * <br>
 | 
			
		||||
 * Contains a list of users for which a search has been requested.
 | 
			
		||||
 * <p>
 | 
			
		||||
 * Project: <strong>envoy-common</strong><br>
 | 
			
		||||
 * File: <strong>ContactSearchResult.java</strong><br>
 | 
			
		||||
 * File: <strong>UserSearchResult.java</strong><br>
 | 
			
		||||
 * Created: <strong>11 Feb 2020</strong><br>
 | 
			
		||||
 *
 | 
			
		||||
 * @author Kai S. K. Engelbart
 | 
			
		||||
 * @since Envoy Common v0.2-alpha
 | 
			
		||||
 */
 | 
			
		||||
public class ContactSearchResult extends Event<List<Contact>> {
 | 
			
		||||
public class UserSearchResult extends Event<List<User>> {
 | 
			
		||||
 | 
			
		||||
	private static final long serialVersionUID = 0L;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Creates an instance of {@link ContactSearchResult}.
 | 
			
		||||
	 * Creates an instance of {@link UserSearchResult}.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param users the users found during the search
 | 
			
		||||
	 * @since Envoy Common v0.2-alpha
 | 
			
		||||
	 */
 | 
			
		||||
	public ContactSearchResult(List<Contact> users) { super(users); }
 | 
			
		||||
	public UserSearchResult(List<User> users) { super(users); }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user