public void setEnable(boolean flag) {
        if (flag == mIsEnabled)
            return;

        mIsEnabled = flag;

        if (getNative() != 0)
        {
            NativeComponent.setEnable(getNative(), flag);
        }
        if (flag)
        {
            onEnable();
        }
        else
        {
            onDisable();
        }
    }
public void setEnable ( boolean flag ) { if ( flag == mIsEnabled ) return ; mIsEnabled = flag ; if ( getNative ( ) != 0 ) { NativeComponent . setEnable ( getNative ( ) , flag ) ; } if ( flag ) { onEnable ( ) ; } else { onDisable ( ) ; } }
Enable or disable this component.
@param flag true to enable, false to disable.
@see #enable()
@see #disable()
@see #isEnabled()