API  0.9.10
CPTextField.j File Reference

Go to the source code of this file.

Classes

protocol  <CPTextFieldDelegate >
 

Typedefs

typedef CPTextFieldBezelStyle CPTextFieldSquareBezel = 0
 

Functions

function CPTextFieldBlurFunction (anEvent, owner, domElement, inputElement, resigning, didBlurRef)
 
function CPTextFieldHandleBlur (anEvent, ownerRef)
 

Variables

var CPSecureTextFieldCharacter = "\u2022"
 
var CPTexFieldCurrentCSSSelectableField = nil
 
var CPTextFieldAlignmentKey = "CPTextFieldAlignmentKey"
 
var CPTextFieldBackgroundColorKey = "CPTextFieldBackgroundColorKey"
 
var CPTextFieldBezelStyleKey = "CPTextFieldBezelStyleKey"
 
var CPTextFieldBlurHandler = nil
 
var CPTextFieldCachedDragFunction = nil
 
var CPTextFieldCachedSelectStartFunction = nil
 
var CPTextFieldDelegate_control_didFailToFormatString_errorDescription_ = 1 << 1
 
var CPTextFieldDelegate_controlTextDidBeginEditing_ = 1 << 2
 
var CPTextFieldDelegate_controlTextDidBlur_ = 1 << 6
 
var CPTextFieldDelegate_controlTextDidChange_ = 1 << 3
 
var CPTextFieldDelegate_controlTextDidEndEditing_ = 1 << 4
 
var CPTextFieldDelegate_controlTextDidFocus_ = 1 << 5
 
 CPTextFieldDidBlurNotification = @"@"CPTextFieldDidBlurNotification"
 
 CPTextFieldDidFocusNotification = @"@"CPTextFieldDidFocusNotification"
 
var CPTextFieldDOMCurrentElement = nil
 
var CPTextFieldDOMPasswordInputElement = nil
 
var CPTextFieldDOMStandardInputElement = nil
 
var CPTextFieldDOMTextAreaElement = nil
 
var CPTextFieldDrawsBackgroundKey = "CPTextFieldDrawsBackgroundKey"
 
var CPTextFieldInputDidBlur = NO
 
var CPTextFieldInputFunction = nil
 
var CPTextFieldInputIsActive = NO
 
var CPTextFieldInputOwner = nil
 
var CPTextFieldInputResigning = NO
 
var CPTextFieldIsBezeledKey = "CPTextFieldIsBezeledKey"
 
var CPTextFieldIsBorderedKey = "CPTextFieldIsBorderedKey"
 
var CPTextFieldIsEditableKey = "CPTextFieldIsEditableKey"
 
var CPTextFieldIsSelectableKey = "CPTextFieldIsSelectableKey"
 
var CPTextFieldLineBreakModeKey = "CPTextFieldLineBreakModeKey"
 
var CPTextFieldPlaceholderStringKey = "CPTextFieldPlaceholderStringKey"
 
 CPTextFieldRoundedBezel = 1
 
var CPTextFieldScrolls = "CPTextFieldScrolls"
 
 CPTextFieldStatePlaceholder = CPThemeState("placeholder")
 
 CPTextFieldStateRounded = CPThemeState("rounded")
 
var CPTextFieldTextDidChangeValue = nil
 
var CPTextFieldUsesSingleLineMode = "CPTextFieldUsesSingleLineMode"
 
var CPTextFieldWraps = "CPTextFieldWraps"
 
var secureStringForString
 

Typedef Documentation

◆ CPTextFieldSquareBezel

typedef CPTextFieldBezelStyle CPTextFieldSquareBezel = 0

Definition at line 42 of file CPTextField.j.

Function Documentation

◆ CPTextFieldBlurFunction()

function CPTextFieldBlurFunction ( anEvent  ,
owner  ,
domElement  ,
inputElement  ,
resigning  ,
didBlurRef   
)

Definition at line 65 of file CPTextField.j.

◆ CPTextFieldHandleBlur()

function CPTextFieldHandleBlur ( anEvent  ,
ownerRef   
)

Definition at line 90 of file CPTextField.j.

Variable Documentation

◆ CPSecureTextFieldCharacter

var CPSecureTextFieldCharacter = "\u2022"

Definition at line 63 of file CPTextField.j.

◆ CPTexFieldCurrentCSSSelectableField

var CPTexFieldCurrentCSSSelectableField = nil

Definition at line 61 of file CPTextField.j.

◆ CPTextFieldAlignmentKey

var CPTextFieldAlignmentKey = "CPTextFieldAlignmentKey"

Definition at line 2039 of file CPTextField.j.

◆ CPTextFieldBackgroundColorKey

var CPTextFieldBackgroundColorKey = "CPTextFieldBackgroundColorKey"

Definition at line 2040 of file CPTextField.j.

◆ CPTextFieldBezelStyleKey

var CPTextFieldBezelStyleKey = "CPTextFieldBezelStyleKey"

Definition at line 2036 of file CPTextField.j.

◆ CPTextFieldBlurHandler

var CPTextFieldBlurHandler = nil

Definition at line 59 of file CPTextField.j.

◆ CPTextFieldCachedDragFunction

var CPTextFieldCachedDragFunction = nil

Definition at line 58 of file CPTextField.j.

◆ CPTextFieldCachedSelectStartFunction

var CPTextFieldCachedSelectStartFunction = nil

Definition at line 57 of file CPTextField.j.

◆ CPTextFieldDelegate_control_didFailToFormatString_errorDescription_

var CPTextFieldDelegate_control_didFailToFormatString_errorDescription_ = 1 << 1

Definition at line 33 of file CPTextField.j.

◆ CPTextFieldDelegate_controlTextDidBeginEditing_

var CPTextFieldDelegate_controlTextDidBeginEditing_ = 1 << 2

Definition at line 34 of file CPTextField.j.

◆ CPTextFieldDelegate_controlTextDidBlur_

var CPTextFieldDelegate_controlTextDidBlur_ = 1 << 6

Definition at line 38 of file CPTextField.j.

◆ CPTextFieldDelegate_controlTextDidChange_

var CPTextFieldDelegate_controlTextDidChange_ = 1 << 3

Definition at line 35 of file CPTextField.j.

◆ CPTextFieldDelegate_controlTextDidEndEditing_

var CPTextFieldDelegate_controlTextDidEndEditing_ = 1 << 4

Definition at line 36 of file CPTextField.j.

◆ CPTextFieldDelegate_controlTextDidFocus_

var CPTextFieldDelegate_controlTextDidFocus_ = 1 << 5

Definition at line 37 of file CPTextField.j.

◆ CPTextFieldDidBlurNotification

CPTextFieldDidBlurNotification = @"@"CPTextFieldDidBlurNotification"

Definition at line 46 of file CPTextField.j.

◆ CPTextFieldDidFocusNotification

CPTextFieldDidFocusNotification = @"@"CPTextFieldDidFocusNotification"

A textfield bezel with rounded corners.

Definition at line 45 of file CPTextField.j.

◆ CPTextFieldDOMCurrentElement

var CPTextFieldDOMCurrentElement = nil

Definition at line 48 of file CPTextField.j.

◆ CPTextFieldDOMPasswordInputElement

var CPTextFieldDOMPasswordInputElement = nil

Definition at line 51 of file CPTextField.j.

◆ CPTextFieldDOMStandardInputElement

var CPTextFieldDOMStandardInputElement = nil

Definition at line 50 of file CPTextField.j.

◆ CPTextFieldDOMTextAreaElement

var CPTextFieldDOMTextAreaElement = nil

Definition at line 49 of file CPTextField.j.

◆ CPTextFieldDrawsBackgroundKey

var CPTextFieldDrawsBackgroundKey = "CPTextFieldDrawsBackgroundKey"

Definition at line 2037 of file CPTextField.j.

◆ CPTextFieldInputDidBlur

var CPTextFieldInputDidBlur = NO

Definition at line 55 of file CPTextField.j.

◆ CPTextFieldInputFunction

var CPTextFieldInputFunction = nil

Definition at line 60 of file CPTextField.j.

◆ CPTextFieldInputIsActive

var CPTextFieldInputIsActive = NO

Definition at line 56 of file CPTextField.j.

◆ CPTextFieldInputOwner

var CPTextFieldInputOwner = nil

Definition at line 52 of file CPTextField.j.

◆ CPTextFieldInputResigning

var CPTextFieldInputResigning = NO

Definition at line 54 of file CPTextField.j.

◆ CPTextFieldIsBezeledKey

var CPTextFieldIsBezeledKey = "CPTextFieldIsBezeledKey"

Definition at line 2035 of file CPTextField.j.

◆ CPTextFieldIsBorderedKey

var CPTextFieldIsBorderedKey = "CPTextFieldIsBorderedKey"

Definition at line 2034 of file CPTextField.j.

◆ CPTextFieldIsEditableKey

var CPTextFieldIsEditableKey = "CPTextFieldIsEditableKey"

Definition at line 2032 of file CPTextField.j.

◆ CPTextFieldIsSelectableKey

var CPTextFieldIsSelectableKey = "CPTextFieldIsSelectableKey"

Definition at line 2033 of file CPTextField.j.

◆ CPTextFieldLineBreakModeKey

var CPTextFieldLineBreakModeKey = "CPTextFieldLineBreakModeKey"

Definition at line 2038 of file CPTextField.j.

◆ CPTextFieldPlaceholderStringKey

var CPTextFieldPlaceholderStringKey = "CPTextFieldPlaceholderStringKey"

Definition at line 2041 of file CPTextField.j.

◆ CPTextFieldRoundedBezel

CPTextFieldRoundedBezel = 1

A textfield bezel with squared corners.

Definition at line 43 of file CPTextField.j.

◆ CPTextFieldScrolls

var CPTextFieldScrolls = "CPTextFieldScrolls"

Definition at line 2044 of file CPTextField.j.

◆ CPTextFieldStatePlaceholder

CPTextFieldStatePlaceholder = CPThemeState("placeholder")

Definition at line 111 of file CPTextField.j.

◆ CPTextFieldStateRounded

CPTextFieldStateRounded = CPThemeState("rounded")

Definition at line 110 of file CPTextField.j.

◆ CPTextFieldTextDidChangeValue

var CPTextFieldTextDidChangeValue = nil

Definition at line 53 of file CPTextField.j.

◆ CPTextFieldUsesSingleLineMode

var CPTextFieldUsesSingleLineMode = "CPTextFieldUsesSingleLineMode"

Definition at line 2042 of file CPTextField.j.

◆ CPTextFieldWraps

var CPTextFieldWraps = "CPTextFieldWraps"

Definition at line 2043 of file CPTextField.j.

◆ secureStringForString

var secureStringForString
Initial value:
= function(aString)
{
if (!aString)
return "";
return Array(aString.length + 1).join(CPSecureTextFieldCharacter);
}
var CPSecureTextFieldCharacter
Definition: CPTextField.j:63

Definition at line 2022 of file CPTextField.j.