本文整理匯總了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();
}