Record Class LobbyKeyDispatcher
java.lang.Object
java.lang.Record
megamek.client.ui.panels.phaseDisplay.lobby.LobbyKeyDispatcher
- All Implemented Interfaces:
- KeyEventDispatcher
This key dispatcher catches Ctrl-C / Ctrl-V keypresses in the lobby to allow copy/pasting units without being
 obstructed by focus. If not done in this way, a table such as the player table will catch these key events before the
 Menubar can get them. Thus, the Menubar accelerators for Unit Copy/Paste are only for show, they do not actually
 catch these keys.
- 
Constructor SummaryConstructorsConstructorDescriptionLobbyKeyDispatcher(ChatLounge lobby) Creates an instance of aLobbyKeyDispatcherrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleandispatchKeyEvent(KeyEvent evt) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lobby()Returns the value of thelobbyrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
LobbyKeyDispatcherCreates an instance of aLobbyKeyDispatcherrecord class.- Parameters:
- lobby- the value for the- lobbyrecord component
 
 
- 
- 
Method Details- 
dispatchKeyEvent- Specified by:
- dispatchKeyEventin interface- KeyEventDispatcher
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
lobbyReturns the value of thelobbyrecord component.- Returns:
- the value of the lobbyrecord component
 
 
-