SCHtmlInputComponent


SeasideTesting-Form Components

Comment:



Hierarchy:

ProtoObject
Object
SCXMLElementWrapper
SCHtmlInputComponent

Summary:

instance variables:

form value

methods:

instance class
accessing initialize private request testing value instance creation

Detail:

instance variables:

form
inferredType:
UndefinedObject
value
inferredType:
UndefinedObject

instance methods:

accessing
id

	^ self attributeAt: 'id'
name

	^ self attributeAt: 'name'

initialize
initializeForForm: aForm element: anXMLElement
 
	self initializeFromXMLElement: anXMLElement.
	value _ anXMLElement attributeAt: 'value' ifAbsent: [].
	form _ aForm

private
setValue: aValue

	value _ aValue

request
addToRequestStream: aStream

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

testing
isButton

	^false
isCheckbox

	^false
isRadioButton

	^ false
isSelectInput

	^false
isTextInput

	^false

value
value

	^value
value: aValue
 
	self setValue: aValue

class methods:

instance creation
forElement: anXMLElement ofForm: aForm
 
	^ self new initializeForForm: aForm element: anXMLElement

^top


- made by Dandelion -