当前位置: 首页>>代码示例>>Java>>正文


Java AbstractView类代码示例

本文整理汇总了Java中org.w3c.dom.views.AbstractView的典型用法代码示例。如果您正苦于以下问题:Java AbstractView类的具体用法?Java AbstractView怎么用?Java AbstractView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractView类属于org.w3c.dom.views包,在下文中一共展示了AbstractView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initKeyboardEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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]);
    }
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:32,代码来源:DOMKeyboardEvent.java

示例2: initKeyboardEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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]);
    }
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:39,代码来源:DOMKeyboardEvent.java

示例3: initWheelEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
@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;

}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:21,代码来源:WheelEventImpl.java

示例4: initMouseEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
@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);

}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:23,代码来源:MouseEventImpl.java

示例5: initMouseEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
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);
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:17,代码来源:MouseEventImpl.java

示例6: initKeyboardEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
@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);
}
 
开发者ID:ITman1,项目名称:ScriptBox,代码行数:17,代码来源:KeyboardEvent.java

示例7: getDefaultView

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:13,代码来源:AbstractStylableDocument.java

示例8: initWheelEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:27,代码来源:SVGOMWheelEvent.java

示例9: initUIEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:14,代码来源:DOMUIEvent.java

示例10: initTimeEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:11,代码来源:DOMTimeEvent.java

示例11: initTimeEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:12,代码来源:DOMTimeEvent.java

示例12: initMouseEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:70,代码来源:DOMMouseEvent.java

示例13: initMouseEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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]);
    }
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:35,代码来源:DOMMouseEvent.java

示例14: initTextEvent

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:12,代码来源:DOMTextEvent.java

示例15: initTextEventNS

import org.w3c.dom.views.AbstractView; //导入依赖的package包/类
/**
 * <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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:18,代码来源:DOMTextEvent.java


注:本文中的org.w3c.dom.views.AbstractView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。