Ejemplo n.º 1
0
 public ColumnCellAccessible (object bound_object, ColumnCell cell, ICellAccessibleParent parent)
 {
     Role = Atk.Role.TableCell;
     this.bound_object = bound_object;
     this.cell = cell;
     cell_parent = parent;
     Parent = (Atk.Object) parent;
 }
 public ColumnCellAccessible(object bound_object, ColumnCell cell, ICellAccessibleParent parent)
 {
     Role = Atk.Role.TableCell;
     this.bound_object = bound_object;
     this.cell         = cell;
     cell_parent       = parent;
     Parent            = (Atk.Object)parent;
 }
Ejemplo n.º 3
0
 public ColumnCellAlbumAccessible (object bound_object, ColumnCellAlbum cell, ICellAccessibleParent parent)
     : base (bound_object, cell as ColumnCell, parent)
 {
     var bound_album_info = bound_object as AlbumInfo;
     if (bound_album_info != null) {
         Name = String.Format ("{0} - {1}",
                              bound_album_info.DisplayTitle,
                              bound_album_info.DisplayArtistName);
     }
 }
        public bool DoAction(int action)
        {
            ICellAccessibleParent parent = (ICellAccessibleParent)Parent;

            switch ((Actions)action)
            {
            case Actions.Menu: parent.InvokeColumnHeaderMenu(this); break;

            case Actions.Click: parent.ClickColumnHeader(this); break;
            }

            if (action == (int)Actions.Menu)
            {
                ((ICellAccessibleParent)Parent).InvokeColumnHeaderMenu(this);
            }

            return(true);
        }
Ejemplo n.º 5
0
 public override Atk.Object GetAccessible(ICellAccessibleParent parent)
 {
     return(new ColumnCellStatusIndicatorAccessible(BoundObject, this, parent));
 }
Ejemplo n.º 6
0
 public override Atk.Object GetAccessible(ICellAccessibleParent parent)
 {
     return new ColumnCellAlbumAccessible (BoundObject, this, parent);
 }
 public ColumnHeaderCellTextAccessible (object bound_object, ColumnHeaderCellText cell, ICellAccessibleParent parent)
     : base (bound_object, cell as ColumnCellText, parent)
 {
     Role = Atk.Role.TableColumnHeader;
 }
Ejemplo n.º 8
0
 public virtual Atk.Object GetAccessible(ICellAccessibleParent parent)
 {
     return(new ColumnCellAccessible(BoundObject, this, parent));
 }
Ejemplo n.º 9
0
 public ColumnCellTextAccessible(object bound_object, ColumnCellText cell, ICellAccessibleParent parent) : base(bound_object, cell as ColumnCell, parent)
 {
     Name = cell.GetTextAlternative(bound_object);
 }
Ejemplo n.º 10
0
 public virtual Atk.Object GetAccessible (ICellAccessibleParent parent)
 {
     return new ColumnCellAccessible (BoundObject, this, parent);
 }
Ejemplo n.º 11
0
 public override Atk.Object GetAccessible(ICellAccessibleParent parent)
 {
     return(new ColumnCellAlbumAccessible(BoundObject, this, parent));
 }
Ejemplo n.º 12
0
 public override Atk.Object GetAccessible(ICellAccessibleParent parent)
 {
     return new ColumnCellStatusIndicatorAccessible (BoundObject, this, parent);
 }
 public ColumnHeaderCellTextAccessible(object bound_object, ColumnHeaderCellText cell, ICellAccessibleParent parent)
     : base(bound_object, cell as ColumnCellText, parent)
 {
     Role = Atk.Role.TableColumnHeader;
 }
 public ColumnCellArtistAccessible(object boundObject, ColumnCellArtistCover cell, ICellAccessibleParent parent)
     : base(boundObject, cell, parent)
 {
     var bound_artist_info = boundObject as ArtistInfo;
     if (bound_artist_info != null) {
         Name = bound_artist_info.DisplayName;
     }
 }
Ejemplo n.º 15
0
            public ColumnCellAlbumAccessible(object bound_object, ColumnCellAlbum cell, ICellAccessibleParent parent)
                : base(bound_object, cell as ColumnCell, parent)
            {
                AlbumInfo bound_album_info = (AlbumInfo)bound_object;

                Name = String.Format("{0} - {1}",
                                     bound_album_info.DisplayTitle,
                                     bound_album_info.DisplayArtistName);
            }
Ejemplo n.º 16
0
 public ColumnCellStatusIndicatorAccessible(object bound_object, ColumnCellStatusIndicator cell, ICellAccessibleParent parent) : base(bound_object, cell as ColumnCell, parent)
 {
     image_description = cell.GetTextAlternative(bound_object);
 }
Ejemplo n.º 17
0
            public ColumnCellAlbumAccessible(object bound_object, ColumnCellAlbum cell, ICellAccessibleParent parent)
                : base(bound_object, cell as ColumnCell, parent)
            {
                var bound_album_info = bound_object as AlbumInfo;

                if (bound_album_info != null)
                {
                    Name = String.Format("{0} - {1}",
                                         bound_album_info.DisplayTitle,
                                         bound_album_info.DisplayArtistName);
                }
            }
Ejemplo n.º 18
0
 public ColumnCellStatusIndicatorAccessible(object bound_object, ColumnCellStatusIndicator cell, ICellAccessibleParent parent)
     : base(bound_object, cell as ColumnCell, parent)
 {
     image_description = cell.GetTextAlternative (bound_object);
 }
Ejemplo n.º 19
0
 public ColumnCellTextAccessible (object bound_object, ColumnCellText cell, ICellAccessibleParent parent): base (bound_object, cell as ColumnCell, parent)
 {
     Name = cell.GetTextAlternative (bound_object);
 }
            public ColumnCellArtistAccessible(object boundObject, ColumnCellArtistCover cell, ICellAccessibleParent parent)
                : base(boundObject, cell, parent)
            {
                var bound_artist_info = boundObject as ArtistInfo;

                if (bound_artist_info != null)
                {
                    Name = bound_artist_info.DisplayName;
                }
            }