Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > Control.js (source view)
Search:
 
Filters
/**
 * OpenLayers.Control<br/>
 * 
 * @class Control
 * @constructor
 * @namespace OpenLayers
 * @param {Object} options 레이어 옵션 hashtable
 */
OpenLayers.Control = OpenLayers.Class({
	id: null,
	map: null,
	/**
	* @property div
	* @type {DOMElement}
	*/
	div: null,
	/**
	* @property type
	* @type {Number}
	*/
	type: null,
	/**
	* tooltip
	* @property title
	* @type {String}
	*/
	title: null,
	/**
	* 디폴트 false
	* @property autoActivate
	* @type {Boolean}
	*/	
	autoActivate: false,
	/**
	* (read-only)
	* @property active
	* @type {Boolean}
	*/
	active: null,
	/**
	* 컨트롤 생성자 옵션에 설정해 컨트롤을 생성하면 eventListeners 에 있는 이벤트를 등록해준다.
	* @property eventListeners
	* @type {Object}
	*/
	eventListeners: null,
	/**
	* @property events
	* @type {OpenLayers.Events}
	*/
	events: null,
	/**
	* 이벤트 타입<BR/>
	* 아래와 같이 이벤트 리스너를 등록하면 된다.<BR/>
	* control.events.register(type, obj, listener); <BR/>
	* control.events.unregister(type, obj, listener); <BR/>
	* 또는<BR/>
	* control.events.on({type:listener,"scope":obj});<BR/>
	* control.events.un({type:listener,"scope":obj});<BR/>
	* 지원하는 이벤트 타입
	* activate - activated 할때 발생<BR/>
	* deactivate - deactivated 할때 발생<BR/>
	* @property EVENT_TYPES
	* @final
	* @type {Array(String)}
	*/
	EVENT_TYPES: ["activate", "deactivate"],
	/**
	* @method activate
	* @return {Boolean} alreadyActive
	*/
	activate: function(){},
	/**
	* @method deactivate
	* @return {Boolean} alreadyDeactive
	*/
	deactivate: function(){},
	/**
	* @property TYPE_BUTTON
	* @static
	* @final
	* @type {Number}
	*/
	OpenLayers.Control.TYPE_BUTTON: 1,
	/**
	* @property TYPE_TOGGLE
	* @static
	* @final
	* @type {Number}
	*/
	OpenLayers.Control.TYPE_TOGGLE: 2,
	/**
	* @property TYPE_TOOL
	* @static
	* @final
	* @type {Number}
	*/
	OpenLayers.Control.TYPE_TOOL: 3
});

Copyright © 2012 Yahoo! Inc. All rights reserved.