congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Composite.getStyle
Code IndexAdd Tabnine to your IDE (free)

How to use
getStyle
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.getStyle (Showing top 20 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  /**
   * Tells whether this the breadcrumb is in LTR or RTL mode.
   *
   * @return <code>true</code> if the breadcrumb in left-to-right mode, <code>false</code>
   *         otherwise
   */
  private boolean isLTR() {
    return (fParentComposite.getStyle() & SWT.RIGHT_TO_LEFT) == 0;
  }
}
origin: org.eclipse.swt.cocoa.macosx/x86_64

public int getStyle () {
  /*
  * If SWT.BORDER was specified at creation time then getStyle() should answer
  * it even though it is removed for IE on win32 in checkStyle().
  */
  return super.getStyle () | (userStyle & SWT.BORDER);
}

origin: org.eclipse.swt.cocoa.macosx/x86_64

public int getStyle() {
  int style = super.getStyle();
  style &= ~(SWT.TOP | SWT.BOTTOM);
  style |= onBottom ? SWT.BOTTOM : SWT.TOP;
  style &= ~(SWT.SINGLE | SWT.MULTI);
  style |= single ? SWT.SINGLE : SWT.MULTI;
  if (borderVisible) style |= SWT.BORDER;
  style &= ~SWT.CLOSE;
  if (showClose) style |= SWT.CLOSE;
  return style;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public int getStyle () {
  /*
  * If SWT.BORDER was specified at creation time then getStyle() should answer
  * it even though it is removed for IE on win32 in checkStyle().
  */
  return super.getStyle () | (userStyle & SWT.BORDER);
}

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

@Override
public int getStyle () {
  /*
  * If SWT.BORDER was specified at creation time then getStyle() should answer
  * it even though it is removed for IE on win32 in checkStyle().
  */
  return super.getStyle () | (userStyle & SWT.BORDER);
}

origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public int getStyle() {
 int result = super.getStyle();
 result &= ~SWT.READ_ONLY;
 if( !editable ) {
  result |= SWT.READ_ONLY;
 }
 return result;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public int getStyle () {
  /*
  * If SWT.BORDER was specified at creation time then getStyle() should answer
  * it even though it is removed for IE on win32 in checkStyle().
  */
  return super.getStyle () | (userStyle & SWT.BORDER);
}

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

@Override
public int getStyle () {
  /*
  * If SWT.BORDER was specified at creation time then getStyle() should answer
  * it even though it is removed for IE on win32 in checkStyle().
  */
  return super.getStyle () | (userStyle & SWT.BORDER);
}

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

@Override
public int getStyle() {
  int style = super.getStyle();
  style &= ~(SWT.TOP | SWT.BOTTOM);
  style |= onBottom ? SWT.BOTTOM : SWT.TOP;
  style &= ~(SWT.SINGLE | SWT.MULTI);
  style |= single ? SWT.SINGLE : SWT.MULTI;
  if (borderVisible) style |= SWT.BORDER;
  style &= ~SWT.CLOSE;
  if (showClose) style |= SWT.CLOSE;
  return style;
}
/**
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  /**
   * Tells whether this the breadcrumb is in LTR or RTL mode.
   *
   * @return <code>true</code> if the breadcrumb in left-to-right mode, <code>false</code>
   *         otherwise
   */
  private boolean isLTR() {
    return (fParentComposite.getStyle() & SWT.RIGHT_TO_LEFT) == 0;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public int getStyle() {
  int style = super.getStyle();
  style |= getOrientation() == SWT.VERTICAL ? SWT.VERTICAL : SWT.HORIZONTAL;
  if ((sashStyle & SWT.SMOOTH) != 0) style |= SWT.SMOOTH;
  return style;
}
/**
origin: org.eclipse.swt.cocoa.macosx/x86_64

public int getStyle() {
  int style = super.getStyle();
  style |= getOrientation() == SWT.VERTICAL ? SWT.VERTICAL : SWT.HORIZONTAL;
  if ((sashStyle & SWT.SMOOTH) != 0) style |= SWT.SMOOTH;
  return style;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public int getStyle() {
  int style = super.getStyle();
  style |= getOrientation() == SWT.VERTICAL ? SWT.VERTICAL : SWT.HORIZONTAL;
  if ((sashStyle & SWT.SMOOTH) != 0) style |= SWT.SMOOTH;
  return style;
}
/**
origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public int getStyle() {
 int style = super.getStyle();
 style |= getOrientation() == SWT.VERTICAL ? SWT.VERTICAL : SWT.HORIZONTAL;
 if( ( sashStyle & SWT.SMOOTH ) != 0 ) {
  style |= SWT.SMOOTH;
 }
 return style;
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public int getStyle() {
  int style = super.getStyle();
  style |= getOrientation() == SWT.VERTICAL ? SWT.VERTICAL : SWT.HORIZONTAL;
  if ((sashStyle & SWT.SMOOTH) != 0) style |= SWT.SMOOTH;
  return style;
}
/**
origin: org.eclipse/org.eclipse.wst.xsd.ui

public int getStyle () {
 int style = super.getStyle ();
 style &= ~SWT.READ_ONLY;
 if (!text.getEditable()) style |= SWT.READ_ONLY; 
 return style;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public int getStyle () {
  int style = super.getStyle ();
  style &= ~SWT.READ_ONLY;
  if (!text.getEditable()) style |= SWT.READ_ONLY;
  return style;
}
/**
origin: org.eclipse.swt.cocoa.macosx/x86_64

public int getStyle () {
  int style = super.getStyle ();
  style &= ~SWT.READ_ONLY;
  if (!text.getEditable()) style |= SWT.READ_ONLY; 
  return style;
}
/**
origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public int getStyle() {
 checkWidget();
 int result = super.getStyle();
 result &= ~( SWT.TOP | SWT.BOTTOM );
 result |= onBottom ? SWT.BOTTOM : SWT.TOP;
 result &= ~( SWT.SINGLE | SWT.MULTI );
 result |= single ? SWT.SINGLE : SWT.MULTI;
 if( borderLeft != 0 ) {
  result |= SWT.BORDER;
 }
 return result;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Tells whether this the breadcrumb is in LTR mode or RTL mode.  Or whether the breadcrumb
 * is on the right-side status coolbar, which has the same effect on layout.
 *
 * @return <code>true</code> if the breadcrumb in left-to-right mode, <code>false</code>
 *         otherwise
 */
private boolean isLeft() {
  return (fParentComposite.getStyle() & SWT.RIGHT_TO_LEFT) == 0 &&
    (fParent.getViewer().getStyle() & SWT.RIGHT) == 0;
}
org.eclipse.swt.widgetsCompositegetStyle

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now