-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathGridViewCellState.hx
More file actions
110 lines (81 loc) · 2.21 KB
/
Copy pathGridViewCellState.hx
File metadata and controls
110 lines (81 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
Feathers UI
Copyright 2026 Bowler Hat LLC. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
accordance with the terms of the accompanying license agreement.
*/
package feathers.data;
import feathers.controls.GridView;
import feathers.controls.GridViewColumn;
/**
Represents the current state of a `GridView` cell renderer.
@see `feathers.controls.GridView`
@see `feathers.controls.GridView.cellRendererRecycler`
@see `feathers.controls.GridViewColumn`
@see `feathers.controls.GridViewColumn.cellRendererRecycler`
@since 1.0.0
**/
class GridViewCellState {
/**
Creates a new `GridViewCellState` object with the given arguments.
@since 1.0.0
**/
public function new(data:Dynamic = null, rowIndex:Int = -1, columnIndex:Int = -1, selected:Bool = false, text:String = null) {
this.data = data;
this.rowIndex = rowIndex;
this.columnIndex = columnIndex;
this.selected = false;
this.text = text;
}
/**
Returns a reference to the `GridView` that contains this cell.
@since 1.0.0
**/
public var owner:GridView;
/**
An row from the collection displayed by the `GridView`.
@since 1.0.0
**/
public var data:Dynamic;
/**
The vertical position of the cell within the `GridView`.
@since 1.0.0
**/
public var rowIndex:Int = -1;
/**
The horizontal position of the cell within the `GridView`.
@since 1.0.0
**/
public var columnIndex:Int = -1;
/**
The column of the cell.
@since 1.0.0
**/
public var column:GridViewColumn;
/**
Returns whether the cell is selected or not.
@see `feathers.controls.GridView.selectedIndex`
@see `feathers.controls.GridView.selectedItem`
@since 1.0.0
**/
public var selected:Bool = false;
/**
Returns the text to display for the cell, as returned by the function
`GridViewColumn.itemToText`.
@see `feathers.controls.GridViewColumn.itemToText`
@since 1.0.0
**/
public var text:String;
/**
Returns whether the cell is enabled or not.
@see `feathers.core.IUIControl.enabled`
@since 1.0.0
**/
public var enabled:Bool = true;
/**
Returns the cell's recycler ID.
@see `feathers.controls.GridViewColumn.cellRendererRecyclerIDFunction`
@since 1.4.0
**/
public var recyclerID:String;
}