Skip to main content

All Questions

Tagged with
0 votes
1 answer
318 views

Play! Behavior for after save model operation

I want to implement a behavior that insert a row in a table after some models saves. My current solution in short is this: (This is just an example of my code so please do not comment on the ...
Alberto Favaro's user avatar
4 votes
3 answers
2k views

Java application to start a process and get a callback when events occurred in process

My requirement is to start a process from java and register for events callback for the process for eg: like started or killed. Typical scenario: In my GUI application, I have a "start process&...
Yeshvant Kumar Bhavnasi's user avatar
0 votes
1 answer
139 views

Create Delegate-Event Model Sample Program in Java using callback

I am a greenhorn in java . I want to learn more about how java event handling works. So I need a simple example demonstrating custom callback in java. It should be something like 2 or more class can ...
user avatar
0 votes
2 answers
12k views

Callback/event from Java timer [closed]

I'm writing a basic file monitor to check for new files in a directory. I haven't got a lot of experience with Java so I don't know what the recommended way of doing this is but here's what I have in ...
George Profenza's user avatar
0 votes
2 answers
1k views

Issues with creating custom events in android

I am writing a custom event and would like some help please. Most of what I am about to talk about is based on the help provided at Custom event listener on Android app So here is my issue. I am ...
Lucas Bailey's user avatar
2 votes
2 answers
6k views

How to define custom events and event listeners in Android?

I'm a starter in Android app development, and my experience in Java development is also minimal. I'm working on a very basic context-aware application and I want to understand how can I notify my ...
user1247742's user avatar
0 votes
2 answers
1k views

Registering an event in a thread with a callback function

I am modifying my server such that every time it accepts a connection it should register a timeout event in a thread with a callback function. The timeout can be any number. There is only one ...
user avatar
12 votes
4 answers
10k views

Watching a variable for changes without polling

I'm using a framework called Processing which is basically a Java applet. It has the ability to do key events because Applet can. You can also roll your own callbacks of sorts into the parent. I'm ...
squarism's user avatar
  • 3,277
4 votes
3 answers
1k views

Java: Filtering out duplicate events

I was wondering if the following is common for "regular" Java applications when receiving callback/events. Those callbacks may be triggered by user input but also by other means so it is not only ...
cocotwo's user avatar
  • 1,285