本文整理汇总了Java中com.google.gwt.event.dom.client.MouseOutEvent类的典型用法代码示例。如果您正苦于以下问题:Java MouseOutEvent类的具体用法?Java MouseOutEvent怎么用?Java MouseOutEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MouseOutEvent类属于com.google.gwt.event.dom.client包,在下文中一共展示了MouseOutEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onMouseOut
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
public void onMouseOut(MouseOutEvent event) {
if (service.getIndexStateService().isEnabled(index)) {
for (MouseOutHandler handler : outHandlers) {
handler.onMouseOut(event);
}
}
}
示例2: onMouseOut
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
@Override
public void onMouseOut(MouseOutEvent event) {
if (controller != null) {
controller.onMouseOut(event);
if (!controller.isBusy()) {
panController.onMouseOut(event);
}
} else {
panController.onMouseOut(event);
}
}
示例3: ConsoleDisplay
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
public ConsoleDisplay() {
super(new AbsolutePanel(), CLASS_NAME);
getElement().setId("consoleDisplayWrapper");
// Create display panel where screen is actually loaded
display = new AbsolutePanel();
display.addStyleName("portrait");
display.getElement().setId("consoleDisplay");
// Add display to the wrapper
((AbsolutePanel)getWidget()).add(display, 0, 0);
// Add move handlers which are only used on this display component
if(BrowserUtils.isMobile) {
this.addDomHandler(this, TouchMoveEvent.getType());
} else {
this.addDomHandler(this, MouseMoveEvent.getType());
this.addDomHandler(this, MouseOutEvent.getType());
}
}
示例4: registerHandlers
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
private void registerHandlers() {
if(BrowserUtils.isMobile) {
registerHandler(this.addDomHandler(this, TouchStartEvent.getType()));
registerHandler(this.addDomHandler(this, TouchEndEvent.getType()));
} else {
registerHandler(this.addDomHandler(this, MouseDownEvent.getType()));
registerHandler(this.addDomHandler(this, MouseUpEvent.getType()));
registerHandler(this.addDomHandler(this, MouseOutEvent.getType()));
}
registerHandler(this.addHandler(this, DragStartEvent.getType()));
registerHandler(this.addHandler(this, DragMoveEvent.getType()));
registerHandler(this.addHandler(this, DragEndEvent.getType()));
registerHandler(this.addHandler(this, DragCancelEvent.getType()));
}
示例5: createSystemTabItem
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
private TabBarItemComponent createSystemTabItem(EnumSystemTabItemType itemType) {
TabBarItem tabBarItem = null;
TabBarItemComponent component = null;
AutoBean<TabBarItem> TabBarItemBean = AutoBeanService.getInstance().getFactory().tabBarItem();
tabBarItem = TabBarItemBean.as();
switch (itemType) {
case PREVIOUS:
tabBarItem.setName("<");
break;
case NEXT:
tabBarItem.setName(">");
break;
}
component = new TabBarItemComponent(tabBarItem, itemType);
// Add handlers as not created by usual mechanism
if(BrowserUtils.isMobile) {
systemTabHandlers.add(component.addDomHandler(this, TouchStartEvent.getType()));
systemTabHandlers.add(component.addDomHandler(this, TouchEndEvent.getType()));
} else {
systemTabHandlers.add(component.addDomHandler(this, MouseDownEvent.getType()));
systemTabHandlers.add(component.addDomHandler(this, MouseUpEvent.getType()));
systemTabHandlers.add(component.addDomHandler(this, MouseOutEvent.getType()));
}
systemTabHandlers.add(component.addHandler(component, TapEvent.getType()));
return component;
}
示例6: ConsoleButtonImpl
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
@Inject
public ConsoleButtonImpl(
ButtonResources resources,
TooltipWidget tooltip,
@NotNull @Assisted String prompt,
@NotNull @Assisted SVGResource image) {
this.resources = resources;
this.tooltip = tooltip;
this.tooltip.setDescription(prompt);
resources.buttonCss().ensureInjected();
initWidget(UI_BINDER.createAndBindUi(this));
icon = new SVGImage(image);
icon.getElement().setAttribute("class", resources.buttonCss().mainButtonIcon());
setCheckedStatus(false);
addDomHandler(this, ClickEvent.getType());
addDomHandler(this, MouseOutEvent.getType());
addDomHandler(this, MouseOverEvent.getType());
}
示例7: onMouseOut
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
public void onMouseOut(MouseOutEvent event) {
Widget widget = (Widget) event.getSource();
if (doHilite) {
GwtUtil.setStyle(widget, "backgroundColor", normalBackground);
GwtUtil.setStyle(widget, "border", "1px solid " + normalBackground);
}
mouseOverTimer.cancel();
}
示例8: setMouseExited
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
public void setMouseExited(JavaScriptObject aValue) {
if (mouseExited != aValue) {
if (mouseOutReg != null) {
mouseOutReg.removeHandler();
mouseOutReg = null;
}
mouseExited = aValue;
if (mouseExited != null) {
MouseOutHandler handler = new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
if (mouseExited != null) {
event.stopPropagation();
executeEvent(mouseExited, EventsPublisher.publish(event));
}
}
};
if (component instanceof Widget) {
mouseOutReg = ((Widget) component).addDomHandler(handler, MouseOutEvent.getType());
} else if (component instanceof HasMouseOutHandlers) {
mouseOutReg = ((HasMouseOutHandlers) component).addMouseOutHandler(handler);
}
}
}
}
示例9: bindHandlers
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
private void bindHandlers() {
if (this.widget == null) {
return;
}
this.registrations.removeHandler();
switch (this.getTrigger()) {
case FOCUS:
this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, FocusEvent.getType()));
this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, BlurEvent.getType()));
break;
case HOVER:
this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, MouseOverEvent.getType()));
this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, MouseOutEvent.getType()));
break;
case MANUAL:
break;
default:
break;
}
}
示例10: setAutoPlay
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
public void setAutoPlay(boolean autoPlay) {
this.autoPlay = autoPlay;
this.handlerRegistrations.removeHandler();
if (autoPlay) {
this.autoPlayTimer.scheduleRepeating(this.timerDelay);
this.handlerRegistrations.add(this.addDomHandler(this, MouseOverEvent.getType()));
this.handlerRegistrations.add(this.addDomHandler(this, MouseOutEvent.getType()));
} else {
this.autoPlayTimer.cancel();
}
}
示例11: addHandlers
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
@Override
public void addHandlers(MouseOverHandler mouseOverHandler, MouseOutHandler mouseOutHandler) {
// TODO(user): Investigate why the event propagation does not work and
// remove unnecessary handler setup.
addDomHandler(mouseOverHandler, MouseOverEvent.getType());
addDomHandler(mouseOutHandler, MouseOutEvent.getType());
enclosingBox.addMouseOverHandler(mouseOverHandler);
gadgetFrame.addMouseOverHandler(mouseOverHandler);
iframeDiv.addMouseOverHandler(mouseOverHandler);
gadgetIframe.addHandler(mouseOverHandler, MouseOverEvent.getType());
metaButtons.addMouseOverHandler(mouseOverHandler);
metaLeft.addMouseOverHandler(mouseOverHandler);
metaButtonsPanel.addMouseOverHandler(mouseOverHandler);
metaRight.addMouseOverHandler(mouseOverHandler);
menu.getButton().addMouseOverHandler(mouseOverHandler);
}
示例12: updateEventCaches
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
/**
* Update event caches to keep track of the latest event of each instance.
* @param the event to cache
*/
private void updateEventCaches(Event<?> event){
if(event == null){
return;
}
if(event instanceof DoubleClickEvent){
doubleClickEvent = new org.gz.gwt.mousemanager.client.event.DoubleClickEvent((DoubleClickEvent)event, target);
}
if(event instanceof ClickEvent){
clickEvent = new org.gz.gwt.mousemanager.client.event.ClickEvent((ClickEvent)event, target);
}
if(event instanceof MouseUpEvent){
mouseUpEvent = new org.gz.gwt.mousemanager.client.event.MouseUpEvent((MouseUpEvent)event, target);
}
if(event instanceof MouseDownEvent){
mouseDownEvent = new org.gz.gwt.mousemanager.client.event.MouseDownEvent((MouseDownEvent)event, target);
}
if(event instanceof MouseMoveEvent){
mouseMoveEvent = new org.gz.gwt.mousemanager.client.event.MouseMoveEvent((MouseMoveEvent)event, target);
}
if(event instanceof MouseOverEvent){
mouseOverEvent = new org.gz.gwt.mousemanager.client.event.MouseOverEvent((MouseOverEvent)event, target);
}
if(event instanceof MouseOutEvent){
mouseOutEvent = new org.gz.gwt.mousemanager.client.event.MouseOutEvent((MouseOutEvent)event, target);
}
if(event instanceof MouseWheelEvent){
mouseWheelEvent = new org.gz.gwt.mousemanager.client.event.MouseWheelEvent((MouseWheelEvent)event, target);
}
if(event instanceof ContextMenuEvent){
contextMenuEvent = new org.gz.gwt.mousemanager.client.event.ContextMenuEvent();
}
}
示例13: onMouseOut
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
public void onMouseOut(final MouseOutEvent event)
{
HighlightedResult widget = (HighlightedResult) event.getSource();
HighlightedGroup group = widget.getHighlightedGroup();
widget.setMouseOverEvent(null);
if (group.getGroup() != null)
{
area.setSelectionRange(0, 0);
Widget parent = widget.getParent();
while (parent instanceof HighlightedResult)
{
MouseOverEvent mouseOverEvent = ((HighlightedResult) parent).getMouseOverEvent();
if (mouseOverEvent != null)
{
final Widget finalParent = parent;
onMouseOver(new MouseOverEvent() {
@Override
public Object getSource()
{
return finalParent;
}
});
break;
}
else
parent = parent.getParent();
}
}
}
示例14: getMouseOutHandler
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
private MouseOutHandler getMouseOutHandler(final Anchor anchor) {
return new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
anchor.removeStyleName(ThemeStyles.get().style().borderBottom());
}
};
}
示例15: registerHandlers
import com.google.gwt.event.dom.client.MouseOutEvent; //导入依赖的package包/类
private void registerHandlers() {
if(BrowserUtils.isMobile) {
registerHandler(this.addDomHandler(this, TouchStartEvent.getType()));
registerHandler(this.addDomHandler(this, TouchEndEvent.getType()));
registerHandler(this.addDomHandler(this, TouchMoveEvent.getType()));
} else {
registerHandler(this.addDomHandler(this, MouseDownEvent.getType()));
registerHandler(this.addDomHandler(this, MouseUpEvent.getType()));
registerHandler(this.addDomHandler(this, MouseOutEvent.getType()));
registerHandler(this.addDomHandler(this, MouseMoveEvent.getType()));
}
}