EditorScriptHelper
class called helper
.
String shortName; public void start() { shortName = helper.askForProperty("Short Name"); }
getPropertyValue(ServerWidget, String)
: get the value of a widget property by its ARINC ID[1]
getPropertyValue(theLabel, "A661_STRING")
will return the String label of a Label widgetgetPropertyAsName(ServerWidget, String)
: get the value of a widget property by its name[2]
getPropertyAsName(theLabel, "LabelString")
will return the String label of a Label widgetgetPropertyID(ServerWidget, String)
: get the ARINC ID of a widget property knowing its name[3]
getPropertyID(theLabel, "LabelString")
will return "A661_STRING"hasProperty(ServerWidget, String)
: return true if the widget has a property with a specified ARINC IDhasPropertyByName(ServerWidget, String)
: return true if the widget has a property with a specified namegetPropertyValueAsxxx(ServerWidget, String)
: get the property value of a widget property knowing its ARINC ID . This eventually converted in a specific typegetAllChildren(ServerWidget)
: get all the children of a container, including children of childrengetAllParents(ServerWidget)
: get all the parents of a widget, going from the direct parent to the root of the hierarchygetPositionInLayer(ServerWidget)
: get the position of a widget in its Layer in 100th of mmgetFont(char)
: get the Font of a specified IDgetStringBounds(ServerWidget, String)
: get the width and height in 100th of mm for a widget in the current Look and Feel[4]
getStringWidth(String, ARINCFont)
and getARINCStringWidth(String, ARINCFont)
: get the width of a String for a FontsetParameter(ServerWidget, String, Object)
: set the property of a widget using the property ARINC IDsetParameterAsName(ServerWidget, String, Object)
: set the property of a widget using the property namesetWidgetName(ServerWidget, String)
: change the name of a widget[5]
setWidgetName(ServerWidget, String, boolean, boolean)
: change the name of a widget[6]
replaceBy(ServerWidget, String)
: replace a widget by another widget of another ARINC ID, keeping the childrne tree if the widget has children[7]
createLayer(ServerDefinitionFile, String, int)
: create a new Layer specifying its name and IDcreateWidgetAfter(ServerWidget, String)
, createWidgetBefore(ServerWidget, String)
, createWidgetUnder(ServerWidget, String)
, and createWidgetUnder(ServerLayer, String)
: creates a new widget of a specified ARINC ID in the hierarchysaveAsXML(ServerDefinitionFile, File)
: save a Definition File as XMLsaveAsBinary(ServerDefinitionFile, File)
: save a Definition File as binaryserverlayer.getDefinitionFile()
method.getPropertyValue(theLabel, "A661_STRING")
will return the String label of a Label widgetgetPropertyAsName(theLabel, "LabelString")
will return the String label of a Label widgetgetPropertyID(theLabel, "LabelString")
will return "A661_STRING"Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence