Ejemplo n.º 1
0
        /// <summary>
        /// Called when the focus changed in grid
        /// </summary>
        /// <param name="groupIndex">The index of the group</param>
        /// <param name="itemIndex">The index of the item</param>
        /// <param name="view">the item</param>
        /// <param name="FlagFocused">The falg to tell user it is focusGained or focusLost</param>
        /// <param name="bSelected">It is selected or not</param>
        public override void FocusChange(int groupIndex, int itemIndex, View view, bool FlagFocused, bool bSelected = false)
        {
            ThumbnailView itemView = view as ThumbnailView;

            itemView.StateFocused = FlagFocused;
            Tizen.Log.Fatal("NUI", "FocusChange in GridView!");
            FootView footView = CommonResource.FootView;

            if (FlagFocused == true)
            {
                Tizen.Log.Fatal("NUI", " Gridlist view onFocus change index:" + itemIndex);
                ContentModel item      = (ContentModel)GetData(itemIndex, groupIndex);
                FootModel    footModel = new FootModel();
                footModel.ItemType = item.MediaItemType;
                footModel.Title    = item.DisplayName;
                footModel.Size     = item.Size;
                footModel.Format   = item.Format;
                footModel.Data     = item.Data;
                if (footView)
                {
                    footView.Update(footModel);
                }

                Tizen.Log.Fatal("NUI", " Gridlist view onFocus change footModel.ItemType:" + footModel.ItemType);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Unload the item according to the group index and item index.
        /// </summary>
        /// <param name="groupIndex">the group index</param>
        /// <param name="itemIndex">the item index</param>
        /// <param name="view">the specific item</param>
        public override void UnloadItem(int groupIndex, int itemIndex, View view)
        {
            ThumbnailView itemView = view as ThumbnailView;

            if (itemView != null)
            {
                itemView.UnloadItem();
                itemView.Dispose();
                itemView = null;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// update the item according to the group index and item index.
        /// </summary>
        /// <param name="groupIndex">the group index</param>
        /// <param name="itemIndex">the item index</param>
        /// <param name="view">the item</param>
        public override void UpdateItem(int groupIndex, int itemIndex, View view)
        {
            Tizen.Log.Fatal("NUI", "Gridlistview UpdateItem  groupIndex:" + groupIndex + " itemIndex:" + itemIndex);
            if (view == null)
            {
                Tizen.Log.Fatal("NUI", "Gridlistview UpdateItem  view == null");
                return;
            }

            ThumbnailView itemView = view as ThumbnailView;

            itemView.UpdateItem(this, groupIndex, itemIndex, EditMode);
        }