Package com.volantis.mcs.eclipse.ab.editors.layout.states

Examples of com.volantis.mcs.eclipse.ab.editors.layout.states.GridModifierState


                // A State pattern is used here because column insertion and
                // deletion (as well as row changes), is not an atomic ODOM
                // change. A sequence of events is generated, some of which
                // must be processed, with the rest ignored. The
                // ColumnChangeState handles all this for us.
                GridModifierState columnChange =
                        new ColumnChangeState(this);
                // Return to the current state after processing.
                columnChange.setNextState(currentState);
                // Process the column change and return to its terminal state,
                // which was set above.
                currentState = columnChange.processEvent(event);

            } else if (attrName.equals(FormatComposite.ROWS_ATTR_NAME)) {
                // See the comment above for the "columns" attribute.
                GridModifierState rowChange =
                        new RowChangeState(this);
                rowChange.setNextState(currentState);
                currentState = rowChange.processEvent(event);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.ab.editors.layout.states.GridModifierState

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.