






Hotspots: Admin Pages | Turn-in Site |
Current Links: Case 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!
Link to this Page
- Case last edited on 1 May 2008 at 11:53 pm by r69h136.res.gatech.edu