001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    package graphlab.ui.actions;
005    
006    /**
007     * This kind of Object will be send to blackboard whenever any ui action's(i.e. menu pressing) occurd
008     *
009     * @author Azin Azadi
010     */
011    
012    public class UIEventData {
013        public static final String name = "UIEventData";
014    
015        public static String name(String id) {
016            //chon tooie blCK BOARD DAR HALE HAzer nemishe be hameie eventa addListener kard pas felan majbooram in eventa ro hamashopono ba ie esm dashte basha ta betoonam addListener konam
017            return name + "." + id;
018        }
019    
020        String event(String id) {
021            return name(id);
022        }
023    
024        public static final int PREF = 0;
025        public static final int ACTION = 1;
026    
027        public int eventType;
028        /**
029         * the name of the action, this event should be passed to, the action should be loaded via XML to be known to UI.
030         */
031        public String action;
032    }