Packagecom.ericfeminella.ui
Classpublic final class ContextMenuItemCaptionValidator

Provides an all static API which determines if a specific ContextMenuItem caption is valid

See also

InvalidContextMenuItemCaptionException


Public Methods
 MethodDefined by
  
isValidCaption(caption:String):Boolean
[static] Determines if the specified ContextMenuItem is valid based on the reserved words and or terms defined by Adobe
ContextMenuItemCaptionValidator
Public Constants
 ConstantDefined by
  ILLEGAL_CAPTIONS : Array
[static] Defines an Array of reserved captions which can not be used in a custom ContextMenuItem, either singularly or in conjunction with other words and / or charachters
ContextMenuItemCaptionValidator
  MAXIMUM_CHARACHTER_LENGTH : uint = 100
[static] Defines the maximum charachter length which may not be exceeded in a ContextMenuItem
ContextMenuItemCaptionValidator
  RESERVED_CAPTIONS : Array
[static] Defines an Array of reserved captions which can not be used in a custom ContextMenuItem unless used in conjunction with other words and / or charachters sequences
ContextMenuItemCaptionValidator
Method detail
isValidCaption()method
public static function isValidCaption(caption:String):Boolean

Determines if the specified ContextMenuItem is valid based on the reserved words and or terms defined by Adobe

Parameters
caption:String — caption from which to perform validation

Returns
Boolean — true if the caption is valid, otherwise false
Constant detail
ILLEGAL_CAPTIONSconstant
public static const ILLEGAL_CAPTIONS:Array

Defines an Array of reserved captions which can not be used in a custom ContextMenuItem, either singularly or in conjunction with other words and / or charachters

MAXIMUM_CHARACHTER_LENGTHconstant 
public static const MAXIMUM_CHARACHTER_LENGTH:uint = 100

Defines the maximum charachter length which may not be exceeded in a ContextMenuItem

RESERVED_CAPTIONSconstant 
public static const RESERVED_CAPTIONS:Array

Defines an Array of reserved captions which can not be used in a custom ContextMenuItem unless used in conjunction with other words and / or charachters sequences