Tabnine Logo
Composite.hasBorder
Code IndexAdd Tabnine to your IDE (free)

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

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

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

void createHandle () {
  state |= CANVAS;
  boolean scrolled = (style & (SWT.V_SCROLL | SWT.H_SCROLL)) != 0;
  if (!scrolled)  state |= THEME_BACKGROUND;
  NSRect rect = new NSRect();
  if (scrolled || hasBorder ()) {
    NSScrollView scrollWidget = (NSScrollView)new SWTScrollView().alloc();
    scrollWidget.initWithFrame (rect);
    scrollWidget.setDrawsBackground(false);
    if ((style & SWT.H_SCROLL) != 0) scrollWidget.setHasHorizontalScroller(true);
    if ((style & SWT.V_SCROLL) != 0) scrollWidget.setHasVerticalScroller(true);
    scrollWidget.setBorderType(hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder);
    scrollView = scrollWidget;
  }
  NSView widget = (NSView)new SWTCanvasView().alloc();
  widget.initWithFrame (rect);
//    widget.setFocusRingType(OS.NSFocusRingTypeExterior);
  view = widget;
  if (scrollView != null) {
    NSClipView contentView = scrollView.contentView();
    contentView.setAutoresizesSubviews(true);
    view.setAutoresizingMask(OS.NSViewWidthSizable | OS.NSViewHeightSizable);
  }
}

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

int vsp = (style & SWT.V_SCROLL) != 0 ? OS.GTK_POLICY_ALWAYS : OS.GTK_POLICY_NEVER;
OS.gtk_scrolled_window_set_policy (scrolledHandle, hsp, vsp);
if (hasBorder ()) {
  OS.gtk_scrolled_window_set_shadow_type (scrolledHandle, OS.GTK_SHADOW_ETCHED_IN);
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

int vsp = (style & SWT.V_SCROLL) != 0 ? OS.GTK_POLICY_ALWAYS : OS.GTK_POLICY_NEVER;
OS.gtk_scrolled_window_set_policy (scrolledHandle, hsp, vsp);
if (hasBorder ()) {
  OS.gtk_scrolled_window_set_shadow_type (scrolledHandle, OS.GTK_SHADOW_ETCHED_IN);
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

int vsp = (style & SWT.V_SCROLL) != 0 ? OS.GTK_POLICY_ALWAYS : OS.GTK_POLICY_NEVER;
OS.gtk_scrolled_window_set_policy (scrolledHandle, hsp, vsp);
if (hasBorder ()) {
  OS.gtk_scrolled_window_set_shadow_type (scrolledHandle, OS.GTK_SHADOW_ETCHED_IN);
org.eclipse.swt.widgetsCompositehasBorder

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

  • Start an intent from android
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Best plugins for Eclipse
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