Crossfire JXClient, Trunk
ShortcutSlot.java
Go to the documentation of this file.
1 package com.realtime.crossfire.jxclient.shortcuts;
2 
3 import org.jetbrains.annotations.NotNull;
4 
8 public enum ShortcutSlot {
9 
13  F1(0),
14 
18  F2(1),
19 
23  F3(2),
24 
28  F4(3),
29 
33  F5(4),
34 
38  F6(5),
39 
43  F7(6),
44 
48  F8(7),
49 
53  F9(8),
54 
58  F10(9),
59 
63  F11(10),
64 
68  F12(11);
69 
73  private final int slot;
74 
79  ShortcutSlot(final int slot) {
80  this.slot = slot;
81  }
82 
87  public int getSlot() {
88  return slot;
89  }
90 
91  @NotNull
92  @Override
93  @SuppressWarnings("MethodDoesntCallSuperMethod")
94  public String toString() {
95  return "F"+(slot+1);
96  }
97 
98 }
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.ShortcutSlot
ShortcutSlot(final int slot)
Creates a new instance.
Definition: ShortcutSlot.java:79
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F10
F10
The F10 key.
Definition: ShortcutSlot.java:58
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F8
F8
The F8 key.
Definition: ShortcutSlot.java:48
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot
A slot in the shortcuts bar.
Definition: ShortcutSlot.java:8
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F12
F12
The F2 key.
Definition: ShortcutSlot.java:68
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.slot
final int slot
The slot.
Definition: ShortcutSlot.java:73
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.getSlot
int getSlot()
Returns the slot number.
Definition: ShortcutSlot.java:87
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F5
F5
The F5 key.
Definition: ShortcutSlot.java:33
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F11
F11
The F11 key.
Definition: ShortcutSlot.java:63
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F9
F9
The F9 key.
Definition: ShortcutSlot.java:53
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F1
F1
The F1 key.
Definition: ShortcutSlot.java:13
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F3
F3
The F3 key.
Definition: ShortcutSlot.java:23
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F6
F6
The F6 key.
Definition: ShortcutSlot.java:38
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F2
F2
The F2 key.
Definition: ShortcutSlot.java:18
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F7
F7
The F7 key.
Definition: ShortcutSlot.java:43
com.realtime.crossfire.jxclient.shortcuts.ShortcutSlot.F4
F4
The F4 key.
Definition: ShortcutSlot.java:28