Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.account
Class Account

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.account.Account

public class Account
extends Object

Represents an account in the account list.

Author:
Yana Stamcheva, Adam Netocny

Constructor Summary
Account(AccountID accountID)
          Creates an account object with the given accountName and icon.
Account(ProtocolProviderService protocolProvider)
          Creates an Account instance from the given protocolProvider.
 
Method Summary
 AccountID getAccountID()
          Returns the account identifier.
 JCheckBox getEnableCheckBox()
          Returns the enable check box corresponding to this account.
 Icon getIcon()
          The icon of the account.
 String getName()
          Returns the account name.
 String getProtocolName()
          Returns the protocol name of the account.
 ProtocolProviderService getProtocolProvider()
          Returns the protocol provider, on which this account is based.
 Icon getStatusIcon()
          Returns the status icon of this account.
 String getStatusName()
          Returns the status name.
 boolean isEnabled()
          Returns true to indicate that this account is enabled, false - otherwise.
 void setEnableCheckBox(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.
 String toString()
          Returns the string representation of this account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Account

public Account(ProtocolProviderService protocolProvider)
Creates an Account instance from the given protocolProvider.

Parameters:
protocolProvider - the protocol provider on which this account is based

Account

public Account(AccountID accountID)
Creates an account object with the given accountName and icon.

Parameters:
accountID - the identifier of the account
Method Detail

getProtocolProvider

public ProtocolProviderService getProtocolProvider()
Returns the protocol provider, on which this account is based.

Returns:
the protocol provider, on which this account is based

getAccountID

public AccountID getAccountID()
Returns the account identifier.

Returns:
the account identifier

getName

public String getName()
Returns the account name.

Returns:
the account name

getProtocolName

public String getProtocolName()
Returns the protocol name of the account.

Returns:
the protocol name of the account

getIcon

public Icon getIcon()
The icon of the account.

Returns:
the icon of the account

getStatusName

public String getStatusName()
Returns the status name.

Returns:
the status name

getStatusIcon

public Icon getStatusIcon()
Returns the status icon of this account.

Returns:
the status icon of this account

isEnabled

public boolean isEnabled()
Returns true to indicate that this account is enabled, false - otherwise.

Returns:
true to indicate that this account is enabled, false - otherwise

setProtocolProvider

public void setProtocolProvider(ProtocolProviderService protocolProvider)
Sets the given protocolProvider to this account.

Parameters:
protocolProvider - the ProtocolProviderService corresponding to this account

setEnabled

public void setEnabled(boolean isEnabled)
Sets the isDisabled property.

Parameters:
isEnabled - indicates if this account is currently disabled

setEnableCheckBox

public void setEnableCheckBox(JCheckBox enableCheckBox)
Sets the enable check box.

Parameters:
enableCheckBox - the enable check box corresponding to this account

getEnableCheckBox

public JCheckBox getEnableCheckBox()
Returns the enable check box corresponding to this account.

Returns:
the enable check box corresponding to this account

toString

public String toString()
Returns the string representation of this account.

Overrides:
toString in class Object
Returns:
the string representation of this account

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.