Package org.zkoss.ganttz.data.ITaskFundamentalProperties

Examples of org.zkoss.ganttz.data.ITaskFundamentalProperties.IModifications


        }


        @Override
        public void setEndDateFor(Task task, final GanttDate newEnd) {
            task.doPositionModifications(new IModifications() {

                @Override
                public void doIt(IUpdatablePosition position) {
                    position.setEndDate(newEnd);
                }
View Full Code Here


            return task.getBeginDate();
        }

        @Override
        public void setStartDateFor(Task task, final GanttDate newStart) {
            task.doPositionModifications(new IModifications() {

                @Override
                public void doIt(IUpdatablePosition position) {
                    position.setBeginDate(newStart);
                }
View Full Code Here

            }
        } else if (updatedComponent == getStartDateTextBox()) {
            try {
                final Date begin = dateFormat.parse(getStartDateTextBox()
                        .getValue());
                task.doPositionModifications(new IModifications() {

                    @Override
                    public void doIt(IUpdatablePosition position) {
                        position.moveTo(GanttDate.createFrom(begin));
                    }
View Full Code Here


    void doUpdatePosition(int leftX, int topY) {
        GanttDate startBeforeMoving = this.task.getBeginDate();
        final LocalDate newPosition = getMapper().toDate(leftX);
        this.task.doPositionModifications(new IModifications() {

            @Override
            public void doIt(IUpdatablePosition position) {
                position.moveTo(GanttDate.createFrom(newPosition));
            }
View Full Code Here

    private void copyFromDTO(final TaskDTO taskDTO, Task currentTask,
            boolean copyDates) {
        currentTask.setName(taskDTO.name);
        if (copyDates) {
            currentTask.doPositionModifications(new IModifications() {

                @Override
                public void doIt(IUpdatablePosition position) {
                    position.setBeginDate(GanttDate
                            .createFrom(taskDTO.beginDate));
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.data.ITaskFundamentalProperties.IModifications

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.