I am trying to customize the event editor for a timeline. So I did the following:
Using smartgwt 6.0p power 13.08.16
It is working, but the visual hint is not disappearing. So if the user cancels the creation of the event in my customized window, the visual hint is still there (just click anywhere in an editable cell):
Code:
public class TestingModule implements EntryPoint { private int i = 0; public void onModuleLoad() { VLayout vlayout = new VLayout(); final Timeline calendar = new Timeline(); calendar.setHeight(451); calendar.setStartDate(new Date(112, 5, 2)); calendar.setEndDate(new Date(112, 5, 22)); calendar.setCanEditLane(true); calendar.setShowEventDescriptions(false); HeaderLevel[] headerLevels = new HeaderLevel[] { new HeaderLevel(TimeUnit.WEEK), new HeaderLevel(TimeUnit.DAY) }; calendar.setHeaderLevels(headerLevels); calendar.setLaneFields(new ListGridField[] { new ListGridField("title", "Developer", 120) }); calendar.setLanes(TimelineLaneData.getRecords()); calendar.setData(TimelineData.getRecords()); calendar.setCanEditLane(false); calendar.setShowQuickEventDialog(false); calendar.setEventEditorCustomizer(new EventEditorCustomizer() { @Override public boolean showEventEditor(final CalendarEvent calendarEvent, Boolean isNewEvent) { getCalendar().getEventDialog().hide(); SC.logWarn("Editing"); // Create window for editing event return false; } }); vlayout.addMember(calendar); vlayout.setWidth100(); vlayout.setHeight100(); vlayout.draw(); } }
It is working, but the visual hint is not disappearing. So if the user cancels the creation of the event in my customized window, the visual hint is still there (just click anywhere in an editable cell):
Comment