API  0.9.10
CPDatePicker Class Reference

#import <CPDatePicker.h>

+ Inheritance diagram for CPDatePicker:

Instance Methods

(BOOL) - acceptsFirstResponder
 
(BOOL) - becomeFirstResponder
 
(CPCalendar) - calendar
 
(CPInteger) - datePickerElements
 
(CPInteger) - datePickerMode
 
(CPInteger) - datePickerStyle
 
(CPDate- dateValue
 
(id) - delegate
 
(BOOL) - drawsBackground
 
(void) - encodeWithCoder:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(BOOL) - isBezeled
 
(BOOL) - isBordered
 
(void) - keyDown:
 
(void) - layoutSubviews
 
(CPLocale- locale
 
(CPDate- maxDate
 
(CPDate- minDate
 
(id) - objectValue
 
(BOOL) - resignFirstResponder
 
(void) - setBackgroundColor:
 
(void) - setBezeled:
 
(void) - setBordered:
 
(void) - setCalendar:
 
(void) - setControlSize:
 
(void) - setDatePickerElements:
 
(void) - setDatePickerMode:
 
(void) - setDatePickerStyle:
 
(void) - setDateValue:
 
(void) - setDelegate:
 
(void) - setDrawsBackground:
 
(void) - setEnabled:
 
(void) - setLocale:
 
(void) - setMaxDate:
 
(void) - setMinDate:
 
(void) - setObjectValue:
 
(void) - setTextFont:
 
(void) - setTimeInterval:
 
(void) - setTimeZone:
 
(CPFont- textFont
 
(CPInteger) - timeInterval
 
(CPTimeZone- timeZone
 
- Instance Methods inherited from CPControl
(BOOL) - acceptsFirstMouse:
 
(SEL) - action
 
(CPTextAlignment) - alignment
 
(CPWritingDirection) - baseWritingDirection
 
(BOOL) - continueTracking:at:
 
(CPControlSize) - controlSize
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPUInteger) - imageScaling
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(void) - mouseDown:
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(void) - performClick:
 
(BOOL) - sendAction:to:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setBaseWritingDirection:
 
(void) - setContinuous:
 
(void) - setDoubleValue:
 
(void) - setFloatValue:
 
(void) - setFont:
 
(void) - setFormatter:
 
(void) - setHighlighted:
 
(void) - setImagePosition:
 
(void) - setImageScaling:
 
(void) - setIntegerValue:
 
(void) - setIntValue:
 
(void) - setLineBreakMode:
 
(void) - setObjectValue:
 
(void) - setSendsActionOnEndEditing:
 
(void) - setState:
 
(void) - setStringValue:
 
(void) - setTarget:
 
(void) - setTextColor:
 
(void) - setTextShadowColor:
 
(void) - setTextShadowOffset:
 
(void) - setVerticalAlignment:
 
(BOOL) - startTrackingAt:
 
(void) - stopTracking:at:mouseIsUp:
 
(CPString- stringValue
 
(void) - takeDoubleValueFrom:
 
(void) - takeFloatValueFrom:
 
(void) - takeIntegerValueFrom:
 
(void) - takeIntValueFrom:
 
(void) - takeObjectValueFrom:
 
(void) - takeStringValueFrom:
 
(id) - target
 
(CPColor- textColor
 
(void) - textDidBeginEditing:
 
(void) - textDidChange:
 
(void) - textDidEndEditing:
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(void) - updateTrackingAreas
 
(CPTextVerticalAlignment) - verticalAlignment
 
- Instance Methods inherited from CPView
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(CPString- debug_description
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeAllTrackingAreas
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Class Methods

(CPString+ defaultThemeClass
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPControl
(void) + initialize
 
- Class Methods inherited from CPView
(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 

Detailed Description

This control displays a datepicker in a Cappuccino application

Definition at line 2 of file CPDatePicker.h.

Method Documentation

◆ acceptsFirstResponder()

- (BOOL) acceptsFirstResponder
implementation

Return YES

Definition at line 571 of file CPDatePicker.j.

◆ becomeFirstResponder()

- (BOOL) becomeFirstResponder
implementation

Return YES if style is set to CPTextFieldAndStepperDatePickerStyle or CPTextFieldDatePickerStyle

Reimplemented from CPView.

Definition at line 554 of file CPDatePicker.j.

◆ calendar()

- (CPCalendar) calendar
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 861 of file CPDatePicker.j.

◆ datePickerElements()

- (CPInteger) datePickerElements
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 909 of file CPDatePicker.j.

◆ datePickerMode()

- (CPInteger) datePickerMode
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 925 of file CPDatePicker.j.

◆ datePickerStyle()

- (CPInteger) datePickerStyle
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 941 of file CPDatePicker.j.

◆ dateValue()

- (CPDate) dateValue
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 781 of file CPDatePicker.j.

◆ defaultThemeClass()

+ (CPString) defaultThemeClass
implementation

Definition at line 76 of file CPDatePicker.j.

◆ delegate()

- (id) delegate
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 893 of file CPDatePicker.j.

◆ drawsBackground()

- (BOOL) drawsBackground
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 765 of file CPDatePicker.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPControl.

Provided by category CPDatePicker(CPCoding).

Definition at line 675 of file CPDatePicker.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPControl.

Provided by category CPDatePicker(CPCoding).

Definition at line 650 of file CPDatePicker.j.

◆ initWithFrame:()

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPControl.

Definition at line 168 of file CPDatePicker.j.

◆ isBezeled()

- (BOOL) isBezeled
implementation

Returns YES if the textfield is bezeled.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 593 of file CPDatePicker.j.

◆ isBordered()

- (BOOL) isBordered
implementation

Returns YES if the textfield has a border.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 601 of file CPDatePicker.j.

◆ keyDown:()

- (void) keyDown: (CPEvent anEvent
implementation

Key down event

Parameters
anEvent

Definition at line 627 of file CPDatePicker.j.

◆ layoutSubviews()

- (void) layoutSubviews
implementation

Layout the subviews

Reimplemented from CPView.

Definition at line 245 of file CPDatePicker.j.

◆ locale()

- (CPLocale) locale
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 845 of file CPDatePicker.j.

◆ maxDate()

- (CPDate) maxDate
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 813 of file CPDatePicker.j.

◆ minDate()

- (CPDate) minDate
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 797 of file CPDatePicker.j.

◆ objectValue()

- (id) objectValue
implementation

Return the objectValue of the datePicker. The objectValue should take the timeZoneEffect

Reimplemented from CPControl.

Definition at line 279 of file CPDatePicker.j.

◆ resignFirstResponder()

- (BOOL) resignFirstResponder
implementation

Return YES

Reimplemented from CPView.

Definition at line 578 of file CPDatePicker.j.

◆ setBackgroundColor:()

- (void) setBackgroundColor: (CPColor aColor
implementation

Set the background color of the datePicker

Parameters
aColor

Reimplemented from CPView.

Definition at line 513 of file CPDatePicker.j.

◆ setBezeled:()

- (void) setBezeled: (BOOL)  shouldBeBezeled
implementation

Sets whether the datepicker will have a bezeled border.

Parameters
shouldBeBezeledYES means the datepicker will draw a bezeled border

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 466 of file CPDatePicker.j.

◆ setBordered:()

- (void) setBordered: (BOOL)  shouldBeBordered
implementation

Sets whether the datepicker will have a border drawn. (actually it does nothing)

Parameters
shouldBeBorderedYES makes the datepicker draw a border

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 480 of file CPDatePicker.j.

◆ setCalendar:()

- (void) setCalendar: (CPCalendar)  aValue
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 869 of file CPDatePicker.j.

◆ setControlSize:()

- (void) setControlSize: (CPControlSize)  aControlSize
implementation

Sets the control's size.

Parameters
aControlSizethe control's size

Reimplemented from CPControl.

Definition at line 214 of file CPDatePicker.j.

◆ setDatePickerElements:()

- (void) setDatePickerElements: (CPInteger)  aDatePickerElements
implementation

Set the elements of the datePicker

Parameters
aDatePickerElementsthe datePicker elements

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 409 of file CPDatePicker.j.

◆ setDatePickerMode:()

- (void) setDatePickerMode: (CPInteger)  aDatePickerMode
implementation

Set the mode of the datePicker

Parameters
aDatePickerModethe datePicker mode

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 420 of file CPDatePicker.j.

◆ setDatePickerStyle:()

- (void) setDatePickerStyle: (CPInteger)  aDatePickerStyle
implementation

Set the syle of the datePicker

Parameters
aDatePickerStylethe datePicker style

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 396 of file CPDatePicker.j.

◆ setDateValue:()

- (void) setDateValue: (CPDate aDateValue
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 299 of file CPDatePicker.j.

◆ setDelegate:()

- (void) setDelegate: (id)  aDelegate
implementation

Set the delegate of the datePicker

Parameters
aDelegatedelegate of the datePicker

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 229 of file CPDatePicker.j.

◆ setDrawsBackground:()

- (void) setDrawsBackground: (BOOL)  aBoolean
implementation

Set the boolean drawsBackgroundColor

Parameters
aBoolean

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 522 of file CPDatePicker.j.

◆ setEnabled:()

- (void) setEnabled: (BOOL)  aBoolean
implementation

Sets the enabled status of the control. Controls that are not enabled can not be used by the user and obtain the CPThemeStateDisabled theme state.

Parameters
aboolean. YES if the control should be enabled, otherwise NO.

Reimplemented from CPControl.

Definition at line 502 of file CPDatePicker.j.

◆ setLocale:()

- (void) setLocale: (CPLocale aLocale
implementation

Set the locale of the datePicker. This update laso the locale of the formatter.

Parameters
aLocalethe locale

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 445 of file CPDatePicker.j.

◆ setMaxDate:()

- (void) setMaxDate: (CPDate aMaxDate
implementation

Set the maxDate of the datePicker

Parameters
aMaxDatethe maxDate

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 384 of file CPDatePicker.j.

◆ setMinDate:()

- (void) setMinDate: (CPDate aMinDate
implementation

Set the minDate of the datePicker

Parameters
aMinDatethe minDate

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 372 of file CPDatePicker.j.

◆ setObjectValue:()

- (void) setObjectValue: (CPDate aValue
implementation

Set the objectValue of the datePicker. It has to be a CPDate

Parameters
aDateValuethe dateValue

Definition at line 288 of file CPDatePicker.j.

◆ setTextFont:()

- (void) setTextFont: (CPFont aFont
implementation

Sets the font of the control.

Parameters
aFont

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 494 of file CPDatePicker.j.

◆ setTimeInterval:()

- (void) setTimeInterval: (CPInteger)  aTimeInterval
implementation

Set the timeInterval of the datePicker

Parameters
aTimeIntervalthe timeInterval of the datePicker

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 434 of file CPDatePicker.j.

◆ setTimeZone:()

- (void) setTimeZone: (CPTimeZone aTimeZone
implementation

Set the timeZone

Parameters
aTimeZone

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 534 of file CPDatePicker.j.

◆ textFont()

- (CPFont) textFont
implementation

Returns the font of the control.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 609 of file CPDatePicker.j.

◆ themeAttributes()

+ (CPDictionary) themeAttributes
implementation

Reimplemented from CPControl.

Definition at line 81 of file CPDatePicker.j.

◆ timeInterval()

- (CPInteger) timeInterval
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 957 of file CPDatePicker.j.

◆ timeZone()

- (CPTimeZone) timeZone
implementation

Synthesized accessor method.

Provided by category CPDatePicker(CPSynthesizedAccessors).

Definition at line 877 of file CPDatePicker.j.


The documentation for this class was generated from the following files: