ecl-logo Documentation

Widget

Widget[mySequence]myWidget

returns a widget that is consistent with the sequence of inputs given in mySequence.

Details

    Input
    Output
    Messages
  • ColorInvalidKeysThe Color widget does not take keys `1`. Please remove these keys.
    ColorPatternValueThe value for the key Pattern must match Verbatim[ColorP] for the Color widget. Please change the value of this key.
    DateInequalityPatternValueThe value for the key Pattern matches InequalityP but is misspecified and is not evaluating. Please change the value of this key.
    DateInvalidKeysThe Date widget does not take keys `1`. Please remove these keys.
    DateMissingTimeSelectorKeyThe key TimeSelector must be specified to create a Date widget. Please include this key.
    DatePatternValueThe value for the key Pattern must match Verbatim[_?DateObjectQ] or InequalityP for the Date widget. Please change the value of this key.
    DateTimeSelectorValueThe value for the key TimeSelector must match BooleanP for the Date widget. Please change the value of this key.
    EnumerationInvalidKeysThe Enumeration widget does not take keys `1`. Please change the value of this key.
    EnumerationItemsValueThe value for the key Items must be consistent with the given Pattern. The Pattern must match Alternatives@@Items. Please change the value of this key.
    EnumerationPatternValueThe value for the key Pattern must match _Alternatives for the Enumeration widget. Please change the value of this key.
    ExpressionInvalidKeysThe MultiSelect widget does not take keys `1`. Please remove these keys.
    ExpressionMissingSizeKeyThe key Size must be specified to create a Expression widget. Please include this key.
    ExpressionSizeValueThe value for the key Size must match TextBoxSizeP for the MultiSelect widget. Please change the value of this key.
    FieldReferenceFieldsValueThe value for the key Fields must match {FieldP[ObjectTypes, OutputShort]..} for the Field Reference widget. Please change the value of this key.
    FieldReferenceInvalidKeysThe Field Reference widget does not take keys `1`. Please remove these keys.
    FieldReferenceObjectTypesValueThe value for the key ObjectTypes does not match {TypeP[]..}. Please change the value of this key.
    FieldReferencePatternValueThe value for the key Pattern must match _FieldReferenceP for the Field Reference widget. Please change the value of this key.
    InvalidIncrementValueThe value for the key Increment must match the Pattern key and must be either a Quantity or Null. It is currently `1`. Please change the value of this key.
    InvalidMaxValueThe value for the key Max must match the Pattern key and must be either a DateObject or Null. It is currently `1`. Please change the value of this key.
    InvalidMinValueThe value for the key Min must match the Pattern key and must be either a DateObject or Null. It is currently `1`. Please change the value of this key.
    InvalidPatternTooltipValueThe value for the key PatternTooltip must match _String. Please change the value of this key.
    InvalidTypeType `1` is not a valid widget type. Refer to WidgetTypeP to see the valid widget types.
    MissingAssociationSequenceThe sequence could not be converted to an association: `1`
    MissingPatternKeyThe key Pattern must be specified to create a widget.
    MissingTypeKeyThe key Type must be specified to create a widget.
    MoleculeInvalidKeysThe Molecule widget does not take keys `1`. The valid set of keys is {Type, Pattern, PatternTooltip, Identifier}. Please remove these keys.
    MoleculePatternValueThe value for the key Pattern must match ListableP[_MoleculeP] for the Molecule widget. Please change the value of this key.
    MultiSelectInvalidKeysThe MultiSelect widget does not take keys `1`. Please remove these keys.
    MultiSelectItemsValueThe value for the key Items must be consistent with the given Pattern. The Pattern should match ListableP[Alternatives@@Items]. Please change the value of this key.
    MultiSelectPatternValueThe value for the key Pattern must match ListableP[_Alternatives] for the MultiSelect widget. Please change the value of this key.
    NoKeyExistsThe key `1` could not be found for this type of Widget. Please call the function Keys on your widget to see a known list of keys for this given Widget type.
    NumberIncrementValueThe value for the key Increment must match the given pattern for the Number widget. Please change the value of this key.
    NumberInvalidKeysThe Number widget does not take keys `1`. Please remove these keys.
    NumberMaxValueThe value for the key Max must match the given pattern for the Number widget. Please change the value of this key.
    NumberMinValueThe value for the key Min must match the given pattern for the Number widget. Please change the value of this key.
    NumberPatternValueThe value for the key Pattern must match InequalityP for the Number widget. Please change the value of this key.
    ObjectInvalidDereferencePatternThe Object widget's field Dereference does not match its basic pattern of {((_Object|_Model)_Field)...}. Please change the value of `1`.
    ObjectInvalidKeysThe Object widget does not take keys `1`. The valid set of keys is {Type, Pattern, ObjectTypes, ContainersToSamples, ObjectBuilderFunctions}. Please remove these keys.
    ObjectObjectBuildersValueThe value for the key ObjectBuilderFunctions must match {_Symbol...} for the Object widget. Please change the value of this key.
    ObjectObjectTypesValueThe value for the key ObjectTypes must match {TypeP[]...} for the Object widget. Please change the value of this key.
    ObjectOpenPathRootThe OpenPath does not begin with the Root catalog object. All OpenPaths must start with Object[Catalog,"Root"]. Please change the value of the OpenPaths key.
    ObjectOpenPathsContentsThe child `1` is not located in the contents field of the parent `2`. Please change the value of the OpenPaths key.
    ObjectOpenPathsValueThe value for the key OpenPaths must match {{ObjectP[Object[Catalog]]..}...} for the Object widget. Please change the value of this key.
    ObjectPatternValueThe value for the key Pattern must match Hold[_ObjectP]|Hold[ListableP[_ObjectP]] for the Object widget. Please change the value of this key.
    PatternSetDelayedThe key Pattern must be specified as SetDelayed (:>).
    PrimitiveInvalidKeysThe Primitive widget does not take keys `1`. Please remove these keys.
    PrimitiveMissingPrimitiveKeyValuePairsKeyThe Primitive widget was unable to find information for the given primitive set pattern in the global $PrimitiveSetPrimitiveLookup. Please ensure that DefinePrimitiveSet[...] has been called for your primitive set pattern.
    PrimitivePrimitiveKeyValuePairsPrimitiveSetThe key PrimitiveKeyValuePairs must be specified to create a Primitive widget if the pattern given is not a primitive set pattern registered by calling DefinePrimitiveSet[...]. Conversely, if a pattern is given that was registered via DefinePrimitiveSet[...], the PrimitiveKeyValuePairs option cannot be specified. The PrimitiveKeyValuePairs option is deprecated in favor of using DefinePrimitiveSet[...]. Please include/exclude this key or ensure that the pattern given to the widget was created by calling DefinePrimitiveSet[...].
    PrimitivePrimitiveKeyValuePairsValueThe value for the key PrimitiveKeyValuePairs must match {(_Symbol{((_Symbol|Verbatim[Optional][_Symbol])WidgetP)..})..} for the Primitive widget. Please change the value of this key.
    PrimitivePrimitiveTypesValueThe value for the key PrimitiveTypes must match {_Symbol..} for the Primitive widget. Please change the value of this key.
    QuantityIncrementValueThe value for the key Increment must match the given pattern for the Quantity widget. Please change the value of this key.
    QuantityInvalidKeysThe Quantity widget does not take keys `1`. Please change the value of this key.
    QuantityMaxValueThe value for the key Max must match the given pattern for the Quantity widget. Please change the value of this key.
    QuantityMinValueThe value for the key Min must match the given pattern for the Quantity widget. Please change the value of this key.
    QuantityMissingUnitsKeyThe key Units must be specified to create a Quantity widget. Please change the value of this key.
    QuantityPatternUnitMismatchThe units in the Unit key have unique unit dimensions of `1` but the units in the Pattern key have unique unit dimension of `2`. The Unit and Pattern keys are mismatched. Please change the values of these keys.
    QuantityPatternUnitsThe unit of the `1` value in the Quantity widget (`2`) does not match the units of the Units key (`3`) in the given Pattern `4`. Please change the value of this unit.
    QuantityPatternValueThe value for the key Quantity must match InequalityP or _Alternatives for the Quantity widget. Please change the value of this key.
    StringBoxTextValueThe value for the key BoxText must match _String|Null for the String widget. Please change the value of this key.
    StringInvalidKeysThe String widget does not take keys `1`. Please remove these keys.
    StringMissingSizeKeyThe key Size must be specified to create a String widget. Please change the value of this key.
    StringSizeValueThe value for the key Size must match TextBoxSizeP for the String widget. Please change the value of this key.
    UnitOperationInvalidKeysThe UnitOperation widget does not take keys `1`. Please remove these keys.
    UnitOperationMethodInvalidKeysThe UnitOperationMethod widget does not take keys `1`. Please remove these keys.
    UnitOperationMethodMethodsKeyRequiredThe Methods key is required to construct a UnitOperationMethod widget. Please provide this key.
    UnitOperationMethodWidgetKeyRequiredThe Widget key is required to construct a UnitOperationMethod widget. The Widget key must match WidgetP. Please provide this key.
    UnknownUnitShortHandUnable to expand the unit short hand `1`. Please change the value of this unit.

Examples

Basic Examples  (7)

Create a Multiselect widget:

Create an Enumeration widget:

Create an Molecule widget:

Create an String widget:

Returns $Failed if a Widget cannot be created from the provided inputs (Pattern must be provided as SetDelayed):

Returns $Failed if a Widget cannot be created from the provided inputs (the Min value is invalid):

Returns $Failed if a Widget cannot be created from the provided inputs (the Size key is required for the String Widget):

Additional Examples  (19)

Create a Date widget:

Create a Field Reference widget:

Create a MultiSelect widget:

Create an Color widget:

Create an Expression widget:

Create an Number widget:

Create an Quantity widget:

Create an Quantity widget, using short hand syntax for the units:

Create an Quantity widget, using short hand syntax for the units:

Create an Quantity widget, using short hand syntax for the units with an Alternatives:

Create an Quantity widget, using short hand syntax for the units with an Alternatives and a CompoundUnit:

Create an Quantity widget, with a simple unit:

Create a Object widget (PreparedContainer defaults to True when Object[Container] or one of their subtypes is given as a valid object to select):

Create a Object widget (PreparedSample defaults to True when Object[Sample] or one of their subtypes is given as a valid object to select):

Create a Primitive widget (the Widget function recursively will evaluate if there are nested Widgets) -- using the old PrimitiveKeyValuePairs way:

Create a Primitive widget (the Widget function recursively will evaluate if there are nested Widgets) -- using the old PrimitiveKeyValuePairs way:

Create a Quantity widget with alternative units and an alternatives pattern:

Create a String widget:

Using the Alternatives shorthand to make a Quantity widget will group units appropriately:

Messages  (62)

ColorInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Color Widget:

ColorPatternValue  (1)

The value for the key Pattern must match Verbatim[ColorP] for the Color widget:

DateInequalityPatternValue  (1)

Returns $Failed if the inequality pattern is misspecified:

DateInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Date Widget:

DateMissingTimeSelectorKey  (1)

The key TimeSelector must be specified to create a Date widget:

DatePatternValue  (1)

The value for the key Pattern must match Verbatim[_?DateObjectQ] for the Date widget:

DateTimeSelectorValue  (1)

The value for the key TimeSelector must match BooleanP for the Date widget:

EnumerationInvalidKeys  (1)

Returns $Failed if keys are given to Widget[...] that do not match the enumeration widget type:

EnumerationItemsValue  (1)

The value for the key Value must be consistent with the given Pattern. The Pattern must match Alternatives@@Items:

EnumerationPatternValue  (1)

The value for the key Pattern must match _Alternatives for the Enumeration widget:

ExpressionInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Expression Widget:

ExpressionMissingSizeKey  (1)

The key Size must be specified to create a Expression widget:

ExpressionSizeValue  (1)

The value for the key Size must match Word|Line|Paragraph for the MultiSelect widget:

FieldReferenceFieldsValue  (1)

The value for the key Fields must match {FieldP[OutputShort]..} for the Field Reference widget:

FieldReferenceInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Field Reference Widget:

FieldReferenceObjectTypesValue  (1)

The value for the key ObjectTypes must match {TypeP[]..} for the Field Reference widget:

FieldReferencePatternValue  (1)

The value for the key Pattern must match _FieldReferenceP for the Field Reference widget:

InvalidIncrementValue  (1)

Returns $Failed if the Increment value is misspecified:

InvalidMaxValue  (1)

Returns $Failed if the Max value is misspecified:

InvalidMinValue  (1)

Returns $Failed if the Min value is misspecified:

InvalidPatternTooltipValue  (1)

Returns $Failed if a Widget cannot be created from the provided inputs (the value for PatternTooltip must match _String):

InvalidType  (1)

Returns $Failed if a Widget cannot be created from the provided inputs (Type must match WidgetTypeP):

MissingPatternKey  (1)

Returns $Failed if a Widget cannot be created from the provided inputs (the Pattern key must be provided):

MissingTypeKey  (1)

Returns $Failed if a Widget cannot be created from the provided inputs (the Type key must be provided):

MoleculeInvalidKeys  (1)

Returns $Failed if there is a key that does not belong to a Molecule Widget:

MoleculePatternValue  (1)

Returns $Failed if there is a pattern that does not belong to a Molecule Widget:

MultiSelectInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the MultiSelect Widget:

MultiSelectItemsValue  (1)

The value for the key Items must be consistent with the given Pattern. The Pattern should match ListableP[Alternatives@@Items]:

MultiSelectPatternValue  (1)

The value for the key Pattern must match ListableP[_Alternatives] for the MultiSelect widget:

NoKeyExists  (1)

When trying to de-reference a key that does not exist in the Widget, $Failed is returned:

NumberIncrementValue  (1)

The value for the key Increment must match the given pattern for the Number widget:

NumberInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Number Widget:

NumberMaxValue  (1)

The value for the key Max must matchthe given pattern for the Number widget:

NumberMinValue  (1)

The value for the key Min must match the given pattern for the Number widget:

NumberPatternValue  (1)

The value for the key Pattern must match InequalityP|Span[InequalityP,InequaltiyP] for the Number widget:

ObjectInvalidDereferencePattern  (1)

Returns $Failed if the Dereference field does not match its basic pattern:

ObjectInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Object Widget:

ObjectObjectBuildersValue  (1)

The value for the key ObjectBuilders must match {_Symbol...} for the Object widget:

ObjectObjectTypesValue  (1)

The value for the key ObjectTypes must match {TypeP[]..} for the Object widget:

ObjectOpenPathRoot  (1)

Each OpenPath must begin with Object[Catalog,"Root"]:

ObjectOpenPathsContents  (1)

The OpenPath must be valid. Every child Object[Catalog] must be a member of its parent Object[Catalog]'s Contents field:

ObjectOpenPathsValue  (1)

The value for the key OpenPaths must match {{ObjectP[Object[Catalog]]..}...} for the Object widget:

ObjectPatternValue  (1)

The value for the key Pattern must match _ObjectP for the Object widget:

PatternSetDelayed  (1)

Returns $Failed if a Widget cannot be created from the provided inputs (Pattern must be provided as SetDelayed):

PrimitiveInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Primitive Widget:

PrimitiveMissingPrimitiveKeyValuePairsKey  (1)

The key PrimitiveKeyValuePairs must be specified to create a Primitive widget:

PrimitivePrimitiveKeyValuePairsValue  (1)

The value for the key PrimitiveKeyValuePairs must match {(_Symbol{(_SymbolWidgetP)..})..} for the Primitive widget:

PrimitivePrimitiveTypesValue  (1)

The value for the key PrimitiveTypes must match {_Symbol..} for the Primitive widget:

QuantityIncrementValue  (1)

The value for the key Increment must match _?QuantityQ|Null for the Quantity widget:

QuantityInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the Quantity Widget:

QuantityMaxValue  (1)

The value for the key Max must match _?QuantityQ|Null for the Quantity widget:

QuantityMinValue  (1)

The value for the key Min must match _?QuantityQ|Null for the Quantity widget:

QuantityMissingUnitsKey  (1)

The key Units must be specified to create a Quantity widget:

QuantityPatternUnitMismatch  (1)

Returns $Failed if part of the units in the Units key have been left out of the Pattern. In the following example, the developer has let the user specify a quantity with units Mole or Gram but the pattern only matches on Mole:

QuantityPatternUnits  (2)

Returns $Failed if the units of the Units key do not match the pattern:

Returns $Failed the unit dimensions of the Pattern and Unit keys do not match exactly:

QuantityPatternValue  (1)

The value for the key Pattern match InequalityP for the Quantity widget:

StringBoxTextValue  (1)

The value for the key BoxText must match _String|Null for the String widget:

StringInvalidKeys  (1)

Returns $Failed if there are keys that do not belong to the String Widget:

StringMissingSizeKey  (1)

The key Size must be specified to create a String widget:

StringSizeValue  (1)

The value for the key Size must match Word|Line|Paragraph for the String widget:

UnknownUnitShortHand  (1)

Returns $Failed is an invalid short-hand is provided:

Last modified on Mon 10 Oct 2022 00:41:06