Questions tagged as 'listener'

1
answer

Listeners are an Observer implementation?

I'm trying to understand the Observer concept and its implementation, and I ended up finding this example where listeners is used instead of the observable and observer classes: Thisgraphichasbeenremovedfrom , where an altern...
asked by 27.04.2016 / 19:31
2
answers

What is and how to implement a Listener in Java?

Although you have already asked the Differences between listeners and adapters in the swing and also Listeners are an implementation of Observer? , I would like a more detailed explanation. What are listeners in java? How to implement one?...
asked by 10.09.2017 / 22:01
1
answer

Differences between listeners and adapters in swing

When programming graphical interfaces in Java using swing , we are always faced with both types, mainly to assign and create events from button actions or other components. Although I've been working with swing for some time, I'v...
asked by 19.02.2016 / 22:49
1
answer

Android - Different ways to "set" a listener on objects

Is there a different way ("syntax") to "set" a listener on an object in Android? For example, I only know this form: btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { activit...
asked by 04.02.2015 / 17:06
1
answer

"Listen" directory using Java

I'm working on an application, and I need to create a functionality, such as a method, that is "listening" to a certain directory. The directory is used as the destination for * .xlsx file uploads. I need every time a new file exists, my appl...
asked by 16.07.2014 / 19:18
1
answer

Execute a script automatically - without the use of CRON

I usually run a script that should be run from time to time (such as request status updater, for example) using Linux CRON. (I have no idea how to do this in Windows hosting) However, I noticed that Wordpress seems to do this without using CR...
asked by 13.05.2015 / 15:01
2
answers

Java - Enter Function

In the system there is a field, the person needs to fill in this field and then press enter. When you press enter, the system performs a check and then opens a JOptionpane asking you to select: yes , no , ok etc. The person pres...
asked by 25.09.2015 / 15:30
3
answers

How to get the object with focus on Android

I have the following Listener below which checks if an editText has been changed, the Listener will be identical for several editText so I would like to get the current editText through the "v" property, to avoid code repetition and create only o...
asked by 12.09.2016 / 16:33
1
answer

Is it possible to execute a listener when the App is not running?

The App would have to communicate to the user, that there was a change in a value on the server, but without using Push Notification. So I thought I'd add a listener on iOS, and that when I detected the change in value, it would trigger a local...
asked by 28.05.2015 / 06:51
1
answer

Control event in the field?

I'm trying to handle a possible empty search, when the user gives enter in a field without typing anything. I've applied a keyboard event, and every time you press enter, the field performs a search. The problem is that if the message appea...
asked by 23.07.2017 / 02:00