Patent ID: 7464369

Claim:
A method for customizing an Extensible Web Part Menu comprising a plurality of commands, wherein each command comprises a plurality of characteristics rendered in a Web Part, the method comprising: (a) overriding a method for rendering a default Extensible Web Part Menu in the Web Part, wherein overriding the method comprises: (a.1) calling a method to create a Web Part Menu, wherein the method is utilized to render a default Extensible Web Part Menu and; (a.2) determining whether a menu override method has been inserted, wherein the menu override method comprises at least one call which may be utilized to modify the default Extensible Web Part Menu, wherein the menu override method does not overwrite the default Extensible Web Part menu, wherein if it is determined that a menu override command has been inserted, then deleting at least one command from the Extensible Web Part Menu, wherein deleting at least one command comprises: (i) locating the command within an object model using at least one identifying indicia associated with the command; and (ii) removing the menu item from the command from the Extensible Web Part Menu, wherein removing the menu item from the command from the Extensible Web Part Menu comprises: (1) determining whether to remove the first instance of the menu command from the Extensible Web Part Menu, wherein the first instance of the menu command comprises a parent menu command located in the Extensible Web Part Menu, wherein a subsequent instance of the menu command comprises a child command located under the parent menu command, and wherein the child command is a duplicate of the parent menu command; (2) if the determination is made to remove the first instance of the menu command, then removing the parent menu command without removing the child command; (3) if the determination is made not to remove the first instance of the menu command, then making a determination whether the remove a menu item from a particular location in the Extensible Web Part Menu; (4) if the determination is made to remove the menu command from a particular location, then removing the menu command, wherein a DELETE command is prohibited from being removed from the Extensible Web Part Menu, thereby insuring the removal of unwanted or dangerous content imported into the Web Part using the DELETE command; (5) if the determination is made not to remove the menu command from a particular location, then removing all the menu commands from the Extensible Web Part Menu; and (b) rendering the customized Extensible Web Part menu in the Web Part in a Web page on a client platform.