Term

Namespace: PP.Ufe.Ui;

Inheritance hierarchy

Object

Term

Description

The Term class implements the term that is used in the term editor.

Syntax

PP.initClass(PP.Ufe.Ui.Term, PP.Object, "PP.Ufe.Ui.Term");

Constructor

  Constructor name Brief description
Term The Term constructor creates an instance of the Term class.

Properties

  Property name Brief description
Content The Content property determines term contents.
DomNode The DomNode property sets the term DOM node.
EndOffset The EndOffset property contains position of the last term element in the expression.
Formula The Formula property sets the term formula.
Selected The Selected property determines whether a term is selected.
StartOffset The StartOffset property contains position of the first term element in the expression.

Methods

  Property name Brief description
canEditFormula The canEditFormula property determines whether term formula can be edited.
deleteFirstChar The deleteFirstChar method deletes the first term character.
deleteLastChar The deleteLastChar method deletes the last term character.
getIsOneCharTerm The getIsOneCharTerm property checks if a term contains one character.
keyDown The keyDown method processes a keyboard key hold down event.
keyPress The keyPress method processes a keyboard key press event.
slice The slice method redetermines the slice native method used to manage term contents.

Events

  Property name Brief description
BecameEmpty The BecameEmpty event occurs after a term becomes empty.
EndDeletePressed The EndDeletePressed event occurs after pressing the DELETE key when the cursor is after the last term character.
Splitted The Splitted event occurs after the term is split.
StartBackspacePressed The StartBackspacePressed event occurs after pressing the BACKSPACE key when the cursor is before the first term character.

Properties inherited from the class Object

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getId The getId method returns repository object identifier.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setId The setId method determines a repository object identifier.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP.Ufe.Ui