mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1403: Enhance ability to extend core classes like ContactItem, ContactGroup, etc through plugin (phase 4)
-GroupChatParticipantList - exposed some fields(protected get methods) and changed some methods from private to protected -LoginDialog - introduced afterLogin method that does nothing but can be overwritten by subclasses - it is automatically called after successful login. It is useful when subclasses would like to do some additional settings after login -created new protected method to retrieve _usernames git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12585 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -221,6 +221,11 @@ public class LoginDialog {
|
||||
protected boolean beforeLoginValidations() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void afterLogin() {
|
||||
// Does noting by default - but can be overwritten by subclasses to provide additional
|
||||
// settings
|
||||
}
|
||||
|
||||
/**
|
||||
* Define Login Panel implementation.
|
||||
@ -740,6 +745,7 @@ public class LoginDialog {
|
||||
setLoginServer(getServerName());
|
||||
boolean loginSuccessfull = beforeLoginValidations() && login();
|
||||
if (loginSuccessfull) {
|
||||
afterLogin();
|
||||
progressBar.setText(Res.getString("message.connecting.please.wait"));
|
||||
|
||||
// Startup Spark
|
||||
@ -1443,7 +1449,10 @@ public class LoginDialog {
|
||||
protected void setLoginServer(String loginServer) {
|
||||
this.loginServer = loginServer;
|
||||
}
|
||||
|
||||
|
||||
protected ArrayList<String> getUsernames() {
|
||||
return _usernames;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user