org.eclipse.swt.widgets.Table.isVisible()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(180)

本文整理了Java中org.eclipse.swt.widgets.Table.isVisible()方法的一些代码示例,展示了Table.isVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.isVisible()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:isVisible

Table.isVisible介绍

暂无

代码示例

代码示例来源:origin: apache/axis2-java

public void widgetSelected(SelectionEvent e){
  updateDirtyStatus(true);//dirty
  settings.put(PREF_SERVICE_GEN_LOAD_ALL,searchDeclaredMethodsCheckBox.getSelection());
  if(table.isVisible()){
    updateTable();
  }
  
}
public void widgetDefaultSelected(SelectionEvent e){}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

/**
 *Handles a change of the line selected in the associated selector.
 */
public void handleTableSelectionChanged() {
  if (fProposalTable != null && !fProposalTable.isDisposed() && fProposalTable.isVisible()) {
    synchronized (fMutex) {
      fIsReset= true;
      fMutex.notifyAll();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 *Handles a change of the line selected in the associated selector.
 */
public void handleTableSelectionChanged() {
  if (fProposalTable != null && !fProposalTable.isDisposed() && fProposalTable.isVisible()) {
    synchronized (fMutex) {
      fIsReset= true;
      fMutex.notifyAll();
    }
  }
}

代码示例来源:origin: apache/axis2-java

public void clearPreviousData(){
  this.classNameTextBox.setText("");
  this.classNameTextBox.setEnabled(true);
  //set service name
  this.serviceNameTextBox.setText("");
  if (table.isVisible()){
    table.setVisible(false);
  }
  loadButton.setEnabled(true);
}
private void updateDirtyStatus(boolean status){

代码示例来源:origin: apache/axis2-java

private void updateDirtyStatus(boolean status){
//        dirty = status;
    if (table.isVisible()){
      table.setEnabled(!status);
    }
    setPageComplete(!status);
  }

代码示例来源:origin: apache/axis2-java

private void updateDirtyStatus(boolean status){
  dirty = status;
  if (table.isVisible()){
    table.setEnabled(!status);
  }
  setPageComplete(!status);
}

代码示例来源:origin: org.eclipse.mylyn.commons/workbench

private boolean shouldOpen() {
  return (historyTable != null && historyTable.getTable() != null && historyTable.getTable().isVisible())
      || additionalControlsComposite != null;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

boolean small = /* drawCount == 0 && */isVisible();
int length = small ? items.length + 4 : Math.max( 4, items.length * 3 / 2 );
TableItem[] newItems = new TableItem[ length ];

代码示例来源:origin: inspectIT/inspectIT

/**
 * Sets the focus to this view.
 */
public void setFocus() {
  if (tableViewer.getTable().isVisible()) {
    tableViewer.getTable().setFocus();
  } else {
    mainForm.setFocus();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

/**
 *Handles a change of the line selected in the associated selector.
 */
public void handleTableSelectionChanged() {
  if (fProposalTable != null && !fProposalTable.isDisposed() && fProposalTable.isVisible()) {
    TableItem[] selection= fProposalTable.getSelection();
    if (selection != null && selection.length > 0) {
      TableItem item= selection[0];
      Object d= item.getData();
      if (d instanceof ICompletionProposal) {
        ICompletionProposal p= (ICompletionProposal) d;
        fTimer.reset(p);
      }
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 *Handles a change of the line selected in the associated selector.
 */
public void handleTableSelectionChanged() {
  if (fProposalTable != null && !fProposalTable.isDisposed() && fProposalTable.isVisible()) {
    TableItem[] selection= fProposalTable.getSelection();
    if (selection != null && selection.length > 0) {
      TableItem item= selection[0];
      Object d= item.getData();
      if (d instanceof ICompletionProposal) {
        ICompletionProposal p= (ICompletionProposal) d;
        fTimer.reset(p);
      }
    }
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.databinding

@Override
public void run() {
  if (table != null && !table.isDisposed() && item != null
      && !item.isDisposed()) {
    if (table.isVisible()) {
      int tableHeight = table.getClientArea().height;
      int numVisibleItems = tableHeight / table.getItemHeight();
      int indexOfItem = table.indexOf(item);
      int topIndex = table.getTopIndex();
      if (indexOfItem >= topIndex
          && indexOfItem <= topIndex + numVisibleItems) {
        updateIfNecessary(indexOfItem);
        return;
      }
    }
    table.clear(table.indexOf(item));
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

if(!isVisible ()) {
  forceResize();

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

if(!isVisible ()) {
  forceResize();

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

if(!isVisible ()) {
  forceResize();

相关文章

Table类方法