|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.gui.JbbLogin
public class JbbLogin
This class provides common services for handling the login information of a user It is typically used in the context of a client application where a user has to to log in...
| Constructor Summary | |
|---|---|
JbbLogin()
constructor |
|
| Method Summary | |
|---|---|
void |
addListener(JbbLoginListener zListener)
Call this method to register to be notified of application login changes |
boolean |
askUserToLogIn(DlgLogin zDlg)
|
boolean |
askUserToLogIn(JComponent zParent,
String zLogoImage,
boolean zDisplayServerUrl)
|
static JbbLogin |
getInstance()
This method returns an instance of the Login class. |
String |
getServerUrl()
|
JbbUser |
getUser()
|
void |
removeListener(JbbLoginListener zListener)
Call this method to remove a previously registered listener |
void |
setServerUrl(String zServerUrl)
|
void |
setUser(JbbUser zUser)
|
void |
setUserName(String zUserName)
|
void |
usePreferences(boolean zUsePreferences)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbbLogin()
| Method Detail |
|---|
public static final JbbLogin getInstance()
public void usePreferences(boolean zUsePreferences)
throws Exception
zUsePreferences - true to use them, false otherwise
Exceptionpublic void addListener(JbbLoginListener zListener)
zListener - a reference to an instance of a class that implements the
LoginListener interface.public void removeListener(JbbLoginListener zListener)
zListener - a reference to an instance of a class that implements the
LoginListener interface.public JbbUser getUser()
public String getServerUrl()
public void setUserName(String zUserName)
throws Exception
zUserName -
Exceptionpublic void setServerUrl(String zServerUrl)
zServerUrl - the server Url
public void setUser(JbbUser zUser)
throws Exception
zUser -
Exception
public boolean askUserToLogIn(JComponent zParent,
String zLogoImage,
boolean zDisplayServerUrl)
throws Exception
zParent - zLogoImage - zDisplayServerUrl -
Exception
public boolean askUserToLogIn(DlgLogin zDlg)
throws Exception
zDlg - the login dialog to use
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||