forked from extnet/Ext.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgressBar.WaitConfig.cs
More file actions
186 lines (169 loc) · 6.36 KB
/
ProgressBar.WaitConfig.cs
File metadata and controls
186 lines (169 loc) · 6.36 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/********
* @version : 2.1.1 - Ext.NET Pro License
* @author : Ext.NET, Inc. http://www.ext.net/
* @date : 2012-12-10
* @copyright : Copyright (c) 2007-2012, Ext.NET, Inc. (http://www.ext.net/). All rights reserved.
* @license : See license.txt and http://www.ext.net/license/.
********/
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Drawing;
using System.Web.UI;
namespace Ext.Net
{
/// <summary>
/// A config object containing any or all of the following properties. If this object is not specified the status will be cleared using the defaults.
/// </summary>
[ToolboxItem(false)]
[Description("A config object containing any or all of the following properties. If this object is not specified the status will be cleared using the defaults.")]
public partial class WaitConfig : ExtObject
{
/// <summary>
///
/// </summary>
[Description("")]
public WaitConfig() { }
/// <summary>
///
/// </summary>
[Description("")]
public virtual string ToJsonString()
{
return new ClientConfig().Serialize(this);
}
int duration = -1;
/// <summary>
/// The length of time in milliseconds that the progress bar should run before resetting itself (defaults to undefined, in which case it will run indefinitely until reset is called)
/// </summary>
[ConfigOption]
[DefaultValue(-1)]
[NotifyParentProperty(true)]
[Description("The length of time in milliseconds that the progress bar should run before resetting itself (defaults to undefined, in which case it will run indefinitely until reset is called)")]
public virtual int Duration
{
get
{
return this.duration;
}
set
{
this.duration = value;
}
}
int interval = 1000;
/// <summary>
/// The length of time in milliseconds between each progress update (defaults to 1000 ms)
/// </summary>
[ConfigOption]
[DefaultValue(1000)]
[NotifyParentProperty(true)]
[Description("The length of time in milliseconds between each progress update (defaults to 1000 ms)")]
public virtual int Interval
{
get
{
return this.interval;
}
set
{
this.interval = value;
}
}
bool? animate = null;
/// <summary>
/// Whether to animate the transition of the progress bar. If this value is not specified, the default for the class is used.
/// </summary>
[ConfigOption]
[DefaultValue(null)]
[NotifyParentProperty(true)]
[Description("Whether to animate the transition of the progress bar. If this value is not specified, the default for the class is used.")]
public virtual bool? Animate
{
get
{
return this.animate;
}
set
{
this.animate = value;
}
}
int increment = 10;
/// <summary>
/// The number of progress update segments to display within the progress bar (defaults to 10). If the bar reaches the end and is still updating, it will automatically wrap back to the beginning.
/// </summary>
[ConfigOption]
[DefaultValue(10)]
[NotifyParentProperty(true)]
[Description("The number of progress update segments to display within the progress bar (defaults to 10). If the bar reaches the end and is still updating, it will automatically wrap back to the beginning.")]
public virtual int Increment
{
get
{
return this.increment;
}
set
{
this.increment = value;
}
}
string text = "";
/// <summary>
/// Optional text to display in the progress bar element (defaults to '').
/// </summary>
[ConfigOption]
[DefaultValue("")]
[NotifyParentProperty(true)]
[Description("Optional text to display in the progress bar element (defaults to '').")]
public virtual string Text
{
get
{
return this.text;
}
set
{
this.text = value;
}
}
string fn = "";
/// <summary>
/// A callback function to execute after the progress bar finishes auto-updating. The function will be called with no arguments. This function will be ignored if duration is not specified since in that case the progress bar can only be stopped programmatically, so any required function should be called by the same code after it resets the progress bar.
/// </summary>
[ConfigOption(JsonMode.Raw)]
[DefaultValue("")]
[NotifyParentProperty(true)]
[Description("A callback function to execute after the progress bar finishes auto-updating. The function will be called with no arguments. This function will be ignored if duration is not specified since in that case the progress bar can only be stopped programmatically, so any required function should be called by the same code after it resets the progress bar.")]
public virtual string Fn
{
get
{
return this.fn;
}
set
{
this.fn = value;
}
}
string scope = "";
/// <summary>
/// The scope that is passed to the callback function (only applies when duration and fn are both passed).
/// </summary>
[ConfigOption(JsonMode.Raw)]
[DefaultValue("")]
[NotifyParentProperty(true)]
[Description("The scope that is passed to the callback function (only applies when duration and fn are both passed).")]
public virtual string Scope
{
get
{
return this.scope;
}
set
{
this.scope = value;
}
}
}
}