Class fever.structures.ShortcutString

Description

ShortcutString class.

Shortcut char is defined by SHORTCUT_CHAR property.

If an escape character is found just before specific character it will be removed from string.

Field Index

enabled, index, SHORTCUT_CHAR, source, text

Method Index

new ShortcutString()
getMarker(), getMarkerID(), toString()

Constructor Detail

ShortcutString

public function ShortcutString(caption:String)

Constructor.

Field Detail

SHORTCUT_CHAR

static public SHORTCUT_CHAR:String
Char delimiter for shortcut auto definition.

text

public text:String [Read Only]
Read only. String without shortcut marker.

enabled

public enabled:Boolean [Read Only]
Read only. true if string has a shortcut marker.

source

public source:String [Read Only]
Read only. Original string source ( with shortcut marker ).

index

public index:Number [Read Only]
Read only. Shortcut marker position in string.

Method Detail

getMarker

public function getMarker():String

Returns target shortcut marker char.

getMarkerID

public function getMarkerID():Number

Returns target shortcut marker key code.

toString

public function toString():String

Returns string representation.