javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Widget.java
changeset 23 98ccebc37403
parent 21 2a9601315dfc
child 35 85266cc22c7f
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
    54     
    54     
    55     int style, state;
    55     int style, state;
    56     Display display;
    56     Display display;
    57     EventTable eventTable;
    57     EventTable eventTable;
    58     Object data;
    58     Object data;
    59 
       
    60     PackageProxy packageProxy;
    59     PackageProxy packageProxy;
    61     
    60     
    62 static final int checkBits (int style, int int0, int int1, int int2, int int3, int int4, int int5) {
    61 static final int checkBits (int style, int int0, int int1, int int2, int int3, int int4, int int5) {
    63     int mask = int0 | int1 | int2 | int3 | int4 | int5;
    62     int mask = int0 | int1 | int2 | int3 | int4 | int5;
    64     if ((style & mask) == 0) style |= int0;
    63     if ((style & mask) == 0) style |= int0;
   537 final boolean hooks (int eventType) {
   536 final boolean hooks (int eventType) {
   538     if (eventTable == null) return false;
   537     if (eventTable == null) return false;
   539     return eventTable.hooks (eventType);
   538     return eventTable.hooks (eventType);
   540 }
   539 }
   541 
   540 
       
   541 
       
   542 boolean isInternalWidget_pp() {
       
   543     return (state & WidgetState.INTERNAL) != 0;
       
   544 }
       
   545 
   542 /**
   546 /**
   543  * Returns <code>true</code> if the widget has been disposed,
   547  * Returns <code>true</code> if the widget has been disposed,
   544  * and <code>false</code> otherwise.
   548  * and <code>false</code> otherwise.
   545  * <p>
   549  * <p>
   546  * This method gets the dispose state for the widget.
   550  * This method gets the dispose state for the widget.
  1218             }
  1222             }
  1219         }
  1223         }
  1220     }
  1224     }
  1221 }
  1225 }
  1222 
  1226 
       
  1227 void setWidgetInternalOnly_pp(){
       
  1228     state|=WidgetState.INTERNAL;
       
  1229 }
       
  1230 
  1223 final void setPackageProxy(Object packageProxy) {
  1231 final void setPackageProxy(Object packageProxy) {
  1224     // If the subclass is in another package then it provides a proxy object 
  1232     // If the subclass is in another package then it provides a proxy object 
  1225     // which implements the methods that "override" the package private
  1233     // which implements the methods that "override" the package private
  1226     // implementations from this package. We must call the proxy object
  1234     // implementations from this package. We must call the proxy object
  1227     // implementations if they are provided. 
  1235     // implementations if they are provided.