Class VSchedulePanel

    • Constructor Detail

      • VSchedulePanel

        public VSchedulePanel()
        Constructor
    • Method Detail

      • setType

        public void setType​(int type)
        Set Type. Calculate number of days and set
        Parameters:
        type - schedule type - see VSchedule.TYPE_...
      • setInfoSchedule

        public void setInfoSchedule​(InfoSchedule is)
        Set InfoSchedule for callback
        Parameters:
        is - InfoSchedule
      • setCreateNew

        public void setCreateNew​(boolean createNew)
        Enable/disable to Create New Assignments
        Parameters:
        createNew - if true, allows to create new Assignments
      • setHeight

        public void setHeight​(int height)
        From height, Calculate & Set Size
        Parameters:
        height - height in pixels
      • setSize

        public void setSize()
        Set Size
      • setTimePanel

        public void setTimePanel​(VScheduleTimePanel timePanel)
        Set time Panel for info about tile slots
        Parameters:
        timePanel - time panel
      • setAssignmentSlots

        public void setAssignmentSlots​(MAssignmentSlot[] mass,
                                       int S_Resource_ID,
                                       Timestamp startDate,
                                       Timestamp endDate)
        Set Slots
        Parameters:
        mass - Assignment Slots
        S_Resource_ID - resource
        startDate - start date
        endDate - end date
      • paint

        public void paint​(Graphics g)
        Paint it
        Overrides:
        paint in class JComponent
        Parameters:
        g - the Graphics object
      • mouseClicked

        public void mouseClicked​(MouseEvent e)
        Mouse Clicked. Start AssignmentDialog
        Specified by:
        mouseClicked in interface MouseListener
        Parameters:
        e - event
      • dispose

        public void dispose()
        Dispose