    

 ## On this page

  

 

 # addMethod

 Last update: 30.07.2026 

public [addMethod](add-method.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), displayName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

Adds the method

#### Parameters

namemethod to be addeddisplayNameThe name the user wants displayed in the component menu#### Throws

[ModelCenterException](./../-model-center-exception/index.md)