@@ -0,0 +1,1857 @@
+/*%0A * Copyright (c) 2003 by Cosylab d.o.o.%0A *%0A * The full license specifying the redistribution, modification, usage and other%0A * rights and obligations is included with the distribution of this project in%0A * the file license.html. If the license is not included you may find a copy at%0A * http://www.cosylab.com/legal/abeans_license.htm or may write to Cosylab, d.o.o.%0A *%0A * THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE%0A * IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES%0A * _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION,%0A * OR REDISTRIBUTION OF THIS SOFTWARE.%0A */%0A%0Apackage com.cosylab.events;%0A%0Aimport java.util.EventObject;%0A%0A%0A/**%0A * Notifys listeners that user set action was performed on number displayer.%0A *%0A * @author Ales Pucelj%0A * @version $$id$$%0A */%0Apublic class SetEvent extends EventObject%0A%7B%0A%09private final Number value;%0A%0A%09/**%0A%09 * Constructor for SliderSetEvent.%0A%09 *%0A%09 * @param source Object%0A%09 * @param newValue double%0A%09 */%0A%09public SetEvent(Object source, double newValue)%0A%09%7B%0A%09%09super(source);%0A%09%09value = new Double(newValue);%0A%09%7D%0A%0A%09/**%0A%09 * Constructor for SliderSetEvent.%0A%09 *%0A%09 * @param source Object%0A%09 * @param newValue Object%0A%09 *%0A%09 * @throws NullPointerException DOCUMENT ME!%0A%09 */%0A%09public SetEvent(Object source, Number newValue)%0A%09%7B%0A%09%09super(source);%0A%0A%09%09if (newValue == null) %7B%0A%09%09%09throw new NullPointerException(%22newValue == null%22);%0A%09%09%7D%0A%0A%09%09value = newValue;%0A%09%7D%0A%0A%09/**%0A%09 * Returns value which was set by user.%0A%09 *%0A%09 * @return Number%0A%09 */%0A%09public Number getValue()%0A%09%7B%0A%09%09return value;%0A%09%7D%0A%0A%09/**%0A%09 * Returns set value as double.%0A%09 *%0A%09 * @return double%0A%09 */%0A%09public double getDoubleValue()%0A%09%7B%0A%09%09return value.doubleValue();%0A%09%7D%0A%0A%09/**%0A%09 * Returns set value as long.%0A%09 *%0A%09 * @return double%0A%09 */%0A%09public long getLongValue()%0A%09%7B%0A%09%09return value.longValue();%0A%09%7D%0A%7D%0A%0A/* __oOo__ */%0A

Add dependency 'SetEvent' from Cosy library.