ProtoObjectObjectWAPresenterWAComponentWAInputTest
| emptyString | fraction | integer | nilString |
| instance | class |
|---|---|
| accessing as yet unclassified | example |
| emptyString |
|---|
| fraction |
|---|
| integer |
|---|
| nilString |
|---|
| accessing |
|---|
| emptyString |
^emptyString |
| emptyString: anObject |
emptyString := anObject |
| fraction |
^fraction |
| fraction: anObject |
fraction := anObject |
| integer |
^integer |
| integer: anObject |
integer := anObject |
| nilString |
^nilString |
| nilString: anObject |
nilString := anObject |
| as yet unclassified |
|---|
| initialize |
nilString _ nil. emptyString _ ''. integer _ 42. fraction _ 1/3. |
| renderContentOn: html |
html form: [ html table: [ html tableHeadings: #(Name Value PrintString); tableRowWithLabel: 'Nil String' column: [html textInputOn: #nilString of: self] column: [html text: nilString printString]; tableRowWithLabel: 'Empty String' column: [html textInputOn: #emptyString of: self] column: [html text: emptyString printString]; tableRowWithLabel: 'Integer' column: [html textInputOn: #integer of: self] column: [html text: integer printString]; tableRowWithLabel: 'Fraction' column: [html textInputOn: #fraction of: self] column: [html text: fraction printString]. ]. html submitButton. ] |
| example |
|---|
| example |
^ self new |