Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 314040
Collapse All | Expand All

(-)js/org/eclipse/swt/LabelUtil.js (-16 lines)
Lines 22-28 Link Here
22
    APPEARANCE : "label-wrapper",
22
    APPEARANCE : "label-wrapper",
23
    
23
    
24
    initialize : function( widget ) {
24
    initialize : function( widget ) {
25
26
      widget.setHorizontalChildrenAlign( qx.constant.Layout.ALIGN_LEFT );
25
      widget.setHorizontalChildrenAlign( qx.constant.Layout.ALIGN_LEFT );
27
      widget.setVerticalChildrenAlign( qx.constant.Layout.ALIGN_TOP );
26
      widget.setVerticalChildrenAlign( qx.constant.Layout.ALIGN_TOP );
28
      widget.setAppearance( org.eclipse.swt.LabelUtil.APPEARANCE );
27
      widget.setAppearance( org.eclipse.swt.LabelUtil.APPEARANCE );
Lines 38-64 Link Here
38
      widget.setLabel( "" );
37
      widget.setLabel( "" );
39
      // end workaround
38
      // end workaround
40
      widget.setHideFocus( true );
39
      widget.setHideFocus( true );
41
      // track DOM insertion state
42
      widget.addEventListener( "beforeRemoveDom",
43
                               org.eclipse.swt.LabelUtil._onRemoveDom );
44
      widget.addEventListener( "insertDom",
45
                               org.eclipse.swt.LabelUtil._onInsertDom );
46
      widget.addEventListener( "mouseover",
40
      widget.addEventListener( "mouseover",
47
                               org.eclipse.swt.LabelUtil._onMouseOver );
41
                               org.eclipse.swt.LabelUtil._onMouseOver );
48
      widget.addEventListener( "mouseout",
42
      widget.addEventListener( "mouseout",
49
                               org.eclipse.swt.LabelUtil._onMouseOut );
43
                               org.eclipse.swt.LabelUtil._onMouseOut );
50
    },
44
    },
51
    
45
    
52
    _onRemoveDom : function( evt ) {
53
      var widget = evt.getTarget();
54
      widget._isInDOM = false;
55
    },
56
    
57
    _onInsertDom : function( evt ) {
58
      var widget = evt.getTarget();
59
      widget._isInDOM = true;
60
    },
61
    
62
    setWrap : function( widget, wrap ) {
46
    setWrap : function( widget, wrap ) {
63
      widget.getLabelObject().setWrap( wrap );
47
      widget.getLabelObject().setWrap( wrap );
64
    },
48
    },

Return to bug 314040