You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/12/01 08:59:36 UTC
[royale-asjs] branch develop updated: Create IMenuBarItemRenderer.as
This is an automated email from the ASF dual-hosted git repository.
pushminakazi 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 5888045 Create IMenuBarItemRenderer.as
5888045 is described below
commit 5888045c76c73b7db0f638c03690f97b9da6762f
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Tue Dec 1 13:58:52 2020 +0500
Create IMenuBarItemRenderer.as
---
.../controls/menuClasses/IMenuBarItemRenderer.as | 127 +++++++++++++++++++++
1 file changed, 127 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/menuClasses/IMenuBarItemRenderer.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/menuClasses/IMenuBarItemRenderer.as
new file mode 100644
index 0000000..5e11f47
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/menuClasses/IMenuBarItemRenderer.as
@@ -0,0 +1,127 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 mx.controls.menuClasses
+{
+
+import mx.controls.MenuBar;
+import mx.controls.listClasses.IListItemRenderer;
+import mx.core.IDataRenderer;
+import mx.core.IUIComponent;
+import mx.core.mx_internal;
+import mx.styles.ISimpleStyleClient;
+
+use namespace mx_internal;
+
+/**
+ * The IMenuBarItemRenderer interface defines the interface
+ * that an item renderer for the top-level menu bar of a
+ * MenuBar control must implement.
+ * The item renderer defines the look of the individual buttons
+ * in the top-level menu bar.
+ *
+ * To implement this interface, you must define a
+ * setter and getter method that implements the <code>menuBar</code>,
+ * <code>menuBarItemIndex</code>, and <code>menuBarItemState</code> properties.
+ *
+ * @see mx.controls.MenuBar
+ * @see mx.controls.menuClasses.MenuBarItem
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+
+public interface IMenuBarItemRenderer extends IDataRenderer, IUIComponent, ISimpleStyleClient, IListItemRenderer
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ //----------------------------------
+ // menuBar
+ //----------------------------------
+
+ /**
+ * Contains a reference to the item renderer's MenuBar control.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ function get menuBar():MenuBar;
+
+ /**
+ * @private
+ */
+ function set menuBar(value:MenuBar):void;
+
+ //----------------------------------
+ // menuBarItemIndex
+ //----------------------------------
+
+ /**
+ * Contains the index of this item renderer relative to
+ * other item renderers in the MenuBar control.
+ * The index of the first item renderer,
+ * the left most renderer, is 0 and increases by 1 as you
+ * move to the right in the MenuBar control.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ function get menuBarItemIndex():int;
+
+ /**
+ * @private
+ */
+ function set menuBarItemIndex(value:int):void;
+
+
+ //----------------------------------
+ // menuBarItemState
+ //----------------------------------
+
+ /**
+ * Contains the current state of this item renderer.
+ * The possible values are <code>"itemUpSkin"</code>,
+ * <code>"itemDownSkin"</code>, and <code>"itemOverSkin"</code>.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ function get menuBarItemState():String;
+
+ /**
+ * @private
+ */
+ function set menuBarItemState(value:String):void;
+
+
+}
+}