Skip to content

Commit

Permalink
comment in ToCheckableData>>privateChecked:
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Oct 27, 2024
1 parent df86663 commit 29f427c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Toplo-Widget-Button/ToCheckableData.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,20 @@ ToCheckableData >> owner: aCheckable [

{ #category : #'checking protocol' }
ToCheckableData >> privateChecked: aBooleanOrIndeterminate [
" notice a change of the state and send an event for the skin.
Sent locally from the checkable>>checked: method and can be sent from
the checkableGroup of the checkable."

| prev request |
request := aBooleanOrIndeterminate.
checked = request ifTrue: [ ^ self ].
prev := checked.
checked := request.
" finally dispatch the event used to generate the state for the skin "
owner dispatchEvent: (ToCheckableCheckEvent current: request previous: prev)
" finally dispatch the event used to generate the state for the skin.
implementation note: we need this additional event for the skin.
This event can be used if one need to handle the look change "
owner dispatchEvent:
(ToCheckableCheckEvent current: request previous: prev)
]

{ #category : #'checking protocol' }
Expand Down

0 comments on commit 29f427c

Please sign in to comment.