本文整理匯總了Java中com.google.gwt.event.dom.client.MouseOverEvent.getSource方法的典型用法代碼示例。如果您正苦於以下問題:Java MouseOverEvent.getSource方法的具體用法?Java MouseOverEvent.getSource怎麽用?Java MouseOverEvent.getSource使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.event.dom.client.MouseOverEvent
的用法示例。
在下文中一共展示了MouseOverEvent.getSource方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onMouseOver
import com.google.gwt.event.dom.client.MouseOverEvent; //導入方法依賴的package包/類
public void onMouseOver(final MouseOverEvent event)
{
HighlightedResult widget = (HighlightedResult) event.getSource();
HighlightedGroup group = widget.getHighlightedGroup();
if (group.getGroup() != null)
{
widget.setMouseOverEvent(event);
if (!hasHighlightedChildren(widget))
{
area.setSelectionRange(0, 0);
int start = group.getGroup().getRegexFragment().getStart();
int length = group.getGroup().getRegexFragment().getCaptured().length + 2;
if (start + length > area.getText().length())
length = area.getText().length() - start;
area.setSelectionRange(start, length);
}
}
}
示例2: onMouseOver
import com.google.gwt.event.dom.client.MouseOverEvent; //導入方法依賴的package包/類
public void onMouseOver(MouseOverEvent event) {
Widget widget = (Widget) event.getSource();
if (doHilite) {
GwtUtil.setStyle(widget, "backgroundColor", hiliteBackground);
GwtUtil.setStyle(widget, "border", "1px solid " + hiliteBorder);
}
BasicImageGrid.this.setMouseOverAt(widget);
mouseOverTimer.schedule(1500);
}
示例3: onMouseOver
import com.google.gwt.event.dom.client.MouseOverEvent; //導入方法依賴的package包/類
public void onMouseOver(MouseOverEvent event) {
Widget widget = (Widget)event.getSource();
DOM.setStyleAttribute(widget.getElement(), "backgroundColor", "#bde");
DOM.setStyleAttribute(widget.getElement(), "border", "1px solid #abc");
ImageGridPanel.this.setMouseOverAt(widget);
mouseOverTimer.schedule(1500);
}
示例4: onMouseOver
import com.google.gwt.event.dom.client.MouseOverEvent; //導入方法依賴的package包/類
@SuppressWarnings("unchecked")
@Override
public void onMouseOver(final MouseOverEvent event) {
popupHideTimer.cancel();
if (popupShowTimer != null) {
popupShowTimer.cancel();
}
popupShowTimer = new TypedTimer((ContextField<T>) event.getSource());
popupShowTimer.schedule(popupPanel.isShowing() ? 0 : POPUP_SHOW_DELAY);
}
示例5: onMouseOver
import com.google.gwt.event.dom.client.MouseOverEvent; //導入方法依賴的package包/類
@Override
public void onMouseOver(MouseOverEvent event) {
if (event.getNativeButton() == NativeEvent.BUTTON_LEFT) {
this.hoverRow = (TableRow<T>) event.getSource();
this.body.switchRows(this.hoverRow, this.selectedRow);
}
event.preventDefault();
}
示例6: onSocialButtonMouseOverHandler
import com.google.gwt.event.dom.client.MouseOverEvent; //導入方法依賴的package包/類
private void onSocialButtonMouseOverHandler(MouseOverEvent event ) {
MaterialImage source = (MaterialImage)event.getSource();
source.setBackgroundColor(Color.ORANGE);
}