Inheritance diagram for Bundle:
Public Member Functions
|Bundle (String bundleName)|
|A bunch of sheets that are related to each other in some way. |
|void||addGlobalRegion (Region gr)|
|These regions will be placed in a master list that applies to ALL sheets. |
|void||addSheet (Sheet sheetToAdd)|
|void||createAndAddSheets (int numSheets, String sheetNameRoot, Units w, Units h)|
|Convenience function to add a bunch of sheets to this bundle. |
|List< Region >||getGlobalRegions ()|
|Sheet||getSheet (int index)|
|int||getSheetNumber (Sheet s)|
|Allows you to identify a sheet by its index in the list. |
|List< Sheet >||getSheets ()|
|WARNING: returns the reference to the sheet. |
|Remove all of the specified sheets. |
One benefit of bundles is that they can manage page numbers... If you want to create a notebook, or multiple data sheets, you will want a bundle. In the future, we will allow adding regions to a Bundle. This means that you can have one region duplicated across sheets. Whenever a person interacts with ANY sheet in the area occupied by that region, the region's event handler will be notified.
This software is distributed under the BSD License.
Definition at line 26 of file Bundle.java.
These regions will be placed in a master list that applies to ALL sheets.
Thus, whenever a person writes on Sheet S within the region specified by R, it will call R's event handler.
This would act like a button that is placed on every sheet (e.g., a share with group button on notebook pages).
Plus, for rendering purposes, the global region will ensure that pattern will exist on every sheet in the coordinates specified by the region.
|r||the global region to add|