Child pages
  • ELEMENT_TYPES

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1377850930704
Wiki Markup
{div:style=display: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.\\		\\		Enter additional information related to this 'class' inside the \{div} macro with 'id=description'{div}
{div:id=description}{div}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#ACCORDIONPANEL]
Constant representing a accordionpanel element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#BUTTON]
Constant representing an element of the Button type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#CALENDAR]
Constant representing an element of the Calendar type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#CHECK]
Constant representing an element of the Check type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#COMBOBOX]
Constant representing a combobox element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#FORM]
Constant representing a form element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#GROUP]
Constant representing a Group of elements.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#HTML_AREA]
Constant representing a html area element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#IMAGE_MEDIA]
Constant representing an element of the ImageMedia type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#LABEL]
Constant representing an element of the Label type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#LISTBOX]
Constant representing a listbox element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#MULTISELECT_LISTBOX]
Constant representing a multi selection listbox element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#PASSWORD]
Constant representing an element of the Password type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#PORTAL]
Constant representing an element of the Portal type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#RADIOS]
Constant representing an element of the Radios type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#RECTANGLE]
Constant representing a rectangle element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#RTF_AREA]
Constant representing a rtf area of element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#SPINNER]
Constant representing a spinner element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#SPLITPANE]
Constant representing a splitpane element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#TABPANEL]
Constant representing an element of the Tabpanel type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#TEXT_AREA]
Constant representing an element of the TextArea type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#TEXT_FIELD]
Constant representing an element of the TextField type.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#TYPE_AHEAD]
Constant representing a typeahead element.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=ACCORDIONPANEL}{tr:id=name}{td}h6.ACCORDIONPANEL{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a accordionpanel element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.ACCORDIONPANEL)
{
     // element is a accordion panel element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BUTTON}{tr:id=name}{td}h6.BUTTON{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the Button type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Button type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.BUTTON)
{
     // element is a Button component
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CALENDAR}{tr:id=name}{td}h6.CALENDAR{td}{tr}{tr:id=retdes}{td}{div:class=sIndent}Constant representing an element of the Calendar type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Calendar type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.CALENDAR)
{
     // element is a Calendar field
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CHECK}{tr:id=name}{td}h6.CHECK{td}{tr}{tr:id=retdes}{td}*Returns*\\{div:class=sIndent}[String]Constant representing an element of the Check type.{div}{td}{tr}{tr:id=samret}{td}*SampleReturns*\\{div:class=sIndent}{code:language=javascript}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Check type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.CHECK)
{
     // element is a Check(box) field
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=COMBOBOX}{tr:id=name}{td}h6.COMBOBOX{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a combobox element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.COMBOBOX)
{
     // element is a COMBOBOX element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FORM}{tr:id=name}{td}h6.FORM{td}{tr}{tr:id=retdes}{td}*Returns*\\{div:class=sIndent}[StringConstant representing a form element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Form type, as returned by the following code
var renderElementType = event.getRenderable().getElementType();
if (renderElementType == ELEMENT_TYPES.FORM)
{
     // element is a type form element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=GROUP}{tr:id=name}{td}h6.GROUP{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a Group of elements.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.GROUP)
{
     // element is a group element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=HTML_AREA}{tr:id=name}{td}h6.HTML_AREA{td}{tr}{tr:id=retdes}{td}{div:class=sIndent}Constant representing a html area element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.HTML_AREA)
{
     // element is a HTML textarea
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=IMAGE_MEDIA}{tr:id=name}{td}h6.IMAGE_MEDIA{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the ImageMedia type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the ImageMedia type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.IMAGE_MEDIA)
{
     // element is a Image Media field
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LABEL}{tr:id=name}{td}h6.LABEL{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the Label type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Label type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.LABEL)
{
     // element is a Label component
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LISTBOX}{tr:id=name}{td}h6.LISTBOX{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a listbox element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the ListBox type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.LISTBOX)
{
     // element is a LISTBOX element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MULTISELECT_LISTBOX}{tr:id=name}{td}h6.MULTISELECT_LISTBOX{td}{tr}{tr:id=retdes}{td}*{div:class=sIndent}Constant representing a multi selection listbox element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.MULTISELECT_LISTBOX)
{
     // element is a MULTISELECT_LISTBOX element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=PASSWORD}{tr:id=name}{td}h6.PASSWORD{td}{tr}{tr:id=retdes}{td}*Returns*\\{div:class=sIndent}[String]Constant representing an element of the Password type.{div}{td}{tr}{tr:id=samret}{td}*SampleReturns*\\{div:class=sIndent}{code:language=javascript}
[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Password type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.PASSWORD)
{
     // element is a Password component
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=PORTAL}{tr:id=name}{td}h6.PORTAL{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the Portal type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Portal type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.PORTAL)
{
     // element is a Portal component
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=RADIOS}{tr:id=name}{td}h6.RADIOS{td}{tr}{tr:id=retdes}{td}*{div:class=sIndent}Constant representing an element of the Radios type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Radios type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.RADIOS)
{
     // element is a Radios field.
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=RECTANGLE}{tr:id=name}{td}h6.RECTANGLE{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a rectangle element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.RECTANGLE)
{
     // element is a rectangle element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=RTF_AREA}{tr:id=name}{td}h6.RTF_AREA{td}{tr}{tr:id=retdes}{td}{div:class=sIndent}Constant representing a rtf area of element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.RTF_AREA)
{
     // element is a RTF textarea.
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SPINNER}{tr:id=name}{td}h6.SPINNER{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a spinner element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Spinner type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.SPINNER)
{
     // element is a SPINNER element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SPLITPANE}{tr:id=name}{td}h6.SPLITPANE{td}{tr}{tr:id=retdes}{td}*Returns{div:class=sIndent}Constant representing a splitpane element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.SPLITPANE)
{
     // element is a splitpane element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TABPANEL}{tr:id=name}{td}h6.TABPANEL{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the Tabpanel type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the Tabpanel type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.TABPANEL)
{
     // element is a Tabpanel component
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TEXT_AREA}{tr:id=name}{td}h6.TEXT_AREA_AREA{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the TextArea type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextArea type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.TEXT_AREA)
{
     // element is a TextArea field
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TEXT_FIELD}{tr:id=name}{td}h6.TEXT_FIELD{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing an element of the TextField type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.TEXT_FIELD)
{
     // element is a text field
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TYPE_AHEAD}{tr:id=name}{td}h6.TYPE_AHEAD{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant representing a typeahead element.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//the return value for an element of the TextField type, as returned by the following code
var etype = elements.elementName.getElementType();
if (etype == ELEMENT_TYPES.TYPE_AHEAD)
{
     // element is a type ahead element
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}