Set a {@link GVRSceneObject} to be controlled by the
{@link GVRCursorController}.

@param object the {@link GVRSceneObject} representing the cursor
519363
public void setCursor(GVRSceneObject object)
    {
        synchronized (mCursorLock)
        {
            if (object != null)
            {
                if ((mCursor != null) && (mCursor != object))
                {
                    detachCursor();
                }
                attachCursor(object);
                mCursor = object;
                moveCursor();
                object.setEnable(true);
            }
            else if (mCursor != null)
            {
                detachCursor();
            }
            mCursor = object;
        }
    }
1320854
protected void init(GVRContext gvrContext) {
        /*
         * Create an object hierarchy
         *
         *             [camera rig object]
         *                     |
         *           [head transform object]
         *            /        |          \
         * [left cam obj] [right cam obj] [center cam obj]
         *
         * 1. camera rig object: used for camera rig moving and turning via
         *    CameraRig.getTransform()
         * 2. head transform object: used internally to do sensor-based rotation
         */
        setOwnerObject(new GVRSceneObject(gvrContext));
        getOwnerObject().attachCameraRig(this);

        headTransformObject = new GVRSceneObject(gvrContext);
        addHeadTransformObject();

        leftCameraObject = new GVRSceneObject(gvrContext);
        rightCameraObject = new GVRSceneObject(gvrContext);
        centerCameraObject = new GVRSceneObject(gvrContext);

        headTransformObject.addChildObject(leftCameraObject);
        headTransformObject.addChildObject(rightCameraObject);
        headTransformObject.addChildObject(centerCameraObject);
    }
879299
void handle(final IGPSObject object) {
		if (object instanceof TPVObject) {
			for (final IObjectListener l : this.listeners) {
				l.handleTPV((TPVObject) object);
			}
		} else if (object instanceof SKYObject) {
			for (final IObjectListener l : this.listeners) {
				l.handleSKY((SKYObject) object);
			}
		} else if (object instanceof ATTObject) {
			for (final IObjectListener l : this.listeners) {
				l.handleATT((ATTObject) object);
			}
		} else if (object instanceof SUBFRAMEObject) {
			for (final IObjectListener l : this.listeners) {
				l.handleSUBFRAME((SUBFRAMEObject) object);
			}
		} else if (object instanceof DevicesObject) {
			for (final IObjectListener l : this.listeners) {
				l.handleDevices((DevicesObject) object);
			}
		} else if (object instanceof DeviceObject) {
			for (final IObjectListener l : this.listeners) {
				l.handleDevice((DeviceObject) object);
			}
		} else {
			// object was requested, so put it in the response object
			synchronized (this.asyncWaitMutex) {
				this.asyncResult = object;
				this.asyncWaitMutex.notifyAll();
			}
		}
	}
821016
@Override
    public final void setObjectProperty(String name, Object value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setObjectProperty", new Object[] { name, value });

        /* If the property is either JMSXUserID or JMSXAppID, we set it into the */
        /* message regardless of whether it is null. We know the value is a */
        /* String as the JMS API layer has vetted it. Moved code under d325186.1 */
        if (SIProperties.JMSXAppID.equals(name)) {
            setJmsxAppId((String) value);
        }
        else if (SIProperties.JMSXUserID.equals(name)) {
            setUserid((String) value);
        }
        /* Ditto for JMS_IBM_ArmCorrelator & JMS_TOG_ARM_Correlator */
        else if (SIProperties.JMS_IBM_ArmCorrelator.equals(name)) {
            setARMCorrelator((String) value);
        }
        else if (SIProperties.JMS_TOG_ARM_Correlator.equals(name)) {
            setARMCorrelator((String) value);
        }

        /* else, if the value is not null, set the Property */
        else if (value != null) {
            setNonNullProperty(name, value);
        }

        /* Otherwise, remove it */
        else {

            /* Maelstrom's transportVersion has its own field - the rest are in the */
            /* JmsPropertyMap */
            if (!name.startsWith(JMS_PREFIX)) {
                if (name.equals(MfpConstants.PRP_TRANSVER)) {
                    clearTransportVersion();
                }
                else {
                    if (mayHaveJmsUserProperties()) {
                        getJmsUserPropertyMap().remove(name);
                    }
                }
            }
            else {
                if (name.startsWith(JMS_IBM_MQMD_PREFIX)) {
                    deleteMQMDProperty(name);
                }
                else {
                    if (mayHaveMappedJmsSystemProperties()) {
                        getJmsSystemPropertyMap().remove(name); // 234893
                    }
                    // JMS_IBM_Character_Set and JMS_IBM_Encoding need to be cleared in the
                    // message itself too.                                          d395685
                    if (name.equals(SIProperties.JMS_IBM_Character_Set)) {
                        setCcsid(null);
                    }
                    else if (name.equals(SIProperties.JMS_IBM_Encoding)) {
                        setEncoding(null);
                    }
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setObjectProperty");
    }
1329076
public void setObjects(Map<String, Locator> objects) {
        this.objects.clear();
        if (objects != null) {
            this.objects.putAll(objects);
        }
    }
494385
public void setControlValue(Object objValue)
    {
        if (objValue instanceof Boolean)
        {
            if (((Boolean)objValue).booleanValue())
                m_iCurrentState = ON;
            else
                m_iCurrentState = OFF;
        }
        else
            m_iCurrentState = NULL;
        this.updateImage();
    }
1002737
public void addObject (int x, int y, Object object)
    {
        Record record = new Record(x, y, object);

        // if this is the very first element, we have to insert it
        // straight away because our binary search algorithm doesn't work
        // on empty arrays
        if (_size == 0) {
            _records[_size++] = record;
            return;
        }

        // figure out where to insert it
        int ipoint = binarySearch(x);

        // expand the records array if necessary
        if (_size >= _records.length) {
            int nsize = _size*2;
            Record[] records = new Record[nsize];
            System.arraycopy(_records, 0, records, 0, _size);
            _records = records;
        }

        // shift everything down
        if (ipoint < _size) {
            System.arraycopy(_records, ipoint, _records, ipoint+1,
                             _size-ipoint);
        }

        // insert the record
        _records[ipoint] = record;
        _size++;
    }
134290
public static synchronized boolean setRunAsSubject(Subject subj) {
        Subject before = null;
        try {
            before = getRunAsSubject();
            final Subject fsubj = subj;
            AccessController.doPrivileged(
                    new PrivilegedExceptionAction<Object>() {
                        @Override
                        public Object run() throws Exception {
                            WSSubject.setRunAsSubject(fsubj);
                            return null;
                        }
                    });

        } catch (PrivilegedActionException e) {
            FFDCFilter.processException(e,
                    TokenPropagationHelper.class.getName(), "setRunAsSubject",
                    new Object[] {});
            return false;
        }

        if (tc.isDebugEnabled()) {
            Tr.debug(tc, "setRunAsSubject, runAsSubject before = ", before);
            Tr.debug(tc, "setRunAsSubject, runAsSubject after = ", subj);
        }
        return true;

    }
335399
public void setTransactionInfo(CachedObject object) {

        Row row = (Row) object;

        if (row.rowAction != null) {
            return;
        }

        RowAction rowact = (RowAction) rowActionMap.get(row.position);

        row.rowAction = rowact;
    }
747590
function setObject(id, obj, options, callback) {
    return adapter.objects.setObject(adapter.namespace + '.' + id, obj, options, callback);
}
1234203
public void setController(Object object, GraphicsController controller) {
		// set them all
		doSetController(getGroup(object), controller, Event.MOUSEEVENTS | Event.ONDBLCLICK | Event.ONMOUSEWHEEL);
	}
444593
private void addAndPrepareControlledObject(Authorizable controlledObject)
    {
        controlledObjects.add(new WeakReference<Authorizable>(controlledObject));

        // Properly configure the new object
        boolean authorize = shouldAuthorize(getLastAuthentication(), controlledObject);
        updateControlledObject(controlledObject, authorize);
    }
668125
public void setObjectType(final byte[] objectType) {
        this.objectType = objectType == null || objectType.length == 0
                ? null
                : Arrays.copyOf(objectType, objectType.length);
    }
25026
public Object setValue(Object obj)
    {
        Object old = valueRealSubject;

        valueRealSubject = obj;
        return old;
    }
88974
public void setAsObject(Object value) {
		clear();
		Map<String, Object> values = MapConverter.toMap(value);
		append(values);
	}
1097033
@UiThread
    public void addObjectSync(T object) {
        if (object == null) return;
        if (shouldIgnoreToken(object)) {
            if (listener != null) {
                listener.onTokenIgnored(object);
            }
            return;
        }
        if (tokenLimit != -1 && getObjects().size() == tokenLimit) return;
        insertSpan(buildSpanForObject(object));
        if (getText() != null && isFocused()) setSelection(getText().length());
    }
261327
public static void setGroovyObjectProperty(Object newValue, GroovyObject object, String property) {
        object.setProperty(property, newValue);
    }