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

x33g5p2x  于2022-01-16 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(199)

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

Button.getSelection介绍

[英]Returns true if the receiver is selected, and false otherwise.

When the receiver is of type CHECK or RADIO, it is selected when it is checked. When it is of type TOGGLE, it is selected when it is pushed in. If the receiver is of any other type, this method returns false.
[中]

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void ok() {
 retval = true;
 searchingSteps = wStep.getSelection();
 searchingDatabases = wDB.getSelection();
 searchingNotes = wNote.getSelection();
 filterString = wFilter.getText();
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ActivedynamicFilter() {
 wlFilterString.setEnabled( !wdynamicFilter.getSelection() );
 wFilterString.setEnabled( !wdynamicFilter.getSelection() );
 wlfilterField.setEnabled( wdynamicFilter.getSelection() );
 wfilterField.setEnabled( wdynamicFilter.getSelection() );
 activatePreview();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
 if ( Utils.isEmpty( wName.getText() ) ) {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setText( BaseMessages.getString( PKG, "System.StepJobEntryNameMissing.Title" ) );
  mb.setMessage( BaseMessages.getString( PKG, "System.JobEntryNameMissing.Msg" ) );
  mb.open();
  return;
 }
 jobEntry.setName( wName.getText() );
 jobEntry.setFoldername( wFoldername.getText() );
 jobEntry.setFailOfFolderExists( wAbortExists.getSelection() );
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddMovedDateBeforeExtension() {
 wlAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 wAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 if ( !wAddMovedDate.getSelection() && !wAddMovedTime.getSelection() && !wSpecifyMoveFormat.getSelection() ) {
  wAddMovedDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void getInfo( KettleFileRepositoryMeta info ) {
 info.setName( wName.getText() );
 info.setDescription( wId.getText() );
 info.setBaseDirectory( wBaseDir.getText() );
 info.setReadOnly( wReadOnly.getSelection() );
 info.setHidingHiddenFiles( wHidesHiddenFiles.getSelection() );
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
 if ( Utils.isEmpty( wName.getText() ) ) {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setText( BaseMessages.getString( PKG, "System.StepJobEntryNameMissing.Title" ) );
  mb.setMessage( BaseMessages.getString( PKG, "System.JobEntryNameMissing.Msg" ) );
  mb.open();
  return;
 }
 jobEntry.setName( wName.getText() );
 jobEntry.setFilename( wFilename.getText() );
 jobEntry.setFailIfFileNotExists( wAbortExists.getSelection() );
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void getInfo( AccessOutputMeta info ) {
 info.setFilename( wFilename.getText() );
 info.setTablename( wTablename.getText() );
 info.setFileCreated( wCreateFile.getSelection() );
 info.setTableCreated( wCreateTable.getSelection() );
 info.setTableTruncated( wTruncateTable.getSelection() );
 info.setCommitSize( Const.toInt( wCommitSize.getText(), -1 ) );
 info.setAddToResultFiles( wAddToResult.getSelection() );
 input.setDoNotOpenNewFileInit( wDoNotOpenNewFileInit.getSelection() );
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
  if ( Utils.isEmpty( wStepname.getText() ) ) {
   return;
  }

  stepname = wStepname.getText(); // return value
  input.setAddToResultFiles( wAddToResult.getSelection() );
  input.setDoNotOpenNewFileInit( wDoNotOpenNewFileInit.getSelection() );
  input.setFilename( wFilename.getText() );

  dispose();
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddMovedDateBeforeExtension() {
 wlAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 wAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 if ( !wAddMovedDate.getSelection() && !wAddMovedTime.getSelection() && !wSpecifyMoveFormat.getSelection() ) {
  wAddMovedDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
 if ( Utils.isEmpty( wStepname.getText() ) ) {
  return;
 }
 stepname = wStepname.getText(); // return value
 // copy info to Meta class (input)
 input.setFilename( wFilename.getText() );
 input.setRowLimit( wLimit.getText() );
 input.setAddResultFile( wAddResult.getSelection() );
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
 if ( Utils.isEmpty( wStepname.getText() ) ) {
  return;
 }
 stepname = wStepname.getText(); // return value
 saveChanges();
 input.setChanged();
 input.setValidatingAll( wValidateAll.getSelection() );
 input.setConcatenatingErrors( wConcatErrors.getSelection() );
 input.setConcatenationSeparator( wConcatSeparator.getText() );
 input.setValidations( selectionList );
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddMovedDateBeforeExtension() {
 wlAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 wAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 if ( !wAddMovedDate.getSelection() && !wAddMovedTime.getSelection() && !wSpecifyMoveFormat.getSelection() ) {
  wAddMovedDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
 if ( Utils.isEmpty( wStepname.getText() ) ) {
  return;
 }
 input.setDynamicFilenameField( wFileName.getText() );
 input.setResultFieldName( wResult.getText() );
 input.setincludeFileType( wInclFileType.getSelection() );
 input.setFileTypeFieldName( wFileType.getText() );
 input.setaddResultFilenames( wAddResult.getSelection() );
 stepname = wStepname.getText(); // return value
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

private void ok() {
 if ( Utils.isEmpty( wStepname.getText() ) ) {
  return;
 }
 input.setDynamicFilenameField( wFileName.getText() );
 input.setResultFieldName( wResult.getText() );
 input.setaddResultFilenames( wAddResult.getSelection() );
 stepname = wStepname.getText(); // return value
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}

相关文章

Button类方法