This component is the entry point for the store example. It provides the main stylesheet in its #style method, renders a simple banner at the top, and then embeds an instance of WAStoreTask, which is where the real action happens.
ProtoObjectObjectWAPresenterWAComponentWAStore
| task |
| instance | class |
|---|---|
| as yet unclassified | as yet unclassified |
| task |
|---|
| as yet unclassified |
|---|
| children |
^ Array with: task |
| initialize |
task _ WAStoreTask new. |
| renderContentOn: html |
html cssId: 'banner'. html table: [ html tableRowWith: [ html divNamed: 'title' with: self title. html divNamed: 'subtitle' with: self subtitle. ] ]. html divNamed: 'body' with: task |
| style |
^ '
body {margin: 0px; font-family: sans-serif}
#banner {width: 100%}
#banner tr {background-color: lightblue; text-align: right; padding: 10px; vertical-align: bottom}
#title {font-size: 18pt; font-weight: bold}
#subtitle {font-size: 9pt; font-style: italic}
#body {padding: 5px}
.validation-error {color: red; font-size: 9pt; padding: 5px}
'
|
| subtitle |
^ 'fresh, raw fish delivered to your door' |
| title |
^ 'sushiNet' |
| as yet unclassified |
|---|
| canBeRoot |
^ true |
| initialize |
self registerAsApplication: 'store' |