Exemplo n.º 1
0
 void releaseParent() {
   super.releaseParent();
   if (this == parent.getCaret()) parent.setCaret(null);
 }
Exemplo n.º 2
0
 void createWidget() {
   createHandle();
   if (parent.getCaret() == null) {
     parent.setCaret(this);
   }
 }
Exemplo n.º 3
0
 /**
  * Returns <code>true</code> if the receiver is visible and all of the receiver's ancestors are
  * visible and <code>false</code> otherwise.
  *
  * @return the receiver's visibility state
  * @exception SWTException
  *     <ul>
  *       <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  *       <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  *     </ul>
  *
  * @see #getVisible
  */
 public boolean isVisible() {
   checkWidget();
   return OS.UIElement_IsVisible(handle) && parent.isVisible() && hasFocus();
 }