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 String
ADDRESS_PREF
protected int
CONTROLS_ICON_SIZE
static String
CURRENT_SERVER
protected static String
DESCRIPTION_KEY
protected static String
DYNAMIC_TYPE
protected static String
JABBER_TYPE
protected int
LEAF_ICON_SIZE
protected static String
LEGACY_TYPE
protected static String
P2P_CLIENT_MODE
Deprecated, for removal: This API element is subject to removal in a future version.protected static String
P2P_MODE_KEY
Deprecated, for removal: This API element is subject to removal in a future version.protected static String
P2P_SERVER_MODE
Deprecated, for removal: This API element is subject to removal in a future version.protected static String
P2P_TYPE
protected static String
TYPE_KEY
-
Constructor Summary
Constructors Constructor Description ServerAddressBook()
-
Method Summary
Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener l)
static void
changeServerPopup(JComponent source)
static void
editCurrentServer(boolean connected)
JComponent
getControls()
String
getCurrentDescription()
Icon
getCurrentIcon()
protected Properties
getCurrentServerProperties()
Properties
getDefaultServerProperties()
Set up the default serverstatic String
getExternalAddress()
static String
getExternalAddress(String dflt)
static ServerAddressBook
getInstance()
static String
getLocalAddress()
boolean
isEnabled()
void
removePropertyChangeListener(PropertyChangeListener l)
void
setCurrentServer(Properties p)
void
setEnabled(boolean b)
void
setFrozen(boolean b)
void
showPopup(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:
-