Monotone-Parent: 909e381d554b9528951752a0184002a0f2396291
Monotone-Revision: 3757df8ac9e5d424ceeb411dc2dba958b01a28bb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-19T14:37:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
7973bcae73
commit
ee39aab212
|
@ -30,6 +30,7 @@
|
|||
id month;
|
||||
id year;
|
||||
NSString *label;
|
||||
BOOL isDisabled;
|
||||
}
|
||||
|
||||
- (NSString *)dateID;
|
||||
|
@ -42,6 +43,16 @@
|
|||
|
||||
@implementation UIxDatePicker
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
isDisabled = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[self->dateID release];
|
||||
[self->day release];
|
||||
|
@ -157,6 +168,7 @@
|
|||
[self warnWithFormat:@"Could not parse dateString: '%@'",
|
||||
dateString];
|
||||
}
|
||||
|
||||
[self setDay: [NSNumber numberWithInt:[d dayOfMonth]]];
|
||||
[self setMonth:[NSNumber numberWithInt:[d monthOfYear]]];
|
||||
[self setYear: [NSNumber numberWithInt:[d yearOfCommonEra]]];
|
||||
|
@ -164,4 +176,14 @@
|
|||
[super takeValuesFromRequest:_rq inContext:_ctx];
|
||||
}
|
||||
|
||||
- (void) setDisabled: (BOOL) disabled
|
||||
{
|
||||
isDisabled = disabled;
|
||||
}
|
||||
|
||||
- (BOOL) disabled
|
||||
{
|
||||
return isDisabled;
|
||||
}
|
||||
|
||||
@end /* UIxDatePicker */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
xmlns:rsrc="OGo:url"
|
||||
class="datePicker"
|
||||
><input type="text"
|
||||
var:disabled="disabled"
|
||||
class="textField"
|
||||
var:name="dateID"
|
||||
var:id="dateID"
|
||||
|
|
Loading…
Reference in a new issue