本文整理了Java中org.eclipse.swt.widgets.Button.setEnabled()
方法的一些代码示例,展示了Button.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setEnabled()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:setEnabled
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void handleEvent( Event event ) {
boolean selection = wPreserveMemory.getSelection();
wSortedList.setEnabled( selection );
wIntegerPair.setEnabled( selection );
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void setFlags() {
wbDirectory.setEnabled( false );
// wDirectory.setEnabled(rep!=null);
wlDirectory.setEnabled( false );
// DatabaseMeta dbMeta = jobMeta.findDatabase(wLogconnection.getText());
// wbLogconnection.setEnabled(dbMeta!=null);
// wlLogSizeLimit.setEnabled(wLogfield.getSelection());
// wLogSizeLimit.setEnabled(wLogfield.getSelection());
}
代码示例来源:origin: pentaho/pentaho-kettle
private void enableFileSettings() {
boolean active =
!wYAMLStreamField.getSelection() || ( wYAMLStreamField.getSelection() && wYAMLIsAFile.getSelection() );
wlIgnoreEmptyFile.setEnabled( active );
wIgnoreEmptyFile.setEnabled( active );
wldoNotFailIfNoFile.setEnabled( active );
wdoNotFailIfNoFile.setEnabled( active );
}
代码示例来源:origin: pentaho/pentaho-kettle
protected void setFlags() {
// In case there are newlines in fields, we can't load data in parallel
//
boolean parallelPossible = !wNewlinePossible.getSelection();
wlRunningInParallel.setEnabled( parallelPossible );
wRunningInParallel.setEnabled( parallelPossible );
if ( !parallelPossible ) {
wRunningInParallel.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void updateAskButton() {
if ( wReplaceDB.getSelection() ) {
wAskReplaceDB.setEnabled( true );
} else {
wAskReplaceDB.setSelection( false );
wAskReplaceDB.setEnabled( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshIncludeCatalog() {
if ( !Utils.isEmpty( wschemaname.getText() ) ) {
wincludeCatalog.setSelection( false );
wlincludeCatalog.setEnabled( false );
wincludeCatalog.setEnabled( false );
} else {
wlincludeCatalog.setEnabled( true );
wincludeCatalog.setEnabled( true );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
protected void enableParentFolder() {
wlCreateParentFolder.setEnabled( !wFileIsCommand.getSelection() );
wCreateParentFolder.setEnabled( !wFileIsCommand.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void enableExtension() {
wProtectSheet.setEnabled( wExtension.getSelectionIndex() == 0 );
if ( wExtension.getSelectionIndex() == 0 ) {
wPassword.setEnabled( wProtectSheet.getSelection() );
wProtectedBy.setEnabled( wProtectSheet.getSelection() );
wStreamData.setEnabled( false );
} else {
wPassword.setEnabled( false );
wProtectedBy.setEnabled( false );
wStreamData.setEnabled( true );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setProtocol() {
boolean enable = !LdapProtocol.getName().equals( wProtocol.getText() );
wlsetTrustStore.setEnabled( enable );
wsetTrustStore.setEnabled( enable );
setTrustStore();
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setDateTime() {
boolean enable = wAddDate.getSelection() || wAddTime.getSelection() || wSpecifyFormat.getSelection();
wlAddOriginalTimestamp.setEnabled( enable );
wAddOriginalTimestamp.setEnabled( enable );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
wJsonField.setEnabled( wIsJson.getSelection() );
wFields.setEnabled( !wIsJson.getSelection() );
wFields.setVisible( !wIsJson.getSelection() );
wGet.setEnabled( !wIsJson.getSelection() );
model.setChanged();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
private void SpecifyCompareOnlyActivate() {
wWildcard.setEnabled( wCompareOnly.getSelectionIndex() == 3 );
wlWildcard.setEnabled( wCompareOnly.getSelectionIndex() == 3 );
wCompareFileContent.setEnabled( wCompareOnly.getSelectionIndex() != 2 );
wlCompareFileContent.setEnabled( wCompareOnly.getSelectionIndex() != 2 );
wCompareFileSize.setEnabled( wCompareOnly.getSelectionIndex() != 2 );
wlCompareFileSize.setEnabled( wCompareOnly.getSelectionIndex() != 2 );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void CheckIncludeSubFolders() {
wlMoveEmptyFolders.setEnabled( wIncludeSubfolders.getSelection() );
wMoveEmptyFolders.setEnabled( wIncludeSubfolders.getSelection() );
wlDoNotKeepFolderStructure.setEnabled( wIncludeSubfolders.getSelection() );
wDoNotKeepFolderStructure.setEnabled( wIncludeSubfolders.getSelection() );
if ( !wIncludeSubfolders.getSelection() ) {
wDoNotKeepFolderStructure.setSelection( false );
wMoveEmptyFolders.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void activeSequence() {
boolean useDatabase = wUseDatabase.getSelection();
DatabaseMeta databaseMeta = transMeta.findDatabase( wConnection.getText() );
wbSequence.setEnabled( databaseMeta == null ? false : useDatabase && databaseMeta.supportsSequences() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void CheckIncludeSubFolders() {
wlDoNotKeepFolderStructure.setEnabled( wIncludeSubfolders.getSelection() );
wDoNotKeepFolderStructure.setEnabled( wIncludeSubfolders.getSelection() );
if ( !wIncludeSubfolders.getSelection() ) {
wDoNotKeepFolderStructure.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void CheckIncludeSubFolders() {
wlDoNotKeepFolderStructure.setEnabled( wIncludeSubfolders.getSelection() );
wDoNotKeepFolderStructure.setEnabled( wIncludeSubfolders.getSelection() );
if ( !wIncludeSubfolders.getSelection() ) {
wDoNotKeepFolderStructure.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void ActiveTruncate() {
wlTruncate.setEnabled( !wAddCreate.getSelection() );
wTruncate.setEnabled( !wAddCreate.getSelection() );
if ( wAddCreate.getSelection() ) {
wTruncate.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setPrevious() {
wlFields.setEnabled( !wPrevious.getSelection() );
wFields.setEnabled( !wPrevious.getSelection() );
wFilename.setEnabled( !wPrevious.getSelection() );
wlFilename.setEnabled( !wPrevious.getSelection() );
wbdFilename.setEnabled( !wPrevious.getSelection() );
wbeFilename.setEnabled( !wPrevious.getSelection() );
wbaFilename.setEnabled( !wPrevious.getSelection() );
wbDirectory.setEnabled( !wPrevious.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
protected void setFlags() {
// disable a couple of options when running in Fast Data Dump mode
//
boolean isNotFastDataDump = !wFastDump.getSelection();
wDisableEnclosureFix.setEnabled( isNotFastDataDump );
wlDisableEnclosureFix.setEnabled( isNotFastDataDump );
wEncoding.setEnabled( isNotFastDataDump );
wlEncoding.setEnabled( isNotFastDataDump );
wPad.setEnabled( isNotFastDataDump );
wlPad.setEnabled( isNotFastDataDump );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setExecutedSetParams() {
wlQuoteString.setEnabled( !wSetParams.getSelection() );
wQuoteString.setEnabled( !wSetParams.getSelection() );
if ( wSetParams.getSelection() ) {
wQuoteString.setSelection( !wSetParams.getSelection() );
}
}
内容来源于网络,如有侵权,请联系作者删除!