-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from ba-st/deprecate-listbox-dropdown
Deprecate listbox dropdown
- Loading branch information
Showing
6 changed files
with
95 additions
and
14 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
26 changes: 26 additions & 0 deletions
26
source/Willow-Core-MigrationTo14/DropDownListWebView.class.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,26 @@ | ||
Class { | ||
#name : #DropDownListWebView, | ||
#superclass : #Object, | ||
#category : #'Willow-Core-MigrationTo14' | ||
} | ||
|
||
{ #category : #'instance creation' } | ||
DropDownListWebView class >> applying: aComponentCommand [ | ||
|
||
self | ||
deprecated: | ||
'Use componentSupplier dropdownListApplying: if available, otherwise create a SingleSelectionWebView using the same implementation' | ||
transformWith: | ||
'`@receiver applying: `@aComponentCommand' | ||
-> 'self componentSupplier dropdownListApplying: `@aComponentCommand' | ||
when: [ thisContext activeHome notNil | ||
and: [ thisContext activeHome sender receiver respondsTo: #componentSupplier ] | ||
]; | ||
deprecated: | ||
'Use componentSupplier dropdownListApplying: if available, otherwise create a SingleSelectionWebView using the same implementation' | ||
transformWith: | ||
'`@receiver applying: `@aComponentCommand' | ||
-> 'SingleSelectionWebView dropDownListApplying: `@aComponentCommand applyingToOptions: [ ]'. | ||
|
||
^ SingleSelectionWebView dropDownListApplying: aComponentCommand applyingToOptions: [ ] | ||
] |
63 changes: 63 additions & 0 deletions
63
source/Willow-Core-MigrationTo14/SingleSelectionListBoxWebView.class.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,63 @@ | ||
Class { | ||
#name : #SingleSelectionListBoxWebView, | ||
#superclass : #Object, | ||
#category : #'Willow-Core-MigrationTo14' | ||
} | ||
|
||
{ #category : #'instance creation' } | ||
SingleSelectionListBoxWebView class >> displayingAtOnce: aNumberOfElements [ | ||
|
||
self | ||
deprecated: | ||
'Use componentSupplier singleSelectionListBoxDisplayingAtOnce:applying: if available, otherwise create a SingleSelectionWebView using the same implementation' | ||
transformWith: | ||
'`@receiver displayingAtOnce: `@aNumberOfElements' | ||
-> | ||
'self componentSupplier singleSelectionListBoxDisplayingAtOnce: `@aNumberOfElements applying: [ ]' | ||
when: [ thisContext activeHome notNil | ||
and: [ thisContext activeHome sender receiver respondsTo: #componentSupplier ] | ||
]; | ||
deprecated: | ||
'Use componentSupplier singleSelectionListBoxDisplayingAtOnce:applying: if available, otherwise create a SingleSelectionWebView using the same implementation' | ||
transformWith: | ||
'`@receiver displayingAtOnce: `@aNumberOfElements' | ||
-> | ||
'SingleSelectionWebView | ||
listBoxDisplayingAtOnce: `@aNumberOfElements | ||
applying: [ ] | ||
applyingToOptions: [ ]'. | ||
|
||
^ SingleSelectionWebView | ||
listBoxDisplayingAtOnce: aNumberOfElements | ||
applying: [ ] | ||
applyingToOptions: [ ] | ||
] | ||
|
||
{ #category : #'instance creation' } | ||
SingleSelectionListBoxWebView class >> displayingAtOnce: aNumberOfElements applying: aComponentCommand [ | ||
|
||
self | ||
deprecated: | ||
'Use componentSupplier singleSelectionListBoxDisplayingAtOnce:applying: if available, otherwise create a SingleSelectionWebView using the same implementation' | ||
transformWith: | ||
'`@receiver displayingAtOnce: `@aNumberOfElements applying: `@aComponentCommand' | ||
-> | ||
'self componentSupplier singleSelectionListBoxDisplayingAtOnce: `@aNumberOfElements applying: `@aComponentCommand' | ||
when: [ thisContext activeHome notNil | ||
and: [ thisContext activeHome sender receiver respondsTo: #componentSupplier ] | ||
]; | ||
deprecated: | ||
'Use componentSupplier singleSelectionListBoxDisplayingAtOnce:applying: if available, otherwise create a SingleSelectionWebView using the same implementation' | ||
transformWith: | ||
'`@receiver displayingAtOnce: `@aNumberOfElements applying: `@aComponentCommand' | ||
-> | ||
'SingleSelectionWebView | ||
listBoxDisplayingAtOnce: `@aNumberOfElements | ||
applying: `@aComponentCommand | ||
applyingToOptions: [ ]'. | ||
|
||
^ SingleSelectionWebView | ||
listBoxDisplayingAtOnce: aNumberOfElements | ||
applying: aComponentCommand | ||
applyingToOptions: [ ] | ||
] |
10 changes: 0 additions & 10 deletions
10
source/Willow-Core-MigrationTo14/SingleSelectionListBoxWebView.extension.st
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...tionTo14/DropDownListWebView.extension.st → ...nTo14/SingleSelectionWebView.extension.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