當前位置: 首頁>>代碼示例>>Java>>正文


Java MouseOverEvent.getSource方法代碼示例

本文整理匯總了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);
      }
   }
}
 
開發者ID:ocpsoft,項目名稱:regex-tester,代碼行數:22,代碼來源:ResultMouseOverHandler.java

示例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);
}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:10,代碼來源:BasicImageGrid.java

示例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);
}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:8,代碼來源:ImageGridPanel.java

示例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);
}
 
開發者ID:JornC,項目名稱:bitcoin-transaction-explorer,代碼行數:13,代碼來源:ContextFieldSet.java

示例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();
}
 
開發者ID:Putnami,項目名稱:putnami-web-toolkit,代碼行數:9,代碼來源:TableOrder.java

示例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);
}
 
開發者ID:treblereel,項目名稱:GwtErraiMaterialMvcExample,代碼行數:5,代碼來源:LoginPanel.java


注:本文中的com.google.gwt.event.dom.client.MouseOverEvent.getSource方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。