WAApplicationEditor


Seaside-Components-Tools

Comment:



Hierarchy:

ProtoObject
Object
WAPresenter
WAComponent
WAConfigurationEditor
WAApplicationEditor

Summary:

instance variables:

application library

methods:

instance class
accessing actions as yet unclassified rendering no messages

Detail:

instance variables:

application
library

instance methods:

accessing
application: anApplication

	application _ anApplication.
	configuration _ application configuration.

actions
select: aConfiguration

	self call: (WAConfigurationBrowser new
				pool: (WASystemConfigurationPool default);
				select: aConfiguration;
				yourself)

as yet unclassified
children

	^ Array with: configEditor

rendering
addLibrary

	application libraries add: library
allLibraries

	^ WAStyleLibrary subclasses, WAScriptLibrary subclasses
libraryOptions

	^ self allLibraries difference: application libraries
renderContentOn: html

	html heading: 'Application: ', application name.

	super renderContentOn: html.
renderFormOn: html

		html text: 'Base Path: '.
		html textInputOn: #basePath of: application.
		
		html heading: 'Libraries' level: 2.
		self libraryOptions isEmpty ifFalse:
			[html text: 'Add Library: '.
			html
				selectFromList: self libraryOptions
				selected: nil
				callback: [:v | library _ v].
			html space.
			html submitButtonWithAction: [self addLibrary] text: 'Add'.].
		html list: application libraries do:
			[:ea |
			html text: ea.
			html space.
			html anchorWithAction: [application libraries remove: ea] text: '(remove)'].
		
		super renderFormOn: html

class methods:

^top


- made by Dandelion -