Register the Subordinate Control so that it can be applied by the {@link SubordinateControlInterceptor}.

@param controlId the subordinate id
425089
public static void registerSubordinateControl(final String controlId) {
		UIContext uic = UIContextHolder.getCurrentPrimaryUIContext();
		if (uic == null) {
			throw new SystemException("No User Context available to register Subordinate Control.");
		}
		Set<String> controls = (Set<String>) uic.getFwkAttribute(SUBORDINATE_CONTROL_SESSION_KEY);
		if (controls == null) {
			controls = new HashSet<>();
			uic.setFwkAttribute(SUBORDINATE_CONTROL_SESSION_KEY, controls);
		}
		controls.add(controlId);
	}
94276
public void setSubscriberID(String subscriptionID)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setSubscriberID", subscriptionID);

        this.subscriptionID = subscriptionID;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setSubscriberID");
    }
184328
public void setId(final Integer id) {
        if (id == null && this.id == null) {
            return;
        } else if (id == null) {
            removeChild(this.id);
            this.id = null;
        } else if (this.id == null) {
            this.id = new KeyValueNode<Integer>(CommonConstants.CS_ID_TITLE, id);
            nodes.addFirst(this.id);
            if (this.id.getParent() != null) {
                this.id.removeParent();
            }
            this.id.setParent(this);
        } else {
            this.id.setValue(id);
        }
    }
534653
public void createControl(Composite parent)
	{
		super.createControl(parent);
		PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), "context"); // TODO: HELP CONTEXT
	}
1171004
def register_trading_control(self, control):
        
        if self.initialized:
            raise RegisterTradingControlPostInit()
        self.trading_controls.append(control)
59382
public synchronized void registerControlAdapterAsMBean()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry( tc, "registerControlAdapterAsMBean" ); 
      
    if( !messageHandlerControllable.isTemporary()) 
    {
      xmitQueue.registerControlAdapterAsMBean();
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit( tc, "registerControlAdapterAsMBean" ); 
  }
617347
public void createControlAdapter()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "createControlAdapter");
    controlAdapter = new ForeignBus(messageProcessor, this);
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "createControlAdapter", controlAdapter);
  }
873975
void setId(long id)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "setId", new Long(id));

        _consumerId = id;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setId");
    }
240233
private void addSubManagedType(ManagedType inheritedType)
    {

        if (Modifier.isAbstract(this.getJavaType().getModifiers()))
        {
            subManagedTypes.add(inheritedType);
        }
    }
790937
@Override
  public final void setItsId(final SubcatalogsCatalogsGsId pItsId) {
    this.itsId = pItsId;
    if (this.itsId != null) {
      this.itsCatalog = this.itsId.getItsCatalog();
      this.subcatalog = this.itsId.getSubcatalog();
    } else {
      this.itsCatalog = null;
      this.subcatalog = null;
    }
  }
126595
private void buildControl() {
		buildControlPanel.reset();
		buildTargetPanel.reset();

		// Setup Trigger
		setupTrigger();

		// Create target
		SubordinateTarget target = setupTarget();

		// Create Actions
		com.github.bordertech.wcomponents.subordinate.Action trueAction;
		com.github.bordertech.wcomponents.subordinate.Action falseAction;

		switch ((ControlActionType) drpActionType.getSelected()) {
			case ENABLE_DISABLE:
				trueAction = new Enable(target);
				falseAction = new Disable(target);
				break;

			case SHOW_HIDE:
				trueAction = new Show(target);
				falseAction = new Hide(target);
				break;

			case MAN_OPT:
				trueAction = new Mandatory(target);
				falseAction = new Optional(target);
				break;

			case SHOWIN_HIDEIN:
				trueAction = new ShowInGroup(target, targetGroup);
				falseAction = new HideInGroup(target, targetGroup);
				break;

			case ENABLEIN_DISABLEIN:
				trueAction = new EnableInGroup(target, targetGroup);
				falseAction = new DisableInGroup(target, targetGroup);
				break;

			default:
				throw new SystemException("ControlAction type not valid");
		}

		// Create Condition
		Condition condition = createCondition();

		if (cbNot.isSelected()) {
			condition = new Not(condition);
		}

		// Create Rule
		Rule rule = new Rule(condition, trueAction, falseAction);

		// Create Subordinate
		WSubordinateControl control = new WSubordinateControl();
		control.addRule(rule);

		buildControlPanel.add(control);

		if (targetCollapsible.getDecoratedLabel() != null) {
			targetCollapsible.getDecoratedLabel().setTail(new WText(control.toString()));
		}

		control = new WSubordinateControl();
		rule = new Rule(new Equal(cbClientDisableTrigger, true), new Disable((SubordinateTarget) trigger), new Enable((SubordinateTarget) trigger));
		control.addRule(rule);
		buildControlPanel.add(control);
	}
1164450
public void addWidget(Widget w) {
        if (w == null || controlGroup == null) return;
        controlGroup.add(w);
    }
1141820
private void registerChangeHandler(CmsEntity child) {

        HandlerRegistration reg = child.addValueChangeHandler(m_childChangeHandler);
        m_changeHandlerRegistry.put(child.getId(), reg);
    }
964128
@Override
  public final void setItsId(final IdUserRoleTomcat pItsId) {
    this.itsId = pItsId;
    if (this.itsId == null) {
      this.itsUser = null;
      this.itsRole = null;
    } else {
      this.itsUser = this.itsId.getItsUser();
      this.itsRole = this.itsId.getItsRole();
    }
  }
1234715
public void addCorporateGroupId(final String organizationId, final String corporateGroupId) {
        final DbOrganization dbOrganization = getOrganization(organizationId);

        if(!dbOrganization.getCorporateGroupIdPrefixes().contains(corporateGroupId)){
            dbOrganization.getCorporateGroupIdPrefixes().add(corporateGroupId);
            repositoryHandler.store(dbOrganization);
        }

        repositoryHandler.addModulesOrganization(corporateGroupId, dbOrganization);
    }
87355
public void setGroupId(final String groupId) {
        if (groupId == null && this.groupId == null) {
            return;
        } else if (groupId == null) {
            removeChild(this.groupId);
            this.groupId = null;
        } else if (this.groupId == null) {
            this.groupId = new KeyValueNode<String>(CommonConstants.CS_MAVEN_GROUP_ID_TITLE, groupId);
            appendChild(this.groupId, false);
        } else {
            this.groupId.setValue(groupId);
        }
    }
1263378
public void registerControlAdapterAsMBean()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
	  SibTr.entry(tc, "registerControlAdapterAsMBean");
    if (isRegistered() ) {
      // Don't register a 2nd time.
    } else {
      super.registerControlAdapterAsMBean();
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    SibTr.exit(tc, "registerControlAdapterAsMBean");
  }