You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/05/13 06:58:38 UTC
[royale-asjs] 01/04: new interfaces for Menus
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 7610f525803ea9d1e14523b5c2a610594eba3191
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue May 12 00:38:46 2020 -0700
new interfaces for Menus
---
.../projects/Core/src/main/royale/CoreClasses.as | 2 ++
.../org/apache/royale/core/ICascadingMenuModel.as | 37 ++++++++++++++++++++++
.../royale/org/apache/royale/core/IMenuModel.as | 33 +++++++++++++++++++
3 files changed, 72 insertions(+)
diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as
index 8a6c776..e4a28d7 100644
--- a/frameworks/projects/Core/src/main/royale/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as
@@ -155,6 +155,8 @@ internal class CoreClasses
import org.apache.royale.core.IStrandWithModel; IStrandWithModel;
import org.apache.royale.core.IStrandWithModelView; IStrandWithModelView;
import org.apache.royale.core.ITextModel; ITextModel;
+ import org.apache.royale.core.IMenuModel; IMenuModel;
+ import org.apache.royale.core.ICascadingMenuModel; ICascadingMenuModel;
import org.apache.royale.core.IColorModel; IColorModel;
import org.apache.royale.core.IColorSpectrumModel; IColorSpectrumModel;
import org.apache.royale.core.ITitleBarModel; ITitleBarModel;
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ICascadingMenuModel.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ICascadingMenuModel.as
new file mode 100644
index 0000000..256df72
--- /dev/null
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ICascadingMenuModel.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.core
+{
+ /**
+ * The ITextModel interface describes the minimum set of properties
+ * available to control that displays text. More sophisticated controls
+ * often have models that extend ITextModel.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public interface ICascadingMenuModel extends IMenuModel
+ {
+ function get submenuField():String;
+ function set submenuField(value:String):void
+
+ }
+}
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IMenuModel.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IMenuModel.as
new file mode 100644
index 0000000..261a3fc
--- /dev/null
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IMenuModel.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.core
+{
+ /**
+ * The IMenuModel interface describes the minimum set of properties
+ * available for a Menu.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public interface IMenuModel extends ISelectionModel
+ {
+ }
+}