The Default Representations Settings screen of the Configuration Wizard is used to set the default component representations for any protocol type nodes. It is invoked using View-->Representations-->Default Representations. This dialog is used to configure the component association for any protocol data syntax types. When an Protocol data tree is loaded, the default component association for the node representation is taken from this configuration. More component associations can be given by the user, by adding more representation to a leaf node in the XML Tree. The component associations given by the user are serialized to a file called "defaultrepresentationsettings.xml" in the "data" directory which is present within the builder home directory . The 'GetMethods' tab in Configuration lists all the available GetMethods and their description for the selected component class displayed in the TextField. The Default Representations Settings screen of the Configuration Wizard looks like the one shown below.
The Syntax List contains the list of the standard syntax names. The right side panel contains information about the selected syntax in the syntax list. For each syntax type, two component representations can be associated. One, when the syntax instance is read only and the other can be associated, when the syntax instance is read/write, in the given MIB.
The "Read Only" tab takes in the component configuration for the read only instance of the selected SNMP data syntax. The "Read/Write" tab takes in the component configuration for the read/write instance of the selected SNMP data syntax.
Component Class Field
The component class field takes in the fully qualified name (the class name including its package name) of the component to be used for this syntax.
The Select is used to select a component from the existing set of loaded components from the library, to be used for this syntax.
General Setting Tab
The properties button is used to pop up the property form for the component, present in the "Component Class Field". This is used to set up the initial properties for this component.
Result Method Tab
The 'Result Method' button pops a Select result method dialog. This dialog is used to select a method of the component which takes the polling result of the Object ID represented by this syntax name.
There are two ways to use the Add. First one is selecting a group and adding a type of variable and defining it as RO or RW then the bean component can be defined. The other way it can be used is to add a user defined group in the XML tree and defining the data types.
The 'Remove' button is used to delete the data types or group in the XML tree.
The "OK" button saves the component configurations made so far and exits the "Default Representation Settings Dialog".
The "Cancel" button ignores the changes made so far and exits the "Default Representation Settings Dialog".
The 'GetMethod' chosen for a particular component class in the Default Representations Settings screen is displayed in the Code Area of the Config Tab screen when the default representation of the same component in dropped on the draw area.
Let us consider TimeTicks. By clicking on the 'Select' button adjacent to the component class, you can choose the digital display (com.adventnet.beans.digit.DigDisp) to be the Read/Write component and the JTextField(javax.swing.JTextField) to be the Read Only component.
The Result Method can be set to be "setNumericValue" and result type as "long" for the Read/Write component and to be "setText" and result type as "String"for the Read Only component. Similarly, the bean properties and protocol properties can be set. Click "OK" after setting all the properties.