Package name.pehl.karaka.shared.model

Examples of name.pehl.karaka.shared.model.Time


    private final TimeParser timeParser;


    public TimeTextBox()
    {
        this.currentValue = new Time();
        this.textBox = new Html5TextBox();
        this.textBox.addValueChangeHandler(this);
        this.timeParser = new TimeParser();
        initWidget(textBox);
    }
View Full Code Here


    @Override
    public void set(Activity model, Time value)
    {
        if (value == null)
        {
            model.setStart(new Time());
        }
        else
        {
            model.setStart(value);
        }
View Full Code Here

    // ------------------------------------------------------------------- time

    public Time newTime(DateTime dateTime)
    {
        return new Time(dateTime.toDate(), dateTime.year().get(), dateTime.monthOfYear().get(), dateTime
                .weekOfWeekyear().get(), dateTime.dayOfMonth().get());
    }
View Full Code Here

            // This is the only valid use case to call
            // Activity.setMinutes(long) directly. On the server side it is
            // recognized that the activity is stopped and that there's a
            // init time, a value for minutes but no end time. In this case
            // the end time is calculated on the server
            activity.setStart(new Time(start));
            activity.setEnd(null);
            activity.setDuration(enteredDuration);
            ActivityActionEvent.fire(this, SAVE, activity);
        }
        getView().clear();
View Full Code Here

TOP

Related Classes of name.pehl.karaka.shared.model.Time

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.