Package org.jdesktop.wonderland.client.cell

Examples of org.jdesktop.wonderland.client.cell.ComponentChangeListener


        yScaleModel.addChangeListener(scaleListener);
        zScaleModel.addChangeListener(scaleListener);

        // Create a listener for changes in the components on a Cell. This is
        // used to fetch the movable component if it is added.
        componentListener = new ComponentChangeListener() {
            public void componentChanged(Cell cell, ChangeType type, CellComponent component) {
                if (type == ChangeType.ADDED && component instanceof MovableComponent) {
                    movableComponent = (MovableComponent) component;
                    translationXTF.setEnabled(true);
                    translationYTF.setEnabled(true);
View Full Code Here


        rotationYTF.setModel(yRotationModel);
        rotationZTF.setModel(zRotationModel);

        // Listen for changes, if there is a movable component added or removed
        // update the state of the fields
        componentListener = new ComponentChangeListener() {

            public void componentChanged(
                    Cell cell, ChangeType type, CellComponent component) {
                if ((type == ChangeType.ADDED) &&
                        component instanceof MovableComponent) {
View Full Code Here

    public void addAffordanceToScene() {
        // We should add a listener just in case the movable component gets
        // added. We add the listener first, just in case the component gets
        // added inbetween the time we check and the time we add the listener.
        if (movableComp == null) {
            cell.addComponentChangeListener(new ComponentChangeListener() {
                public void componentChanged(Cell cell, ChangeType type, CellComponent component) {
                    if (type == ChangeType.ADDED && component instanceof MovableComponent) {
                        checkMovableComponent();
                        updateSceneGraph();
                    }
View Full Code Here

        // only do this after we know the AvatarConfigComponent is on the View
        // Cell. We therefore add a listener, but also check immediately whether
        // the component exists. The handleSetAvatar() method makes sure that
        // the call to refresh() only happens once.
        isAvatarSet = false;
        newViewCell.addComponentChangeListener(new ComponentChangeListener() {
            public void componentChanged(Cell cell, ChangeType type,
                    CellComponent component) {
                AvatarConfigComponent c =
                        cell.getComponent(AvatarConfigComponent.class);
                if (type == ChangeType.ADDED && c != null) {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.ComponentChangeListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.