The main screen of the chassis application holds the shelf panels. The shelf panels contains the slot holder panels and each slot holder panel holds a card screen panel. The designing of main screen is done in the chassis main screen of the chassis project tree, which is invoked on the right-side, on clicking the "Main Screen" node in chassis project tree. In this screen, you should provide the information whether the Shelf and Slot are modeled in the Web NMS Database. You should also provide the "Card Type Property Name" with which the chassis application recognize the card types for each card populated in Web NMS Database. Follow the steps given below to design the main screen.
Click the Main Screen Node of the "eBonChassis" Project Tree. Change the build type of the Main Screen to "NMS Frame" using the menu command Built-->Type-->NMS Frame.
Providing Shelf Parameters
In the right-hand side, you can find the Main Screen Parameter Panel, Provide the values "Number of Shelves"=1 and "Number of Distinct Shelf Types"=1 respectively in the Main Screen Parameter Panel.
Configure the Screen Size with Width=500 and Height=600 using the respective fields under "Screen Size". Follow the topic Main Screen Parameter Panel in Chassis Wizard help for explanation and usage.
Providing Managed Object Details
Invoke the "Managed Object Properties" dialog using the 'Settings' button next to the Protocol Properties field which invokes the Managed Object Properties Wizard.
Check the "Is Slot Modeled" check box and uncheck "Is Shelf Modeled" check box in the first screen of MO Properties Wizard. Because the Slot is modeled in the Database, Shelf is not modeled.
Retain the value 'type' for the Card type Property Name field, because type column is queried from WebNMSDB table of Web NMS Database.
Click Next to proceed to the final screen of the ChassisMOWizard. Here you can select extra properties, if required. For this project, extra properties are not required.
Click Finish to close the MO Properties Wizard.
Designing and Laying out the Components
Provide the background image for chassis main screen ('eBonChassis' screen) with 'eBonChassis.png' in the images folder under the <Client Builder Home>. Follow the steps given below to set the background image:
Double-click the main screen’s Draw area to invoke the Property Form.
Select the backgroundImage property, click the 'Click to edit..' button adjacent to the property to invoke a dialog with the message 'Specify the Image File Name'.
Click browse button to invoke the file chooser, select the 'All Files (*.*)' from the 'Files of type:' combo box.
Select 'eBonChassis.png' from the list and click Open.
Click OK to close the dialog invoked from Property Form.
Close the Property Form using Close.
Change the layout of the Main Screen to 'GridBag Layout' by right clicking the draw area to invoke the screen popup menu and select Layouts-->GridBag Layout, so that you can size the 'Shelf1' panel in which the slot holders are present.
To resize the "Shelf1" panel, invoke the GridBag Layout Customizer by right clicking the draw area to invoke the screen popup menu and select Layout Properties menu item.
In the GridBag Layout Customizer, provide the values for each field as given below:
GridX = 0
GridY = 0
Fill = BOTH (from combo box)
Anchor = CENTER (from combo box)
IPadX = 0
IPadY = 0
WeightX = 0.1
WeightY = 0.1
Insets = 100, 20, 70, 20.
The design of Main Screen for the "eBonChassis" project is complete.