Returns the ControlInterface associated with this event field
429664
public AptControlInterface getControlInterface()
    {
        if (_controlIntf == null)
        {
            _controlIntf = initControlInterface();
            if (_controlIntf != null)
                initTypeParameterBindings();
        }
        return _controlIntf;
    }
1279640
public String getSuperClientName()
    {
        ClassType superType = _clientDecl.getSuperclass();

        while ( superType != null )
        {
            ClassDeclaration superDecl = superType.getDeclaration();

            Collection<FieldDeclaration> declaredFields = superDecl.getFields();
            for (FieldDeclaration fieldDecl : declaredFields)
            {
                if (fieldDecl.getAnnotation(org.apache.beehive.controls.api.bean.Control.class) != null)
                {
                    // Found an @control annotated field, so return this class name
                    return superDecl.getQualifiedName();
                }
            }

            superType = superType.getSuperclass();
        }

        return null;
    }
707959
public function getRules(EventInterface $event) {
        $request = $event->getRequest();
        $publicKey = $request->getRoute()->get('publickey');

        $accessControl = $event->getAccessControl();
        $keyExists = $accessControl->publicKeyExists($publicKey);

        if (!$keyExists) {
            throw new RuntimeException('Public key not found', 404);
        }

        $accessList = $accessControl->getAccessListForPublicKey($publicKey);

        if ($request->query->has('expandGroups')) {
            foreach ($accessList as &$rule) {
                if (!isset($rule['group'])) {
                    continue;
                }

                $rule['resources'] = $accessControl->getGroup($rule['group']);
            }
        }

        $model = new AccessRulesModel();
        $model->setRules($accessList);

        $event->getResponse()->setModel($model);
    }
654069
public static function getEventManager()
    {
        if (!isset(self::$event_manager[get_called_class()])) {
            self::$event_manager[get_called_class()] =
                EventDispatcher::getShareable(static::$static_scope);
        }
        return self::$event_manager[get_called_class()];
    }
441049
@Override
    public TargetStreamControl getControlAdapter()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getControlAdapter");

        if (targetStreamControl == null)
            targetStreamControl =
                            new TargetStreamControl(remoteEngineUUID, this, streamSet.getStreamID(),
                                            getReliability(), getPriority());

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getControlAdapter", targetStreamControl);
        return targetStreamControl;
    }
550331
public function RenderControl () {
		$attrsStr = $this->renderControlAttrsWithFieldVars([
			'autoComplete',
		]);
		if (!$this->form->GetFormTagRenderingStatus()) 
			$attrsStr .= (strlen($attrsStr) > 0 ? ' ' : '')
				. 'form="' . $this->form->GetId() . '"';
		$formViewClass = $this->form->GetViewClass();
		return $formViewClass::Format(static::$templates->control, [
			'id'		=> $this->id,
			'name'		=> $this->name,
			'type'		=> $this->type,
			'value'		=> htmlspecialchars($this->value, ENT_QUOTES),
			'attrs'		=> strlen($attrsStr) > 0 ? ' ' . $attrsStr : '',
		]);
	}
1051756
function getEventListener(eventExpr, owner, data, isComponentEvent) {
    return function (e) {
        var method = findMethod(owner, eventExpr.name, data);

        if (typeof method === 'function') {
            method.apply(owner, evalArgs(
                eventExpr.args,
                new Data(
                    { $event: isComponentEvent ? e : e || window.event },
                    data
                ),
                owner
            ));
        }
    };
}
928057
public function eventFactory()
    {
        if (null !== $this->eventPrototype) {
            return clone $this->eventPrototype;
        }

        try {
            /** @var ModuleOptions $moduleOptions */
            $moduleOptions = $this->get(ModuleOptions::class);

            $moduleOptionsEventClassName = $moduleOptions->getModuleOptionsEventClassName();
            $r = new ReflectionClass($moduleOptionsEventClassName);

            $eventPrototype = $r->newInstance();
            if (!$eventPrototype instanceof EventInterface) {
                $errMsg = sprintf(
                    'Event of type %s is invalid; must implement %s',
                    (is_object($eventPrototype) ? get_class($eventPrototype) : gettype($eventPrototype)),
                    ModuleOptionsEventInterface::class
                );
                throw new Exception\RuntimeException($errMsg);
            }
            $this->eventPrototype = $eventPrototype;
        } catch (\Exception $e) {
            throw new Exception\InvalidEventException($e->getMessage(), $e->getCode(), $e);
        }

        return clone $this->eventPrototype;
    }
442448
public function getControl()
	{
		$control = parent::getControl();
		$control->data('datepicker-format', $this->translateFormatToJs($this->format));

		return $control;
	}
792413
static Class getMostDerivedInterface(Class controlIntf)
    {
        while (controlIntf.isAnnotationPresent(ControlExtension.class))
        {
            Class [] intfs = controlIntf.getInterfaces();
            boolean found = false;
            for (int i = 0; i < intfs.length; i++)
            {
                if (intfs[i].isAnnotationPresent(ControlExtension.class) ||
                    intfs[i].isAnnotationPresent(ControlInterface.class))
                {
                    controlIntf = intfs[i];
                    found = true;
                    break;
                }
            }
            if (!found)
            {
                throw new ControlException("Can't find base control interface for " + controlIntf);
            }
        }
        return controlIntf;
    }
802251
public function getEventManager()/*# : EventManagerInterface */
    {
        // create the default slave
        if (is_null($this->event_manager)) {
            // add own classname as scope
            $this->setEventManager(new EventDispatcher(get_class($this)));
        }

        // attach self to the event manager if not yet
        $this->attachSelfToEventManager();

        return $this->event_manager;
    }
952667
private AptControlInterface initSuperClass()
    {
        //
        // Look for a super interface that is either a control interface or extension.
        // If found, return it.
        //
        InterfaceType superType = getSuperType();
        if (superType == null)
        {
            // At this point, we're processing the root of the interface heirarchy,
            // which is not permitted to be a ControlExtension (that would imply a
            // ControlExtension that wasn't actually extending a ControlInterface).
            if ( isExtension() )
            {
                _ap.printError( _intfDecl, "control.extension.badinterface");
            }

            return null;
        }

        InterfaceDeclaration superDecl = superType.getDeclaration();
        if ( superDecl != null )
        {
            if (superDecl.getAnnotation(ControlExtension.class) != null ||
                superDecl.getAnnotation(ControlInterface.class) != null)
            {
                _superDecl = superDecl;
                AptControlInterface superIntf = new AptControlInterface(_superDecl, _ap);

                if (!isExtension() && superIntf.isExtension())
                {
                    _ap.printError( _intfDecl, "control.interface.badinterface");
                }
                return superIntf;
            }
        }

        return null;
    }
1147430
public EventType getType() {
        String typeStr = getTypeString();
        EventType type = null;
        try {
            type = EventType.valueOf(typeStr);
        } catch (Exception ex) {
            logger.warn("Unexpected type: " + typeStr);
        }
        return type;
    }
698200
public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField)
    {
        ScreenField m_ChildFocused = (ScreenField)sfCurrent;
        if (m_ChildFocused == null)
            iSelectField = DBConstants.SELECT_FIRST_FIELD;
        ScreenField sField = null;
        ScreenField sPrevScreenField = null;
        ScreenField sNextScreenField = null;
        ScreenField sTargetScreenField = null;
        ScreenField sLastFocusTarget = null;
        ScreenField sFirstFocusTarget = null;
// Now survey the control to see which one is next
        for (int iSField = 0; iSField < this.getSFieldCount(); iSField++)
        {   // This should only be called for Imaged GridScreens (Child windows would be deleted by now if Component)
            sField = this.getSField(iSField);
            if (sField.isEnabled()) if (sField.isFocusTarget())
            {
                if (sFirstFocusTarget == null)
                    sFirstFocusTarget = sField;
                sLastFocusTarget = sField;
                if (sTargetScreenField != null) if (sNextScreenField == null)
                    sNextScreenField = sField;
                if (sField == m_ChildFocused)
                    sTargetScreenField = sField;
                if (sTargetScreenField == null)
                    sPrevScreenField = sField;
                if (sPrevScreenField != null) if (sTargetScreenField != null) if (sNextScreenField != null) 
                    break;      // All targets found
            }
            if (sField == m_ChildFocused)
                sTargetScreenField = sField;    // In case focus on a control that doesn't accept focus
        }
        if (sPrevScreenField == null)
            sPrevScreenField = sLastFocusTarget;  // Last field
        if (sNextScreenField == null)
            sNextScreenField = sFirstFocusTarget; // First field
        if (iSelectField == DBConstants.SELECT_PREV_FIELD)
            sNextScreenField = sPrevScreenField;  // Tab backwards
        if (iSelectField == DBConstants.SELECT_FIRST_FIELD)
            sNextScreenField = sFirstFocusTarget; // First field
        sField = sNextScreenField;
        return sField;
    }
388759
function(control) {
      return this._events.some(function (evt) {
         if (evt.eventType === "ChildWorkflowExecutionCompleted") {
            var initiatedEventId = evt.childWorkflowExecutionCompletedEventAttributes.initiatedEventId;
            var initiatedEvent = this.eventById(initiatedEventId);

            if (initiatedEvent.startChildWorkflowExecutionInitiatedEventAttributes.control === control) {
               return true;
            }
         }
      }, this);
   }
479562
public EventTrigger getTrigger() {
    if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_trigger == null)
      jcasType.jcas.throwFeatMissing("trigger", "de.julielab.jules.types.EventMention");
    return (EventTrigger)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_trigger)));}
540981
protected function getScriptText()
    {
        $togglingControlId = Builder::escapeText($this->togglingControl->getId());
        $toggledControlId  = Builder::escapeText($this->toggledControl->getId());
        $visibility        = "!ToggleControl.Visible";
        if ($this->onlyShow) {
            $visibility = "True";
        } else if ($this->onlyHide) {
            $visibility = "False";
        }
        return "
if (Event.Control.ControlId == {$togglingControlId}) {
	declare ToggleControl = Page.GetFirstChild({$toggledControlId});
	ToggleControl.Visible = {$visibility};
}";
    }