-
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.
Merge pull request #7 from OpenSmock/Issue_0006
Add ToTab and ToTabPane
- Loading branch information
Showing
4 changed files
with
163 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Extension { #name : #ToTab } | ||
|
||
{ #category : #'*Toplo-Serialization-Stash' } | ||
ToTab >> firstElement [ | ||
|
||
| first | | ||
first := self children first. | ||
first == filler ifTrue: [ ^ nil ]. | ||
^ first | ||
] | ||
|
||
{ #category : #'*Toplo-Serialization-Stash' } | ||
ToTab >> firstElement: anElement [ | ||
|
||
anElement ifNil: [ ^ self ]. | ||
self addChild: anElement at: 1 | ||
] | ||
|
||
{ #category : #'*Toplo-Serialization-Stash' } | ||
ToTab >> stashElement [ | ||
|
||
<stashAccessors> | ||
self firstElement ifNil: [ ^ { } ]. | ||
^ { (#firstElement: -> #firstElement) } | ||
] | ||
|
||
{ #category : #'*Toplo-Serialization-Stash' } | ||
ToTab >> stashPaneBuilder [ | ||
|
||
<stashAccessors> | ||
^ { #paneBuilder } | ||
] |
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,14 @@ | ||
Extension { #name : #ToTabPane } | ||
|
||
{ #category : #'*Toplo-Serialization-Stash' } | ||
ToTabPane >> stashAddAllTabs: aCollectionOfTabs [ | ||
|
||
aCollectionOfTabs do: [ :each | self addTab: each ]. | ||
] | ||
|
||
{ #category : #'*Toplo-Serialization-Stash' } | ||
ToTabPane >> stashTabs [ | ||
|
||
<stashAccessors> | ||
^ { #stashAddAllTabs: -> #tabs } | ||
] |
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