本文整理汇总了Java中com.google.gwt.event.dom.client.MouseOutEvent.getSource方法的典型用法代码示例。如果您正苦于以下问题:Java MouseOutEvent.getSource方法的具体用法?Java MouseOutEvent.getSource怎么用?Java MouseOutEvent.getSource使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.event.dom.client.MouseOutEvent
的用法示例。
在下文中一共展示了MouseOutEvent.getSource方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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();
}
示例2: 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();
}
}
}
示例3: onSocialButtonMouseOutHandler
import com.google.gwt.event.dom.client.MouseOutEvent; //导入方法依赖的package包/类
private void onSocialButtonMouseOutHandler(MouseOutEvent event) {
MaterialImage source = (MaterialImage)event.getSource();
source.setBackgroundColor(Color.AMBER);
}
示例4: onMouseOut
import com.google.gwt.event.dom.client.MouseOutEvent; //导入方法依赖的package包/类
public void onMouseOut(MouseOutEvent event) {
Widget widget = (Widget)event.getSource();
DOM.setStyleAttribute(widget.getElement(), "backgroundColor", "#ddd");
DOM.setStyleAttribute(widget.getElement(), "border", "1px solid #ddd");
mouseOverTimer.cancel();
}