﻿   /**
     * 基本操作类

     * @return function
     */
    function KBaseControl()
    {
 
    }
    
    /**
	 * 设置控件左边位置
	 */
    var KBaseControl_setLeft = function(TP)
    {
        this.getObject().style.left = KBase.getUserInput(TP);
    }
    
    /**
	 * 设置控件右边位置
	 */
    var KBaseControl_setRight = function(TP)
    {
        this.getObject().style.right = KBase.getUserInput(TP);
    }
    
    /**
	 * 设置控件顶部位置
	 */
    var KBaseControl_setTop = function(TP)
    {
        this.getObject().style.top = KBase.getUserInput(TP);
    }
    
    /**
	 * 设置控件底部位置
	 */
    var KBaseControl_setBottom = function(TP)
    {
        this.getObject().style.bottom = KBase.getUserInput(TP);
    }
    
    /**
	 * 设置控件是否可见
	 */
    var KBaseControl_setVisible = function(jF)
    {
        this.getObject().style.visibility = jF ? "visible" : "hidden";
    }
    
    /**
	 * 设置控件的透明度

	 */
    var KBaseControl_setOpacity = function(sI)
    {
        KBase.setOpacity(this.getObject(), sI);
    }

    KConfig.defineClass("KBaseControl", KBaseControl);
    KConfig.defineStaticFunction(KBaseControl, "setLeft", KBaseControl_setLeft);
    KConfig.defineStaticFunction(KBaseControl, "setRight", KBaseControl_setRight);
    KConfig.defineStaticFunction(KBaseControl, "setTop", KBaseControl_setTop);
    KConfig.defineStaticFunction(KBaseControl, "setBottom", KBaseControl_setBottom);
    KConfig.defineStaticFunction(KBaseControl, "setVisible", KBaseControl_setVisible);
    KConfig.defineStaticFunction(KBaseControl, "setOpacity", KBaseControl_setOpacity);