Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
ToolBuilderSpec
Last updated at 7:27 am UTC on 14 April 2018
ToolBuilderSpec is the abstract widget specification class. ToolBuilderSpecs are used by the ToolBuilder.

Subclasses are for example PluggableButtonSpec or PluggableTextSpec.


Examples how these specs are used:

Note that only for PluggableTextSpec and the subclasses you may specify a font. For all other widgets default fonts are used.

ToolBuilderSpec printHierarchy '
 ProtoObject #()
	Object #()

		ToolBuilderSpec #(''name'' ''help'')
			PluggableMenuItemSpec #(''label'' ''action'' ''checked'' ''enabled'' ''separator'' ''subMenu'' ''checkable'')
			PluggableMenuSpec #(''label'' ''model'' ''items'')
			PluggableWidgetSpec #(''model'' ''frame'' ''color'' ''minimumExtent'' ''margin'' ''padding'' ''horizontalResizing'' ''verticalResizing'')
				PluggableButtonSpec #(''action'' ''label'' ''state'' ''enabled'' ''style'' ''changeLabelWhen'')
					PluggableActionButtonSpec #()
					PluggableCheckBoxSpec #()
					PluggableRadioButtonSpec #()
				PluggableCompositeSpec #(''children'' ''layout'' ''wantsResizeHandles'' ''spacing'')
					PluggableDialogSpec #(''title'' ''message'' ''extent'' ''buttons'' ''closeAction'' ''exclusive'' ''autoCancel'')
					PluggablePanelSpec #()
					PluggableScrollPaneSpec #(''morph'' ''morphClass'' ''borderWidth'' ''vScrollBarPolicy'' ''hScrollBarPolicy'')
					PluggableWindowSpec #(''label'' ''extent'' ''closeAction'' ''multiWindowStyle'')
				PluggableDropDownListSpec #(''listSelector'' ''selectionSelector'' ''selectionSetter'')
				PluggableListSpec #(''list'' ''getIndex'' ''setIndex'' ''getSelected'' ''setSelected'' ''menu'' ''keyPress'' ''autoDeselect'' ''dragItem'' 
                                                    ''dropItem'' ''dropAccept'' ''doubleClick'' ''listSize'' ''listItem'' ''keystrokePreview'' ''icon'' ''vScrollBarPolicy''
                                                     ''hScrollBarPolicy'' ''dragStarted'' ''helpItem'' ''filterableList'' ''clearFilterAutomatically'')
					PluggableMultiSelectionListSpec #(''getSelectionList'' ''setSelectionList'')
						PluggableAlternateMultiSelectionListSpec #()
				PluggableSpacerSpec #(''extent'')
				PluggableTextSpec #(''getText'' ''setText'' ''selection'' ''menu'' ''askBeforeDiscardingEdits'' ''editText'' ''indicateUnacceptedChanges''
                                                  ''stylerClass'' ''font'' ''readOnly'' ''softLineWrap'' ''hardLineWrap'' ''textColor'')
					PluggableCodePaneSpec #()
					PluggableInputFieldSpec #()
				PluggableTreeSpec #(''roots'' ''getSelectedPath'' ''setSelected'' ''getSelected'' ''setSelectedParent'' ''getChildren'' ''hasChildren'' 
                                                   ''label'' ''icon'' ''unusedVar'' ''menu'' ''keyPress'' ''doubleClick'' ''dropItem'' ''dropAccept'' ''autoDeselect'' 
                                                   ''dragItem'' ''nodeClass'' ''columns'' ''vScrollBarPolicy'' ''hScrollBarPolicy'' ''dragStarted'')'