Package com.alkacon.acacia.shared

Examples of com.alkacon.acacia.shared.Entity


     * @param changeType the change type
     */
    void internalAddChange(String valuePath, String attributeName, int valueIndex, ChangeType changeType) {

        m_changeTimer = null;
        Entity currentData = Entity.serializeEntity(m_entity);
        if (!currentData.equals(m_current.getEntityData())) {
            m_undo.push(m_current);
            m_current = new Change(currentData, valuePath, attributeName, valueIndex, changeType);
            m_redo.clear();
            fireStateChange();
        }
View Full Code Here


        ChangeType type) {

        switch (type) {
            case value:
                AttributeHandler handler = m_rootHandler.getHandlerById(entityId, attributeName);
                Entity entity = newContent.getEntityById(entityId);
                if ((entity != null) && (entity.getAttribute(attributeName) != null)) {
                    String value = entity.getAttribute(attributeName).getSimpleValues().get(valueIndex);
                    if ((handler != null) && handler.hasValueView(valueIndex) && (value != null)) {
                        handler.changeValue(value, valueIndex);
                        break;
                    }
                }
View Full Code Here

     * @param changeType the change type
     */
    void internalAddChange(String valuePath, String attributeName, int valueIndex, ChangeType changeType) {

        m_changeTimer = null;
        Entity currentData = Entity.serializeEntity(m_entity);
        if (!currentData.equals(m_current.getEntityData())) {
            m_undo.push(m_current);
            m_current = new Change(currentData, valuePath, attributeName, valueIndex, changeType);
            m_redo.clear();
            fireStateChange();
        }
View Full Code Here

        ChangeType type) {

        switch (type) {
            case value:
                AttributeHandler handler = m_rootHandler.getHandlerById(entityId, attributeName);
                Entity entity = newContent.getEntityById(entityId);
                if ((entity != null) && (entity.getAttribute(attributeName) != null)) {
                    String value = entity.getAttribute(attributeName).getSimpleValues().get(valueIndex);
                    if ((handler != null) && handler.hasValueView(valueIndex) && (value != null)) {
                        handler.changeValue(value, valueIndex);
                        break;
                    }
                }
View Full Code Here

TOP

Related Classes of com.alkacon.acacia.shared.Entity

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.