I want to create a background Thread handling some tasks (Runnable) and executing them in the order in which they are posted.
Important : these tasks must NOT be executed on the Event Dispatcher Thread.
Something like :
BackgroundEventThread backgroundEventThread = new BackgroundEventThread();
then, later, and in many places in the...
Hi all,
I am looking for a Javascript calendar with support for drag-and-drop, extensive events model (drag, drop, deletion/adding of items).
Also has to be capable of displaying a schedule for multiple persons. That'd be something similar to "Multiple Resources" view of http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml
Fre...
I notice in actionscript 3 that when a handler gets called, its able to access the senders properties. If I dispatch an event from my custom class. can all the listeners inherit all my public properties and methods?
...
Application.Current.RootVisual.KeyDown += Application_KeyDown
The above does not work if I'm on a ChildWindow - that was instantiated in runtime. My question is, how do I get the mousemove or keydown event in the Parent Window that hosts this ChildWindow?
Also, I'd rather not change anything in the childwindow (i.e., add an event that...
Lets says we have 2 objects, Broadcaster and Listener. Broadcaster has an event called Broadcast to which Listener is subscribed. If Listener is disposed without unsubscribing from the Broadcast event it will be retained in memory because of the event delegate referencing it that Broadcaster contains.
What I'm curious about is if Broad...
I've added Dropdownlist in Gridview at RowDataBound event. The code is:
if (e.Row.RowType == DataControlRowType.DataRow)
{
DropDownList ddlSeason = new DropDownList();
ddlSeason.DataSourceID = "odsRoomSeason";
ddlSeason.DataTextField = "SeasonTittle";
ddlSeason.DataValueField = "SeasonID";
ddlSeason.AutoPostBack = true;
ddlSeason.Selec...
up.addEventListener(MouseEvent.CLICK,
function clickFunc(event:MouseEvent):void
{
revealSpinner(event,51.42,1,spinner);
event.currentTarget.removeEventListener(event.type, arguments.callee);
autoTimer.stop();
},
false, 0, true);
down.addEventListener(MouseEvent.CLICK,
function clickFunc(even...
Hi
We're building an application which is using the google maps api for android.
I have my MapController and MapView, and I enable the built-in zoom controls using:
mapView.setBuiltInZoomControls(true);
I would now like to get an event when the user actually zooms on the map, how do I go about that? I can find no such event or any g...
Hello,
Is it possible to get the mouse position on Silverlight, without hooking on some MouseEvent? Like in WPF which is Mouse.GetPosition(object relativeTo).
Thanks
...
I have a simple user control that contains some buttons that fire events which I want to be handled by the page using the control. I have my code setup as such:
public event EventHandler Cancel;
public event EventHandler Confirm;
public void Confirm_Click(object sender, EventArgs e)
{
if (Confirm != null)
Confirm(this, e);
}...
I have Form subclass with handlers for MouseHover and MouseLeave. When the pointer is on the background of the window, the events work fine, but when the pointer moves onto a control inside the window, it causes a MouseLeave event.
Is there anyway to have an event covering the whole window.
(.NET 2.0, Visual Studio 2005, Windows XP.)
...
Hi,
I have a movieclip with a child button in it.
The movieclip can be dragged and dropped. I want to disable dragging and dropping of the movieclip when I press/drag on the child button. mouseChildren=false and mouseEnable=false don't work, since I want to keep my mouse events for the button.
---------------------------------
| Movie...
So I have in index.py:
class Test:
@cherrypy.expose
def index(self):
return mylookup.get_template('test.html').render(item="<div id='blah'>test</div>")
And in test.html:
<script>
window.addEvent('domready', function() {
$('blah').addEvent('click', function() {
alert('success');
});
});
</script>
When click...
In Javascript, how do I tell if a user is pressing two keys at the same time?
For example, I have drawn a circle in the middle of the screen. I want to move it up while the user holds down the up arrow and right while the user holds down the right arrow. That part works easy. If user holds both the up and right arrows, I want to move th...
Hello everyone,
I use jquery to build treeview via ajax which has refreshed automatically every 5 second. And I want after building the tree, one of the branches to be selected automatically. But when I use $('#treeview li span.Running').click(); nothing happen.
I catch the click event using $('#treeview li span').live('click',function...
Hello,
I'm trying to display events in calendar generated by calendar_date_select plugin for Rails.
I have Concert model with datetime field date.
Can I somehow throw in @concerts which equals Concert.all to calendar_date_select_tag to display links to make days where concert is clickable?
I would like to stick to this helper cause I...
Forgive me if this a stupid question, I admit I haven't thought about it much.
But when would you favour using a callback (i.e, passing in a Func or Action), as opposed to exposing and using an event?
UPDATE
What motivated this question was the following problem:
I have a ThingsHandler class, which
can be associated with a Thing...
I have made an Ellipse with the help of java.awt.geom.Ellipse2D
Now, I want that whenever user clicks on that ellipse, an event is generated so that I can listen to that event and peform subsequent tasks based on the ellipse which generated that event.
...
Note: I edited this question to make it easier for other people with the same problem to get help here. To see the original question that fits better with some of the answers, check the edit history.
In a project I have a ExecutionManager class that can contain multiple ExecutionSlot's instances. The ExecutionSlot class have several pub...
I might be using the wrong patterns here, but if I am, I hope someone can correct me!
I have an object which represents a user's workspace and, in response to a server action, it clones a div, changes some of its properties, positions it on the workspace, makes it draggable and adds an onComplete action. This action is intended to call ...