1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-26 19:38:22 +01:00
Diya-API/Diya/DiyaApplicationModel.class.st

64 lines
1.1 KiB
Smalltalk
Raw Permalink Normal View History

Class {
#name : #DiyaApplicationModel,
#superclass : #DiyaSingleton,
#instVars : [
'node',
'am',
2022-08-16 00:59:35 +02:00
'target',
'context'
],
#category : #'Diya-Applications'
}
{ #category : #accessing }
DiyaApplicationModel >> am [
^ am
]
{ #category : #accessing }
DiyaApplicationModel >> cleanup [
self subclassResponsibility
]
{ #category : #accessing }
DiyaApplicationModel >> context [
^DiyaRenderer
]
{ #category : #initialization }
DiyaApplicationModel >> initialize [
super initialize.
2022-08-16 00:59:35 +02:00
context := DiyaRenderer
]
2022-08-16 00:59:35 +02:00
{ #category : #'as yet unclassified' }
DiyaApplicationModel >> loadNode [
|pseudoRoot|
pseudoRoot := DiyaRootNode new.
pseudoRoot addNode: node.
pseudoRoot processQueue do:[:el|
el process
].
]
{ #category : #accessing }
DiyaApplicationModel >> node [
^ node
]
{ #category : #accessing }
DiyaApplicationModel >> onloaded: aBlock [
self subclassResponsibility
]
{ #category : #accessing }
DiyaApplicationModel >> quit [
2022-08-16 00:59:35 +02:00
node empty.
self cleanup
]
2022-08-16 00:59:35 +02:00
{ #category : #initialization }
DiyaApplicationModel >> target: aNode [
target := aNode.
]