Browse Source

add _onFocusOut abstract method

PHP-GTK3
yggverse 4 months ago
parent
commit
faa85d7292
  1. 15
      src/Abstract/Entity/Entry.php
  2. 5
      src/Entity/Browser/Container/Page/Navbar/Request.php
  3. 5
      src/Entity/Browser/Container/Page/Response/Query.php
  4. 5
      src/Entity/Browser/History/Container/Navbar/Filter.php

15
src/Abstract/Entity/Entry.php

@ -71,6 +71,17 @@ abstract class Entry
); );
} }
); );
$this->gtk->connect(
'focus-out-event',
function (
\GtkEntry $entry
) {
$this->_onFocusOut(
$entry
);
}
);
} }
abstract protected function _onActivate( abstract protected function _onActivate(
@ -86,6 +97,10 @@ abstract class Entry
\GtkEntry $entry \GtkEntry $entry
): void; ): void;
abstract protected function _onFocusOut(
\GtkEntry $entry
): void;
public function setLength( public function setLength(
?int $value = null ?int $value = null
): void ): void

5
src/Entity/Browser/Container/Page/Navbar/Request.php

@ -56,4 +56,9 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb
); );
} }
} }
protected function _onFocusOut(
\GtkEntry $entry
): void
{}
} }

5
src/Entity/Browser/Container/Page/Response/Query.php

@ -41,6 +41,11 @@ class Query extends \Yggverse\Yoda\Abstract\Entity\Entry
): void ): void
{} {}
protected function _onFocusOut(
\GtkEntry $entry
): void
{}
public function refresh(): void public function refresh(): void
{ {
// @TODO // @TODO

5
src/Entity/Browser/History/Container/Navbar/Filter.php

@ -31,4 +31,9 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Na
\GtkEntry $entry \GtkEntry $entry
): void ): void
{} {}
protected function _onFocusOut(
\GtkEntry $entry
): void
{}
} }
Loading…
Cancel
Save