calendarmodel.java

来自「Rapla是一个灵活的多用户资源管理系统。它提供的一些功能有:日历GUI」· Java 代码 · 共 52 行

JAVA
52
字号
package org.rapla.gui;

import java.util.Collection;
import java.util.Date;

import org.rapla.entities.User;
import org.rapla.entities.domain.Allocatable;
import org.rapla.entities.domain.Reservation;
import org.rapla.framework.RaplaException;

public interface CalendarModel extends Cloneable
{
    public String ROLE = CalendarModel.class.getName();

    String getNonEmptyTitle();

    User getUser();

    Date getSelectedDate();

    void setSelectedDate( Date date );

    Date getStartDate();

    void setStartDate( Date date );

    int getSize();

    Date getEndDate();

    void setEndDate( Date date );

    Collection getSelectedObjects();

    /** Calendar View Plugins can use the calendar options to store their requiered optional parameters for a calendar view */
    Object getOption(String name);
    
    Collection getSelectedObjectsAndChildren() throws RaplaException;

    /** Convenience method to extract the allocatables from the selectedObjects and their children
     * @see #getSelectedObjectsAndChildren */
    Allocatable[] getSelectedAllocatables() throws RaplaException;

    User[] getSelectedUsers() throws RaplaException;

    Reservation[] getReservations( Date startDate, Date endDate ) throws RaplaException;

    Reservation[] getReservations() throws RaplaException;

    
    Object clone();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?