Codota Logo
Item.updateTextDirection
Code IndexAdd Codota to your IDE (free)

How to use
updateTextDirection
method
in
org.eclipse.swt.widgets.Item

Best Java code snippets using org.eclipse.swt.widgets.Item.updateTextDirection (Showing top 6 results out of 315)

  • Common ways to obtain Item
private void myMethod () {
Item i =
  • Codota Icon(Item) event.item
  • Codota IconTreeViewer treeViewer;treeViewer.scrollDown(int1, int2)
  • Codota IconTreeViewer treeViewer;treeViewer.scrollUp(int1, int2)
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
boolean updateTextDirection(int textDirection) {
  /* AUTO is handled by super */
  if (super.updateTextDirection(textDirection) && text.length() != 0) {
    _setText (text);
    return true;
  }
  return false;
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/**
 * Sets the receiver's text.
 * <p>
 * Note: If control characters like '\n', '\t' etc. are used
 * in the string, then the behavior is platform dependent.
 * </p>
 * @param string the new text
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the text is null</li>
 * </ul>
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void setText (String string) {
  checkWidget ();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  text = string;
  if ((state & HAS_AUTO_DIRECTION) != 0) {
    updateTextDirection (AUTO_TEXT_DIRECTION);
  }
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/**
 * Sets the receiver's text.
 * <p>
 * Note: If control characters like '\n', '\t' etc. are used
 * in the string, then the behavior is platform dependent.
 * </p>
 * @param string the new text
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the text is null</li>
 * </ul>
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void setText (String string) {
  checkWidget ();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  text = string;
  if ((state & HAS_AUTO_DIRECTION) != 0) {
    updateTextDirection (AUTO_TEXT_DIRECTION);
  }
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
 * Sets the receiver's text.
 * <p>
 * Note: If control characters like '\n', '\t' etc. are used
 * in the string, then the behavior is platform dependent.
 * </p>
 * @param string the new text
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the text is null</li>
 * </ul>
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void setText (String string) {
  checkWidget ();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  text = string;
  if ((state & HAS_AUTO_DIRECTION) != 0) {
    updateTextDirection (AUTO_TEXT_DIRECTION);
  }
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
 * Sets the receiver's text.
 * <p>
 * Note: If control characters like '\n', '\t' etc. are used
 * in the string, then the behavior is platform dependent.
 * </p>
 * @param string the new text
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the text is null</li>
 * </ul>
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void setText (String string) {
  checkWidget ();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  text = string;
  if ((state & HAS_AUTO_DIRECTION) != 0) {
    updateTextDirection (AUTO_TEXT_DIRECTION);
  }
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
boolean updateTextDirection(int textDirection) {
  /* AUTO is handled by super */
  if (super.updateTextDirection(textDirection) && OS.IsUnicode) {
    int index = parent.indexOf (this);
    if (index != -1) {
      if ((textDirection & SWT.RIGHT_TO_LEFT) != 0) {
        _setText(index, RLE + text);
        return true;
      } else if ((textDirection & SWT.LEFT_TO_RIGHT) != 0) {
        _setText(index, LRE + text);
        return true;
      }
    }
  }
  return false;
}

org.eclipse.swt.widgetsItemupdateTextDirection

Popular methods of Item

  • getData
  • setImage
    Sets the receiver's image to the argument, which may be null indicating that no image should be disp
  • getText
    Returns the receiver's text, which will be an empty string if it has never been set.
  • setText
    Sets the receiver's text. Note: If control characters like '\n', '\t' etc. are used in the string, t
  • dispose
  • isDisposed
  • setData
  • getImage
    Returns the receiver's image if it has one, or null if it does not.
  • checkWidget
  • getNameText
  • releaseParent
  • releaseWidget
  • releaseParent,
  • releaseWidget,
  • reskinChildren,
  • error,
  • releaseChildren,
  • releaseHandle,
  • deregister,
  • destroyWidget,
  • register,
  • release

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now