Tabnine Logo
KTable
Code IndexAdd Tabnine to your IDE (free)

How to use
KTable
in
de.kupzog.ktable

Best Java code snippets using de.kupzog.ktable.KTable (Showing top 11 results out of 315)

origin: net.java.dev.glazedlists/glazedlists_java15

/** {@inheritDoc} */
public void listChanged(ListEvent listChanges) {
  // KTable has no fine-grained event notification,
  // so each time the data changes we'll probably break
  // selection. Hopefully we can resolve this problem
  // in the future by saving selection and adjusting it
  // as the model changes
  table.redraw();
}
origin: net.java.dev.glazedlists/glazedlists_java16

private static void createIssuesTable(Shell shell) {
  BasicEventList issuesEventList = new BasicEventList();
  Composite comp1 = new Composite(shell, SWT.NONE);
  comp1.setLayout(new FillLayout());
  final KTable table = new KTable(comp1, SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL
      | SWT.H_SCROLL | SWTX.FILL_WITH_LASTCOL | SWTX.EDIT_ON_KEY);
  DefaultEventKTableModel tableModel = GlazedListsKTable.eventKTableModelWithThreadProxyList(table, issuesEventList, new IssuesTableFormat());
  table.setModel(tableModel);
  // loads issues
  final IssueLoader issueLoader = new IssueLoader(issuesEventList, new SimpleThrobber());
  issueLoader.start();
  issueLoader.setProject(Project.getProjects().get(0));
}
origin: net.java.dev.glazedlists/glazedlists_java16

/**
 * Create a new {@link EventKTableModel} that uses elements from the
 * specified {@link EventList} as rows, and the specified {@link TableFormat}
 * to divide row objects across columns.
 *
 * @param table the KTable the model is created for
 * @param source the {@link EventList}
 * @param tableFormat provides logic to divide row objects across columns.
 *      If the value implements the {@link KTableFormat} interface, those
 *      methods will be used to provide further details such as cell renderers,
 *      cell editors and row heights.
 */
public EventKTableModel(KTable table, EventList source, TableFormat tableFormat) {
  super(table, createProxyList(source, table.getDisplay()), tableFormat);
  disposeSource = (this.source != source);
}
origin: net.java.dev.glazedlists/glazedlists_java15

private static void createIssuesTable(Shell shell) {
  BasicEventList issuesEventList = new BasicEventList();
  Composite comp1 = new Composite(shell, SWT.NONE);
  comp1.setLayout(new FillLayout());
  final KTable table = new KTable(comp1, SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL
      | SWT.H_SCROLL | SWTX.FILL_WITH_LASTCOL | SWTX.EDIT_ON_KEY);
  DefaultEventKTableModel tableModel = GlazedListsKTable.eventKTableModelWithThreadProxyList(table, issuesEventList, new IssuesTableFormat());
  table.setModel(tableModel);
  // loads issues
  final IssueLoader issueLoader = new IssueLoader(issuesEventList, new SimpleThrobber());
  issueLoader.start();
  issueLoader.setProject(Project.getProjects().get(0));
}
origin: net.java.dev.glazedlists/glazedlists_java15

/**
 * Create a new {@link EventKTableModel} that uses elements from the
 * specified {@link EventList} as rows, and the specified {@link TableFormat}
 * to divide row objects across columns.
 *
 * @param table the KTable the model is created for
 * @param source the {@link EventList}
 * @param tableFormat provides logic to divide row objects across columns.
 *      If the value implements the {@link KTableFormat} interface, those
 *      methods will be used to provide further details such as cell renderers,
 *      cell editors and row heights.
 */
public EventKTableModel(KTable table, EventList source, TableFormat tableFormat) {
  super(table, createProxyList(source, table.getDisplay()), tableFormat);
  disposeSource = (this.source != source);
}
origin: com.haulmont.thirdparty/glazedlists

private static void createIssuesTable(Shell shell) {
  BasicEventList issuesEventList = new BasicEventList();
  Composite comp1 = new Composite(shell, SWT.NONE);
  comp1.setLayout(new FillLayout());
  final KTable table = new KTable(comp1, SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL
      | SWT.H_SCROLL | SWTX.FILL_WITH_LASTCOL | SWTX.EDIT_ON_KEY);
  EventKTableModel tableModel = new EventKTableModel(table, issuesEventList, new IssuesTableFormat());
  table.setModel(tableModel);
  // loads issues
  final IssueLoader issueLoader = new IssueLoader(issuesEventList, new SimpleThrobber());
  issueLoader.start();
  issueLoader.setProject(Project.getProjects().get(0));
}
origin: net.java.dev.glazedlists/glazedlists_java15

  /**
   * Create a new {@link DefaultEventKTableModel} that uses elements from the
   * specified {@link EventList} as rows, and the specified {@link TableFormat}
   * to divide row objects across columns.
   *
   * <p>The returned model is <strong>not thread-safe</strong>. Unless otherwise
   * noted, all methods are only safe to be called from the SWT event handler thread.
   * </p>
   *
   * @param table the KTable the model is created for
   * @param source the {@link EventList}
   * @param tableFormat provides logic to divide row objects across columns.
   *      If the value implements the {@link KTableFormat} interface, those
   *      methods will be used to provide further details such as cell renderers,
   *      cell editors and row heights.
   */
  public static DefaultEventKTableModel eventKTableModelWithThreadProxyList(KTable table, EventList source, TableFormat tableFormat) {
    final EventList proxySource = GlazedListsSWT.createSwtThreadProxyListWithLock(source, table.getDisplay());
    return new DefaultEventKTableModel(table, proxySource, tableFormat, true);
  }
}
origin: net.java.dev.glazedlists/glazedlists_java16

/** {@inheritDoc} */
@Override
public void listChanged(ListEvent listChanges) {
  // KTable has no fine-grained event notification,
  // so each time the data changes we'll probably break
  // selection. Hopefully we can resolve this problem
  // in the future by saving selection and adjusting it
  // as the model changes
  table.redraw();
}
origin: net.java.dev.glazedlists/glazedlists_java16

  /**
   * Create a new {@link DefaultEventKTableModel} that uses elements from the
   * specified {@link EventList} as rows, and the specified {@link TableFormat}
   * to divide row objects across columns.
   *
   * <p>The returned model is <strong>not thread-safe</strong>. Unless otherwise
   * noted, all methods are only safe to be called from the SWT event handler thread.
   * </p>
   *
   * @param table the KTable the model is created for
   * @param source the {@link EventList}
   * @param tableFormat provides logic to divide row objects across columns.
   *      If the value implements the {@link KTableFormat} interface, those
   *      methods will be used to provide further details such as cell renderers,
   *      cell editors and row heights.
   */
  public static DefaultEventKTableModel eventKTableModelWithThreadProxyList(KTable table, EventList source, TableFormat tableFormat) {
    final EventList proxySource = GlazedListsSWT.createSwtThreadProxyListWithLock(source, table.getDisplay());
    return new DefaultEventKTableModel(table, proxySource, tableFormat, true);
  }
}
origin: com.haulmont.thirdparty/glazedlists

/** {@inheritDoc} */
public void listChanged(ListEvent listChanges) {
  // KTable has no fine-grained event notification,
  // so each time the data changes we'll probably break
  // selection. Hopefully we can resolve this problem
  // in the future by saving selection and adjusting it
  // as the model changes
  table.redraw();
}
origin: com.haulmont.thirdparty/glazedlists

/**
 * Create a new {@link EventKTableModel} that uses elements from the
 * specified {@link EventList} as rows, and the specified {@link TableFormat}
 * to divide row objects across columns.
 *
 * @param tableFormat provides logic to divide row objects across columns.
 *      If the value implements the {@link KTableFormat} interface, those
 *      methods will be used to provide further details such as cell renderers,
 *      cell editors and row heights.
 */
public EventKTableModel(KTable table, EventList source, TableFormat tableFormat) {
  this.table = table;
  this.swtThreadSource = GlazedListsSWT.swtThreadProxyList(source, table.getDisplay());
  // this TableFormat supports KTable directly
  if(tableFormat instanceof KTableFormat) {
    this.kTableFormat = (KTableFormat)tableFormat;
  // adapt a regular TableFormat for use with KTable
  } else {
    this.kTableFormat = new TableFormatKTableFormat(tableFormat);
  }
  // listen for events on the SWT display thread
  swtThreadSource.addListEventListener(this);
}
de.kupzog.ktableKTable

Most used methods

  • <init>
  • getDisplay
  • redraw
  • setModel

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top PhpStorm 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