Usages of

bizcal.swing.CalendarListener.selectionReset()
protected CalendarListener listener; // code omitted ... /** * Deselect frame areas. * * @throws Exception */ public void deselect() throws Exception { /* ================================================== */ _selectedEvents.clear(); Iterator<?> iCal = broker.getSelectedCalendars().iterator(); while (iCal.hasNext()) { bizcal.common.Calendar cal = ( bizcal.common.Calendar ) iCal.next(); Object calId = cal.getId(); List<?> events = _eventMap.get(calId); if (events == null) return; Iterator<?> i = events.iterator(); while (i.hasNext()) { Event event = ( Event ) i.next(); // FrameArea area = getFrameArea(calId, event); FrameArea area = frameAreaHash.get(event); // if (area.isSelected()) // area.setAlphaValue(area.getAlphaValue()-0.2f); if (area != null) { area.setSelected(false); if (area.getChildren() != null) for (FrameArea fa : area.getChildren()) fa.setSelected(false); } } } if (listener != null) { /* ------------------------------------------------------- */ listener.eventsSelected(_selectedEvents); listener.selectionReset(); /* ------------------------------------------------------- */ } calPanel.requestFocus(); /* ================================================== */ }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes