001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.plugins.eventbus.gui.util; 003 004import java.util.EventObject; 005 006/** 007 * Event fired when pressed extended modifier keys change is detected. 008 */ 009public class ModifierExChangedEvent extends EventObject { 010 011 private static final long serialVersionUID = 1L; 012 013 private final int modifiers; 014 015 /** 016 * Constructs a new {@code ModifierExChangedEvent}. 017 * @param source object on which the Event initially occurred 018 * @param modifiers the new extended modifiers 019 */ 020 public ModifierExChangedEvent(Object source, int modifiers) { 021 super(source); 022 this.modifiers = modifiers; 023 } 024 025 /** 026 * Returns the new extended modifiers. 027 * @return the new extended modifiers 028 */ 029 public final int getModifiers() { 030 return modifiers; 031 } 032}