Examples of IModifications


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

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

            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

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

            }
        } 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

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


    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

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

    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
Copyright © 2018 www.massapi.com. 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.