-
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
Showing
14 changed files
with
352 additions
and
46 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
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
6 changes: 6 additions & 0 deletions
6
source/it/feelburst/yayoi/behaviour/listener/model/DisposeOnCloseSet.ceylon
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,6 @@ | ||
import it.feelburst.yayoi.model.window { | ||
Window | ||
} | ||
"An event that reports dispose window on close has been set on a window" | ||
shared class DisposeOnCloseSet( | ||
shared Window<Object> source) {} |
6 changes: 6 additions & 0 deletions
6
source/it/feelburst/yayoi/behaviour/listener/model/HideOnCloseSet.ceylon
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,6 @@ | ||
import it.feelburst.yayoi.model.window { | ||
Window | ||
} | ||
"An event that reports hide window on close has been set on a window" | ||
shared class HideOnCloseSet( | ||
shared Window<Object> source) {} |
21 changes: 21 additions & 0 deletions
21
source/it/feelburst/yayoi/behaviour/reaction/impl/DisposeOnCloseReaction.ceylon
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,21 @@ | ||
import it.feelburst.yayoi.behaviour.reaction { | ||
Reaction | ||
} | ||
import it.feelburst.yayoi.marker { | ||
DisposeOnCloseAnnotation | ||
} | ||
import it.feelburst.yayoi.model.window { | ||
Window | ||
} | ||
|
||
"A reaction that disposes window | ||
as a default window close operation" | ||
shared class DisposeOnCloseReaction( | ||
shared actual Window<Object> cmp, | ||
shared actual DisposeOnCloseAnnotation ann) | ||
satisfies Reaction<Window<Object>> { | ||
shared actual void execute() { | ||
cmp.setDisposeOnClose(); | ||
log.debug("Reaction: DisposeOnClose operation requested for Window '``cmp``'."); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
source/it/feelburst/yayoi/behaviour/reaction/impl/HideOnCloseReaction.ceylon
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,21 @@ | ||
import it.feelburst.yayoi.behaviour.reaction { | ||
Reaction | ||
} | ||
import it.feelburst.yayoi.marker { | ||
HideOnCloseAnnotation | ||
} | ||
import it.feelburst.yayoi.model.window { | ||
Window | ||
} | ||
|
||
"A reaction that hides window | ||
as a default window close operation" | ||
shared class HideOnCloseReaction( | ||
shared actual Window<Object> cmp, | ||
shared actual HideOnCloseAnnotation ann) | ||
satisfies Reaction<Window<Object>> { | ||
shared actual void execute() { | ||
cmp.setHideOnClose(); | ||
log.debug("Reaction: HideOnClose operation requested for Window '``cmp``'."); | ||
} | ||
} |
Oops, something went wrong.