Starting with subtopics.
This commit is contained in:
parent
4403c822b2
commit
75e05472b3
|
@ -0,0 +1,3 @@
|
|||
accessing
|
||||
addSubtopic: subtopicString
|
||||
self subtopics at: subtopicString put: Set new.
|
|
@ -0,0 +1,4 @@
|
|||
accessing
|
||||
language: isoLanguageCode
|
||||
"isoLanguageCode follows the ISO 639-1 two letters convention"
|
||||
language := isoLanguageCode
|
|
@ -0,0 +1,3 @@
|
|||
accessing
|
||||
subtopics: subtopicsNamesArray
|
||||
subtopicsNamesArray do: [:each | self addSubtopic: each ]
|
|
@ -0,0 +1,3 @@
|
|||
accessing
|
||||
subtopics
|
||||
^ subtopics ifNil: [ subtopics := Dictionary new ]
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"commentStamp" : "",
|
||||
"super" : "Object",
|
||||
"category" : "Datanalitica-Datanalitica",
|
||||
"classinstvars" : [ ],
|
||||
"pools" : [ ],
|
||||
"classvars" : [ ],
|
||||
"instvars" : [
|
||||
"language",
|
||||
"name",
|
||||
"subtopics"
|
||||
],
|
||||
"name" : "DiscourseTopic",
|
||||
"type" : "normal"
|
||||
}
|
|
@ -13,7 +13,7 @@ asCardElement
|
|||
margin: (BlInsets left: 20);
|
||||
addChild: (BrLabel new
|
||||
aptitude: BrGlamorousLabelAptitude;
|
||||
text: '@' , self user name , ' | ' , self created asString;
|
||||
text: '@' , self user userName , ' | ' , self created asString;
|
||||
beSmallSize);
|
||||
addChild: (BrLabel new
|
||||
aptitude: BrGlamorousLabelAptitude;
|
||||
|
|
|
@ -2,4 +2,4 @@ accessing
|
|||
printOn: aStream
|
||||
super printOn: aStream.
|
||||
aStream
|
||||
nextPutAll: '(', self userName,')'
|
||||
nextPutAll: '(@', self userName,')'
|
|
@ -0,0 +1,5 @@
|
|||
accessing
|
||||
printOn: aStream
|
||||
super printOn: aStream.
|
||||
aStream
|
||||
nextPutAll: '( ', self users size asString, ' users )'
|
Loading…
Reference in New Issue