From ee949a563f9622bbafbcdbd41269aaa4cfbe0741 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayceff Date: Thu, 7 Aug 2014 15:49:33 +0500 Subject: [PATCH] Update --- api_en/php/concurrent/TimeoutException.rst | 16 ++++ api_en/php/concurrent/index.rst | 1 + api_en/php/io/File.rst | 5 +- api_en/php/io/ResourceStream.rst | 5 ++ api_en/php/lang/InterruptedException.rst | 16 ++++ api_en/php/lang/JavaException.rst | 2 + api_en/php/lang/Process.rst | 89 ++++++++++++++++++++++ api_en/php/lang/SettersGetters.rst | 42 ++++++++++ api_en/php/lang/index.rst | 3 + api_en/php/lib/items.rst | 7 ++ api_en/php/net/HttpClient.rst | 45 +++++++++++ api_en/php/swing/Border.rst | 49 ++++++++++++ api_en/php/swing/SwingWorker.rst | 85 +++++++++++++++++++++ api_en/php/swing/UICombobox.rst | 4 + api_en/php/swing/UIContainer.rst | 13 +++- api_en/php/swing/UIDesktopPanel.rst | 16 ++++ api_en/php/swing/UIDialog.rst | 8 +- api_en/php/swing/UIElement.rst | 28 +++++++ api_en/php/swing/UIFileChooser.rst | 9 +++ api_en/php/swing/UIInternalForm.rst | 48 ++++++++++++ api_en/php/swing/UIListbox.rst | 11 +++ api_en/php/swing/UIMenuItem.rst | 12 +++ api_en/php/swing/UIPopupMenu.rst | 8 ++ api_en/php/swing/UIReader.rst | 12 +++ api_en/php/swing/UIRichTextArea.rst | 56 ++++++++++++++ api_en/php/swing/UITabs.rst | 9 +++ api_en/php/swing/UITextElement.rst | 1 + api_en/php/swing/UITree.rst | 4 + api_en/php/swing/index.rst | 5 ++ api_en/php/swing/text/Style.rst | 31 ++++++++ api_en/php/swing/text/index.rst | 13 ++++ api_ru/php/concurrent/TimeoutException.rst | 16 ++++ api_ru/php/concurrent/index.rst | 1 + api_ru/php/io/File.rst | 5 +- api_ru/php/io/ResourceStream.rst | 5 ++ api_ru/php/lang/InterruptedException.rst | 16 ++++ api_ru/php/lang/JavaException.rst | 2 + api_ru/php/lang/Process.rst | 89 ++++++++++++++++++++++ api_ru/php/lang/SettersGetters.rst | 42 ++++++++++ api_ru/php/lang/index.rst | 3 + api_ru/php/lib/items.rst | 7 ++ api_ru/php/net/HttpClient.rst | 45 +++++++++++ api_ru/php/swing/Border.rst | 49 ++++++++++++ api_ru/php/swing/SwingWorker.rst | 85 +++++++++++++++++++++ api_ru/php/swing/UICombobox.rst | 4 + api_ru/php/swing/UIContainer.rst | 13 +++- api_ru/php/swing/UIDesktopPanel.rst | 16 ++++ api_ru/php/swing/UIDialog.rst | 8 +- api_ru/php/swing/UIElement.rst | 28 +++++++ api_ru/php/swing/UIFileChooser.rst | 9 +++ api_ru/php/swing/UIInternalForm.rst | 48 ++++++++++++ api_ru/php/swing/UIListbox.rst | 11 +++ api_ru/php/swing/UIMenuItem.rst | 12 +++ api_ru/php/swing/UIPopupMenu.rst | 8 ++ api_ru/php/swing/UIReader.rst | 12 +++ api_ru/php/swing/UIRichTextArea.rst | 56 ++++++++++++++ api_ru/php/swing/UITabs.rst | 9 +++ api_ru/php/swing/UITextElement.rst | 1 + api_ru/php/swing/UITree.rst | 4 + api_ru/php/swing/index.rst | 5 ++ api_ru/php/swing/text/Style.rst | 31 ++++++++ api_ru/php/swing/text/index.rst | 13 ++++ en/getstarted.rst | 7 +- 63 files changed, 1300 insertions(+), 13 deletions(-) create mode 100644 api_en/php/concurrent/TimeoutException.rst create mode 100644 api_en/php/lang/InterruptedException.rst create mode 100644 api_en/php/lang/Process.rst create mode 100644 api_en/php/lang/SettersGetters.rst create mode 100644 api_en/php/swing/SwingWorker.rst create mode 100644 api_en/php/swing/UIDesktopPanel.rst create mode 100644 api_en/php/swing/UIInternalForm.rst create mode 100644 api_en/php/swing/UIRichTextArea.rst create mode 100644 api_en/php/swing/text/Style.rst create mode 100644 api_en/php/swing/text/index.rst create mode 100644 api_ru/php/concurrent/TimeoutException.rst create mode 100644 api_ru/php/lang/InterruptedException.rst create mode 100644 api_ru/php/lang/Process.rst create mode 100644 api_ru/php/lang/SettersGetters.rst create mode 100644 api_ru/php/swing/SwingWorker.rst create mode 100644 api_ru/php/swing/UIDesktopPanel.rst create mode 100644 api_ru/php/swing/UIInternalForm.rst create mode 100644 api_ru/php/swing/UIRichTextArea.rst create mode 100644 api_ru/php/swing/text/Style.rst create mode 100644 api_ru/php/swing/text/index.rst diff --git a/api_en/php/concurrent/TimeoutException.rst b/api_en/php/concurrent/TimeoutException.rst new file mode 100644 index 0000000..d4c3adb --- /dev/null +++ b/api_en/php/concurrent/TimeoutException.rst @@ -0,0 +1,16 @@ +TimeoutException +------------------------------- + +.. include:: /api_en.desc/php/concurrent/TimeoutException.header.rst + +.. php:class:: php\\concurrent\\TimeoutException + + **extends**: :doc:`php\\lang\\JavaException ` + + + Class TimeoutException + + + +.. include:: /api_en.desc/php/concurrent/TimeoutException.footer.rst + diff --git a/api_en/php/concurrent/index.rst b/api_en/php/concurrent/index.rst index a1eaa98..e81fe1a 100644 --- a/api_en/php/concurrent/index.rst +++ b/api_en/php/concurrent/index.rst @@ -9,6 +9,7 @@ concurrent ExecutorService.rst Future.rst + TimeoutException.rst .. include:: /api_en.desc/php/concurrent/index.footer.rst diff --git a/api_en/php/io/File.rst b/api_en/php/io/File.rst index 1b35267..0c94581 100644 --- a/api_en/php/io/File.rst +++ b/api_en/php/io/File.rst @@ -114,10 +114,9 @@ File :returns: :doc:`void ` - .. php:method:: createNewFile() - - **throws** :doc:`php\\io\\IOException ` + .. php:method:: createNewFile($withDirs = false) + :param $withDirs: :doc:`bool ` :returns: :doc:`bool ` .. php:method:: lastModified() diff --git a/api_en/php/io/ResourceStream.rst b/api_en/php/io/ResourceStream.rst index ae06438..1d4e949 100644 --- a/api_en/php/io/ResourceStream.rst +++ b/api_en/php/io/ResourceStream.rst @@ -62,6 +62,11 @@ ResourceStream :returns: :doc:`mixed ` + .. php:staticmethod:: getResources($name) + + :param $name: :doc:`string ` + :returns: :doc:`php\\io\\ResourceStream[] ` + .. include:: /api_en.desc/php/io/ResourceStream.footer.rst diff --git a/api_en/php/lang/InterruptedException.rst b/api_en/php/lang/InterruptedException.rst new file mode 100644 index 0000000..1dff7d3 --- /dev/null +++ b/api_en/php/lang/InterruptedException.rst @@ -0,0 +1,16 @@ +InterruptedException +----------------------------- + +.. include:: /api_en.desc/php/lang/InterruptedException.header.rst + +.. php:class:: php\\lang\\InterruptedException + + **extends**: :doc:`php\\lang\\JavaException ` + + + Class InterruptedException + + + +.. include:: /api_en.desc/php/lang/InterruptedException.footer.rst + diff --git a/api_en/php/lang/JavaException.rst b/api_en/php/lang/JavaException.rst index 0e7f53c..3c9e17f 100644 --- a/api_en/php/lang/JavaException.rst +++ b/api_en/php/lang/JavaException.rst @@ -11,9 +11,11 @@ JavaException ---------------------- + * **class** :doc:`php\\concurrent\\TimeoutException ` * **class** :doc:`php\\io\\IOException ` * **class** :doc:`php\\lang\\IllegalArgumentException ` * **class** :doc:`php\\lang\\IllegalStateException ` + * **class** :doc:`php\\lang\\InterruptedException ` * **class** :doc:`php\\lang\\NumberFormatException ` * **class** :doc:`php\\net\\SocketException ` * **class** :doc:`php\\util\\RegexException ` diff --git a/api_en/php/lang/Process.rst b/api_en/php/lang/Process.rst new file mode 100644 index 0000000..0e68212 --- /dev/null +++ b/api_en/php/lang/Process.rst @@ -0,0 +1,89 @@ +Process +---------------- + +.. include:: /api_en.desc/php/lang/Process.header.rst + +.. php:class:: php\\lang\\Process + + Class Process + + + +**Methods** + +---------- + + .. php:method:: __construct($commands, $directory = null) + + :param $commands: :doc:`array ` + :param $directory: :doc:`null `, :doc:`string `, :doc:`php\\io\\File ` + + .. php:method:: start() + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\lang\\Process ` + + .. php:method:: startAndWait() + + Causes the current thread to wait, if necessary, until the + process represented by this `Process` object has + terminated. This method returns immediately if the subprocess + has already terminated. If the subprocess has not yet + terminated, the calling thread will be blocked until the + subprocess exits. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\lang\\Process ` + + .. php:method:: getExitValue() + + Returns the exit value for the subprocess. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`int `, :doc:`null ` - null if process is working + + .. php:method:: destroy() + + Kills the subprocess. The subprocess represented by this + `Process` object is forcibly terminated. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + + .. php:method:: getInput() + + Returns the input stream connected to the normal output of the + subprocess. The stream obtains data piped from the standard + output of the process represented by this `Process` object. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\io\\Stream ` + + .. php:method:: getOutput() + + Returns the output stream connected to the normal input of the + subprocess. Output to the stream is piped into the standard + input of the process represented by this `Process` object. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\io\\Stream ` + + .. php:method:: getError() + + Returns the input stream connected to the error output of the + subprocess. The stream obtains data piped from the error output + of the process represented by this `Process` object. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\io\\Stream ` + + + +.. include:: /api_en.desc/php/lang/Process.footer.rst + diff --git a/api_en/php/lang/SettersGetters.rst b/api_en/php/lang/SettersGetters.rst new file mode 100644 index 0000000..5cf9253 --- /dev/null +++ b/api_en/php/lang/SettersGetters.rst @@ -0,0 +1,42 @@ +SettersGetters +----------------------- + +.. include:: /api_en.desc/php/lang/SettersGetters.header.rst + +.. php:class:: php\\lang\\SettersGetters + + To implement a property with a setter and getter, define the following methods:: + + protected __set[prop_name]($value) // for setter (or not if you want to implement a read-only property) + protected __get[prop_name]() // for getter + + Class Properties + + + +**Methods** + +---------- + + .. php:method:: __set($name, $value) + + :param $name: + :param $value: + + .. php:method:: __get($name) + + :param $name: + :returns: :doc:`mixed ` + + .. php:method:: __isset($name) + + :param $name: + + .. php:method:: __unset($name) + + :param $name: + + + +.. include:: /api_en.desc/php/lang/SettersGetters.footer.rst + diff --git a/api_en/php/lang/index.rst b/api_en/php/lang/index.rst index 5fe4a3c..b8a0ff5 100644 --- a/api_en/php/lang/index.rst +++ b/api_en/php/lang/index.rst @@ -10,6 +10,7 @@ lang Environment.rst IllegalArgumentException.rst IllegalStateException.rst + InterruptedException.rst Invoker.rst JavaClass.rst JavaException.rst @@ -19,6 +20,8 @@ lang JavaReflection.rst Module.rst NumberFormatException.rst + Process.rst + SettersGetters.rst System.rst Thread.rst ThreadGroup.rst diff --git a/api_en/php/lib/items.rst b/api_en/php/lib/items.rst index 5f660a2..9c89cae 100644 --- a/api_en/php/lib/items.rst +++ b/api_en/php/lib/items.rst @@ -36,6 +36,13 @@ items :param $withKeys: :doc:`bool ` :returns: :doc:`array ` + .. php:staticmethod:: toList($collection) + + Example: items::toList(['x' => 10, 20], 30, ['x' => 50, 60]) -> [10, 20, 30, 50, 60] + + :param $collection: + :returns: :doc:`array ` + .. php:staticmethod:: keys($collection) Returns all keys of collection diff --git a/api_en/php/net/HttpClient.rst b/api_en/php/net/HttpClient.rst index 18bf258..63afa2a 100644 --- a/api_en/php/net/HttpClient.rst +++ b/api_en/php/net/HttpClient.rst @@ -6,6 +6,8 @@ HttpClient .. php:class:: php\\net\\HttpClient Class HttpClient + + Cloneable @@ -20,6 +22,34 @@ HttpClient .. php:method:: setHeaders($headers) :param $headers: :doc:`array ` + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setConnectTimeout($value) + + :param $value: :doc:`int ` - - in milliseconds + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setSocketTimeout($value) + + :param $value: :doc:`int ` - - in milliseconds + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setMaxRedirects($value) + + :param $value: :doc:`int ` - -1 means that no limits + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setRedirectsEnabled($value) + + :param $value: :doc:`bool ` + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setProxy($hostname, $port = -1, $scheme = 'http') + + :param $hostname: :doc:`string ` + :param $port: :doc:`int ` + :param $scheme: :doc:`string ` + :returns: :doc:`php\\net\\HttpClient ` .. php:method:: get($url) @@ -41,6 +71,21 @@ HttpClient :param $url: :returns: :doc:`php\\net\\HttpRequest ` + .. php:method:: head($url) + + :param $url: + :returns: :doc:`php\\net\\HttpRequest ` + + .. php:method:: patch($url) + + :param $url: + :returns: :doc:`php\\net\\HttpRequest ` + + .. php:method:: options($url) + + :param $url: + :returns: :doc:`php\\net\\HttpRequest ` + .. include:: /api_en.desc/php/net/HttpClient.footer.rst diff --git a/api_en/php/swing/Border.rst b/api_en/php/swing/Border.rst index 6a1336c..37481cb 100644 --- a/api_en/php/swing/Border.rst +++ b/api_en/php/swing/Border.rst @@ -13,6 +13,10 @@ Border ---------- + .. php:method:: isOpaque() + + :returns: :doc:`bool ` + .. php:staticmethod:: createEmpty($top, $left, $bottom, $right) :param $top: :doc:`int ` @@ -21,6 +25,51 @@ Border :param $right: :doc:`int ` :returns: :doc:`php\\swing\\Border ` + .. php:staticmethod:: createBevel($type, $highlightColor, $shadowColor) + + :param $type: :doc:`string ` - - RAISED or LOWERED + :param $highlightColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $shadowColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createSoftBevel($type, $highlightColor, $shadowColor) + + :param $type: :doc:`string ` - - RAISED or LOWERED + :param $highlightColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $shadowColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createEtchedBevel($type, $highlightColor, $shadowColor) + + :param $type: :doc:`string ` - - RAISED or LOWERED + :param $highlightColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $shadowColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createTitled($title, $border = null, $titleFont = null, $titleColor = null) + + :param $title: :doc:`string ` + :param $border: :doc:`php\\swing\\Border ` + :param $titleFont: :doc:`php\\swing\\Font ` + :param $titleColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createLine($color, $size = 1, $rounded = false) + + :param $color: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $size: :doc:`int ` + :param $rounded: :doc:`bool ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createDashed($color, $thickness = 1, $length = 2, $spacing = 1, $rounded = false) + + :param $color: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $thickness: :doc:`int ` + :param $length: :doc:`int ` + :param $spacing: :doc:`int ` + :param $rounded: :doc:`bool ` + :returns: :doc:`php\\swing\\Border ` + .. include:: /api_en.desc/php/swing/Border.footer.rst diff --git a/api_en/php/swing/SwingWorker.rst b/api_en/php/swing/SwingWorker.rst new file mode 100644 index 0000000..ba26261 --- /dev/null +++ b/api_en/php/swing/SwingWorker.rst @@ -0,0 +1,85 @@ +SwingWorker +--------------------- + +.. include:: /api_en.desc/php/swing/SwingWorker.header.rst + +.. php:class:: php\\swing\\SwingWorker + + **abstract** class + + + + +**Methods** + +---------- + + .. php:method:: doInBackground() + + **abstract** + + **protected** + + + :returns: :doc:`mixed ` + + .. php:method:: get($timeout = -1) + + **throws** :doc:`php\\concurrent\\TimeoutException ` + + **throws** :doc:`php\\lang\\InterruptedException ` + + :param $timeout: :doc:`int ` + :returns: :doc:`mixed ` + + .. php:method:: getProgress() + + :returns: :doc:`int ` + + .. php:method:: setProgress($val) + + **protected** + + + :param $val: :doc:`int ` + + .. php:method:: publish($values) + + **protected** + + + :param $values: :doc:`array ` + + .. php:method:: process($values) + + **protected** + + + :param $values: :doc:`array ` + + .. php:method:: isDone() + + :returns: :doc:`bool ` + + .. php:method:: isCanceled() + + :returns: :doc:`bool ` + + .. php:method:: getState() + + :returns: :doc:`string ` PENDING, STARTED, DONE + + .. php:method:: cancel($mayInterruptIfRunning) + + :param $mayInterruptIfRunning: :doc:`bool ` + + .. php:method:: run() + + + .. php:method:: execute() + + + + +.. include:: /api_en.desc/php/swing/SwingWorker.footer.rst + diff --git a/api_en/php/swing/UICombobox.rst b/api_en/php/swing/UICombobox.rst index 54d10c1..89b13e4 100644 --- a/api_en/php/swing/UICombobox.rst +++ b/api_en/php/swing/UICombobox.rst @@ -72,6 +72,10 @@ UICombobox .. php:method:: removeAllItems() + .. php:method:: onCellRender($callback = null) + + :param $callback: :doc:`callable ` - (UICombobox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus) + .. include:: /api_en.desc/php/swing/UICombobox.footer.rst diff --git a/api_en/php/swing/UIContainer.rst b/api_en/php/swing/UIContainer.rst index 7be604a..79358de 100644 --- a/api_en/php/swing/UIContainer.rst +++ b/api_en/php/swing/UIContainer.rst @@ -17,8 +17,10 @@ UIContainer * **class** :doc:`php\\swing\\UIAbstractIButton ` * **class** :doc:`php\\swing\\UIColorChooser ` * **class** :doc:`php\\swing\\UICombobox ` + * **class** :doc:`php\\swing\\UIDesktopPanel ` * **class** :doc:`php\\swing\\UIFileChooser ` * **class** :doc:`php\\swing\\UIImage ` + * **class** :doc:`php\\swing\\UIInternalForm ` * **class** :doc:`php\\swing\\UILabel ` * **class** :doc:`php\\swing\\UIListbox ` * **class** :doc:`php\\swing\\UIMenuBar ` @@ -40,12 +42,17 @@ UIContainer ---------- - .. php:method:: add($component, $index = null) + .. php:method:: add($component, $index = null, $constraints = null) Add child component :param $component: :doc:`php\\swing\\UIElement ` :param $index: :doc:`null `, :doc:`int ` + :param $constraints: :doc:`null `, :doc:`int ` + + .. php:method:: setLayout($type) + + :param $type: :doc:`string ` - - absolute, grid, flow, grid-bag, border, card .. php:method:: remove($component) @@ -71,6 +78,10 @@ UIContainer :param $index: :doc:`int ` :returns: :doc:`php\\swing\\UIElement ` + .. php:method:: getComponents() + + :returns: :doc:`php\\swing\\UIElement[] ` + .. php:method:: getComponentByGroup($group) Find first component by group diff --git a/api_en/php/swing/UIDesktopPanel.rst b/api_en/php/swing/UIDesktopPanel.rst new file mode 100644 index 0000000..768b6b4 --- /dev/null +++ b/api_en/php/swing/UIDesktopPanel.rst @@ -0,0 +1,16 @@ +UIDesktopPanel +------------------------ + +.. include:: /api_en.desc/php/swing/UIDesktopPanel.header.rst + +.. php:class:: php\\swing\\UIDesktopPanel + + **extends**: :doc:`php\\swing\\UIContainer ` + + + Class UIDesktopPanel + + + +.. include:: /api_en.desc/php/swing/UIDesktopPanel.footer.rst + diff --git a/api_en/php/swing/UIDialog.rst b/api_en/php/swing/UIDialog.rst index 66b39fe..58d0aaa 100644 --- a/api_en/php/swing/UIDialog.rst +++ b/api_en/php/swing/UIDialog.rst @@ -76,7 +76,7 @@ UIDialog :param $title: :doc:`string ` :param $type: :doc:`int ` - .. php:staticmethod:: confirm($text, $title, $optionType, $type = ::) + .. php:staticmethod:: confirm($text, $title, $optionType = ::, $type = ::) :param $text: :doc:`string ` :param $title: :doc:`string ` @@ -84,6 +84,12 @@ UIDialog :param $type: :doc:`int ` :returns: :doc:`int ` + .. php:staticmethod:: input($message, $initialValue = '') + + :param $message: :doc:`string ` + :param $initialValue: :doc:`string ` + :returns: :doc:`string ` + .. include:: /api_en.desc/php/swing/UIDialog.footer.rst diff --git a/api_en/php/swing/UIElement.rst b/api_en/php/swing/UIElement.rst index de4ad92..3a039b2 100644 --- a/api_en/php/swing/UIElement.rst +++ b/api_en/php/swing/UIElement.rst @@ -149,12 +149,23 @@ UIElement :doc:`php\\swing\\UIPopupMenu ` + .. php:attr:: cursor + + :doc:`string ` + + .. php:attr:: padding + + :doc:`php\\swing\\array [int, int, int, int] ` + **Methods** ---------- + .. php:method:: __construct() + + .. php:method:: getGraphics() Get graphic canvas object @@ -202,6 +213,23 @@ UIElement :param $name: + .. php:method:: addAllowedEventType($name) + + **protected** + + + :param $name: :doc:`string ` + + .. php:method:: setAction($name, $callback = null) + + :param $name: :doc:`string ` + :param $callback: :doc:`callable ` + + .. php:method:: setInputKey($keyString, $actionName) + + :param $keyString: :doc:`string ` + :param $actionName: :doc:`string ` + .. php:method:: hasFocus() :returns: :doc:`bool ` diff --git a/api_en/php/swing/UIFileChooser.rst b/api_en/php/swing/UIFileChooser.rst index 3bb191f..deb95cb 100644 --- a/api_en/php/swing/UIFileChooser.rst +++ b/api_en/php/swing/UIFileChooser.rst @@ -66,6 +66,10 @@ UIFileChooser :doc:`bool ` + .. php:attr:: acceptAllFileFilterUsed + + :doc:`bool ` + **Methods** @@ -120,6 +124,11 @@ UIFileChooser .. php:method:: changeToParentDirectory() + .. php:method:: onFileView($field, $callback = null) + + :param $field: :doc:`string ` - - name (string), description (string), icon (Image), traversable (bool) + :param $callback: :doc:`callable ` - (File $file) + .. include:: /api_en.desc/php/swing/UIFileChooser.footer.rst diff --git a/api_en/php/swing/UIInternalForm.rst b/api_en/php/swing/UIInternalForm.rst new file mode 100644 index 0000000..888dbad --- /dev/null +++ b/api_en/php/swing/UIInternalForm.rst @@ -0,0 +1,48 @@ +UIInternalForm +------------------------ + +.. include:: /api_en.desc/php/swing/UIInternalForm.header.rst + +.. php:class:: php\\swing\\UIInternalForm + + **extends**: :doc:`php\\swing\\UIContainer ` + + + Class UIInternalForm + + + +**Properties** + +---------- + + .. php:attr:: title + + :doc:`string ` + + .. php:attr:: selected + + :doc:`bool ` + + .. php:attr:: resizable + + :doc:`bool ` + + + +**Methods** + +---------- + + .. php:method:: setLayeredPanel($panel) + + :param $panel: :doc:`php\\swing\\UIDesktopPanel ` + + .. php:method:: setContent($content) + + :param $content: :doc:`php\\swing\\UIContainer ` + + + +.. include:: /api_en.desc/php/swing/UIInternalForm.footer.rst + diff --git a/api_en/php/swing/UIListbox.rst b/api_en/php/swing/UIListbox.rst index 37fe6db..e023d51 100644 --- a/api_en/php/swing/UIListbox.rst +++ b/api_en/php/swing/UIListbox.rst @@ -56,6 +56,13 @@ UIListbox :doc:`php\\swing\\string - ALWAYS, HIDDEN, AUTO ` + .. php:attr:: itemCount + + :doc:`int ` + + **read-only** + + **Methods** @@ -87,6 +94,10 @@ UIListbox .. php:method:: removeAllItems() + .. php:method:: onCellRender($callback = null) + + :param $callback: :doc:`callable ` - (UIListbox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus) + .. include:: /api_en.desc/php/swing/UIListbox.footer.rst diff --git a/api_en/php/swing/UIMenuItem.rst b/api_en/php/swing/UIMenuItem.rst index 2a1aca4..1127ea1 100644 --- a/api_en/php/swing/UIMenuItem.rst +++ b/api_en/php/swing/UIMenuItem.rst @@ -18,5 +18,17 @@ UIMenuItem +**Properties** + +---------- + + .. php:attr:: accelerator + + :doc:`string ` + + Examples: "control DELETE", "alt shift X", "alt shift released X", "typed a" + + + .. include:: /api_en.desc/php/swing/UIMenuItem.footer.rst diff --git a/api_en/php/swing/UIPopupMenu.rst b/api_en/php/swing/UIPopupMenu.rst index 710abe8..19300f9 100644 --- a/api_en/php/swing/UIPopupMenu.rst +++ b/api_en/php/swing/UIPopupMenu.rst @@ -9,6 +9,8 @@ UIPopupMenu Class UIPopupMenu + + Events: open, close, cancel @@ -46,6 +48,12 @@ UIPopupMenu :param $component: :doc:`php\\swing\\UIElement ` + .. php:method:: show($invoker, $x, $y) + + :param $invoker: :doc:`php\\swing\\UIElement ` + :param $x: :doc:`int ` + :param $y: :doc:`int ` + .. include:: /api_en.desc/php/swing/UIPopupMenu.footer.rst diff --git a/api_en/php/swing/UIReader.rst b/api_en/php/swing/UIReader.rst index d7e7bfb..08b8182 100644 --- a/api_en/php/swing/UIReader.rst +++ b/api_en/php/swing/UIReader.rst @@ -9,6 +9,18 @@ UIReader +**Properties** + +---------- + + .. php:attr:: useInternalForms + + :doc:`bool ` + + Enables that the reader will create instances of UIInternalForm insteadof UIForm and UIDialog + + + **Methods** ---------- diff --git a/api_en/php/swing/UIRichTextArea.rst b/api_en/php/swing/UIRichTextArea.rst new file mode 100644 index 0000000..8d23e79 --- /dev/null +++ b/api_en/php/swing/UIRichTextArea.rst @@ -0,0 +1,56 @@ +UIRichTextArea +------------------------ + +.. include:: /api_en.desc/php/swing/UIRichTextArea.header.rst + +.. php:class:: php\\swing\\UIRichTextArea + + **extends**: :doc:`php\\swing\\UITextElement ` + + + Class UIRichTextArea + + + +**Properties** + +---------- + + .. php:attr:: logicalStyle + + :doc:`php\\swing\\text\\Style ` + + .. php:attr:: horScrollPolicy + + :doc:`php\\swing\\string - ALWAYS, HIDDEN, AUTO ` + + .. php:attr:: verScrollPolicy + + :doc:`php\\swing\\string - ALWAYS, HIDDEN, AUTO ` + + + +**Methods** + +---------- + + .. php:method:: addStyle($name, $parent = null) + + :param $name: :doc:`string ` + :param $parent: :doc:`php\\swing\\text\\Style ` + :returns: :doc:`php\\swing\\text\\Style ` + + .. php:method:: getStyle($name) + + :param $name: :doc:`string ` + :returns: :doc:`php\\swing\\text\\Style ` + + .. php:method:: appendText($text, $style) + + :param $text: :doc:`string ` + :param $style: :doc:`php\\swing\\text\\Style ` + + + +.. include:: /api_en.desc/php/swing/UIRichTextArea.footer.rst + diff --git a/api_en/php/swing/UITabs.rst b/api_en/php/swing/UITabs.rst index 79d3edb..60fcc24 100644 --- a/api_en/php/swing/UITabs.rst +++ b/api_en/php/swing/UITabs.rst @@ -9,6 +9,8 @@ UITabs Class UITabs + + Events: change @@ -28,6 +30,13 @@ UITabs :doc:`php\\swing\\string - left, right, top, bottom ` + .. php:attr:: tabCount + + :doc:`int ` + + **read-only** + + **Methods** diff --git a/api_en/php/swing/UITextElement.rst b/api_en/php/swing/UITextElement.rst index 238a032..35cdf42 100644 --- a/api_en/php/swing/UITextElement.rst +++ b/api_en/php/swing/UITextElement.rst @@ -15,6 +15,7 @@ UITextElement * **class** :doc:`php\\swing\\UIEdit ` * **class** :doc:`php\\swing\\UIEditorArea ` + * **class** :doc:`php\\swing\\UIRichTextArea ` * **class** :doc:`php\\swing\\UITextArea ` diff --git a/api_en/php/swing/UITree.rst b/api_en/php/swing/UITree.rst index 208619d..0d4fd3e 100644 --- a/api_en/php/swing/UITree.rst +++ b/api_en/php/swing/UITree.rst @@ -214,6 +214,10 @@ UITree :param $node: :doc:`php\\swing\\tree\\TreeNode ` + .. php:method:: scrollToNode($node) + + :param $node: :doc:`php\\swing\\tree\\TreeNode ` + .. php:method:: cancelEditing() diff --git a/api_en/php/swing/index.rst b/api_en/php/swing/index.rst index 6f288e5..7c75ad0 100644 --- a/api_en/php/swing/index.rst +++ b/api_en/php/swing/index.rst @@ -15,6 +15,8 @@ swing Graphics.rst Image.rst SwingUtilities.rst + SwingWorker.rst + text/index Timer.rst tree/index UIAbstractIButton.rst @@ -24,6 +26,7 @@ swing UIColorChooser.rst UICombobox.rst UIContainer.rst + UIDesktopPanel.rst UIDialog.rst UIEdit.rst UIEditorArea.rst @@ -31,6 +34,7 @@ swing UIFileChooser.rst UIForm.rst UIImage.rst + UIInternalForm.rst UILabel.rst UIListbox.rst UIManager.rst @@ -42,6 +46,7 @@ swing UIProgress.rst UIRadioButton.rst UIReader.rst + UIRichTextArea.rst UIScrollPanel.rst UISlider.rst UITable.rst diff --git a/api_en/php/swing/text/Style.rst b/api_en/php/swing/text/Style.rst new file mode 100644 index 0000000..680bc40 --- /dev/null +++ b/api_en/php/swing/text/Style.rst @@ -0,0 +1,31 @@ +Style +-------------------- + +.. include:: /api_en.desc/php/swing/text/Style.header.rst + +.. php:class:: php\\swing\\text\\Style + + Class TextStyle + + + +**Properties** + +---------- + + .. php:attr:: background + + :doc:`php\\swing\\Color ` + + .. php:attr:: foreground + + :doc:`php\\swing\\Color ` + + .. php:attr:: bold + + :doc:`bool ` + + + +.. include:: /api_en.desc/php/swing/text/Style.footer.rst + diff --git a/api_en/php/swing/text/index.rst b/api_en/php/swing/text/index.rst new file mode 100644 index 0000000..167b2f1 --- /dev/null +++ b/api_en/php/swing/text/index.rst @@ -0,0 +1,13 @@ +text +------------------------------ + + +.. include:: /api_en.desc/php/swing/text/index.header.rst + +.. toctree:: + :maxdepth: 3 + + Style.rst + +.. include:: /api_en.desc/php/swing/text/index.footer.rst + diff --git a/api_ru/php/concurrent/TimeoutException.rst b/api_ru/php/concurrent/TimeoutException.rst new file mode 100644 index 0000000..ea2bef4 --- /dev/null +++ b/api_ru/php/concurrent/TimeoutException.rst @@ -0,0 +1,16 @@ +TimeoutException +------------------------------- + +.. include:: /api_ru.desc/php/concurrent/TimeoutException.header.rst + +.. php:class:: php\\concurrent\\TimeoutException + + **extends**: :doc:`php\\lang\\JavaException ` + + + Class TimeoutException + + + +.. include:: /api_ru.desc/php/concurrent/TimeoutException.footer.rst + diff --git a/api_ru/php/concurrent/index.rst b/api_ru/php/concurrent/index.rst index 578c1fe..4eb7ca1 100644 --- a/api_ru/php/concurrent/index.rst +++ b/api_ru/php/concurrent/index.rst @@ -9,6 +9,7 @@ concurrent ExecutorService.rst Future.rst + TimeoutException.rst .. include:: /api_ru.desc/php/concurrent/index.footer.rst diff --git a/api_ru/php/io/File.rst b/api_ru/php/io/File.rst index bd6d486..fde87f5 100644 --- a/api_ru/php/io/File.rst +++ b/api_ru/php/io/File.rst @@ -114,10 +114,9 @@ File :returns: :doc:`void ` - .. php:method:: createNewFile() - - **throws** :doc:`php\\io\\IOException ` + .. php:method:: createNewFile($withDirs = false) + :param $withDirs: :doc:`bool ` :returns: :doc:`bool ` .. php:method:: lastModified() diff --git a/api_ru/php/io/ResourceStream.rst b/api_ru/php/io/ResourceStream.rst index 1a7ad7a..85a68f6 100644 --- a/api_ru/php/io/ResourceStream.rst +++ b/api_ru/php/io/ResourceStream.rst @@ -62,6 +62,11 @@ ResourceStream :returns: :doc:`mixed ` + .. php:staticmethod:: getResources($name) + + :param $name: :doc:`string ` + :returns: :doc:`php\\io\\ResourceStream[] ` + .. include:: /api_ru.desc/php/io/ResourceStream.footer.rst diff --git a/api_ru/php/lang/InterruptedException.rst b/api_ru/php/lang/InterruptedException.rst new file mode 100644 index 0000000..c92fc9e --- /dev/null +++ b/api_ru/php/lang/InterruptedException.rst @@ -0,0 +1,16 @@ +InterruptedException +----------------------------- + +.. include:: /api_ru.desc/php/lang/InterruptedException.header.rst + +.. php:class:: php\\lang\\InterruptedException + + **extends**: :doc:`php\\lang\\JavaException ` + + + Class InterruptedException + + + +.. include:: /api_ru.desc/php/lang/InterruptedException.footer.rst + diff --git a/api_ru/php/lang/JavaException.rst b/api_ru/php/lang/JavaException.rst index a11daf6..9034fb9 100644 --- a/api_ru/php/lang/JavaException.rst +++ b/api_ru/php/lang/JavaException.rst @@ -11,9 +11,11 @@ JavaException ---------------------- + * **class** :doc:`php\\concurrent\\TimeoutException ` * **class** :doc:`php\\io\\IOException ` * **class** :doc:`php\\lang\\IllegalArgumentException ` * **class** :doc:`php\\lang\\IllegalStateException ` + * **class** :doc:`php\\lang\\InterruptedException ` * **class** :doc:`php\\lang\\NumberFormatException ` * **class** :doc:`php\\net\\SocketException ` * **class** :doc:`php\\util\\RegexException ` diff --git a/api_ru/php/lang/Process.rst b/api_ru/php/lang/Process.rst new file mode 100644 index 0000000..93e9e96 --- /dev/null +++ b/api_ru/php/lang/Process.rst @@ -0,0 +1,89 @@ +Process +---------------- + +.. include:: /api_ru.desc/php/lang/Process.header.rst + +.. php:class:: php\\lang\\Process + + Class Process + + + +**Methods** + +---------- + + .. php:method:: __construct($commands, $directory = null) + + :param $commands: :doc:`array ` + :param $directory: :doc:`null `, :doc:`string `, :doc:`php\\io\\File ` + + .. php:method:: start() + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\lang\\Process ` + + .. php:method:: startAndWait() + + Causes the current thread to wait, if necessary, until the + process represented by this `Process` object has + terminated. This method returns immediately if the subprocess + has already terminated. If the subprocess has not yet + terminated, the calling thread will be blocked until the + subprocess exits. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\lang\\Process ` + + .. php:method:: getExitValue() + + Returns the exit value for the subprocess. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`int `, :doc:`null ` - null if process is working + + .. php:method:: destroy() + + Kills the subprocess. The subprocess represented by this + `Process` object is forcibly terminated. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + + .. php:method:: getInput() + + Returns the input stream connected to the normal output of the + subprocess. The stream obtains data piped from the standard + output of the process represented by this `Process` object. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\io\\Stream ` + + .. php:method:: getOutput() + + Returns the output stream connected to the normal input of the + subprocess. Output to the stream is piped into the standard + input of the process represented by this `Process` object. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\io\\Stream ` + + .. php:method:: getError() + + Returns the input stream connected to the error output of the + subprocess. The stream obtains data piped from the error output + of the process represented by this `Process` object. + + **throws** :doc:`php\\lang\\IllegalStateException ` + + :returns: :doc:`php\\io\\Stream ` + + + +.. include:: /api_ru.desc/php/lang/Process.footer.rst + diff --git a/api_ru/php/lang/SettersGetters.rst b/api_ru/php/lang/SettersGetters.rst new file mode 100644 index 0000000..d93695d --- /dev/null +++ b/api_ru/php/lang/SettersGetters.rst @@ -0,0 +1,42 @@ +SettersGetters +----------------------- + +.. include:: /api_ru.desc/php/lang/SettersGetters.header.rst + +.. php:class:: php\\lang\\SettersGetters + + To implement a property with a setter and getter, define the following methods:: + + protected __set[prop_name]($value) // for setter (or not if you want to implement a read-only property) + protected __get[prop_name]() // for getter + + Class Properties + + + +**Methods** + +---------- + + .. php:method:: __set($name, $value) + + :param $name: + :param $value: + + .. php:method:: __get($name) + + :param $name: + :returns: :doc:`mixed ` + + .. php:method:: __isset($name) + + :param $name: + + .. php:method:: __unset($name) + + :param $name: + + + +.. include:: /api_ru.desc/php/lang/SettersGetters.footer.rst + diff --git a/api_ru/php/lang/index.rst b/api_ru/php/lang/index.rst index dd54e56..f1811a3 100644 --- a/api_ru/php/lang/index.rst +++ b/api_ru/php/lang/index.rst @@ -10,6 +10,7 @@ lang Environment.rst IllegalArgumentException.rst IllegalStateException.rst + InterruptedException.rst Invoker.rst JavaClass.rst JavaException.rst @@ -19,6 +20,8 @@ lang JavaReflection.rst Module.rst NumberFormatException.rst + Process.rst + SettersGetters.rst System.rst Thread.rst ThreadGroup.rst diff --git a/api_ru/php/lib/items.rst b/api_ru/php/lib/items.rst index 86b3d5a..2942883 100644 --- a/api_ru/php/lib/items.rst +++ b/api_ru/php/lib/items.rst @@ -38,6 +38,13 @@ items :param $withKeys: :doc:`bool ` :returns: :doc:`array ` + .. php:staticmethod:: toList($collection) + + Example: items::toList(['x' => 10, 20], 30, ['x' => 50, 60]) -> [10, 20, 30, 50, 60] + + :param $collection: + :returns: :doc:`array ` + .. php:staticmethod:: keys($collection) Возвращает все ключи коллекции diff --git a/api_ru/php/net/HttpClient.rst b/api_ru/php/net/HttpClient.rst index 56dd68c..dbc1bd9 100644 --- a/api_ru/php/net/HttpClient.rst +++ b/api_ru/php/net/HttpClient.rst @@ -6,6 +6,8 @@ HttpClient .. php:class:: php\\net\\HttpClient Class HttpClient + + Cloneable @@ -20,6 +22,34 @@ HttpClient .. php:method:: setHeaders($headers) :param $headers: :doc:`array ` + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setConnectTimeout($value) + + :param $value: :doc:`int ` - - in milliseconds + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setSocketTimeout($value) + + :param $value: :doc:`int ` - - in milliseconds + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setMaxRedirects($value) + + :param $value: :doc:`int ` - -1 means that no limits + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setRedirectsEnabled($value) + + :param $value: :doc:`bool ` + :returns: :doc:`php\\net\\HttpClient ` + + .. php:method:: setProxy($hostname, $port = -1, $scheme = 'http') + + :param $hostname: :doc:`string ` + :param $port: :doc:`int ` + :param $scheme: :doc:`string ` + :returns: :doc:`php\\net\\HttpClient ` .. php:method:: get($url) @@ -41,6 +71,21 @@ HttpClient :param $url: :returns: :doc:`php\\net\\HttpRequest ` + .. php:method:: head($url) + + :param $url: + :returns: :doc:`php\\net\\HttpRequest ` + + .. php:method:: patch($url) + + :param $url: + :returns: :doc:`php\\net\\HttpRequest ` + + .. php:method:: options($url) + + :param $url: + :returns: :doc:`php\\net\\HttpRequest ` + .. include:: /api_ru.desc/php/net/HttpClient.footer.rst diff --git a/api_ru/php/swing/Border.rst b/api_ru/php/swing/Border.rst index 51b2600..76d193e 100644 --- a/api_ru/php/swing/Border.rst +++ b/api_ru/php/swing/Border.rst @@ -13,6 +13,10 @@ Border ---------- + .. php:method:: isOpaque() + + :returns: :doc:`bool ` + .. php:staticmethod:: createEmpty($top, $left, $bottom, $right) :param $top: :doc:`int ` @@ -21,6 +25,51 @@ Border :param $right: :doc:`int ` :returns: :doc:`php\\swing\\Border ` + .. php:staticmethod:: createBevel($type, $highlightColor, $shadowColor) + + :param $type: :doc:`string ` - - RAISED or LOWERED + :param $highlightColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $shadowColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createSoftBevel($type, $highlightColor, $shadowColor) + + :param $type: :doc:`string ` - - RAISED or LOWERED + :param $highlightColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $shadowColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createEtchedBevel($type, $highlightColor, $shadowColor) + + :param $type: :doc:`string ` - - RAISED or LOWERED + :param $highlightColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $shadowColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createTitled($title, $border = null, $titleFont = null, $titleColor = null) + + :param $title: :doc:`string ` + :param $border: :doc:`php\\swing\\Border ` + :param $titleFont: :doc:`php\\swing\\Font ` + :param $titleColor: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createLine($color, $size = 1, $rounded = false) + + :param $color: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $size: :doc:`int ` + :param $rounded: :doc:`bool ` + :returns: :doc:`php\\swing\\Border ` + + .. php:staticmethod:: createDashed($color, $thickness = 1, $length = 2, $spacing = 1, $rounded = false) + + :param $color: :doc:`php\\swing\\Color `, :doc:`array `, :doc:`int ` + :param $thickness: :doc:`int ` + :param $length: :doc:`int ` + :param $spacing: :doc:`int ` + :param $rounded: :doc:`bool ` + :returns: :doc:`php\\swing\\Border ` + .. include:: /api_ru.desc/php/swing/Border.footer.rst diff --git a/api_ru/php/swing/SwingWorker.rst b/api_ru/php/swing/SwingWorker.rst new file mode 100644 index 0000000..2c12d7c --- /dev/null +++ b/api_ru/php/swing/SwingWorker.rst @@ -0,0 +1,85 @@ +SwingWorker +--------------------- + +.. include:: /api_ru.desc/php/swing/SwingWorker.header.rst + +.. php:class:: php\\swing\\SwingWorker + + **abstract** class + + + + +**Methods** + +---------- + + .. php:method:: doInBackground() + + **abstract** + + **protected** + + + :returns: :doc:`mixed ` + + .. php:method:: get($timeout = -1) + + **throws** :doc:`php\\concurrent\\TimeoutException ` + + **throws** :doc:`php\\lang\\InterruptedException ` + + :param $timeout: :doc:`int ` + :returns: :doc:`mixed ` + + .. php:method:: getProgress() + + :returns: :doc:`int ` + + .. php:method:: setProgress($val) + + **protected** + + + :param $val: :doc:`int ` + + .. php:method:: publish($values) + + **protected** + + + :param $values: :doc:`array ` + + .. php:method:: process($values) + + **protected** + + + :param $values: :doc:`array ` + + .. php:method:: isDone() + + :returns: :doc:`bool ` + + .. php:method:: isCanceled() + + :returns: :doc:`bool ` + + .. php:method:: getState() + + :returns: :doc:`string ` PENDING, STARTED, DONE + + .. php:method:: cancel($mayInterruptIfRunning) + + :param $mayInterruptIfRunning: :doc:`bool ` + + .. php:method:: run() + + + .. php:method:: execute() + + + + +.. include:: /api_ru.desc/php/swing/SwingWorker.footer.rst + diff --git a/api_ru/php/swing/UICombobox.rst b/api_ru/php/swing/UICombobox.rst index 3f12d63..b8f0807 100644 --- a/api_ru/php/swing/UICombobox.rst +++ b/api_ru/php/swing/UICombobox.rst @@ -72,6 +72,10 @@ UICombobox .. php:method:: removeAllItems() + .. php:method:: onCellRender($callback = null) + + :param $callback: :doc:`callable ` - (UICombobox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus) + .. include:: /api_ru.desc/php/swing/UICombobox.footer.rst diff --git a/api_ru/php/swing/UIContainer.rst b/api_ru/php/swing/UIContainer.rst index 54b357a..346fa50 100644 --- a/api_ru/php/swing/UIContainer.rst +++ b/api_ru/php/swing/UIContainer.rst @@ -17,8 +17,10 @@ UIContainer * **class** :doc:`php\\swing\\UIAbstractIButton ` * **class** :doc:`php\\swing\\UIColorChooser ` * **class** :doc:`php\\swing\\UICombobox ` + * **class** :doc:`php\\swing\\UIDesktopPanel ` * **class** :doc:`php\\swing\\UIFileChooser ` * **class** :doc:`php\\swing\\UIImage ` + * **class** :doc:`php\\swing\\UIInternalForm ` * **class** :doc:`php\\swing\\UILabel ` * **class** :doc:`php\\swing\\UIListbox ` * **class** :doc:`php\\swing\\UIMenuBar ` @@ -40,12 +42,17 @@ UIContainer ---------- - .. php:method:: add($component, $index = null) + .. php:method:: add($component, $index = null, $constraints = null) Add child component :param $component: :doc:`php\\swing\\UIElement ` :param $index: :doc:`null `, :doc:`int ` + :param $constraints: :doc:`null `, :doc:`int ` + + .. php:method:: setLayout($type) + + :param $type: :doc:`string ` - - absolute, grid, flow, grid-bag, border, card .. php:method:: remove($component) @@ -71,6 +78,10 @@ UIContainer :param $index: :doc:`int ` :returns: :doc:`php\\swing\\UIElement ` + .. php:method:: getComponents() + + :returns: :doc:`php\\swing\\UIElement[] ` + .. php:method:: getComponentByGroup($group) Find first component by group diff --git a/api_ru/php/swing/UIDesktopPanel.rst b/api_ru/php/swing/UIDesktopPanel.rst new file mode 100644 index 0000000..cf6818d --- /dev/null +++ b/api_ru/php/swing/UIDesktopPanel.rst @@ -0,0 +1,16 @@ +UIDesktopPanel +------------------------ + +.. include:: /api_ru.desc/php/swing/UIDesktopPanel.header.rst + +.. php:class:: php\\swing\\UIDesktopPanel + + **extends**: :doc:`php\\swing\\UIContainer ` + + + Class UIDesktopPanel + + + +.. include:: /api_ru.desc/php/swing/UIDesktopPanel.footer.rst + diff --git a/api_ru/php/swing/UIDialog.rst b/api_ru/php/swing/UIDialog.rst index 8f94b04..43d239c 100644 --- a/api_ru/php/swing/UIDialog.rst +++ b/api_ru/php/swing/UIDialog.rst @@ -76,7 +76,7 @@ UIDialog :param $title: :doc:`string ` :param $type: :doc:`int ` - .. php:staticmethod:: confirm($text, $title, $optionType, $type = ::) + .. php:staticmethod:: confirm($text, $title, $optionType = ::, $type = ::) :param $text: :doc:`string ` :param $title: :doc:`string ` @@ -84,6 +84,12 @@ UIDialog :param $type: :doc:`int ` :returns: :doc:`int ` + .. php:staticmethod:: input($message, $initialValue = '') + + :param $message: :doc:`string ` + :param $initialValue: :doc:`string ` + :returns: :doc:`string ` + .. include:: /api_ru.desc/php/swing/UIDialog.footer.rst diff --git a/api_ru/php/swing/UIElement.rst b/api_ru/php/swing/UIElement.rst index bfcbab3..f562e1e 100644 --- a/api_ru/php/swing/UIElement.rst +++ b/api_ru/php/swing/UIElement.rst @@ -149,12 +149,23 @@ UIElement :doc:`php\\swing\\UIPopupMenu ` + .. php:attr:: cursor + + :doc:`string ` + + .. php:attr:: padding + + :doc:`php\\swing\\array [int, int, int, int] ` + **Methods** ---------- + .. php:method:: __construct() + + .. php:method:: getGraphics() Get graphic canvas object @@ -202,6 +213,23 @@ UIElement :param $name: + .. php:method:: addAllowedEventType($name) + + **protected** + + + :param $name: :doc:`string ` + + .. php:method:: setAction($name, $callback = null) + + :param $name: :doc:`string ` + :param $callback: :doc:`callable ` + + .. php:method:: setInputKey($keyString, $actionName) + + :param $keyString: :doc:`string ` + :param $actionName: :doc:`string ` + .. php:method:: hasFocus() :returns: :doc:`bool ` diff --git a/api_ru/php/swing/UIFileChooser.rst b/api_ru/php/swing/UIFileChooser.rst index 25e72e8..39de801 100644 --- a/api_ru/php/swing/UIFileChooser.rst +++ b/api_ru/php/swing/UIFileChooser.rst @@ -66,6 +66,10 @@ UIFileChooser :doc:`bool ` + .. php:attr:: acceptAllFileFilterUsed + + :doc:`bool ` + **Methods** @@ -120,6 +124,11 @@ UIFileChooser .. php:method:: changeToParentDirectory() + .. php:method:: onFileView($field, $callback = null) + + :param $field: :doc:`string ` - - name (string), description (string), icon (Image), traversable (bool) + :param $callback: :doc:`callable ` - (File $file) + .. include:: /api_ru.desc/php/swing/UIFileChooser.footer.rst diff --git a/api_ru/php/swing/UIInternalForm.rst b/api_ru/php/swing/UIInternalForm.rst new file mode 100644 index 0000000..9be0d67 --- /dev/null +++ b/api_ru/php/swing/UIInternalForm.rst @@ -0,0 +1,48 @@ +UIInternalForm +------------------------ + +.. include:: /api_ru.desc/php/swing/UIInternalForm.header.rst + +.. php:class:: php\\swing\\UIInternalForm + + **extends**: :doc:`php\\swing\\UIContainer ` + + + Class UIInternalForm + + + +**Properties** + +---------- + + .. php:attr:: title + + :doc:`string ` + + .. php:attr:: selected + + :doc:`bool ` + + .. php:attr:: resizable + + :doc:`bool ` + + + +**Methods** + +---------- + + .. php:method:: setLayeredPanel($panel) + + :param $panel: :doc:`php\\swing\\UIDesktopPanel ` + + .. php:method:: setContent($content) + + :param $content: :doc:`php\\swing\\UIContainer ` + + + +.. include:: /api_ru.desc/php/swing/UIInternalForm.footer.rst + diff --git a/api_ru/php/swing/UIListbox.rst b/api_ru/php/swing/UIListbox.rst index 6dc30c5..2773f13 100644 --- a/api_ru/php/swing/UIListbox.rst +++ b/api_ru/php/swing/UIListbox.rst @@ -56,6 +56,13 @@ UIListbox :doc:`php\\swing\\string - ALWAYS, HIDDEN, AUTO ` + .. php:attr:: itemCount + + :doc:`int ` + + **read-only** + + **Methods** @@ -87,6 +94,10 @@ UIListbox .. php:method:: removeAllItems() + .. php:method:: onCellRender($callback = null) + + :param $callback: :doc:`callable ` - (UIListbox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus) + .. include:: /api_ru.desc/php/swing/UIListbox.footer.rst diff --git a/api_ru/php/swing/UIMenuItem.rst b/api_ru/php/swing/UIMenuItem.rst index 6995f4d..b697d4d 100644 --- a/api_ru/php/swing/UIMenuItem.rst +++ b/api_ru/php/swing/UIMenuItem.rst @@ -18,5 +18,17 @@ UIMenuItem +**Properties** + +---------- + + .. php:attr:: accelerator + + :doc:`string ` + + Examples: "control DELETE", "alt shift X", "alt shift released X", "typed a" + + + .. include:: /api_ru.desc/php/swing/UIMenuItem.footer.rst diff --git a/api_ru/php/swing/UIPopupMenu.rst b/api_ru/php/swing/UIPopupMenu.rst index 05bc156..2a0fb86 100644 --- a/api_ru/php/swing/UIPopupMenu.rst +++ b/api_ru/php/swing/UIPopupMenu.rst @@ -9,6 +9,8 @@ UIPopupMenu Class UIPopupMenu + + Events: open, close, cancel @@ -46,6 +48,12 @@ UIPopupMenu :param $component: :doc:`php\\swing\\UIElement ` + .. php:method:: show($invoker, $x, $y) + + :param $invoker: :doc:`php\\swing\\UIElement ` + :param $x: :doc:`int ` + :param $y: :doc:`int ` + .. include:: /api_ru.desc/php/swing/UIPopupMenu.footer.rst diff --git a/api_ru/php/swing/UIReader.rst b/api_ru/php/swing/UIReader.rst index ffd1894..af48507 100644 --- a/api_ru/php/swing/UIReader.rst +++ b/api_ru/php/swing/UIReader.rst @@ -9,6 +9,18 @@ UIReader +**Properties** + +---------- + + .. php:attr:: useInternalForms + + :doc:`bool ` + + Enables that the reader will create instances of UIInternalForm insteadof UIForm and UIDialog + + + **Methods** ---------- diff --git a/api_ru/php/swing/UIRichTextArea.rst b/api_ru/php/swing/UIRichTextArea.rst new file mode 100644 index 0000000..d60e3bd --- /dev/null +++ b/api_ru/php/swing/UIRichTextArea.rst @@ -0,0 +1,56 @@ +UIRichTextArea +------------------------ + +.. include:: /api_ru.desc/php/swing/UIRichTextArea.header.rst + +.. php:class:: php\\swing\\UIRichTextArea + + **extends**: :doc:`php\\swing\\UITextElement ` + + + Class UIRichTextArea + + + +**Properties** + +---------- + + .. php:attr:: logicalStyle + + :doc:`php\\swing\\text\\Style ` + + .. php:attr:: horScrollPolicy + + :doc:`php\\swing\\string - ALWAYS, HIDDEN, AUTO ` + + .. php:attr:: verScrollPolicy + + :doc:`php\\swing\\string - ALWAYS, HIDDEN, AUTO ` + + + +**Methods** + +---------- + + .. php:method:: addStyle($name, $parent = null) + + :param $name: :doc:`string ` + :param $parent: :doc:`php\\swing\\text\\Style ` + :returns: :doc:`php\\swing\\text\\Style ` + + .. php:method:: getStyle($name) + + :param $name: :doc:`string ` + :returns: :doc:`php\\swing\\text\\Style ` + + .. php:method:: appendText($text, $style) + + :param $text: :doc:`string ` + :param $style: :doc:`php\\swing\\text\\Style ` + + + +.. include:: /api_ru.desc/php/swing/UIRichTextArea.footer.rst + diff --git a/api_ru/php/swing/UITabs.rst b/api_ru/php/swing/UITabs.rst index 0c53a2a..354ea8c 100644 --- a/api_ru/php/swing/UITabs.rst +++ b/api_ru/php/swing/UITabs.rst @@ -9,6 +9,8 @@ UITabs Class UITabs + + Events: change @@ -28,6 +30,13 @@ UITabs :doc:`php\\swing\\string - left, right, top, bottom ` + .. php:attr:: tabCount + + :doc:`int ` + + **read-only** + + **Methods** diff --git a/api_ru/php/swing/UITextElement.rst b/api_ru/php/swing/UITextElement.rst index 3253bd4..bb5414a 100644 --- a/api_ru/php/swing/UITextElement.rst +++ b/api_ru/php/swing/UITextElement.rst @@ -15,6 +15,7 @@ UITextElement * **class** :doc:`php\\swing\\UIEdit ` * **class** :doc:`php\\swing\\UIEditorArea ` + * **class** :doc:`php\\swing\\UIRichTextArea ` * **class** :doc:`php\\swing\\UITextArea ` diff --git a/api_ru/php/swing/UITree.rst b/api_ru/php/swing/UITree.rst index d532c9d..d89890c 100644 --- a/api_ru/php/swing/UITree.rst +++ b/api_ru/php/swing/UITree.rst @@ -214,6 +214,10 @@ UITree :param $node: :doc:`php\\swing\\tree\\TreeNode ` + .. php:method:: scrollToNode($node) + + :param $node: :doc:`php\\swing\\tree\\TreeNode ` + .. php:method:: cancelEditing() diff --git a/api_ru/php/swing/index.rst b/api_ru/php/swing/index.rst index 30b3be7..8f1424a 100644 --- a/api_ru/php/swing/index.rst +++ b/api_ru/php/swing/index.rst @@ -14,6 +14,8 @@ swing Graphics.rst Image.rst SwingUtilities.rst + SwingWorker.rst + text/index Timer.rst tree/index UIAbstractIButton.rst @@ -23,6 +25,7 @@ swing UIColorChooser.rst UICombobox.rst UIContainer.rst + UIDesktopPanel.rst UIDialog.rst UIEdit.rst UIEditorArea.rst @@ -30,6 +33,7 @@ swing UIFileChooser.rst UIForm.rst UIImage.rst + UIInternalForm.rst UILabel.rst UIListbox.rst UIManager.rst @@ -41,6 +45,7 @@ swing UIProgress.rst UIRadioButton.rst UIReader.rst + UIRichTextArea.rst UIScrollPanel.rst UISlider.rst UITable.rst diff --git a/api_ru/php/swing/text/Style.rst b/api_ru/php/swing/text/Style.rst new file mode 100644 index 0000000..ceabab8 --- /dev/null +++ b/api_ru/php/swing/text/Style.rst @@ -0,0 +1,31 @@ +Style +-------------------- + +.. include:: /api_ru.desc/php/swing/text/Style.header.rst + +.. php:class:: php\\swing\\text\\Style + + Class TextStyle + + + +**Properties** + +---------- + + .. php:attr:: background + + :doc:`php\\swing\\Color ` + + .. php:attr:: foreground + + :doc:`php\\swing\\Color ` + + .. php:attr:: bold + + :doc:`bool ` + + + +.. include:: /api_ru.desc/php/swing/text/Style.footer.rst + diff --git a/api_ru/php/swing/text/index.rst b/api_ru/php/swing/text/index.rst new file mode 100644 index 0000000..c578834 --- /dev/null +++ b/api_ru/php/swing/text/index.rst @@ -0,0 +1,13 @@ +text +------------------------------ + + +.. include:: /api_ru.desc/php/swing/text/index.header.rst + +.. toctree:: + :maxdepth: 3 + + Style.rst + +.. include:: /api_ru.desc/php/swing/text/index.footer.rst + diff --git a/en/getstarted.rst b/en/getstarted.rst index 9c7d37b..731dfa6 100644 --- a/en/getstarted.rst +++ b/en/getstarted.rst @@ -60,16 +60,17 @@ And add our maven repository: .. code-block:: xml - DevelNext Repo - http://maven.develnext.org/repository/snapshots/ + Sonatype Repo + https://oss.sonatype.org/content/repositories/snapshots/ You can also try our extensions for jphp (only change ``artifactId`` to the next values): #. ``jphp-zend-ext`` - Extension for backward capability with Zend PHP #. ``jphp-json-ext`` - JSON extension -#. ``jphp-cli`` - for using JPHP via CLI #. ``jphp-swing-ext`` - GUI extension based on Swing. +#. ``jphp-http-ext`` - HTTP Client extension +#. ``jphp-cli`` - for using JPHP via CLI Create executable JAR >>>>>>>>>>>>>>>>>>>>>