Package VASSAL.chat
Class ServerAddressBook
java.lang.Object
VASSAL.chat.ServerAddressBook
public class ServerAddressBook extends Object
-
Field Summary
Fields Modifier and Type Field Description protected static StringADDRESS_PREFprotected intCONTROLS_ICON_SIZEstatic StringCURRENT_SERVERprotected static StringDESCRIPTION_KEYprotected static StringDYNAMIC_TYPEprotected static StringJABBER_TYPEprotected intLEAF_ICON_SIZEprotected static StringLEGACY_TYPEprotected static StringP2P_CLIENT_MODEDeprecated, for removal: This API element is subject to removal in a future version.protected static StringP2P_MODE_KEYDeprecated, for removal: This API element is subject to removal in a future version.protected static StringP2P_SERVER_MODEDeprecated, for removal: This API element is subject to removal in a future version.protected static StringP2P_TYPEprotected static StringTYPE_KEY -
Constructor Summary
Constructors Constructor Description ServerAddressBook() -
Method Summary
Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener l)static voidchangeServerPopup(JComponent source)static voideditCurrentServer(boolean connected)JComponentgetControls()StringgetCurrentDescription()IcongetCurrentIcon()protected PropertiesgetCurrentServerProperties()PropertiesgetDefaultServerProperties()Set up the default serverstatic StringgetExternalAddress()static StringgetExternalAddress(String dflt)static ServerAddressBookgetInstance()static StringgetLocalAddress()booleanisEnabled()voidremovePropertyChangeListener(PropertyChangeListener l)voidsetCurrentServer(Properties p)voidsetEnabled(boolean b)voidsetFrozen(boolean b)voidshowPopup(JComponent source)
-
Field Details
-
CURRENT_SERVER
- See Also:
- Constant Field Values
-
ADDRESS_PREF
- See Also:
- Constant Field Values
-
LEGACY_TYPE
- See Also:
- Constant Field Values
-
DYNAMIC_TYPE
- See Also:
- Constant Field Values
-
JABBER_TYPE
- See Also:
- Constant Field Values
-
P2P_TYPE
- See Also:
- Constant Field Values
-
P2P_MODE_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
P2P_SERVER_MODE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
P2P_CLIENT_MODE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
TYPE_KEY
- See Also:
- Constant Field Values
-
DESCRIPTION_KEY
- See Also:
- Constant Field Values
-
LEAF_ICON_SIZE
protected final int LEAF_ICON_SIZE- See Also:
- Constant Field Values
-
CONTROLS_ICON_SIZE
protected final int CONTROLS_ICON_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
ServerAddressBook
public ServerAddressBook()
-
-
Method Details
-
getInstance
-
editCurrentServer
public static void editCurrentServer(boolean connected) -
changeServerPopup
-
getLocalAddress
-
getExternalAddress
-
getExternalAddress
-
getControls
-
setEnabled
public void setEnabled(boolean b) -
isEnabled
public boolean isEnabled() -
setFrozen
public void setFrozen(boolean b) -
setCurrentServer
-
getCurrentServerProperties
-
showPopup
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getCurrentIcon
-
getCurrentDescription
-
getDefaultServerProperties
Set up the default server- Returns:
-