Whole Index: ( Seaside-Continuations - WACounterTest )


Seaside-Continuations - class category defined in "Smalltalk"
 
Seaside-Document - class category defined in "Smalltalk"
 
Seaside-Examples-Store - class category defined in "Smalltalk"
 
Seaside-Examples-Store-Model - class category defined in "Smalltalk"
 
Seaside-Examples-Test - class category defined in "Smalltalk"
 
Seaside-HTTP - class category defined in "Smalltalk"
 
Seaside-Libraries - class category defined in "Smalltalk"
 
Seaside-Platform - class category defined in "Smalltalk"
 
Seaside-RenderLoop - class category defined in "Smalltalk"
 
Seaside-Rendering - class category defined in "Smalltalk"
 
Seaside-RequestHandler - class category defined in "Smalltalk"
 
Seaside-Session - class category defined in "Smalltalk"
 
Seaside-StateRegistry - class category defined in "Smalltalk"
 
Seaside-Utilities - class category defined in "Smalltalk"
 
Seaside2Info - class defined in "Seaside-Platform"

SeasidePlatformSupport - class defined in "Seaside-Platform"

SeasideTesting-Core - class category defined in "Smalltalk"
 
SeasideTesting-Examples - class category defined in "Smalltalk"
 
SeasideTesting-Form Components - class category defined in "Smalltalk"
 
SeasideTesting-Platform - class category defined in "Smalltalk"
 
SeasideTesting-TestRunner - class category defined in "Smalltalk"
 
SeasideTestingVWInfo - class defined in "SeasideTesting-Platform"

SeasideVWInfo - class defined in "Seaside-Platform"

SecondsInDay - pool variable defined in "ChronologyConstants"
 
SecondsInHour - pool variable defined in "ChronologyConstants"
 
SecondsInMinute - pool variable defined in "ChronologyConstants"
 
Sensor - global variable defined in "Smalltalk"
 
ShiftKeyBit - pool variable defined in "EventSensorConstants"
 
Smalltalk - global variable defined in "Smalltalk"
 
Smalltalk - global root defined in "Smalltalk"
 
SourceFiles - global variable defined in "Smalltalk"
 
Space - pool variable defined in "TextConstants"
 
SpecularAlpha - pool variable defined in "B3DEngineConstants"
 
SpecularBlue - pool variable defined in "B3DEngineConstants"
 
SpecularGreen - pool variable defined in "B3DEngineConstants"
 
SpecularPart - pool variable defined in "B3DEngineConstants"
 
SpecularRed - pool variable defined in "B3DEngineConstants"
 
SpotLightDeltaCos - pool variable defined in "B3DEngineConstants"
 
SpotLightExponent - pool variable defined in "B3DEngineConstants"
 
SpotLightMaxCos - pool variable defined in "B3DEngineConstants"
 
SpotLightMinCos - pool variable defined in "B3DEngineConstants"
 
SqueakEpoch - pool variable defined in "ChronologyConstants"
 
StoredBlock - pool variable defined in "ZipConstants"
 
StyleDecoder - pool variable defined in "TextConstants"
 
SystemOrganization - global variable defined in "Smalltalk"
 
Tab - pool variable defined in "TextConstants"
 
Testing - class method category defined in "SCComponentTestCase"
 
TextConstants - shared pool defined in "Smalltalk"
 
Transcript - global variable defined in "Smalltalk"
 
Undeclared - global variable defined in "Smalltalk"
 
Unregistered - class variable defined in "WAExpirySession"
 
VBNoTrackMask - pool variable defined in "B3DEngineConstants"
 
VBTrackAmbient - pool variable defined in "B3DEngineConstants"
 
VBTrackDiffuse - pool variable defined in "B3DEngineConstants"
 
VBTrackEmission - pool variable defined in "B3DEngineConstants"
 
VBTrackSpecular - pool variable defined in "B3DEngineConstants"
 
VBTwoSidedLighting - pool variable defined in "B3DEngineConstants"
 
VBUseLocalViewer - pool variable defined in "B3DEngineConstants"
 
VBVtxHasNormals - pool variable defined in "B3DEngineConstants"
 
VBVtxHasTexCoords - pool variable defined in "B3DEngineConstants"
 
WAAbstractHtmlBuilder - class defined in "Seaside-Builder"
I am abstract class providing methods to build xhtml.  My most commonly used subclass is WAHtmlRenderer.
WAActionCallback - class defined in "Seaside-Rendering"

WAAllTests - class defined in "Seaside-Examples-Test"
If you want to see these examples:

/seaside/config app:
- add a new application named "tests"
- choose WAAllTests as the root component
WAAllTestsTest - class defined in "SeasideTesting-Examples"

WAAlphabeticBatchedList - class defined in "Seaside-Components-Widgets"

WAAnchorTag - class defined in "Seaside-Canvas-Tags"

WAAnswerHandler - class defined in "Seaside-Component"

WAApplication - class defined in "Seaside-Session"

WAApplicationEditor - class defined in "Seaside-Components-Tools"

WAAuthConfiguration - class defined in "Seaside-Components-Tools"

WAAuthMain - class defined in "Seaside-Components-Tools"

WABasicAuthentication - class defined in "Seaside-Components-Decorations"

WABatchSelection - class defined in "Seaside-Components-Dialogs"

WABatchTest - class defined in "Seaside-Examples-Test"

WABatchedList - class defined in "Seaside-Components-Widgets"

WABooleanAttribute - class defined in "Seaside-Configuration"

WABrowser - class defined in "Seaside-Components-Tools"

WABrush - class defined in "Seaside-Canvas"

WACacheTest - class defined in "Seaside-Examples-Test"

WACallback - class defined in "Seaside-Rendering"

WACallbackRegistry - class defined in "Seaside-Rendering"

WACallbackStream - class defined in "Seaside-Rendering"

WACallbackTest - class defined in "Seaside-Examples-Test"

WACancelActionCallback - class defined in "Seaside-Rendering"

WACanvas - class defined in "Seaside-Canvas"

WACanvasTest - class defined in "Seaside-Examples-Test"

WAChangePassword - class defined in "Seaside-Components-Dialogs"

WAChoiceDialog - class defined in "Seaside-Components-Dialogs"

WAClosureTest - class defined in "Seaside-Examples-Test"

WAComponent - class defined in "Seaside-Component"
I am a class representing a graphical element of a seaside application. A component has state (instance variables, that might be backtracked using #registerObjectForBacktracking:), behavior decorations, children and an appearance that is specified in #renderContentOn:. A component might chose to display another component with #call:.

Child Components:
It is common for a component to display instances of other components while rendering itself.  It does this by passing them into the #render: method of WAHtmlRenderer.  For example, this #renderContentOn: method simply renders a heading and then displays a counter component 
immediately below it:

	renderContentOn: html
		html heading: 'My Counter' level: 3.
		html render: myCounter.

It's important that you use #render:, rather than directly calling the #renderContentOn: method of the subcomponent. The following is *not* correct:

	renderContentOn: html
		html heading: 'My Counter' level: 3.
		myCounter renderContentOn: html.   "DON'T DO THIS".

These subcomponents are usually instance variables of the component that is "embedding" them.  They are commonly created as part of the components #initialize method:

	initialize
		myCounter := WACounter new.

They may also be stored in a collection. One fairly common pattern is to keep a lazily initialized dictionary of subcomponents that match a collection of model items. For example, if you wanted a BudgetItemRow subcomponent for each member of budgetItems, you might do something like this:

	initialize
		budgetRows := Dictionary new.

	rowForItem: anItem
		^budgetRows at: anItem ifAbsentPut: [ BudgetItemRow item: anItem ].

	renderContentOn: html
		self budgetItems
			do: [ :each | html render: (self rowForItem: each) ]
			separatedBy: [ html horizontalLine ].

Each parent component *must* implement a #children method that returns a collection of all of the subcomponents that it might display on the next render. For the above two examples, #children might look like this:

	children
		^Array with: myCounter

or this:

	children
		^self budgetItems collect: [ :each | self rowForItem: each ].
		
Call/Answer:
If a subcomponent makes a #call: to another component, that component will appear in place of the subcomponent.  In the first example, if myCounter made a #call: to DateSelector, that DateSelector would appear in the context of the counter's parent, with the 'My Counter' heading 
above it.

Since a subcomponent has not been #call:'d, in general #answer: is a no-op.  However, the parent may attach an #onAnswer: block to the subcomponent to be notified if it sends #answer:. This allows one component to be used both from #call: and through embedding. For example:

	initialize
		dateSelector := WADateSelector new 
			onAnswer: [ :date | self dateChosen: date ].
WAConfiguration - class defined in "Seaside-Configuration"

WAConfigurationAttribute - class defined in "Seaside-Configuration"

WAConfigurationBrowser - class defined in "Seaside-Components-Tools"

WAConfigurationEditor - class defined in "Seaside-Components-Tools"

WAConfigurationPool - class defined in "Seaside-Configuration"

WAConfigurationTest - class defined in "Seaside-Configuration"

WACookie - class defined in "Seaside-HTTP"

WACookieTest - class defined in "Seaside-Examples-Test"

WACounter - class defined in "Seaside-Examples-Test"

WACounterTest - class defined in "SeasideTesting-Examples"

^top


- made by Dandelion -