Exemplo n.º 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((action == null) ? 0 : action.hashCode());
   result = prime * result + ((name == null) ? 0 : name.hashCode());
   return result;
 }
Exemplo n.º 2
0
 public void resetAction() {
   for (Action action : Action.values()) {
     getActionMap().put(action, true);
   }
 }