public class Account
extends java.lang.Object
Constructor and Description |
---|
Account(AccountID accountID)
Creates an account object with the given accountName and
icon.
|
Account(ProtocolProviderService protocolProvider)
Creates an Account instance from the given
protocolProvider.
|
Modifier and Type | Method and Description |
---|---|
AccountID |
getAccountID()
Returns the account identifier.
|
javax.swing.JCheckBox |
getEnableCheckBox()
Returns the enable check box corresponding to this account.
|
javax.swing.Icon |
getIcon()
The icon of the account.
|
java.lang.String |
getName()
Returns the account name.
|
java.lang.String |
getProtocolName()
Returns the protocol name of the account.
|
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider, on which this account is based.
|
javax.swing.Icon |
getStatusIcon()
Returns the status icon of this account.
|
java.lang.String |
getStatusName()
Returns the status name.
|
boolean |
isEnabled()
Returns true to indicate that this account is enabled,
false - otherwise.
|
void |
setEnableCheckBox(javax.swing.JCheckBox enableCheckBox)
Sets the enable check box.
|
void |
setEnabled(boolean isEnabled)
Sets the isDisabled property.
|
void |
setProtocolProvider(ProtocolProviderService protocolProvider)
Sets the given protocolProvider to this account.
|
java.lang.String |
toString()
Returns the string representation of this account.
|
public Account(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol provider on which this account is
basedpublic Account(AccountID accountID)
accountID
- the identifier of the accountpublic ProtocolProviderService getProtocolProvider()
public AccountID getAccountID()
public java.lang.String getName()
public java.lang.String getProtocolName()
public javax.swing.Icon getIcon()
public java.lang.String getStatusName()
public javax.swing.Icon getStatusIcon()
public boolean isEnabled()
public void setProtocolProvider(ProtocolProviderService protocolProvider)
protocolProvider
- the ProtocolProviderService
corresponding to this accountpublic void setEnabled(boolean isEnabled)
isEnabled
- indicates if this account is currently
disabledpublic void setEnableCheckBox(javax.swing.JCheckBox enableCheckBox)
enableCheckBox
- the enable check box corresponding to this accountpublic javax.swing.JCheckBox getEnableCheckBox()
public java.lang.String toString()
toString
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.