Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Entries into database #45

Closed
VarletNicolas opened this issue Mar 15, 2019 · 1 comment
Closed

Save Entries into database #45

VarletNicolas opened this issue Mar 15, 2019 · 1 comment

Comments

@VarletNicolas
Copy link

Hello everybody,

I do not understand how I can save the data. Could you help me by giving me examples. It's not for lack of trying but I'm blocking for too long. (I do not understand how to use your event and / or do not know how to recover the data.).
Even though I read the other two post on the same topic it does not really help me.

My goal is to store either the calendar or any entries
in database via a LongBlob.

Everything is programmed except the system for saving entries.

I hope I have been sure, if not, do not hesitate.

Thank you for your help.

@VarletNicolas
Copy link
Author

VarletNicolas commented Mar 21, 2019

...
birthdays = new Calendar("Anniversaire");
birthdays.setStyle(Style.STYLE1);
myCalendarSource.getCalendars().addAll(birthdays, ...);
...
 EventHandler<CalendarEvent> l = e -> handleEvent1(e);
 birthdays.addEventHandler(l);
...
private EventHandler<CalendarEvent> handleEvent1(CalendarEvent e) {
...
// to get entry
e.getEntry();
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant