[UI] ToolBuilder

Igor Stasenko siguctua at gmail.com
Thu Sep 13 12:48:30 UTC 2007


On 13/09/2007, Gary Chambers <gary at pinesoft.co.uk> wrote:
> On Wednesday 12 September 2007 9:59 pm, Igor Stasenko wrote:
>
> >
> > World have submorph textMorph.
> >
> > textMorph have decoration ScrollPane.
> > ScrollPane have decoration SystemWindow.
> > Finally SystemWindow have decoration = nil.
> >
> > At this point i have textMorph (most interesting morph object) on top
> > of hierarchy and have direct access to its interface (so no delegation
> > ever needed). A decoration chain can consist of any number of morphs
> > and they referenced only by text morph and not visible outside.
> >
>
> For a Taskbar the SystemWindow would be "the most interesting"... depends on
> the point of view!
You can easily test, when the top decoration morph is SystemWindow.
Like:
World subMorphs collect: [: each | each isSystemWindow or: [ each
topDecorator isSystemWindow] ]


 Not to mention having multiple subpanes (and getting a
> single window to decorate them all...).

But nobody told that you don't need to use submorphs to build up you
morphic hierarchy.

Suppose, with multiple panes (textMorph and listMorph) you can result
with following hierarchy:

SystemWindow
  -> textMorph
  -> listMorph

textMorph having following decorations:
  textMorph <- scrollPane <- transformMorph

listMorph having following decorations:
  listMorph <- scrollPane <- transformMorph

Also, you can easily fit your domain model, left decorations aside:

MyDomainMorph   <- SystemWindow
   -> myDomainText <- scrollPane <- transformMorph
   -> myDomainList  <- scrollPane <- transformMorph

(where -> is a submorph relation, and <- is decoration relation)

>
>
> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
>
> _______________________________________________
> UI mailing list
> UI at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/ui
>


-- 
Best regards,
Igor Stasenko AKA sig.


More information about the UI mailing list