Package it.freedomotic.model.object

Examples of it.freedomotic.model.object.Behavior


            if (st.getAttribute().equalsIgnoreCase("object.currentRepresentation")) {
                if (obj.getCurrentRepresentationIndex() != Integer.parseInt(st.getValue())) {
                    obj.setCurrentRepresentation(Integer.parseInt(st.getValue()));
                }
            } else if (st.getAttribute().startsWith("object.behavior")) {
                Behavior bh = obj.getBehavior(st.getAttribute().split("object.behavior.")[1]);
                if (bh instanceof BooleanBehavior) {
                    boolean bl = Boolean.parseBoolean(st.getValue());
                    if (bl != ((BooleanBehavior) bh).getValue()) {
                        ((BooleanBehavior) bh).setValue(bl);
                        //Window.alert(obj.toString());
View Full Code Here


          obj.setCurrentRepresentation(Integer.parseInt(st.getValue()));         
        }                       
      }                             
      else if (!st.getAttribute().equalsIgnoreCase("object.name"))
      {
        Behavior bh = obj.getBehavior(st.getAttribute());              
        if (bh instanceof BooleanBehavior)
        {
          boolean bl = Boolean.parseBoolean(st.getValue());
          if (bl !=((BooleanBehavior)bh).getValue())
          {
View Full Code Here

TOP

Related Classes of it.freedomotic.model.object.Behavior

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.