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 3:48 pm UTC on 16 September 2017
ToolBuilderSpec is the abstract widget specification class.

Subclasses are for example PluggableButtonSpec or PluggableTextSpec.


Example how these specs are used: InspectorBrowser buildWith: builder

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'')'