generated from hpi-swa-teaching/SWT-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luke
committed
Aug 3, 2022
1 parent
ed2da14
commit f7f9277
Showing
15 changed files
with
61 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Squello-Core.package/SPBBoard.class/instance/addColumnLocal..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
updating | ||
addColumnLocal: anSPBColumn | ||
|
||
anSPBColumn | ||
board: self; | ||
boardProvider: self boardProvider; | ||
changeProvider: self changeProvider. | ||
self columns add: anSPBColumn. | ||
self updateColumns. |
5 changes: 5 additions & 0 deletions
5
Squello-Core.package/SPBBoard.class/instance/columnFromId..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
columnFromId: aNumber | ||
|
||
^ self columns detect: | ||
[:column | column id = aNumber]. |
5 changes: 5 additions & 0 deletions
5
Squello-Core.package/SPBBoard.class/instance/indexOfColumn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
indexOfColumn: aNumber | ||
|
||
^ self columns indexOf: | ||
(self columnFromId: aNumber). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Squello-Core.package/SPBCard.class/instance/moveCardWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
updating-local | ||
moveCardWith: aDictionary | ||
|
||
| newColumn | | ||
newColumn := self column board columnFromId: (aDictionary at: 'columnId'). | ||
newColumn removeFromOldColumn: self. | ||
(aDictionary at: 'after') | ||
ifNil: [newColumn cards addFirst: self] | ||
ifNotNil: [newColumn cards add: self after: (newColumn cardFromId: (aDictionary at: 'after'))]. | ||
newColumn addCardLocal: self. |
16 changes: 2 additions & 14 deletions
16
Squello-Core.package/SPBCard.class/instance/update.with..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Squello-Core.package/SPBColumn.class/instance/addCardLocal..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
creation | ||
addCardLocal: anSPBCard | ||
|
||
self pasteup addMorph: anSPBCard. | ||
self | ||
resizeToFitCards; | ||
alignCards. | ||
anSPBCard column: self. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
cardFromId: aNumber | ||
|
||
^ self cards detect: | ||
[:card | card id = aNumber]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters