royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zarzycki <piotrzarzyck...@gmail.com>
Subject Re: [royale-asjs] branch develop updated: Added Form
Date Mon, 04 Dec 2017 19:11:56 GMT
Harbs,

Isn't form is part of the Basic ? What are you going to do with that one ?

Piotr

2017-12-04 20:06 GMT+01:00 <harbs@apache.org>:

> This is an automated email from the ASF dual-hosted git repository.
>
> harbs pushed a commit to branch develop
> in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
>
>
> The following commit(s) were added to refs/heads/develop by this push:
>      new 35e2aaf  Added Form
> 35e2aaf is described below
>
> commit 35e2aaf6db704e2cef6b8d84f15d34a645560ef2
> Author: Harbs <harbs@in-tools.com>
> AuthorDate: Mon Dec 4 21:06:36 2017 +0200
>
>     Added Form
> ---
>  .../HTML/src/main/resources/html-manifest.xml      |   1 +
>  .../royale/org/apache/royale/html/elements/Form.as | 171
> +++++++++++++++++++++
>  2 files changed, 172 insertions(+)
>
> diff --git a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
> b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
> index aeaa6b3..2bbab7f 100644
> --- a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
> +++ b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
> @@ -28,6 +28,7 @@
>      <component id="Colgroup" class="org.apache.royale.html.elements.Colgroup"
> />
>      <component id="Div" class="org.apache.royale.html.elements.Div" />
>      <component id="Em" class="org.apache.royale.html.elements.Em" />
> +    <component id="Form" class="org.apache.royale.html.elements.Form" />
>      <component id="H1" class="org.apache.royale.html.elements.H1" />
>      <component id="H2" class="org.apache.royale.html.elements.H2" />
>      <component id="H3" class="org.apache.royale.html.elements.H3" />
> diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Form.as
> b/frameworks/projects/HTML/src/main/royale/org/apache/
> royale/html/elements/Form.as
> new file mode 100644
> index 0000000..56befcf
> --- /dev/null
> +++ b/frameworks/projects/HTML/src/main/royale/org/apache/
> royale/html/elements/Form.as
> @@ -0,0 +1,171 @@
> +///////////////////////////////////////////////////////////
> /////////////////////
> +//
> +//  Licensed to the Apache Software Foundation (ASF) under one or more
> +//  contributor license agreements.  See the NOTICE file distributed with
> +//  this work for additional information regarding copyright ownership.
> +//  The ASF licenses this file to You under the Apache License, Version
> 2.0
> +//  (the "License"); you may not use this file except in compliance with
> +//  the License.  You may obtain a copy of the License at
> +//
> +//      http://www.apache.org/licenses/LICENSE-2.0
> +//
> +//  Unless required by applicable law or agreed to in writing, software
> +//  distributed under the License is distributed on an "AS IS" BASIS,
> +//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +//  See the License for the specific language governing permissions and
> +//  limitations under the License.
> +//
> +///////////////////////////////////////////////////////////
> /////////////////////
> +package org.apache.royale.html.elements
> +{
> +       import org.apache.royale.core.UIBase;
> +
> +    COMPILE::JS
> +    {
> +        import org.apache.royale.core.WrappedHTMLElement;
> +               import org.apache.royale.html.util.addElementToWrapper;
> +    }
> +    import org.apache.royale.html.NodeElementBase;
> +
> +       /**
> +        *  The Form class represents an HTML <form> element
> +     *
> +        *
> +     *  @toplevel
> +        *  @langversion 3.0
> +        *  @playerversion Flash 10.2
> +        *  @playerversion AIR 2.6
> +        *  @productversion Royale 0.0
> +        */
> +       public class Form extends NodeElementBase
> +       {
> +               /**
> +                *  constructor.
> +                *
> +                *  @langversion 3.0
> +                *  @playerversion Flash 10.2
> +                *  @playerversion AIR 2.6
> +                *  @productversion Royale 0.0
> +                */
> +               public function Form()
> +               {
> +                       super();
> +               }
> +
> +        COMPILE::JS
> +        private function get form():HTMLFormElement
> +        {
> +            return element as HTMLFormElement;
> +        }
> +
> +
> +               COMPILE::SWF
> +        private var _method:String;
> +        /**
> +         *  The form method (either "post" or "get")
> +         *
> +         *  @langversion 3.0
> +         *  @playerversion Flash 10.2
> +         *  @playerversion AIR 2.6
> +         *  @productversion Royale 0.9
> +         */
> +        public function get method():String
> +        {
> +            COMPILE::SWF
> +            {
> +                return _method;
> +            }
> +
> +            COMPILE::JS
> +            {
> +                return form.method;
> +            }
> +        }
> +        public function set method(value:String):void
> +        {
> +            COMPILE::SWF
> +            {
> +                _method = value;
> +            }
> +            COMPILE::JS
> +            {
> +                form.method = value;
> +            }
> +        }
> +
> +               COMPILE::SWF
> +        private var _name:String;
> +        /**
> +         *  The form name
> +         *
> +         *  @langversion 3.0
> +         *  @playerversion Flash 10.2
> +         *  @playerversion AIR 2.6
> +         *  @productversion Royale 0.9
> +         */
> +        public function get name():String
> +        {
> +            COMPILE::SWF
> +            {
> +                return _name;
> +            }
> +
> +            COMPILE::JS
> +            {
> +                return form.name;
> +            }
> +        }
> +        public function set name(value:String):void
> +        {
> +            COMPILE::SWF
> +            {
> +                _name = value;
> +            }
> +            COMPILE::JS
> +            {
> +                form.name = value;
> +            }
> +        }
> +
> +               COMPILE::SWF
> +        private var _target:String;
> +        /**
> +         *  The form target
> +         *  Acceptable values are _self _blank _parent _top or an iframe
> name
> +         *
> +         *  @langversion 3.0
> +         *  @playerversion Flash 10.2
> +         *  @playerversion AIR 2.6
> +         *  @productversion Royale 0.9
> +         */
> +        public function get target():String
> +        {
> +            COMPILE::SWF
> +            {
> +                return _target;
> +            }
> +
> +            COMPILE::JS
> +            {
> +                return form.target;
> +            }
> +        }
> +        public function set target(value:String):void
> +        {
> +            COMPILE::SWF
> +            {
> +                _target = value;
> +            }
> +            COMPILE::JS
> +            {
> +                form.target = value;
> +            }
> +        }
> +
> +        COMPILE::JS
> +        override protected function createElement():WrappedHTMLElement
> +        {
> +                       return addElementToWrapper(this,'form');
> +        }
> +    }
> +}
>
> --
> To stop receiving notification emails like this one, please contact
> ['"commits@royale.apache.org" <commits@royale.apache.org>'].
>



-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message