本文整理了Java中org.eclipse.swt.widgets.Text.setEnabled()
方法的一些代码示例,展示了Text.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setEnabled()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:setEnabled
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void setEnabled( boolean flag ) {
wText.setEnabled( flag );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setEnabled( boolean flag ) {
wText.setEnabled( flag );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
textIDFieldName.setEnabled( buttonOutputIDField.getSelection() );
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
private void enableAppend() {
wSplitEvery.setEnabled( !wAppendLines.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void enableFields() {
wLimitRowsNumber.setEnabled( wLimitRows.getSelection() );
wlLimitRowsNumber.setEnabled( wLimitRows.getSelection() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setTabFlags( Button wMainPath, Label wlInputStep, Text wInputStep, Button wbInputStep,
Label wlOutputStep, Text wOutputStep, Button wbOutputStep, Label wlDescription,
Text wDescription ) {
boolean mainPath = wMainPath.getSelection();
wlInputStep.setEnabled( !mainPath );
wInputStep.setEnabled( !mainPath );
wbInputStep.setEnabled( !mainPath );
wlOutputStep.setEnabled( !mainPath );
wOutputStep.setEnabled( !mainPath );
wbOutputStep.setEnabled( !mainPath );
wlDescription.setEnabled( !mainPath );
wDescription.setEnabled( !mainPath );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setEnabled( boolean flag ) {
wText.setEnabled( flag );
wLabel.setEnabled( flag );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setEnabled( boolean flag ) {
wText.setEnabled( flag );
wLabel.setEnabled( flag );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setFlags() {
wlCountField.setEnabled( wCount.getSelection() );
wCountField.setEnabled( wCount.getSelection() );
}
代码示例来源:origin: caoxinyu/RedisClient
@Override
public void widgetSelected(SelectionEvent e) {
if(btnExpire.getSelection()){
labelTTL.setEnabled(true);
ttl.setEnabled(true);
}else {
labelTTL.setEnabled(false);
ttl.setEnabled(false);
}
}
});
代码示例来源:origin: pentaho/pentaho-kettle
public void setActiveIgnoreLookup() {
if ( wSkipLookup.getSelection() ) {
wErrorIgnored.setSelection( false );
wIgnoreFlagField.setText( "" );
}
wErrorIgnored.setEnabled( !wSkipLookup.getSelection() );
wlErrorIgnored.setEnabled( !wSkipLookup.getSelection() );
wlIgnoreFlagField.setEnabled( !wSkipLookup.getSelection() && wErrorIgnored.getSelection() );
wIgnoreFlagField.setEnabled( !wSkipLookup.getSelection() && wErrorIgnored.getSelection() );
}
代码示例来源:origin: caoxinyu/RedisClient
@Override
public void widgetSelected(SelectionEvent e) {
if(btnExpire.getSelection()){
labelTTL.setEnabled(true);
ttl.setEnabled(true);
}else {
labelTTL.setEnabled(false);
ttl.setEnabled(false);
}
}
});
代码示例来源:origin: pentaho/pentaho-kettle
private void enableFields() {
wlOrderBy.setEnabled( !wFailMultiple.getSelection() );
wOrderBy.setEnabled( !wFailMultiple.getSelection() );
wCachesize.setEnabled( wCache.getSelection() && !wCacheLoadAll.getSelection() );
wlCachesize.setEnabled( wCache.getSelection() && !wCacheLoadAll.getSelection() );
wCacheLoadAll.setEnabled( wCache.getSelection() );
wlCacheLoadAll.setEnabled( wCache.getSelection() );
wFailMultiple.setEnabled( !wCache.getSelection() );
wlFailMultiple.setEnabled( !wCache.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setSequence() {
boolean seq = ( ci == null ) || ci.supportsSequences();
wSeq.setEnabled( seq );
wlSeqButton.setEnabled( seq );
wSeqButton.setEnabled( seq );
if ( !seq && wSeqButton.getSelection() ) {
wAutoinc.setSelection( false );
wSeqButton.setSelection( false );
wTableMax.setSelection( true );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setSequence() {
boolean seq = ( ci == null ) || ci.supportsSequences();
wSeq.setEnabled( seq );
wlSeqButton.setEnabled( seq );
wSeqButton.setEnabled( seq );
if ( !seq && wSeqButton.getSelection() ) {
wAutoinc.setSelection( false );
wSeqButton.setSelection( false );
wTableMax.setSelection( true );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void enableFields() {
wHashfield.setEnabled( wHashcode.getSelection() );
wHashfield.setVisible( wHashcode.getSelection() );
wlHashfield.setEnabled( wHashcode.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
protected void setFlags() {
wlFieldRownr.setEnabled( wAddRownr.getSelection() );
wFieldRownr.setEnabled( wAddRownr.getSelection() );
wlInclFilenameField.setEnabled( wInclFilename.getSelection() );
wInclFilenameField.setEnabled( wInclFilename.getSelection() );
wlFilename.setEnabled( !wAccFilenames.getSelection() );
wFilename.setEnabled( !wAccFilenames.getSelection() );
wbFilename.setEnabled( !wAccFilenames.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setFlags() {
wlSortDir.setEnabled( wAllRows.getSelection() );
wbSortDir.setEnabled( wAllRows.getSelection() );
wSortDir.setEnabled( wAllRows.getSelection() );
wlPrefix.setEnabled( wAllRows.getSelection() );
wPrefix.setEnabled( wAllRows.getSelection() );
wlAddLineNr.setEnabled( wAllRows.getSelection() );
wAddLineNr.setEnabled( wAllRows.getSelection() );
wlLineNrField.setEnabled( wAllRows.getSelection() && wAddLineNr.getSelection() );
wLineNrField.setEnabled( wAllRows.getSelection() && wAddLineNr.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setBatchSettingsEnabled() {
boolean enabled = wUseBatch.getSelection();
wBatchSize.setEnabled( enabled );
wStartMessage.setEnabled( enabled );
wEndMessage.setEnabled( enabled );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setFlags() {
wlIgnoreFlagField.setEnabled( wErrorIgnored.getSelection() );
wIgnoreFlagField.setEnabled( wErrorIgnored.getSelection() );
DatabaseMeta databaseMeta = transMeta.findDatabase( wConnection.getText() );
boolean hasErrorHandling = transMeta.findStep( stepname ).isDoingErrorHandling();
// Can't use batch yet when grabbing auto-generated keys...
// Only enable batch option when not returning keys.
// If we are on PostgreSQL (and look-a-likes), error handling is not supported. (PDI-366)
//
boolean enableBatch = wBatch.getSelection() && !transMeta.isUsingUniqueConnections();
enableBatch =
enableBatch
&& !( databaseMeta != null && databaseMeta.supportsErrorHandlingOnBatchUpdates() && hasErrorHandling );
}
内容来源于网络,如有侵权,请联系作者删除!