Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Google Inc.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy of
  * the License at
  * 
  * http://www.apache.org/licenses/LICENSE-2.0
  * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package elemental.events;
import  elemental.events.*;
dom/interfaces/events/nsIDOMUIEvent.idlScriptable
A basic event interface for all user interface events
1.0
11.0
Inherits from: nsIDOMEvent Last changed in Gecko 9.0 (Firefox 9.0 / Thunderbird 9.0 / SeaMonkey 2.6)

The DOM UIEvent represents simple user interface events.

public interface UIEvent extends Event {
  int getCharCode();


  
Detail about the event, depending on the type of event. Read only.
  int getDetail();
  int getKeyCode();
  int getLayerX();
  int getLayerY();
  int getPageX();
  int getPageY();


  
A view which generated the event. Read only.
  int getWhich();


  

Initializes the UIEvent object.

Parameters
typeArg
The type of UI event.
canBubbleArg
Whether or not the event can bubble.
cancelableArg
Whether or not the event can be canceled.
viewArg
Specifies the view attribute value. This may be null.
detailArg
Specifies the detail attribute value.
  void initUIEvent(String typeboolean canBubbleboolean cancelableWindow viewint detail);
New to GrepCode? Check out our FAQ X