Java 类org.w3c.dom.views.AbstractView 实例源码

项目:Push2Display    文件:DOMKeyboardEvent.java   
/**
 * <b>DOM</b>: Initializes this KeyboardEvent object.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param keyIdentifierArg Specifies the <code>Event</code>'s
 *   <code>keyIdentifier</code>.
 * @param keyLocationArg Specifies the <code>Event</code>'s
 *   <code>keyLocation</code>.
 * @param modifiersList Specifies which modifiers were in effect for this
 *   <code>Event</code>.
 */
public void initKeyboardEvent(String typeArg, 
                              boolean canBubbleArg, 
                              boolean cancelableArg, 
                              AbstractView viewArg,
                              String keyIdentifierArg,
                              int keyLocationArg,
                              String modifiersList) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0);
    keyIdentifier = keyIdentifierArg;
    keyLocation = keyLocationArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:Push2Display    文件:DOMKeyboardEvent.java   
/**
 * <b>DOM</b: Initializes this KeyboardEvent object.
 * @param namespaceURIArg Specifies the event namespace URI.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param keyIdentifierArg Specifies the <code>Event</code>'s
 *   <code>keyIdentifier</code>.
 * @param keyLocationArg Specifies the <code>Event</code>'s
 *   <code>keyLocation</code>.
 * @param modifiersList Specifies which modifiers were in effect for this
 *   <code>Event</code>.
 */
public void initKeyboardEventNS(String namespaceURIArg,
                                String typeArg,
                                boolean canBubbleArg, 
                                boolean cancelableArg, 
                                AbstractView viewArg,
                                String keyIdentifierArg,
                                int keyLocationArg,
                                String modifiersList) {
    initUIEventNS(namespaceURIArg,
                           typeArg,
                           canBubbleArg,
                           cancelableArg,
                           viewArg,
                           0);
    keyIdentifier = keyIdentifierArg;
    keyLocation = keyLocationArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:Push2Display    文件:DOMKeyboardEvent.java   
/**
 * <b>DOM</b>: Initializes this KeyboardEvent object.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param keyIdentifierArg Specifies the <code>Event</code>'s
 *   <code>keyIdentifier</code>.
 * @param keyLocationArg Specifies the <code>Event</code>'s
 *   <code>keyLocation</code>.
 * @param modifiersList Specifies which modifiers were in effect for this
 *   <code>Event</code>.
 */
public void initKeyboardEvent(String typeArg, 
                              boolean canBubbleArg, 
                              boolean cancelableArg, 
                              AbstractView viewArg,
                              String keyIdentifierArg,
                              int keyLocationArg,
                              String modifiersList) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0);
    keyIdentifier = keyIdentifierArg;
    keyLocation = keyLocationArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:Push2Display    文件:DOMKeyboardEvent.java   
/**
 * <b>DOM</b: Initializes this KeyboardEvent object.
 * @param namespaceURIArg Specifies the event namespace URI.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param keyIdentifierArg Specifies the <code>Event</code>'s
 *   <code>keyIdentifier</code>.
 * @param keyLocationArg Specifies the <code>Event</code>'s
 *   <code>keyLocation</code>.
 * @param modifiersList Specifies which modifiers were in effect for this
 *   <code>Event</code>.
 */
public void initKeyboardEventNS(String namespaceURIArg,
                                String typeArg,
                                boolean canBubbleArg, 
                                boolean cancelableArg, 
                                AbstractView viewArg,
                                String keyIdentifierArg,
                                int keyLocationArg,
                                String modifiersList) {
    initUIEventNS(namespaceURIArg,
                           typeArg,
                           canBubbleArg,
                           cancelableArg,
                           viewArg,
                           0);
    keyIdentifier = keyIdentifierArg;
    keyLocation = keyLocationArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:feathers-sdk    文件:DOMKeyboardEvent.java   
/**
 * <b>DOM</b>: Initializes this KeyboardEvent object.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param keyIdentifierArg Specifies the <code>Event</code>'s
 *   <code>keyIdentifier</code>.
 * @param keyLocationArg Specifies the <code>Event</code>'s
 *   <code>keyLocation</code>.
 * @param modifiersList Specifies which modifiers were in effect for this
 *   <code>Event</code>.
 */
public void initKeyboardEvent(String typeArg, 
                              boolean canBubbleArg, 
                              boolean cancelableArg, 
                              AbstractView viewArg,
                              String keyIdentifierArg,
                              int keyLocationArg,
                              String modifiersList) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0);
    keyIdentifier = keyIdentifierArg;
    keyLocation = keyLocationArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:feathers-sdk    文件:DOMKeyboardEvent.java   
/**
 * <b>DOM</b: Initializes this KeyboardEvent object.
 * @param namespaceURIArg Specifies the event namespace URI.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param keyIdentifierArg Specifies the <code>Event</code>'s
 *   <code>keyIdentifier</code>.
 * @param keyLocationArg Specifies the <code>Event</code>'s
 *   <code>keyLocation</code>.
 * @param modifiersList Specifies which modifiers were in effect for this
 *   <code>Event</code>.
 */
public void initKeyboardEventNS(String namespaceURIArg,
                                String typeArg,
                                boolean canBubbleArg, 
                                boolean cancelableArg, 
                                AbstractView viewArg,
                                String keyIdentifierArg,
                                int keyLocationArg,
                                String modifiersList) {
    initUIEventNS(namespaceURIArg,
                           typeArg,
                           canBubbleArg,
                           cancelableArg,
                           viewArg,
                           0);
    keyIdentifier = keyIdentifierArg;
    keyLocation = keyLocationArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:LoboEvolution    文件:WheelEventImpl.java   
@Override
public void initWheelEvent(String type, boolean canBubble, boolean cancelable, AbstractView view, int detail,
        int screenX, int screenY, int clientX, int clientY, short button, EventTarget relatedTarget,
        String modifiersList, int deltaX, int deltaY, int deltaZ, int deltaMode) {
    setType(type);
    setCanBubble(canBubble);
    setCancelable(cancelable);
    setView(view);
    setDetail(detail);
    setScreenX(screenX);
    setScreenY(screenY);
    setClientX(clientX);
    setClientY(clientY);
    setButton(button);
    this.deltaX = deltaX;
    this.deltaY = deltaY;
    this.deltaZ = deltaZ;
    this.deltaMode = deltaMode;

}
项目:LoboEvolution    文件:MouseEventImpl.java   
@Override
public void initMouseEventNS(String namespaceURI, String type, boolean canBubble, boolean cancelable,
        AbstractView view, int detail, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey,
        boolean altKey, boolean shiftKey, boolean metaKey, int button, EventTarget relatedTarget) {

    setType(type);
    setCanBubble(canBubble);
    setCancelable(cancelable);
    setView(view);
    setDetail(detail);
    setScreenX(screenX);
    setScreenY(screenY);
    setClientX(clientX);
    setClientY(clientY);
    setCtrlKey(ctrlKey);
    setAltKey(altKey);
    setShiftKey(shiftKey);
    setMetaKey(metaKey);
    setButton(button);
    setCurrentTarget(relatedTarget);

}
项目:SplitCharater    文件:MouseEventImpl.java   
public void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, 
        int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, 
        boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, 
        short buttonArg, EventTarget relatedTargetArg) {
    fScreenX = screenXArg;
    fScreenY = screenYArg;
    fClientX = clientXArg;
    fClientY = clientYArg;
    fCtrlKey = ctrlKeyArg;
    fAltKey = altKeyArg;
    fShiftKey = shiftKeyArg;
    fMetaKey = metaKeyArg;
    fButton = buttonArg;
    fRelatedTarget = relatedTargetArg;
    super.initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg);
}
项目:ScriptBox    文件:KeyboardEvent.java   
@ScriptFunction
public void initKeyboardEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg,
        AbstractView viewArg, String keyIdentifierArg, long keyLocationArg, String modifiersList) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, -1);

    this.keyIdentifier = keyIdentifierArg;
    this.keyLocation = keyLocationArg;

    String[] tokensArr = modifiersList.split("\\s+");
    Set<String> tokens = new HashSet<String>(Arrays.asList(tokensArr));

    this.ctrlKey = tokens.contains(DOM_MODIFIER_CONTROL);
    this.shiftKey = tokens.contains(DOM_MODIFIER_SHIFT);
    this.metaKey = tokens.contains(DOM_MODIFIER_META);
    this.altKey = tokens.contains(DOM_MODIFIER_ALT);
}
项目:Push2Display    文件:AbstractStylableDocument.java   
/**
 * <b>DOM</b>: Implements {@link DocumentView#getDefaultView()}.
 * @return a ViewCSS object.
 */
public AbstractView getDefaultView() {
    if (defaultView == null) {
        ExtensibleDOMImplementation impl;
        impl = (ExtensibleDOMImplementation)implementation;
        defaultView = impl.createViewCSS(this);
    }
    return defaultView;
}
项目:Push2Display    文件:SVGOMWheelEvent.java   
/**
 * Initializes this KeyboardEvent object.
 * @param namespaceURIArg Specifies the event namespace URI.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param wheelDeltaArg Specifices the number of clicks the mouse wheel has
 *   been moved.
 */
public void initWheelEventNS(String namespaceURIArg,
                             String typeArg,
                             boolean canBubbleArg, 
                             boolean cancelableArg, 
                             AbstractView viewArg,
                             int wheelDeltaArg) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  0);
    wheelDelta = wheelDeltaArg;
}
项目:Push2Display    文件:DOMUIEvent.java   
/**
 * <b>DOM</b>: Initializes this event object.
 */
public void initUIEventNS(String namespaceURIArg,
                          String typeArg,
                          boolean canBubbleArg,
                          boolean cancelableArg,
                          AbstractView viewArg,
                          int detailArg) {
    initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:Push2Display    文件:DOMTimeEvent.java   
/**
 * Initializes the values of the TimeEvent object.
 */
public void initTimeEvent(String typeArg,
                          AbstractView viewArg,
                          int detailArg) {
    initEvent(typeArg, false, false);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:Push2Display    文件:DOMTimeEvent.java   
/**
 * Initializes the values of the TimeEvent object.
 */
public void initTimeEventNS(String namespaceURIArg,
                            String typeArg,
                            AbstractView viewArg,
                            int detailArg) {
    initEventNS(namespaceURIArg, typeArg, false, false);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:Push2Display    文件:DOMMouseEvent.java   
/**
 * DOM: The <code>initMouseEvent</code> method is used to
 * initialize the value of a <code>MouseEvent</code> created
 * through the <code>DocumentEvent</code> interface.  This method
 * may only be called before the <code>MouseEvent</code> has been
 * dispatched via the <code>dispatchEvent</code> method, though it
 * may be called multiple times during that phase if necessary.
 * If called multiple times, the final invocation takes
 * precedence.
 *
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default
 *   action can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s
 *   <code>AbstractView</code>.
 * @param detailArg Specifies the <code>Event</code>'s mouse click count.
 * @param screenXArg Specifies the <code>Event</code>'s screen x coordinate
 * @param screenYArg Specifies the <code>Event</code>'s screen y coordinate
 * @param clientXArg Specifies the <code>Event</code>'s client x coordinate
 * @param clientYArg Specifies the <code>Event</code>'s client y coordinate
 * @param ctrlKeyArg Specifies whether or not control key was depressed
 *   during the <code>Event</code>.
 * @param altKeyArg Specifies whether or not alt key was depressed during
 *   the  <code>Event</code>.
 * @param shiftKeyArg Specifies whether or not shift key was depressed
 *   during the <code>Event</code>.
 * @param metaKeyArg Specifies whether or not meta key was depressed
 *   during the  <code>Event</code>.
 * @param buttonArg Specifies the <code>Event</code>'s mouse button.
 * @param relatedTargetArg Specifies the <code>Event</code>'s related
 *   <code>EventTarget</code>.
 */
public void initMouseEvent(String typeArg,
                           boolean canBubbleArg,
                           boolean cancelableArg,
                           AbstractView viewArg,
                           int detailArg,
                           int screenXArg,
                           int screenYArg,
                           int clientXArg,
                           int clientYArg,
                           boolean ctrlKeyArg,
                           boolean altKeyArg,
                           boolean shiftKeyArg,
                           boolean metaKeyArg,
                           short buttonArg,
                           EventTarget relatedTargetArg) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg,
                viewArg, detailArg);
    this.screenX = screenXArg;
    this.screenY = screenYArg;
    this.clientX = clientXArg;
    this.clientY = clientYArg;
    if (ctrlKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_CONTROL);
    }
    if (altKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_ALT);
    }
    if (shiftKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_SHIFT);
    }
    if (metaKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_META);
    }
    this.button = buttonArg;
    this.relatedTarget = relatedTargetArg;
}
项目:Push2Display    文件:DOMMouseEvent.java   
/**
 * <b>DOM</b>: Initializes this event object.
 */
public void initMouseEventNS(String namespaceURIArg,
                             String typeArg,
                             boolean canBubbleArg,
                             boolean cancelableArg,
                             AbstractView viewArg,
                             int detailArg,
                             int screenXArg,
                             int screenYArg,
                             int clientXArg,
                             int clientYArg,
                             short buttonArg,
                             EventTarget relatedTargetArg,
                             String modifiersList) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  detailArg);
    screenX = screenXArg;
    screenY = screenYArg;
    clientX = clientXArg;
    clientY = clientYArg;
    button = buttonArg;
    relatedTarget = relatedTargetArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:Push2Display    文件:DOMTextEvent.java   
/**
 * <b>DOM</b>: Initializes this TextEvent.
 */
public void initTextEvent(String typeArg, 
                          boolean canBubbleArg, 
                          boolean cancelableArg, 
                          AbstractView viewArg, 
                          String dataArg) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0);
    data = dataArg;
}
项目:Push2Display    文件:DOMTextEvent.java   
/**
 * <b>DOM</b>: Initializes this TextEvent.
 */
public void initTextEventNS(String namespaceURIArg,
                            String typeArg, 
                            boolean canBubbleArg, 
                            boolean cancelableArg, 
                            AbstractView viewArg, 
                            String dataArg) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  0);
    data = dataArg;
}
项目:javify    文件:DomEvent.java   
/** Initializes a UI event */
public final void initUIEvent(String typeArg,
                              boolean canBubbleArg,
                              boolean cancelableArg,
                              AbstractView viewArg,
                              int detailArg)
{
  super.initEvent(typeArg, canBubbleArg, cancelableArg);
  view = viewArg;
  detail = detailArg;
}
项目:jvm-stm    文件:DomEvent.java   
/** Initializes a UI event */
public final void initUIEvent(String typeArg,
                              boolean canBubbleArg,
                              boolean cancelableArg,
                              AbstractView viewArg,
                              int detailArg)
{
  super.initEvent(typeArg, canBubbleArg, cancelableArg);
  view = viewArg;
  detail = detailArg;
}
项目:Push2Display    文件:AbstractStylableDocument.java   
/**
 * <b>DOM</b>: Implements {@link DocumentView#getDefaultView()}.
 * @return a ViewCSS object.
 */
public AbstractView getDefaultView() {
    if (defaultView == null) {
        ExtensibleDOMImplementation impl;
        impl = (ExtensibleDOMImplementation)implementation;
        defaultView = impl.createViewCSS(this);
    }
    return defaultView;
}
项目:Push2Display    文件:SVGOMWheelEvent.java   
/**
 * Initializes this KeyboardEvent object.
 * @param namespaceURIArg Specifies the event namespace URI.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param wheelDeltaArg Specifices the number of clicks the mouse wheel has
 *   been moved.
 */
public void initWheelEventNS(String namespaceURIArg,
                             String typeArg,
                             boolean canBubbleArg, 
                             boolean cancelableArg, 
                             AbstractView viewArg,
                             int wheelDeltaArg) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  0);
    wheelDelta = wheelDeltaArg;
}
项目:Push2Display    文件:DOMUIEvent.java   
/**
 * <b>DOM</b>: Initializes this event object.
 */
public void initUIEventNS(String namespaceURIArg,
                          String typeArg,
                          boolean canBubbleArg,
                          boolean cancelableArg,
                          AbstractView viewArg,
                          int detailArg) {
    initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:Push2Display    文件:DOMTimeEvent.java   
/**
 * Initializes the values of the TimeEvent object.
 */
public void initTimeEvent(String typeArg,
                          AbstractView viewArg,
                          int detailArg) {
    initEvent(typeArg, false, false);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:Push2Display    文件:DOMTimeEvent.java   
/**
 * Initializes the values of the TimeEvent object.
 */
public void initTimeEventNS(String namespaceURIArg,
                            String typeArg,
                            AbstractView viewArg,
                            int detailArg) {
    initEventNS(namespaceURIArg, typeArg, false, false);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:Push2Display    文件:DOMMouseEvent.java   
/**
 * DOM: The <code>initMouseEvent</code> method is used to
 * initialize the value of a <code>MouseEvent</code> created
 * through the <code>DocumentEvent</code> interface.  This method
 * may only be called before the <code>MouseEvent</code> has been
 * dispatched via the <code>dispatchEvent</code> method, though it
 * may be called multiple times during that phase if necessary.
 * If called multiple times, the final invocation takes
 * precedence.
 *
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default
 *   action can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s
 *   <code>AbstractView</code>.
 * @param detailArg Specifies the <code>Event</code>'s mouse click count.
 * @param screenXArg Specifies the <code>Event</code>'s screen x coordinate
 * @param screenYArg Specifies the <code>Event</code>'s screen y coordinate
 * @param clientXArg Specifies the <code>Event</code>'s client x coordinate
 * @param clientYArg Specifies the <code>Event</code>'s client y coordinate
 * @param ctrlKeyArg Specifies whether or not control key was depressed
 *   during the <code>Event</code>.
 * @param altKeyArg Specifies whether or not alt key was depressed during
 *   the  <code>Event</code>.
 * @param shiftKeyArg Specifies whether or not shift key was depressed
 *   during the <code>Event</code>.
 * @param metaKeyArg Specifies whether or not meta key was depressed
 *   during the  <code>Event</code>.
 * @param buttonArg Specifies the <code>Event</code>'s mouse button.
 * @param relatedTargetArg Specifies the <code>Event</code>'s related
 *   <code>EventTarget</code>.
 */
public void initMouseEvent(String typeArg,
                           boolean canBubbleArg,
                           boolean cancelableArg,
                           AbstractView viewArg,
                           int detailArg,
                           int screenXArg,
                           int screenYArg,
                           int clientXArg,
                           int clientYArg,
                           boolean ctrlKeyArg,
                           boolean altKeyArg,
                           boolean shiftKeyArg,
                           boolean metaKeyArg,
                           short buttonArg,
                           EventTarget relatedTargetArg) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg,
                viewArg, detailArg);
    this.screenX = screenXArg;
    this.screenY = screenYArg;
    this.clientX = clientXArg;
    this.clientY = clientYArg;
    if (ctrlKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_CONTROL);
    }
    if (altKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_ALT);
    }
    if (shiftKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_SHIFT);
    }
    if (metaKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_META);
    }
    this.button = buttonArg;
    this.relatedTarget = relatedTargetArg;
}
项目:Push2Display    文件:DOMMouseEvent.java   
/**
 * <b>DOM</b>: Initializes this event object.
 */
public void initMouseEventNS(String namespaceURIArg,
                             String typeArg,
                             boolean canBubbleArg,
                             boolean cancelableArg,
                             AbstractView viewArg,
                             int detailArg,
                             int screenXArg,
                             int screenYArg,
                             int clientXArg,
                             int clientYArg,
                             short buttonArg,
                             EventTarget relatedTargetArg,
                             String modifiersList) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  detailArg);
    screenX = screenXArg;
    screenY = screenYArg;
    clientX = clientXArg;
    clientY = clientYArg;
    button = buttonArg;
    relatedTarget = relatedTargetArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:Push2Display    文件:DOMTextEvent.java   
/**
 * <b>DOM</b>: Initializes this TextEvent.
 */
public void initTextEvent(String typeArg, 
                          boolean canBubbleArg, 
                          boolean cancelableArg, 
                          AbstractView viewArg, 
                          String dataArg) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0);
    data = dataArg;
}
项目:Push2Display    文件:DOMTextEvent.java   
/**
 * <b>DOM</b>: Initializes this TextEvent.
 */
public void initTextEventNS(String namespaceURIArg,
                            String typeArg, 
                            boolean canBubbleArg, 
                            boolean cancelableArg, 
                            AbstractView viewArg, 
                            String dataArg) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  0);
    data = dataArg;
}
项目:feathers-sdk    文件:AbstractStylableDocument.java   
/**
 * <b>DOM</b>: Implements {@link DocumentView#getDefaultView()}.
 * @return a ViewCSS object.
 */
public AbstractView getDefaultView() {
    if (defaultView == null) {
        ExtensibleDOMImplementation impl;
        impl = (ExtensibleDOMImplementation)implementation;
        defaultView = impl.createViewCSS(this);
    }
    return defaultView;
}
项目:feathers-sdk    文件:SVGOMWheelEvent.java   
/**
 * Initializes this KeyboardEvent object.
 * @param namespaceURIArg Specifies the event namespace URI.
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default action 
 *   can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s 
 *   <code>AbstractView</code>.
 * @param wheelDeltaArg Specifices the number of clicks the mouse wheel has
 *   been moved.
 */
public void initWheelEventNS(String namespaceURIArg,
                             String typeArg,
                             boolean canBubbleArg, 
                             boolean cancelableArg, 
                             AbstractView viewArg,
                             int wheelDeltaArg) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  0);
    wheelDelta = wheelDeltaArg;
}
项目:feathers-sdk    文件:DOMUIEvent.java   
/**
 * <b>DOM</b>: Initializes this event object.
 */
public void initUIEventNS(String namespaceURIArg,
                          String typeArg,
                          boolean canBubbleArg,
                          boolean cancelableArg,
                          AbstractView viewArg,
                          int detailArg) {
    initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:feathers-sdk    文件:DOMTimeEvent.java   
/**
 * Initializes the values of the TimeEvent object.
 */
public void initTimeEvent(String typeArg,
                          AbstractView viewArg,
                          int detailArg) {
    initEvent(typeArg, false, false);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:feathers-sdk    文件:DOMTimeEvent.java   
/**
 * Initializes the values of the TimeEvent object.
 */
public void initTimeEventNS(String namespaceURIArg,
                            String typeArg,
                            AbstractView viewArg,
                            int detailArg) {
    initEventNS(namespaceURIArg, typeArg, false, false);
    this.view = viewArg;
    this.detail = detailArg;
}
项目:feathers-sdk    文件:DOMMouseEvent.java   
/**
 * DOM: The <code>initMouseEvent</code> method is used to
 * initialize the value of a <code>MouseEvent</code> created
 * through the <code>DocumentEvent</code> interface.  This method
 * may only be called before the <code>MouseEvent</code> has been
 * dispatched via the <code>dispatchEvent</code> method, though it
 * may be called multiple times during that phase if necessary.
 * If called multiple times, the final invocation takes
 * precedence.
 *
 * @param typeArg Specifies the event type.
 * @param canBubbleArg Specifies whether or not the event can bubble.
 * @param cancelableArg Specifies whether or not the event's default
 *   action can be prevented.
 * @param viewArg Specifies the <code>Event</code>'s
 *   <code>AbstractView</code>.
 * @param detailArg Specifies the <code>Event</code>'s mouse click count.
 * @param screenXArg Specifies the <code>Event</code>'s screen x coordinate
 * @param screenYArg Specifies the <code>Event</code>'s screen y coordinate
 * @param clientXArg Specifies the <code>Event</code>'s client x coordinate
 * @param clientYArg Specifies the <code>Event</code>'s client y coordinate
 * @param ctrlKeyArg Specifies whether or not control key was depressed
 *   during the <code>Event</code>.
 * @param altKeyArg Specifies whether or not alt key was depressed during
 *   the  <code>Event</code>.
 * @param shiftKeyArg Specifies whether or not shift key was depressed
 *   during the <code>Event</code>.
 * @param metaKeyArg Specifies whether or not meta key was depressed
 *   during the  <code>Event</code>.
 * @param buttonArg Specifies the <code>Event</code>'s mouse button.
 * @param relatedTargetArg Specifies the <code>Event</code>'s related
 *   <code>EventTarget</code>.
 */
public void initMouseEvent(String typeArg,
                           boolean canBubbleArg,
                           boolean cancelableArg,
                           AbstractView viewArg,
                           int detailArg,
                           int screenXArg,
                           int screenYArg,
                           int clientXArg,
                           int clientYArg,
                           boolean ctrlKeyArg,
                           boolean altKeyArg,
                           boolean shiftKeyArg,
                           boolean metaKeyArg,
                           short buttonArg,
                           EventTarget relatedTargetArg) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg,
                viewArg, detailArg);
    this.screenX = screenXArg;
    this.screenY = screenYArg;
    this.clientX = clientXArg;
    this.clientY = clientYArg;
    if (ctrlKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_CONTROL);
    }
    if (altKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_ALT);
    }
    if (shiftKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_SHIFT);
    }
    if (metaKeyArg) {
        modifierKeys.add(DOMKeyboardEvent.KEY_META);
    }
    this.button = buttonArg;
    this.relatedTarget = relatedTargetArg;
}
项目:feathers-sdk    文件:DOMMouseEvent.java   
/**
 * <b>DOM</b>: Initializes this event object.
 */
public void initMouseEventNS(String namespaceURIArg,
                             String typeArg,
                             boolean canBubbleArg,
                             boolean cancelableArg,
                             AbstractView viewArg,
                             int detailArg,
                             int screenXArg,
                             int screenYArg,
                             int clientXArg,
                             int clientYArg,
                             short buttonArg,
                             EventTarget relatedTargetArg,
                             String modifiersList) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  detailArg);
    screenX = screenXArg;
    screenY = screenYArg;
    clientX = clientXArg;
    clientY = clientYArg;
    button = buttonArg;
    relatedTarget = relatedTargetArg;
    modifierKeys.clear();
    String[] modifiers = split(modifiersList);
    for (int i = 0; i < modifiers.length; i++) {
        modifierKeys.add(modifiers[i]);
    }
}
项目:feathers-sdk    文件:DOMTextEvent.java   
/**
 * <b>DOM</b>: Initializes this TextEvent.
 */
public void initTextEvent(String typeArg, 
                          boolean canBubbleArg, 
                          boolean cancelableArg, 
                          AbstractView viewArg, 
                          String dataArg) {
    initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0);
    data = dataArg;
}
项目:feathers-sdk    文件:DOMTextEvent.java   
/**
 * <b>DOM</b>: Initializes this TextEvent.
 */
public void initTextEventNS(String namespaceURIArg,
                            String typeArg, 
                            boolean canBubbleArg, 
                            boolean cancelableArg, 
                            AbstractView viewArg, 
                            String dataArg) {
    initUIEventNS(namespaceURIArg,
                  typeArg,
                  canBubbleArg,
                  cancelableArg,
                  viewArg,
                  0);
    data = dataArg;
}
项目:LoboEvolution    文件:CompositionEventImpl.java   
@Override
public void initCompositionEvent(String type, boolean cancelBubble, boolean cancelable, AbstractView view,
        String data) {
    setType(type);
    setCanBubble(cancelBubble);
    setCancelable(cancelable);
    setView(view);
    this.data = data;
}