SCRadioButtonHtmlInput


SeasideTesting-Form Components

Comment:



Hierarchy:

ProtoObject
Object
SCXMLElementWrapper
SCHtmlInputComponent
SCRadioButtonHtmlInput

Summary:

instance variables:

group internalValue

methods:

instance class
initialize private-value request testing value instance creation

Detail:

instance variables:

group
inferredType:
UndefinedObject
internalValue
inferredType:
UndefinedObject

instance methods:

initialize
initializeForGroup: aGroup form: aForm fromXMLElement: anXMLElement
 
	self initializeForForm: aForm element: anXMLElement.
	group _ aGroup.
	internalValue _ value.
	value _ anXMLElement attributes includesKey: 'checked'.
	

private-value
privateMakeSelected

	self setValue: true
privateMakeUnselected

	self setValue: false

request
addToRequestStream: aStream
 
	^ self value
		and: [self name
				ifNil: [false]
				ifNotNil: [aStream nextPutAll: self name.
				aStream nextPut: $=.
				aStream nextPutAll: internalValue.
				true]]

testing
isRadioButton

	^true
isSelected

	^ value
		ifNil: [value _ false]

value
makeSelected

	group selectRadioButton: self
makeUnselected

	self privateMakeUnselected
value: aValue

	aValue
		ifTrue: [self makeSelected]
		ifFalse: [self makeUnselected]

class methods:

instance creation
forGroup: group form: aForm fromXMLElement: anXMLElement
 
	^ self new initializeForGroup: group form: aForm fromXMLElement: anXMLElement

^top


- made by Dandelion -