Set this window active

@return $this
420714
public function focus()
    {
        $params = ['name' => $this->windowHandle];
        $command = $this->driver->factoryCommand('window', WebDriver_Command::METHOD_POST, $params);
        $this->driver->curl($command);
        return $this;
    }
523640
public function setActive(int $value) : User
    {

        if ($this->data['active'] !== $value) {
            $this->data['active'] = $value;
            $this->setModified('active');
        }

        return $this;
    }
1004964
public function actionActiveWindowCallback()
    {
        $this->checkAccess('active-window-callback');
        
        $config = $this->model->getNgRestConfig();
        $render = new RenderActiveWindowCallback();
        $ngrest = new NgRest($config);
    
        return $ngrest->render($render);
    }
1218376
public function enaThumbView()
    {
        $properties = $this->getProperties();
        $properties['thumbView'] = self::BOOLEAN_TRUE;
        $this->setProperties($properties);
        return $this;
    }
731165
public function active()
    {
        $uri_path = rtrim(urldecode(Grav::instance()['uri']->path()), '/') ?: '/';
        $routes = Grav::instance()['pages']->routes();

        return isset($routes[$uri_path]) && $routes[$uri_path] === $this->path();
    }
841372
public function setInactive() {
		if ($this->_active) {
			$this->removeClass(self::CLASS_ACTIVE);
			$this->_active = false;
		}
		
		return $this;
	}
1296850
public function setIsActive($active)
    {
        $active = $active ? true : false;
        $this->isActive = $active;

        return $this;
    }
1088789
public function setActive($isActive)
    {
        $this->isActive = (bool) $isActive;
        
        if ($this->parent !== null) {
            $this->parent->setActive($isActive);
        }
    }
1115178
public function isactive() {
        global $PAGE;

        if ($this->is_section()) {
            $active = $PAGE->navigation->find_active_node();
            while ($active = $active->parent) {
                if ($active->key == $this->key && $active->type == $this->type) {
                    return true;
                }
            }
        }
        return $this->isactive;
    }
1365085
public function adminInit ()
    {
        set_current_screen($this->menuSlug);
        $this->doUserFunc(function (AdminPageMode $mode) {
            return $mode->getInitFunc();
        });
    }
305875
public function active()
    {
        $stats = $this->root()->stats();
        return $this->root()->focused() ? $stats['focused'] : $stats['normal'];
    }
1084938
public function isActive($active = true)
    {
        if (! is_bool($active)) {
            $active = false;
        }
        $this->isActive = $active;

        return $this;
    }
535347
protected function setScript()
    {
        $name = $this->getViewName();
        if (! $this->hasView($name)) {
            return $this->viewNotFound();
        }
        $this->view->setView($name);
    }
1073672
public function SetAsActive()
    {
        $sCurrencyId = $this->id;

        /** @var Request $request */
        $request = ServiceLocator::get('request_stack')->getCurrentRequest();
        $request->getSession()->set(TdbPkgShopCurrency::SESSION_NAME, $sCurrencyId);

        $sDomain = $request->getHost();
        if ('www.' == substr($sDomain, 0, 4)) {
            $sDomain = substr($sDomain, 4);
        }
        setcookie(TdbPkgShopCurrency::SESSION_NAME, base64_encode($sCurrencyId), time() + 60 * 60 * 24 * 365, '/', '.'.$sDomain, false, true);
        $oUser = TdbDataExtranetUser::GetInstance();

        if (!is_null($oUser->id) && !empty($oUser->id) && array_key_exists('pkg_shop_currency_id', $oUser->sqlData) && $oUser->sqlData['pkg_shop_currency_id'] != $sCurrencyId && $oUser->IsLoggedIn()) {
            $oUser->SaveFieldsFast(array('pkg_shop_currency_id' => $sCurrencyId));
        } else {
            $oUser->sqlData['pkg_shop_currency_id'] = $sCurrencyId;
            $oUser->fieldPkgShopCurrencyId = $sCurrencyId;
        }
        TdbPkgShopCurrency::GetActiveInstance(true);

        $this->getEventDispatcher()->dispatch(
            ShopCurrencyEvents::CURRENCY_CHANGED,
            new CurrencyChangedEvent($sCurrencyId)
        );
        // also mark basket as "requires recalculation"
        $oBasket = TShopBasket::GetInstance();
        $oBasket->SetBasketRecalculationFlag(true);
    }
494398
public function menuActive()
    {
        $idParents = self::getIdParents();
        
        if (in_array( $this->id, $idParents ))
        {
            return true;
        }
        return false;
    }
298924
void setActive(boolean active) {

        m_deactivationPanel.setVisible(!active);
        m_datesPanel.setVisible(active);
        if (m_seriesCheckBox.getFormValue().booleanValue()) {
            setSerialOptionsVisible(active);
        }
        m_controller.sizeChanged();
    }
649586
public function activateAction()
    {
        $object = $this->getObject();
        
        if (method_exists($object, 'setActive') && method_exists($object, 'getActive')) {
            $object->setActive(($object->getActive()==1) ? 0 : 1);
        }
        
        $this->admin->update($object);        
        
        return new RedirectResponse($this->admin->generateUrl('list'));
    }