code: public void setAsContextMenuOf(AbstractClientConnector component) {
  
          if (component instanceof Table) {
              setAsTableContextMenu((Table)component);
          } else if (component instanceof Tree) {
              setAsTreeContextMenu((Tree)component);
          } else {
              super.extend(component);
          }
      }
docs: Assigns this as context menu of given component which will react to right
  mouse button click.<p>
  
  @param component the component