API Docs for:
Show:

File: src/main/resources/js/DumbControl.js

/**
 * dynamic html for TiledImage 
 * $Id: DumbControl.js 11 2013-04-06 21:25:54Z nazotoko $
 * Copyright 2013 Shun N. Watanabe <nazotoko (a+) users.sourceforge.net>
 * @module TiledImage
 */

/**
 * DumbControl class. It controls TiledImage by nothing. This is a template
 * for developper.
 * @class DumbControl
 * @constructor
 */
function DumbControl(){
    /**
     * self: private scope of this
     * @private
     * @property self
     * @type Object
     * @default this
     */
    var self=this,
    /**
     * parent (TiledImage) pointer 
     * @private
     * @property parent
     * @type Object
     */
    parent;
    d.mod(this,{
	/**
	 * Called from TiledImage object
	 * @public
	 * @method setParent
	 * @required
	 * @param {Object} p parent (TiledImage) object.
	 * @return {Object} this.elist event list
	 */
	setParent:function (p){
	    parent=p;
	    /**
	     * Event list
	     * @property elist
	     * @type Array
	     * @required
	     * @public
	     */
	    return this.elist=[]; //{m:'click',t:this.control,f:this.click} //event list
	},
// add some functions for events. 
/*	click:function(e){
	    if(!e){e=window.event;}
	    alert("button="+e.button+" at "+e.clientX+","+e.clientY);
	},*/
	detach:function(){

	}
    });
};