tweetie wrote:-near A : can the text Year and Events Filters be internationalized, or just plainly changed through a method?
Yes, they are hard-coded for the version you are using but I will fix that (see below for timetable).
tweetie wrote:-Near B : can the split-spane be set from methods?
Do you mean the position of the split pane? If so, yes... the answer is the same as above.
tweetie wrote:-Near C : can the event-filter and the calendar be in separate beans/or be set off or on, but when I select a day...it still need to refresh schedule-part (right side)
Well I do have two beans in development (they've been on hold for quite a while now until I'm finished with this bean) that would do it. One is a dbTreeView like bean with a few more features, and the other is a little calendar component like the one on the bottom left. However, that doesn't really help you now does it..? I can modify the bean to programmatically hide the different sections. That would probably work just fine - I can't think of any potential problems at the moment. I'll put that into the timetable too...
tweetie wrote:-Near D : can the selection of year (arrows), or month or day on the calendar call a method??
Yes, that is possible. There is currently a callback for when a user selects a date range from the small calendar on the bottom left, setDateChangedCallback.
This would be a good time to answer the question below about updating the calendar with all of the events. In the demo solution I got lazy and did a query to select all events in the updateEvents() method. Using the setDateChangedCallback you can listen for these evens and update the calendar with only the events within that date range...
For example in the demo solution, add the following line to initializeCalendar():
- Code: Select all
// Listen for when the user selects a new date range.
elements.scheduleBean.setDateChangedCallback(onDateChanged);
Add the method onDateChanged() to the form:
- Code: Select all
var startDate = arguments[0];
var endDate = arguments[1];
updateEvents(startDate, endDate);
Modify updateEvents() to:
- Code: Select all
var startDate = arguments[0];
var endDate = arguments[1];
var query = "select * from events";
if (! startDate) {
startDate = elements.scheduleBean.getVisibleBeginDate();
}
if (! endDate) {
endDate = elements.scheduleBean.getVisibleEndDate();
}
if (startDate) {
query += " where start_datetime >= '" + startDate + "'";
if (endDate) {
query += " and end_datetime <= '" + endDate + "'";
}
}
var dataset = databaseManager.getDataSetByQuery(controller.getServerName(), query, null, -1);
if (dataset.getMaxRowIndex() > 0) {
elements.scheduleBean.setEvents(dataset, "eventsid", "ownerid", "categoryid", "summary", "start_datetime", "end_datetime")
}
I hope that helps a bit. The bean methods getVisibleBeginDate() and getVisibleEndDate() will return the currently visible date range in the main calendar view.
tweetie wrote:-choosing of other themes?
This is an interesting point... it is definitely possible to change the look and feel of the component using the MigCalendar Theme editor, but I haven't made that functionality available yet. There are some potential problems that it could introduce if the theme is changed in certain ways. This will require a bit more investigation, but maybe I could just come up with some guidelines that specify what items in the theme can and cannot be changed, then allow you to call a method like setTheme(myNewThemeFile) in the bean... that just might work.
I could also just make certain attributes of the theme configurable in the property editor as well...
tweetie wrote:-Near 31-day button: can the slider be set on or off?
Yes, in fact I'll make that a property in the bean.
tweetie wrote:One other really important question....are you going to develop, and continue developing and supporting this wrapper in the future?
Absolutely
This wrapper, and hopefully many others. The past month has been somewhat difficult for me time-wise, and I apologize if I haven't been as responsive as I would have liked. The company I work for is putting out a major software release and we've all been taxed pretty hard. It is beginning to clear up now.
Ok, now for the timetable:
1. Internationalization: I will make bean properties for the "Year" and "Event Filters" header text, as well as some other hard-coded English text. So in the Developer you can edit them in the right-side properties panel.
2. Split-pane position: I will make these properties as well, unless you would like me to add methods for it. The only utility I can see for adding a method would be if you wanted to make it user-configurable in a preferences page or something...
3. Hide the separate components: This will be both a property and method.
4. Hide the slider: Property and method.
These are all relatively minor changes so I will have them ready in an update planned for this Friday Dec. 16.
There are some other feaure requests/bug fixes I'm working on as well that I will also have in that update.
There are also some features that will not be there yet like coloring of events by category instead of owner, and background coloring of columns... these will take a little bit longer, but hopefully will be done by Christmas.
On another note, I updated the site this weekend (servoybeans.com) but didn't test it on all browsers... I'm sure it's ugly, but it is somewhat functional now. There is also an updated blurb on "Installation Instructions" that could be helpful for those getting started - thanks for the suggestion Jan!
Off to work I go
Fred