congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TableViewerFocusCellManager.columnInVisibleArea
Code IndexAdd Tabnine to your IDE (free)

How to use
columnInVisibleArea
method
in
org.eclipse.jface.viewers.TableViewerFocusCellManager

Best Java code snippets using org.eclipse.jface.viewers.TableViewerFocusCellManager.columnInVisibleArea (Showing top 3 results out of 315)

origin: org.eclipse.rap/org.eclipse.rap.jface

ViewerCell getInitialFocusCell() {
  Table table = (Table) getViewer().getControl();
  if (table.isDisposed() || table.getItemCount() == 0) {
   return null;
  }
  TableItem topItem = table.getItem(table.getTopIndex());
  if (topItem != null && !topItem.isDisposed()) {
    final ViewerRow aViewerRow = getViewer().getViewerRowFromItem(topItem);
    if (table.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = table.getClientArea();
    for (int i = 0; i < table.getColumnCount(); i++) {
      if (aViewerRow.getWidth(i) > 0 && columnInVisibleArea(clientArea,aViewerRow,i))
        return aViewerRow.getCell(i);
      }
    }
  return null;
}

origin: org.eclipse.platform/org.eclipse.jface

@Override
ViewerCell getInitialFocusCell() {
  Table table = (Table) getViewer().getControl();
  if (!table.isDisposed() && table.getItemCount() > 0
      && !table.getItem(table.getTopIndex()).isDisposed()) {
    final ViewerRow aViewerRow = getViewer().getViewerRowFromItem(
        table.getItem(table.getTopIndex()));
    if (table.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = table.getClientArea();
    for (int i = 0; i < table.getColumnCount(); i++) {
      if (aViewerRow.getWidth(i) > 0 && columnInVisibleArea(clientArea,aViewerRow,i))
        return aViewerRow.getCell(i);
      }
    }
  return null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
ViewerCell getInitialFocusCell() {
  Table table = (Table) getViewer().getControl();
  if (!table.isDisposed() && table.getItemCount() > 0
      && !table.getItem(table.getTopIndex()).isDisposed()) {
    final ViewerRow aViewerRow = getViewer().getViewerRowFromItem(
        table.getItem(table.getTopIndex()));
    if (table.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = table.getClientArea();
    for (int i = 0; i < table.getColumnCount(); i++) {
      if (aViewerRow.getWidth(i) > 0 && columnInVisibleArea(clientArea,aViewerRow,i))
        return aViewerRow.getCell(i);
      }
    }
  return null;
}
org.eclipse.jface.viewersTableViewerFocusCellManagercolumnInVisibleArea

Popular methods of TableViewerFocusCellManager

  • getViewer
  • setFocusCell
  • <init>
    Create a new manager

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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