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
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets the component parameters.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

See also:

PP.Ufe.Ui