summaryrefslogtreecommitdiff
path: root/pharo-mooc/tiny-blog/src/TinyBlog-Components/TBScreenComponent.class.st
blob: ef15b8fba9e9ad197d92812e65f46334ae8d659b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Class {
	#name : 'TBScreenComponent',
	#superclass : 'SBSRootComponent',
	#instVars : [
		'header'
	],
	#category : 'TinyBlog-Components',
	#package : 'TinyBlog-Components'
}

{ #category : 'acccessing' }
TBScreenComponent >> blog [
	"Return the current blog. In the future we will ask the
	session to return the blog of the currently logged in user."	
	^ TBBlog current
]

{ #category : 'acccessing' }
TBScreenComponent >> children [
	^ { header }
]

{ #category : 'initialization' }
TBScreenComponent >> createHeaderComponent [
	^ TBHeaderComponent from: self
]

{ #category : 'initialization' }
TBScreenComponent >> initialize [
	super initialize.
	header := self createHeaderComponent
]

{ #category : 'acccessing' }
TBScreenComponent >> renderContentOn: html [
	html render: header
]