{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#anchors]
Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#background]
The background color of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#borderType]
The type, color and style of border of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#fontType]
The font type of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#foreground]
The foreground color of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#formIndex]
The Z index of this component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#groupID]
A String representing a group ID for this component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#height]
The height in pixels of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#name]
The name of the component.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onTabChange]
Method to be executed when the selected tab is changed in the tab panel.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#printSliding]
Enables an element to resize based on its content and/or move when printing.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#printable]
Flag that tells if the component should be printed or not when the form is printed.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#scrollTabs]
Flag that tells how to arrange the tabs if they don't fit on a single line.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#styleClass]
The name of the style class that should be applied to this component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#tabOrientation]
The position of the tabs related to the tab panel.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#tabSeq]
An index that specifies the position of the component in the tab sequence.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#transparent]
Flag that tells if the component is transparent or not.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#width]
The width in pixels of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#x]
The x coordinate of the component on the form.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#y]
The y coordinate of the component on the form.{td}{tr}{tbody}{table}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[JSTab]{td}{td}[#getTab]\(name)
Returns a JSTab instance representing the tab which has the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[JSTab]\[]{td}{td}[#getTabs]\()
Returns an array of JSTab instances holding the tabs of the tab panel.{td}{tr}{tbody}{tbody}{tr}{td}[JSTab]{td}{td}[#newTab]\(name, text, form, relation)
Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated).{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC}{tr:id=name}{td}h6.anchors{td}{tr}{tr:id=des}{td}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_des|text=|trigger=button}{sub-section}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_des|trigger=none|class=sIndent}Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.
If opposite anchors are activated then the component with grow or
shrink with the window. For example if Top and Bottom are activated,
then the component will grow/shrink when the window is vertically
resized. If Left and Right are activated then the component
will grow/shrink when the window is horizontally resized.
If opposite anchors are not activated, then the component will
keep a constant distance from the sides of the window which
correspond to the activated anchors.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_ret|text=|trigger=button}{sub-section}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_see|text=|trigger=button}{sub-section}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_see|text=|trigger=button}{sub-section}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_sam|text=|trigger=button}{sub-section}{sub-section:F8DFBA0D-5898-4CBC-9FBD-65D6AB8EC6FC_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var strechAllDirectionsLabel = form.newLabel('Strech all directions', 10, 10, 380, 280);
strechAllDirectionsLabel.background = 'red';
strechAllDirectionsLabel.anchors = SM_ANCHOR.ALL;
var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280);
strechVerticallyLabel.background = 'green';
strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH;
var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140);
strechHorizontallyLabel.background = 'blue';
strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST;
var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100);
stickToTopLeftCornerLabel.background = 'orange';
stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; // This is equivalent to SM_ANCHOR.DEFAULT
var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100);
stickToBottomRightCornerLabel.background = 'pink';
stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=04D2C70C-4183-40BC-A83F-053F53DFCA5F}{tr:id=name}{td}h6.background{td}{tr}{tr:id=des}{td}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_des|text=|trigger=button}{sub-section}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_des|trigger=none|class=sIndent}The background color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_ret|text=|trigger=button}{sub-section}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_see|text=|trigger=button}{sub-section}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_see|text=|trigger=button}{sub-section}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_sam|text=|trigger=button}{sub-section}{sub-section:04D2C70C-4183-40BC-A83F-053F53DFCA5F_sam|class=sIndent|trigger=none}{code:language=javascript}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var greenLabel = form.newLabel('Green',10,10,100,50);
greenLabel.background = 'green'; // Use generic names for colors.
var redField = form.newField('parent_table_text',JSField.TEXT_FIELD,10,110,100,30);
redField.background = '#FF0000'; // Use RGB codes for colors.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=83556318-9D0E-45D4-BD4E-520591F1B0DF}{tr:id=name}{td}h6.borderType{td}{tr}{tr:id=des}{td}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_des|text=|trigger=button}{sub-section}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_des|trigger=none|class=sIndent}The type, color and style of border of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_ret|text=|trigger=button}{sub-section}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_see|text=|trigger=button}{sub-section}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_see|text=|trigger=button}{sub-section}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_sam|text=|trigger=button}{sub-section}{sub-section:83556318-9D0E-45D4-BD4E-520591F1B0DF_sam|class=sIndent|trigger=none}{code:language=javascript}
//HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model.
var field = form.newField('my_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.borderType = 'LineBorder,2,#FF0000';
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E48CC8DC-3FA6-4549-A626-D03CFD5653FA}{tr:id=name}{td}h6.fontType{td}{tr}{tr:id=des}{td}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_des|text=|trigger=button}{sub-section}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_des|trigger=none|class=sIndent}The font type of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_ret|text=|trigger=button}{sub-section}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_see|text=|trigger=button}{sub-section}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_see|text=|trigger=button}{sub-section}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_sam|text=|trigger=button}{sub-section}{sub-section:E48CC8DC-3FA6-4549-A626-D03CFD5653FA_sam|class=sIndent|trigger=none}{code:language=javascript}
//HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model.
var label = form.newLabel('Text here', 10, 50, 100, 20);
label.fontType = 'Times New Roman,1,14';
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=753FAE38-EBA1-49A2-B264-A4C4C0DC2C70}{tr:id=name}{td}h6.foreground{td}{tr}{tr:id=des}{td}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_des|text=|trigger=button}{sub-section}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_des|trigger=none|class=sIndent}The foreground color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_ret|text=|trigger=button}{sub-section}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_see|text=|trigger=button}{sub-section}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_see|text=|trigger=button}{sub-section}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_sam|text=|trigger=button}{sub-section}{sub-section:753FAE38-EBA1-49A2-B264-A4C4C0DC2C70_sam|class=sIndent|trigger=none}{code:language=javascript}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var labelWithBlueText = form.newLabel('Blue text', 10, 10, 100, 30);
labelWithBlueText.foreground = 'blue'; // Use generic names for colors.
var fieldWithYellowText = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
fieldWithYellowText.foreground = '#FFFF00'; // Use RGB codes for colors.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=39A81447-BF79-46B6-B443-38455FFC39E2}{tr:id=name}{td}h6.formIndex{td}{tr}{tr:id=des}{td}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_des|text=|trigger=button}{sub-section}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_des|trigger=none|class=sIndent}The Z index of this component. If two components overlap,
then the component with higher Z index is displayed above
the component with lower Z index.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_ret|text=|trigger=button}{sub-section}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_see|text=|trigger=button}{sub-section}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_see|text=|trigger=button}{sub-section}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_sam|text=|trigger=button}{sub-section}{sub-section:39A81447-BF79-46B6-B443-38455FFC39E2_sam|class=sIndent|trigger=none}{code:language=javascript}
var labelBelow = form.newLabel('Green', 10, 10, 100, 50);
labelBelow.background = 'green';
labelBelow.formIndex = 10;
var fieldAbove = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 30);
fieldAbove.background = '#FF0000';
fieldAbove.formIndex = 20;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4846DF96-F79C-4C3F-8D42-FA3A05927911}{tr:id=name}{td}h6.groupID{td}{tr}{tr:id=des}{td}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_des|text=|trigger=button}{sub-section}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_des|trigger=none|class=sIndent}A String representing a group ID for this component. If several
components have the same group ID then they belong to the same
group of components. Using the group itself, all components can
be disabled/enabled or made invisible/visible.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_ret|text=|trigger=button}{sub-section}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_see|text=|trigger=button}{sub-section}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_see|text=|trigger=button}{sub-section}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_sam|text=|trigger=button}{sub-section}{sub-section:4846DF96-F79C-4C3F-8D42-FA3A05927911_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('someForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var label = form.newLabel('Green', 10, 10, 100, 20);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
label.groupID = 'someGroup';
field.groupID = 'someGroup';
forms['someForm'].elements.someGroup.enabled = false;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=09EF2F50-EFFE-42F4-A45C-98EC39C02D8D}{tr:id=name}{td}h6.height{td}{tr}{tr:id=des}{td}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_des|text=|trigger=button}{sub-section}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_des|trigger=none|class=sIndent}The height in pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_ret|text=|trigger=button}{sub-section}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_see|text=|trigger=button}{sub-section}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_see|text=|trigger=button}{sub-section}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_sam|text=|trigger=button}{sub-section}{sub-section:09EF2F50-EFFE-42F4-A45C-98EC39C02D8D_sam|class=sIndent|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7C8238E5-36A8-4871-9C01-24D04E5DF2B5}{tr:id=name}{td}h6.name{td}{tr}{tr:id=des}{td}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_des|text=|trigger=button}{sub-section}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_des|trigger=none|class=sIndent}The name of the component. Through this name it can also accessed in methods.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_ret|text=|trigger=button}{sub-section}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_see|text=|trigger=button}{sub-section}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_see|text=|trigger=button}{sub-section}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_sam|text=|trigger=button}{sub-section}{sub-section:7C8238E5-36A8-4871-9C01-24D04E5DF2B5_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('someForm', 'example_data', 'parent_table', 'null', false, 620, 300);
var label = form.newLabel('Label', 10, 10, 150, 150);
label.name = 'myLabel'; // Give a name to the component.
forms['someForm'].controller.show()
// Now use the name to access the component.
forms['someForm'].elements['myLabel'].text = 'Updated text';
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A106B43A-AA1E-4000-9DF9-CC743486359E}{tr:id=name}{td}h6.onTabChange{td}{tr}{tr:id=des}{td}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_des|text=|trigger=button}{sub-section}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_des|trigger=none|class=sIndent}Method to be executed when the selected tab is changed in the tab panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_ret|text=|trigger=button}{sub-section}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_see|text=|trigger=button}{sub-section}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_see|text=|trigger=button}{sub-section}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_sam|text=|trigger=button}{sub-section}{sub-section:A106B43A-AA1E-4000-9DF9-CC743486359E_sam|class=sIndent|trigger=none}{code:language=javascript}
var onTabChangeMethod = form.newFormMethod('function onTabChange(previousIndex, event) { application.output("Tab changed from previous index " + previousIndex + " at " + event.getTimestamp()); }');
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne);
tabPanel.newTab('tab2', 'Child Two', childTwo);
tabPanel.onTabChange = onTabChangeMethod;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7BEA218F-81A1-42D9-BE76-C9CA04E38A35}{tr:id=name}{td}h6.printSliding{td}{tr}{tr:id=des}{td}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_des|text=|trigger=button}{sub-section}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_des|trigger=none|class=sIndent}Enables an element to resize based on its content and/or move when printing.
The component can move horizontally or vertically and can grow or shrink in
height and width, based on its content and the content of neighboring
components.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_ret|text=|trigger=button}{sub-section}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_see|text=|trigger=button}{sub-section}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_see|text=|trigger=button}{sub-section}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_sam|text=|trigger=button}{sub-section}{sub-section:7BEA218F-81A1-42D9-BE76-C9CA04E38A35_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var slidingLabel = form.newLabel('Some long text here', 10, 10, 5, 5);
slidingLabel.printSliding = SM_PRINT_SLIDING.GROW_HEIGHT | SM_PRINT_SLIDING.GROW_WIDTH;
slidingLabel.background = 'gray';
forms['printForm'].controller.showPrintPreview();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7464348B-670F-4D36-99C4-F17A6DC4D306}{tr:id=name}{td}h6.printable{td}{tr}{tr:id=des}{td}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_des|text=|trigger=button}{sub-section}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_des|trigger=none|class=sIndent}Flag that tells if the component should be printed or not when the form is printed.
By default components are printable.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_ret|text=|trigger=button}{sub-section}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_see|text=|trigger=button}{sub-section}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_see|text=|trigger=button}{sub-section}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_sam|text=|trigger=button}{sub-section}{sub-section:7464348B-670F-4D36-99C4-F17A6DC4D306_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var printedField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var notPrintedField = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 40, 100, 20);
notPrintedField.printable = false; // This field won't show up in print preview and won't be printed.
forms['printForm'].controller.showPrintPreview()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964}{tr:id=name}{td}h6.scrollTabs{td}{tr}{tr:id=des}{td}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_des|text=|trigger=button}{sub-section}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_des|trigger=none|class=sIndent}Flag that tells how to arrange the tabs if they don't fit on a single line.
If this flag is set, then the tabs will stay on a single line, but there will
be the possibility to scroll them to the left and to the right. If this flag
is not set, then the tabs will be arranged on multiple lines.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_ret|text=|trigger=button}{sub-section}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_see|text=|trigger=button}{sub-section}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_see|text=|trigger=button}{sub-section}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_sam|text=|trigger=button}{sub-section}{sub-section:0A2E4FA9-E0E4-4D95-BF35-6F0E5CF26964_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabPanel = form.newTabPanel('tabs', 10, 10, 200, 200);
tabPanel.newTab('tab1', 'Child Two', childOne, parentToChild); // The first form uses the relation.
tabPanel.newTab('tab2', 'Child Two', childTwo);
tabPanel.scrollTabs = true;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B250A43C-ADD1-4E3C-B745-D52A30EECE18}{tr:id=name}{td}h6.styleClass{td}{tr}{tr:id=des}{td}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_des|text=|trigger=button}{sub-section}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_des|trigger=none|class=sIndent}The name of the style class that should be applied to this component.
When defining style classes for specific component types, their names
must be prefixed according to the type of the component. For example
in order to define a class names 'fancy' for fields, in the style
definition the class must be named 'field.fancy'. If it would be
intended for labels, then it would be named 'label.fancy'. When specifying
the class name for a component, the prefix is dropped however. Thus the
field or the label will have its styleClass property set to 'fancy' only.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_ret|text=|trigger=button}{sub-section}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_see|text=|trigger=button}{sub-section}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_see|text=|trigger=button}{sub-section}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_sam|text=|trigger=button}{sub-section}{sub-section:B250A43C-ADD1-4E3C-B745-D52A30EECE18_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var style = solutionModel.newStyle('myStyle','field.fancy { background-color: yellow; }');
form.styleName = 'myStyle'; // First set the style on the form.
field.styleClass = 'fancy'; // Then set the style class on the field.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F1B77194-911B-4F6C-AE54-EE90B92BF1DD}{tr:id=name}{td}h6.tabOrientation{td}{tr}{tr:id=des}{td}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_des|text=|trigger=button}{sub-section}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_des|trigger=none|class=sIndent}The position of the tabs related to the tab panel. Can be one of TOP, RIGHT, BOTTOM, LEFT
or HIDE. The HIDE option makes the tabs invisible.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_ret|text=|trigger=button}{sub-section}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_see|text=|trigger=button}{sub-section}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_see|text=|trigger=button}{sub-section}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_sam|text=|trigger=button}{sub-section}{sub-section:F1B77194-911B-4F6C-AE54-EE90B92BF1DD_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne, parentToChild); // The first form uses the relation.
tabPanel.newTab('tab2', 'Child Two', childTwo);
// The SM_ALIGNMENT constants TOP, RIGHT, BOTTOM and LEFT can be used to put the
// tabs into the needed position. Use SM_DEFAULTS.NONE to hide the tabs.
tabPanel.tabOrientation = SM_ALIGNMENT.BOTTOM;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D815DCA7-DA25-4206-895D-D89295BC8A2A}{tr:id=name}{td}h6.tabSeq{td}{tr}{tr:id=des}{td}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_des|text=|trigger=button}{sub-section}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_des|trigger=none|class=sIndent}An index that specifies the position of the component in the tab sequence. The components
are put into the tab sequence in increasing order of this property. A value of 0 means
to use the default mechanism of building the tab sequence (based on their location on the form).
A value of -2 means to remove the component from the tab sequence.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_ret|text=|trigger=button}{sub-section}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_see|text=|trigger=button}{sub-section}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_see|text=|trigger=button}{sub-section}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_sam|text=|trigger=button}{sub-section}{sub-section:D815DCA7-DA25-4206-895D-D89295BC8A2A_sam|class=sIndent|trigger=none}{code:language=javascript}
// Create three fields. Based on how they are placed, by default they will come one
// after another in the tab sequence.
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var fieldTwo = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
var fieldThree = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 70, 100, 20);
// Set the third field come before the first in the tab sequence, and remove the
// second field from the tab sequence.
fieldOne.tabSeq = 2;
fieldTwo.tabSeq = SM_DEFAULTS.IGNORE;
fieldThree.tabSeq = 1;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C41E6289-3675-4949-9065-DAFF85D152BB}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_des|text=|trigger=button}{sub-section}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_des|trigger=none|class=sIndent}Flag that tells if the component is transparent or not.
The default value is "false", that is the components
are not transparent.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_ret|text=|trigger=button}{sub-section}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_see|text=|trigger=button}{sub-section}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_see|text=|trigger=button}{sub-section}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_sam|text=|trigger=button}{sub-section}{sub-section:C41E6289-3675-4949-9065-DAFF85D152BB_sam|class=sIndent|trigger=none}{code:language=javascript}
// Load an image from disk an create a Media object based on it.
var imageBytes = plugins.file.readFile('d:/ball.jpg');
var media = solutionModel.newMedia('ball.jpg', imageBytes);
// Put on the form a label with the image.
var image = form.newLabel('', 10, 10, 100, 100);
image.imageMedia = media;
// Put two fields over the image. The second one will be transparent and the
// image will shine through.
var nonTransparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 20, 100, 20);
var transparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
transparentField.transparent = true;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=650C53EF-B358-4991-A213-B41269044F79}{tr:id=name}{td}h6.width{td}{tr}{tr:id=des}{td}{sub-section:650C53EF-B358-4991-A213-B41269044F79_des|text=|trigger=button}{sub-section}{sub-section:650C53EF-B358-4991-A213-B41269044F79_des|trigger=none|class=sIndent}The width in pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:650C53EF-B358-4991-A213-B41269044F79_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:650C53EF-B358-4991-A213-B41269044F79_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:650C53EF-B358-4991-A213-B41269044F79_ret|text=|trigger=button}{sub-section}{sub-section:650C53EF-B358-4991-A213-B41269044F79_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:650C53EF-B358-4991-A213-B41269044F79_see|text=|trigger=button}{sub-section}{sub-section:650C53EF-B358-4991-A213-B41269044F79_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:650C53EF-B358-4991-A213-B41269044F79_see|text=|trigger=button}{sub-section}{sub-section:650C53EF-B358-4991-A213-B41269044F79_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:650C53EF-B358-4991-A213-B41269044F79_sam|text=|trigger=button}{sub-section}{sub-section:650C53EF-B358-4991-A213-B41269044F79_sam|class=sIndent|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=17BB7D6D-EE09-4ABA-8929-C0D687BDA286}{tr:id=name}{td}h6.x{td}{tr}{tr:id=des}{td}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_des|text=|trigger=button}{sub-section}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_des|trigger=none|class=sIndent}The x coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_ret|text=|trigger=button}{sub-section}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_see|text=|trigger=button}{sub-section}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_see|text=|trigger=button}{sub-section}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_sam|text=|trigger=button}{sub-section}{sub-section:17BB7D6D-EE09-4ABA-8929-C0D687BDA286_sam|class=sIndent|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7E74B54C-5424-4B3D-B120-DA9879957174}{tr:id=name}{td}h6.y{td}{tr}{tr:id=des}{td}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_des|text=|trigger=button}{sub-section}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_des|trigger=none|class=sIndent}The y coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_ret|text=|trigger=button}{sub-section}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_see|text=|trigger=button}{sub-section}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_see|text=|trigger=button}{sub-section}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_sam|text=|trigger=button}{sub-section}{sub-section:7E74B54C-5424-4B3D-B120-DA9879957174_sam|class=sIndent|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9}{tr:id=name}{td}h6.getTab{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSTab]{span}{span:id=iets|style=float: left; font-weight: bold;}getTab{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_des|text=|trigger=button}{sub-section}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_des|trigger=none|class=sIndent}Returns a JSTab instance representing the tab which has the specified name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_prs|trigger=none}name -- The name of the tab that should be returned.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_ret|text=|trigger=button}{sub-section}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_ret|trigger=none|class=sIndent}[JSTab] -- A JSTab instance represented the requested tab.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_see|text=|trigger=button}{sub-section}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_see|text=|trigger=button}{sub-section}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_sam|text=|trigger=button}{sub-section}{sub-section:0DE937C8-14E6-4C1A-A6E4-E8A1438EE0D9_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne);
tabPanel.newTab('tab2', 'Child Two', childTwo);
tabPanel.getTab('tab2').text = 'Child Two Changed';
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D}{tr:id=name}{td}h6.getTabs{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSTab]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabs{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_des|text=|trigger=button}{sub-section}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_des|trigger=none|class=sIndent}Returns an array of JSTab instances holding the tabs of the tab panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_ret|text=|trigger=button}{sub-section}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_ret|trigger=none|class=sIndent}[JSTab]\[] -- An array of JSTab instances representing all tabs of this tabpanel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_see|text=|trigger=button}{sub-section}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_see|text=|trigger=button}{sub-section}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_sam|text=|trigger=button}{sub-section}{sub-section:1176D932-29E2-4C7F-BABA-A2D5CF0CDB1D_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne);
tabPanel.newTab('tab2', 'Child Two', childTwo);
var tabs = tabPanel.getTabs();
for (var i=0; i<tabs.length; i++)
application.output("Tab " + i + " has text " + tabs[i].text);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D22C8B74-0C73-4722-88FD-172E19CF69CC}{tr:id=name}{td}h6.newTab{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSTab]{span}{span:id=iets|style=float: left; font-weight: bold;}newTab{span}{span:id=iets|style=float: left;}\(name, text, form, relation){span}{td}{tr}{tr:id=des}{td}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_des|text=|trigger=button}{sub-section}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_des|trigger=none|class=sIndent}Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_prs|trigger=none}name -- The name of the new tab.
text -- The text to be displayed on the new tab.
form -- The JSForm instance that should be displayed in the new tab.
\[relation\] -- A JSRelation object that relates the parent form with the form
that will be displayed in the new tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_ret|text=|trigger=button}{sub-section}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_ret|trigger=none|class=sIndent}[JSTab] -- A JSTab instance representing the newly created and added tab.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_see|text=|trigger=button}{sub-section}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_see|text=|trigger=button}{sub-section}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_sam|text=|trigger=button}{sub-section}{sub-section:D22C8B74-0C73-4722-88FD-172E19CF69CC_sam|class=sIndent|trigger=none}{code:language=javascript}
// Create a parent form.
var form = solutionModel.newForm('parentForm', 'example_data', 'parent_table', 'null', false, 640, 480);
// Create a first child form.
var childOne = solutionModel.newForm('childOne', 'example_data', 'child_table', 'null', false, 400, 300);
childOne.newField('child_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
// Create a relation to link the parent form to the first child form.
var parentToChild = solutionModel.newRelation('parentToChild','example_data','parent_table','example_data','child_table',JSRelation.INNER_JOIN);
parentToChild.newRelationItem('parent_table_id','=','child_table_parent_id');
// Create a second child form.
var childTwo = solutionModel.newForm('childTwo', 'example_data', 'my_table', 'null', false, 400, 300);
childTwo.newField('my_table_image', JSField.IMAGE_MEDIA, 10, 10, 100, 100);
// Create a tab panel and add two tabs to it, with the two child forms.
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne, parentToChild); // The first form uses the relation.
tabPanel.newTab('tab2', 'Child Two', childTwo);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sReturnTypes2100%height: 30px;2ExtendssWordListBLOCKservoy sSummary12%30%58%height: 30px;3Constants SummaryConstant used for creating accordion panel from tab panel, by setting its tabOrientation.Constant used for restoring a tab panel orientation to it's initial state.Constant used for creating a tab panel that does not show tabs, by setting its tabOrientation.Constant used for creating horizontal split pane from tab panel, by setting its tabOrientation.Constant used for creating vertical split pane from tab panel, by setting its tabOrientation.servoy sSummary12%30%58%height: 30px;3Property SummaryEnables a component to stick to a specific side of form and/or to grow or shrink when a window is resized.The background color of the component.The type, color and style of border of the component.CSS position is a replacement for anchoring system making it more intuitive to place a component.The enable state of the component, default true.The font type of the component.The foreground color of the component.The Z index of this component.A String representing a group ID for this component.The height in pixels of the component.The name of the component.Method to be executed when the selected tab is changed in the tab panel or divider position is changed in split pane.Enables an element to resize based on its content and/or move when printing.Flag that tells if the component should be printed or not when the form is printed.Flag that tells how to arrange the tabs if they don't fit on a single line.The name of the style class that should be applied to this component.Specifies either the position of the tabs related to the tab panel or the type of tab-panel.An index that specifies the position of the component in the tab sequence.Flag that tells if the component is transparent or not.The visible property of the component, default true.The width in pixels of the component.The x coordinate of the component on the form.The y coordinate of the component on the form.servoy sSummary12%30%58%height: 30px;3Methods SummaryGet the value of an attribute of the element.Returns the attribute names of an element.Returns the comment of this component.Get a design-time property of an element.Get the design-time properties of an element.Returns the name of the form.Returns a JSTab instance representing the tab which has the specified name.Returns an array of JSTab instances holding the tabs of the tab panel.Returns the UUID of this component.Adds a new tab with the text label and JSForm.Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated).Set a design-time property of an element.Remove the attribute of an element.Clear a design-time property of an element.voidRemoves the tab with the specified name from the tab panel.voidSet the attribute value of an element.constantservoy sDetail2100%height:30px2Constants DetailsACCORDION_PANELname
ACCORDION_PANEL
dessIndent
Constant used for creating accordion panel from tab panel, by setting its tabOrientation.
Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.
If opposite anchors are activated then the component with grow or
shrink with the window. For example if Top and Bottom are activated,
then the component will grow/shrink when the window is vertically
resized. If Left and Right are activated then the component
will grow/shrink when the window is horizontally resized.
If opposite anchors are not activated, then the component will
keep a constant distance from the sides of the window which
correspond to the activated anchors.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowbackgroundname
background
dessIndent
The background color of the component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowborderTypename
borderType
dessIndent
The type, color and style of border of the component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowcssPositionname
cssPosition
dessIndent
CSS position is a replacement for anchoring system making it more intuitive to place a component.
CSS position should be set on form, an absolute position form can either work with anchoring or with css position.
This is only working in NGClient.
ret
Returns
sIndentclients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowenabledname
enabled
dessIndent
The enable state of the component, default true.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowfontTypename
fontType
dessIndent
The font type of the component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowforegroundname
foreground
dessIndent
The foreground color of the component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowformIndexname
formIndex
dessIndent
The Z index of this component. If two components overlap,
then the component with higher Z index is displayed above
the component with lower Z index.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgroupIDname
groupID
dessIndent
A String representing a group ID for this component. If several
components have the same group ID then they belong to the same
group of components. Using the group itself, all components can
be disabled/enabled or made invisible/visible.
The group id should be a javascript compatible identifier to allow access of the group in scripting.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowheightname
height
dessIndent
The height in pixels of the component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRownamename
name
dessIndent
The name of the component. Through this name it can also accessed in methods.
Must be a valid javascript name. (no - in the name or start with number)
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowonChangename
onChange
dessIndent
Method to be executed when the selected tab is changed in the tab panel or divider position is changed in split pane.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowprintSlidingname
printSliding
dessIndent
Enables an element to resize based on its content and/or move when printing.
The component can move horizontally or vertically and can grow or shrink in
height and width, based on its content and the content of neighboring
components.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClientsam
Sample
sIdentjavascriptlastDetailRowprintablename
printable
dessIndent
Flag that tells if the component should be printed or not when the form is printed.
By default components are printable.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClientsam
Sample
sIdentjavascriptlastDetailRowscrollTabsname
scrollTabs
dessIndent
Flag that tells how to arrange the tabs if they don't fit on a single line.
If this flag is set, then the tabs will stay on a single line, but there will
be the possibility to scroll them to the left and to the right. If this flag
is not set, then the tabs will be arranged on multiple lines.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowstyleClassname
styleClass
dessIndent
The name of the style class that should be applied to this component.
When defining style classes for specific component types, their names
must be prefixed according to the type of the component. For example
in order to define a class names 'fancy' for fields, in the style
definition the class must be named 'field.fancy'. If it would be
intended for labels, then it would be named 'label.fancy'. When specifying
the class name for a component, the prefix is dropped however. Thus the
field or the label will have its styleClass property set to 'fancy' only.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtabOrientationname
tabOrientation
dessIndent
Specifies either the position of the tabs related to the tab panel or the type of tab-panel.
Can be one of SM_ALIGNMENT.(TOP, RIGHT, BOTTOM, LEFT), DEFAULT_ORIENTATION, HIDE, SPLIT_HORIZONTAL, SPLIT_VERTICAL, ACCORDION_PANEL.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtabSeqname
tabSeq
dessIndent
An index that specifies the position of the component in the tab sequence. The components
are put into the tab sequence in increasing order of this property. A value of 0 means
to use the default mechanism of building the tab sequence (based on their location on the form).
A value of -2 means to remove the component from the tab sequence.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtransparentname
transparent
dessIndent
Flag that tells if the component is transparent or not.
The default value is "false", that is the components
are not transparent.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowvisiblename
visible
dessIndent
The visible property of the component, default true.
Returns the name of the form. (may be empty string as well)
ret
Returns
sIndent The name of the form.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTabname
getTab(name)
dessIndent
Returns a JSTab instance representing the tab which has the specified name.
prs
Parameters
sIndentnameThe name of the tab that should be returned.ret
Returns
sIndent A JSTab instance represented the requested tab.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTabsname
getTabs()
dessIndent
Returns an array of JSTab instances holding the tabs of the tab panel.
ret
Returns
sIndent An array of JSTab instances representing all tabs of this tabpanel.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetUUIDname
getUUID()
dessIndent
Returns the UUID of this component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRownewTabname
newTab(name, text, form)
dessIndent
Adds a new tab with the text label and JSForm.
prs
Parameters
sIndentnameThe name of the new tab.textThe text to be displayed on the new tab.formThe JSForm instance that should be displayed in the new tab.ret
Returns
sIndent A JSTab instance representing the newly created and added tab.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRownewTabname
newTab(name, text, form, relation)
dessIndent
Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated).
prs
Parameters
sIndentnameThe name of the new tab.textThe text to be displayed on the new tab.formThe JSForm instance that should be displayed in the new tab.relationA JSRelation object that relates the parent form with the form that will be displayed in the new tab.ret
Returns
sIndent A JSTab instance representing the newly created and added tab.clients