






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
- Cases last edited on 30 July 2011 at 2:33 am by r59h132.res.gatech.edu
- Index of Individual Cases last edited on 3 May 2011 at 12:46 pm by r52h48.res.gatech.edu