Usages of

bizcal.swing.CalendarListener.resized(?, ?, ?, ?)
protected CalendarListener listener; // code omitted ... /* * (non-Javadoc) * * @see * java.awt.event.MouseAdapter#mouseReleased(java.awt.event.MouseEvent) */ public void mouseReleased(MouseEvent e) { /* ================================================== */ FrameArea baseFrameArea = getBaseArea(); if (!baseFrameArea.equals(_frameArea)) { baseFrameArea.getMouseListeners()[0].mouseReleased(e); return; } /* ------------------------------------------------------- */ // clear the deleted /* ------------------------------------------------------- */ for (FrameArea fa : deletedFrameAreas) { fa.setVisible(false); calPanel.remove(fa); removeAdditionalArea(fa); } deletedFrameAreas.clear(); getComponent().revalidate(); /* ------------------------------------------------------- */ try { /* ------------------------------------------------------- */ if (listener != null) { if (isResizeable) { /* * ------------------------------------------------------ * - */ FrameArea fa = findLastFrameArea(baseFrameArea); if (fa == null) fa = baseFrameArea; /* * ------------------------------------------------------ * - */ Date movDate = getDate(fa.getX() + 5, fa.getY() + fa.getHeight()); if (!movDate.equals(_event.getStart())) { listener.resized(_event, _calId, _event.getEnd(), getDate(fa.getX() + 5, fa.getY() + fa.getHeight())); } /* * ------------------------------------------------------ * - */ } else { /* * ------------------------------------------------------ * - */ // if the date has not changed, do nothing Date eventDateNew = getDate(baseFrameArea.getX() + 5, baseFrameArea.getY()); // ============================================================= // cut the seconds from both dates, they can differ but // are not significant for us because we create a // calendar // and not a scientific timetable // ============================================================= if (dragged && !( DateUtil.round2Minute(eventDateNew).equals(DateUtil.round2Minute(_event.getStart())) )) { // if (!eventDateNew.equals(_event.getStart())) { /* * -------------------------------------------------- * ----- */ // move listener.moved(_event, _calId, _event.getStart(), _calId, eventDateNew); /* * -------------------------------------------------- * ----- */ } /* * ------------------------------------------------------ * - */ // clicked event for isPopTrigger /* * ------------------------------------------------------ * - */ if (e.getClickCount() == 1 && _event.isSelectable()) { /* * -------------------------------------------------- * ----- */ FrameArea area = getFrameArea(_calId, _event); listener.eventClicked(_calId, _event, area, e); /* * -------------------------------------------------- * ----- */ } } } maybeShowPopup(e); /* ------------------------------------------------------- */ } catch (Exception exc) { ErrorHandler.handleError(exc); } _frameArea.setIsMoving(false); // reset the original frameArea originalClickedFrameArea = null; CalendarView.isMousePressed = false; try { refresh(); } catch (Exception e1) { e1.printStackTrace(); } /* ================================================== */ }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes