View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

How to view specific composites

Viewing Your Composites:

Let's say you have two composites, c1 and c2.

You will have two different methods, accessible through a menu.

///////////////////////////////////////////////////////////////////////////////////////////////////

menuViewC1

"Shows composite c1"

///////////////////////////////////////////////////////////////////////////////////////////////////



Start each method by creating two temporary wrapper variables, c1Wrapper and c2Wrapper.

///////////////////////////////////////////////////////////////////////////////////////////////////

| c1Wrapper c2Wrapper |

///////////////////////////////////////////////////////////////////////////////////////////////////



Next, set each wrapper to correspond to its composite.

///////////////////////////////////////////////////////////////////////////////////////////////////

c1Wrapper := self wrapperAt: #c1.
c2Wrapper := self wrapperAt: #c2.

///////////////////////////////////////////////////////////////////////////////////////////////////



Lastly, set the wrappers to be visible or invisible, based on the situation. Since we are creating the menuViewc1 method, we will set c1 to visible and c2 to invisible.

///////////////////////////////////////////////////////////////////////////////////////////////////

c1Wrapper beVisible.
c2Wrapper beInvisible.

///////////////////////////////////////////////////////////////////////////////////////////////////

I hope this helps!

Links to this Page