GUIKit`
GUIKit`

PropertyValue

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

PropertyValue[name]

gets a widget property value.

PropertyValue[{target,name}]

gets a widget property value, specifying the target widget.

PropertyValue[{target,name,index}]

gets an indexed widget property value, specifying the target widget.

Details and Options

  • To use PropertyValue, you first need to load GUIKit using Needs["GUIKit`"].
  • PropertyValue returns the value of the property name.
  • If the target argument is not present, the target is defaulted to the wrapping widget of the PropertyValue expression.
  • The target can either be specified as a string name of a widget reference or a component instance    such as a JavaObject.
  • Note that indices in the Wolfram Language and XML widget definitions are 1-based, while Java and direct calls to Java objects using J/Link follow the 0-based Java convention.
  • The following option can be given:
  • NameNonea name with which to register this returned value within the widget registry

Examples

Basic Examples  (1)

Run an interface definition:

Get the value of the "text" property of the "SumField" widget reference:

Wolfram Research (2007), PropertyValue, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html.

Text

Wolfram Research (2007), PropertyValue, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html.

CMS

Wolfram Language. 2007. "PropertyValue." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html.

APA

Wolfram Language. (2007). PropertyValue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html

BibTeX

@misc{reference.wolfram_2024_propertyvalue, author="Wolfram Research", title="{PropertyValue}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_propertyvalue, organization={Wolfram Research}, title={PropertyValue}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html}, note=[Accessed: 22-November-2024 ]}