ProtoObjectObjectSCXMLElementWrapperSCSelectOption
| label | selectInput | value |
| instance | class |
|---|---|
| accessing initialize processing request | instance creation |
| label |
|---|
|
| selectInput |
|---|
|
| value |
|---|
|
| accessing |
|---|
| label |
^label |
| initialize |
|---|
| initializeForSelect: aSelect fromXMLElement: element |
super initializeFromXMLElement: element. value _ element attributeAt: 'value'. label _ element contents first string. selectInput _ aSelect. (element attributes includesKey: 'selected') ifTrue: [selectInput selectedOptions add: self] |
| processing |
|---|
| select |
selectInput optionSelected: self |
| request |
|---|
| addToRequestStream: aStream |
aStream nextPutAll: selectInput name; nextPut: $=; nextPutAll: value. ^ true |
| instance creation |
|---|
| forSelect: aSelect fromXMLElement: anXMLElement |
^ self new initializeForSelect: aSelect fromXMLElement: anXMLElement |