本文整理汇总了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]);
}
}
示例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]);
}
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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]);
}
}
示例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;
}
示例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;
}