Class RoomInteractionControlsInitializer
java.lang.Object
VASSAL.chat.ui.RoomInteractionControlsInitializer
- All Implemented Interfaces:
ChatControlsInitializer
- Direct Known Subclasses:
LockableRoomControls
Adds mouse listeners to the RoomTree components: double-click to join a room, etc. Builds a popup when right-clicking
on a player or room
- Author:
- rkinney
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChatServerConnection
static final Font
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
buildPopupForPlayer
(SimplePlayer target, JTree tree) buildPopupForRoom
(Room room, JTree tree) protected void
createRoom
(String name) void
doubleClickRoom
(Room room, JTree tree) void
initializeControls
(ChatServerControls controls) Register all event listenersvoid
uninitializeControls
(ChatServerControls controls) Remove all previously-registered event listeners
-
Field Details
-
POPUP_MENU_FONT
Deprecated, for removal: This API element is subject to removal in a future version. -
client
-
-
Constructor Details
-
RoomInteractionControlsInitializer
-
-
Method Details
-
initializeControls
Description copied from interface:ChatControlsInitializer
Register all event listeners- Specified by:
initializeControls
in interfaceChatControlsInitializer
-
createRoom
-
buildPopupForRoom
-
doubleClickRoom
-
addPlayerActionFactory
-
addRoomActionFactory
-
buildPopupForPlayer
-
uninitializeControls
Description copied from interface:ChatControlsInitializer
Remove all previously-registered event listeners- Specified by:
uninitializeControls
in interfaceChatControlsInitializer
-