本文整理了Java中org.eclipse.swt.widgets.Table.isVisible()
方法的一些代码示例,展示了Table.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.isVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!