ProtoObjectObjectWAPresenterWADecorationWAValidationDecoration
| message | validationBlock |
| instance | class |
|---|---|
| as yet unclassified | no messages
|
| message |
|---|
| validationBlock |
|---|
| as yet unclassified |
|---|
| handleAnswer: anObject |
(super handleAnswer: anObject) ifFalse: [^ (self validate: anObject) not]. ^ true |
| handleAnswer: anObject continueWith: aBlock |
(self validate: anObject) ifTrue: [aBlock value] |
| initialize |
message _ WAStateHolder new |
| renderContentOn: html |
message contents ifNotNilDo: [:msg | html divClass: 'validation-error' with: msg]. self renderOwnerOn: html. |
| validate: anObject |
[validationBlock value: anObject. ^ true] on: Error do: [:e | message contents: e messageText]. ^ false |
| validateWith: aBlock |
validationBlock _ aBlock |