本文整理了Java中org.eclipse.swt.widgets.Label.setEnabled()
方法的一些代码示例,展示了Label.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setEnabled()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:setEnabled
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void setFlags() {
wbDirectory.setEnabled( false );
// wDirectory.setEnabled(rep!=null);
wlDirectory.setEnabled( false );
// wlStepLogtable.setEnabled(wEnableStepPerfMonitor.getSelection());
// wStepLogtable.setEnabled(wEnableStepPerfMonitor.getSelection());
// wlLogSizeLimit.setEnabled(wLogfield.getSelection());
// wLogSizeLimit.setEnabled(wLogfield.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 keyNameFromField() {
wlKeyName.setEnabled( !wKeyNameFromField.getSelection() );
wKeyName.setEnabled( !wKeyNameFromField.getSelection() );
wlKeyNameFieldName.setEnabled( wKeyNameFromField.getSelection() );
wKeyNameFieldName.setEnabled( wKeyNameFromField.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
private void activeMethodInfield() {
wlMethod.setEnabled( !wMethodInField.getSelection() );
wMethod.setEnabled( !wMethodInField.getSelection() );
wlMethodField.setEnabled( wMethodInField.getSelection() );
wMethodField.setEnabled( wMethodInField.getSelection() );
}
}
代码示例来源: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
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 activeTablenameInField() {
wlTableName.setEnabled( wTablenameInField.getSelection() );
wTableName.setEnabled( wTablenameInField.getSelection() );
wTablenameText.setEnabled( !wTablenameInField.getSelection() );
wlTablenameText.setEnabled( !wTablenameInField.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void AfterFTPPutActivate() {
boolean moveFile =
JobEntrySFTPPUT.getAfterSFTPPutByDesc( wAfterFTPPut.getText() ) == JobEntrySFTPPUT.AFTER_FTPSPUT_MOVE;
boolean doNothing =
JobEntrySFTPPUT.getAfterSFTPPutByDesc( wAfterFTPPut.getText() ) == JobEntrySFTPPUT.AFTER_FTPSPUT_NOTHING;
wlDestinationFolderFieldName.setEnabled( moveFile );
wDestinationFolderFieldName.setEnabled( moveFile );
wlCreateDestinationFolder.setEnabled( moveFile );
wCreateDestinationFolder.setEnabled( moveFile );
wlAddFilenameToResult.setEnabled( doNothing );
wAddFilenameToResult.setEnabled( doNothing );
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
protected void enableParentFolder() {
wlCreateParentFolder.setEnabled( !wFileIsCommand.getSelection() );
wCreateParentFolder.setEnabled( !wFileIsCommand.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void activeUrlInfield() {
wlUrlField.setEnabled( wUrlInField.getSelection() );
wUrlField.setEnabled( wUrlInField.getSelection() );
wlUrl.setEnabled( !wUrlInField.getSelection() );
wUrl.setEnabled( !wUrlInField.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setAfterIMAPRetrived() {
boolean activeMoveToFolfer =
( ( ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_IMAP ) ) && ( MailConnectionMeta
.getActionTypeByDesc( wActionType.getText() ) == MailConnectionMeta.ACTION_TYPE_MOVE ) ) || ( MailConnectionMeta
.getAfterGetIMAPByDesc( wAfterGetIMAP.getText() ) == MailConnectionMeta.AFTER_GET_IMAP_MOVE ) );
wlMoveToFolder.setEnabled( activeMoveToFolfer );
wMoveToFolder.setEnabled( activeMoveToFolfer );
wTestMoveToFolder.setEnabled( activeMoveToFolfer );
wSelectMoveToFolder.setEnabled( activeMoveToFolfer );
wlcreateMoveToFolder.setEnabled( activeMoveToFolfer );
wcreateMoveToFolder.setEnabled( activeMoveToFolfer );
}
代码示例来源: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
private void activeSMTPCheck() {
wlTimeOut.setEnabled( wSMTPCheck.getSelection() );
wTimeOut.setEnabled( wSMTPCheck.getSelection() );
wlDefaultSMTP.setEnabled( wSMTPCheck.getSelection() );
wDefaultSMTP.setEnabled( wSMTPCheck.getSelection() );
wleMailSender.setEnabled( wSMTPCheck.getSelection() );
weMailSender.setEnabled( wSMTPCheck.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void activeHexa() {
boolean activate =
( input.getResultTypeByDesc( wResultType.getText() ) == input.getResultTypeByDesc( "hexadecimal" ) );
wlCompatibility.setEnabled( activate );
wCompatibility.setEnabled( activate );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setExecutedSetParams() {
wlQuoteString.setEnabled( !wSetParams.getSelection() );
wQuoteString.setEnabled( !wSetParams.getSelection() );
if ( wSetParams.getSelection() ) {
wQuoteString.setSelection( !wSetParams.getSelection() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
protected void setActive() {
boolean neverEnding = wNeverEnding.getSelection();
wlLimit.setEnabled( !neverEnding );
wLimit.setEnabled( !neverEnding );
wlInterval.setEnabled( neverEnding );
wInterval.setEnabled( neverEnding );
wlRowTimeField.setEnabled( neverEnding );
wRowTimeField.setEnabled( neverEnding );
wlLastTimeField.setEnabled( neverEnding );
wLastTimeField.setEnabled( neverEnding );
}
代码示例来源: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
public void enableFields() {
wHashfield.setEnabled( wHashcode.getSelection() );
wHashfield.setVisible( wHashcode.getSelection() );
wlHashfield.setEnabled( wHashcode.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setDateTimeFormat() {
if ( wSpecifyFormat.getSelection() ) {
wAddDate.setSelection( false );
wAddTime.setSelection( false );
}
wDateTimeFormat.setEnabled( wSpecifyFormat.getSelection() );
wlDateTimeFormat.setEnabled( wSpecifyFormat.getSelection() );
wAddDate.setEnabled( !wSpecifyFormat.getSelection() );
wlAddDate.setEnabled( !wSpecifyFormat.getSelection() );
wAddTime.setEnabled( !wSpecifyFormat.getSelection() );
wlAddTime.setEnabled( !wSpecifyFormat.getSelection() );
}
内容来源于网络,如有侵权,请联系作者删除!