Child pages
  • agent

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
Div
iddescription
HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)x
styleindexdisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClient

Table Cell (td)
Number
Table Cell (td)y
servoy sSummary12%30%58%height: 30px;3Property SummaryGets or sets the x position of the agent. Table Row (tr)Gets or sets the y position of the agent.

HTML Table

idclassservoy sSummary

Colgroup Tag
Col
width80px
Col
Table Head (thead) Table Row (tr)style Table Row (tr)
Table Cell (td)
void
Table Cell (td)setBalloonSize(width, height)
servoy sSummary12%30%58%height: 30px;
Table Head (th)
colspan2
Method Summary
3Methods SummaryvoidSets the size of the balloon. Table Row (tr) Table Cell (td) Table Cell (td)setImageURL(url)
voidSets a new image for the agent. Table Row (tr) Table Cell (td) Table Cell (td)setLocation(x, y)
voidSets the location of the agent. Table Row (tr) Table Cell (td) Table Cell (td)setVisible(visible)
voidShow/hides the agent. Table Row (tr) Table Cell (td) Table Cell (td)speak(message)
voidMakes the agent speak.table

id

propertyclass Colgroup Tag Colcolspanservoy sDetail2width100%

Col
Table Head (thead) Table Row (tr)styleheight:30px; Table Head (th)colspan2Property Details Table Body (tbody)ididx Table Row (tr)nametd

x

Table Row (tr)id

des Table Cell (td) DivclassidsIndent
Gets or sets the x position of the agent.
Table Row (tr)ret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
Number Table Row (tr)SmartClientsam

Table Cell (td)

Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
idsetBalloonSize-Number_Number
Table Row (tr)
idname
Table Cell (td)

setBalloonSize

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
setBalloonSize
Span
(width, height)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sets the size of the balloon.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} width
{Number} height
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
plugins.agent.setBalloonSize(width,height)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsetImageURL-String
Table Row (tr)
idname
Table Cell (td)

setImageURL

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
setImageURL
Span
(url)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sets a new image for the agent.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} url
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
plugins.agent.setImageURL("url")
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsetLocation-Number_Number
Table Row (tr)
idname
Table Cell (td)

setLocation

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
setLocation
Span
(x, y)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sets the location of the agent.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
{Number} y
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
plugins.agent.setLocation(100,100);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsetVisible-Boolean
Table Row (tr)
idname
Table Cell (td)

setVisible

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
setVisible
Span
(visible)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show/hides the agent.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Boolean} visible
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
plugins.agent.setVisible(true);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idspeak-String
Table Row (tr)
idname
Table Cell (td)

speak

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
speak
Span
(message)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Makes the agent speak.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} message
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
plugins.agent.speak('hello nerd');
Table Row (tr)
classlastDetailRow
Table Cell (td) 

Sample

Div
classsIndent
Code Block
languagejavascript
//move the agent diagonaly
plugins.agent.x = plugins.agent.x-10;
plugins.agent.y = plugins.agent.y-10;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idy
Table Row (tr)
idname
Table Cell (td)

y

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets or sets the y position of the agent.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
//move the agent diagonaly
plugins.agent.x = plugins.agent.x-10;
plugins.agent.y = plugins.agent.y-10;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
HTML Table
idfunction
classservoy sDetail
sIdentjavascriptlastDetailRowyname

y

dessIndent
Gets or sets the y position of the agent.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods DetailssetBalloonSizename

setBalloonSize(width, height)

dessIndent
Sets the size of the balloon.
prs

Parameters

sIndentwidth ;height ;
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
setImageURLname

setImageURL(url)

dessIndent
Sets a new image for the agent.
prs

Parameters

sIndenturl ;
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
setLocationname

setLocation(x, y)

dessIndent
Sets the location of the agent.
prs

Parameters

sIndentx ;y ;
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
setVisiblename

setVisible(visible)

dessIndent
Show/hides the agent.
prs

Parameters

sIndentvisible ;
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
speakname

speak(message)

dessIndent
Makes the agent speak.
prs

Parameters

sIndentmessage ;
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow