MATLAB Report Generator    

Creating Component Methods

Click on Component Methods in the list box on the left to get to the Component Methods page. Or, if you have just completed the Component Attributes page, click on Next ->.

Creating a Custom Attributes Method

The Create custom attributes method option creates a method called attribute.m that controls the creation of an attribute page.

If you do not select this option, the new component inherits an attribute page from rptcomponent, which is the component parent class. The attribute.m method is not created for the component, so you cannot customize the attributes page.

See the MATLAB documentation for a discussion of class, object, and method.

If you do not select the Create custom attributes method option, then this is the inherited attribute page.

If you do select the Create custom attributes method option, then this is the attribute page.

Tutorial Task

Select the Create custom attributes method option for the tutorial.

Creating a Custom Outlinestring Method

The Create custom outlinestring method option creates a method called outlinestring.m. This method inserts a single-line string representation of the component in the setup file outline when the component is added to it.

The default outlinestring method gets the component string from the getinfo method. The string is taken from the Name field in the Component Name page of the Component Creation Wizard.

If you select this option, the outlinestring.m method is created for the component, and you can edit the outline representation of the component in the outlinestring.m method. This is discussed later, in "Changing the Outline String."

If you do not select this option, the new component inherits the outlinestring method from rptcomponent; the outlinestring.m method is not created for the component. The string that is displayed in the setup file outline is still taken from the Name field in the Component Name page of the Component Creation Wizard, but you cannot change the way the component is shown in the outline.

Tutorial Task

Select the Create custom outlinestring method option for the tutorial (you will edit the outlinestring method in a tutorial task later).


  Creating Another Attribute Reviewing All Component Information