本文整理了Java中org.eclipse.swt.widgets.Label.setVisible()
方法的一些代码示例,展示了Label.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:setVisible
暂无
代码示例来源:origin: pentaho/pentaho-kettle
private void setActiveMqVisibility( boolean isVisible ) {
wlActiveUrl.setVisible( isVisible );
wActiveUrl.setVisible( isVisible );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void setIbmMqVisibility( boolean isVisible ) {
wlIbmUrl.setVisible( isVisible );
wIbmUrl.setVisible( isVisible );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void enableCondition() {
boolean enableCondition =
!wspecifyQuery.getSelection()
&& SalesforceConnectionUtils.getRecordsFilterByDesc( wRecordsFilter.getText() )
== SalesforceConnectionUtils.RECORDS_FILTER_ALL;
wlCondition.setVisible( enableCondition );
wCondition.setVisible( enableCondition );
wlPosition.setVisible( enableCondition );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refresh() {
boolean compareValue =
( JobEntrySimpleEval.getSuccessNumberConditionByDesc( wSuccessNumberCondition.getText() )
!= JobEntrySimpleEval.SUCCESS_NUMBER_CONDITION_BETWEEN );
wlCompareValue.setVisible( compareValue );
wCompareValue.setVisible( compareValue );
wlMinValue.setVisible( !compareValue );
wMinValue.setVisible( !compareValue );
wlMaxValue.setVisible( !compareValue );
wMaxValue.setVisible( !compareValue );
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override public void setVisible( boolean visible ) {
super.setVisible( visible );
wAuthGroup.setVisible( visible );
wlUsername.setVisible( visible );
wUsername.setVisible( visible );
wlPassword.setVisible( visible );
wPassword.setVisible( visible );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
protected void enableFields() {
boolean enabled = wRunningInParallel.getSelection();
wlFileType.setVisible( enabled );
wlFileType.setEnabled( enabled );
wFileType.setVisible( enabled );
wFileType.setEnabled( enabled );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void enableFields() {
boolean visible = selectedField != null;
wgType.setVisible( visible );
wgData.setVisible( visible );
wlFieldName.setVisible( visible );
wFieldName.setVisible( visible );
wlDescription.setVisible( visible );
wDescription.setVisible( visible );
wlErrorCode.setVisible( visible );
wErrorCode.setVisible( visible );
wlErrorDescription.setVisible( visible );
wErrorDescription.setVisible( visible );
wlSourceStep.setEnabled( wSourceValues.getSelection() );
wSourceStep.setEnabled( wSourceValues.getSelection() );
wlSourceField.setEnabled( wSourceValues.getSelection() );
wSourceField.setEnabled( wSourceValues.getSelection() );
wlAllowedValues.setEnabled( !wSourceValues.getSelection() );
wAllowedValues.setEnabled( !wSourceValues.getSelection() );
wbAddAllowed.setEnabled( !wSourceValues.getSelection() );
wbRemoveAllowed.setEnabled( !wSourceValues.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override public void mouseUp( MouseEvent mouseEvent ) {
MappingIODefinition definition = new MappingIODefinition();
definition.setMainDataPath( true );
definitions.add( definition );
wInputList.add( tabTitle + ( definitions.size() > 1 ? String.valueOf( definitions.size() ) : "" ) );
wInputList.select( definitions.size() - 1 );
updateFields( definitions.get( wInputList.getSelectionIndex() ), input, wMainPath, wlInputStep, wInputStep,
wbInputStep, wlOutputStep, wOutputStep,
wbOutputStep, wlDescription, wDescription, wFieldMappings, wRenameOutput );
wlNoItems.setVisible( false );
wFieldsComposite.setVisible( true );
wRemoveButton.setEnabled( true );
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
private void setEnableQuery() {
wQuery.setVisible( wspecifyQuery.getSelection() );
wlCondition.setVisible( !wspecifyQuery.getSelection() );
wCondition.setVisible( !wspecifyQuery.getSelection() );
wlModule.setVisible( !wspecifyQuery.getSelection() );
wModule.setVisible( !wspecifyQuery.getSelection() );
if ( wspecifyQuery.getSelection() ) {
if ( wInclModule.getSelection() ) {
wInclModule.setSelection( false );
}
wRecordsFilter.setText( SalesforceConnectionUtils
.getRecordsFilterDesc( SalesforceConnectionUtils.RECORDS_FILTER_ALL ) );
}
wlInclModule.setEnabled( !wspecifyQuery.getSelection() );
wInclModule.setEnabled( !wspecifyQuery.getSelection() );
setEnableInclModule();
wlRecordsFilter.setEnabled( !wspecifyQuery.getSelection() );
wRecordsFilter.setEnabled( !wspecifyQuery.getSelection() );
updateRecordsFilter();
enableCondition();
}
代码示例来源:origin: pentaho/pentaho-kettle
private void RefreshSize() {
boolean useSize =
( JobEntryEvalFilesMetrics.getEvaluationTypeByDesc( wEvaluationType.getText() )
== JobEntryEvalFilesMetrics.EVALUATE_TYPE_SIZE );
wlScale.setVisible( useSize );
wScale.setVisible( useSize );
}
代码示例来源:origin: caoxinyu/RedisClient
@Override
public void widgetSelected(SelectionEvent e) {
if (!currentText) {
imageType.setEnabled(false);
textType.setEnabled(true);
if (label != null && !label.isDisposed()) {
label.setVisible(false);
label.dispose();
}
text = new Text(grpValue, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI);
text.setEditable(false);
text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
text.setText(value);
tranformText(textType, text);
currentText = true;
}
}
});
代码示例来源:origin: pentaho/pentaho-kettle
boolean evaluateVariable =
JobEntrySimpleEval.getValueTypeByDesc( wValueType.getText() ) == JobEntrySimpleEval.VALUE_TYPE_VARIABLE;
wlVariableName.setVisible( evaluateVariable );
wVariableName.setVisible( evaluateVariable );
wlFieldName.setVisible( evaluatepreviousRowField );
wFieldName.setVisible( evaluatepreviousRowField );
wlsuccessWhenSet.setVisible( evaluateVariable );
wSuccessWhenSet.setVisible( evaluateVariable );
wlFieldType.setVisible( !successWhenSet );
wFieldType.setVisible( !successWhenSet );
wlMask.setVisible( !successWhenSet && valueTypeDate );
wMask.setVisible( !successWhenSet && valueTypeDate );
wlSuccessCondition.setVisible( !successWhenSet && valueTypeString );
wSuccessCondition.setVisible( !successWhenSet && valueTypeString );
JobEntrySimpleEval.getFieldTypeByDesc( wFieldType.getText() ) == JobEntrySimpleEval.FIELD_TYPE_NUMBER
|| JobEntrySimpleEval.getFieldTypeByDesc( wFieldType.getText() ) == JobEntrySimpleEval.FIELD_TYPE_DATE_TIME;
wlSuccessNumberCondition.setVisible( !successWhenSet && valueTypeNumber );
wSuccessNumberCondition.setVisible( !successWhenSet && valueTypeNumber );
wlSuccessBooleanCondition.setVisible( !successWhenSet && valueTypeBoolean );
wSuccessBooleanCondition.setVisible( !successWhenSet && valueTypeBoolean );
|| ( !valueTypeString && JobEntrySimpleEval.getSuccessNumberConditionByDesc( wSuccessNumberCondition
.getText() ) != JobEntrySimpleEval.SUCCESS_NUMBER_CONDITION_BETWEEN );
wlCompareValue.setVisible( !successWhenSet && compareValue && !valueTypeBoolean );
代码示例来源:origin: pentaho/pentaho-kettle
private void conditionReceivedDate() {
boolean activeReceivedDate =
!( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_IGNORE );
boolean useBetween =
( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_BETWEEN );
wlReadFrom.setVisible( activeReceivedDate );
wReadFrom.setVisible( activeReceivedDate );
open.setVisible( activeReceivedDate );
wlReadTo.setVisible( activeReceivedDate && useBetween );
wReadTo.setVisible( activeReceivedDate && useBetween );
opento.setVisible( activeReceivedDate && useBetween );
if ( !activeReceivedDate ) {
wReadFrom.setText( "" );
wReadTo.setText( "" );
wNegateReceivedDate.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void conditionReceivedDate() {
boolean activeReceivedDate =
!( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_IGNORE );
boolean useBetween =
( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_BETWEEN );
wlReadFrom.setVisible( activeReceivedDate );
wReadFrom.setVisible( activeReceivedDate );
open.setVisible( activeReceivedDate );
wlReadTo.setVisible( activeReceivedDate && useBetween );
wReadTo.setVisible( activeReceivedDate && useBetween );
opento.setVisible( activeReceivedDate && useBetween );
if ( !activeReceivedDate ) {
wReadFrom.setText( "" );
wReadTo.setText( "" );
wNegateReceivedDate.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void selectWSDLOperation( String anOperationName ) throws KettleException {
// Tab management
//
loadOperation( anOperationName );
// We close all tabs and reconstruct it all to make sure we always show the correct data
//
if ( inWsdlParamContainer != null ) {
wStep.setVisible( true );
wlStep.setVisible( true );
if ( !inWsdlParamContainer.isArray() ) {
wStep.setText( "1" );
}
addTabFieldIn();
setComboValues();
} else {
wStep.setText( "1" );
removeTabField( tabItemFieldIn );
tabItemFieldIn = null;
}
if ( outWsdlParamContainer != null ) {
addTabFieldOut();
} else {
removeTabField( tabItemFieldOut );
tabItemFieldOut = null;
}
}
代码示例来源:origin: pentaho/pentaho-kettle
wlNoItems.setVisible( true );
wFieldsComposite.setVisible( false );
wRemoveButton.setEnabled( false );
代码示例来源:origin: pentaho/pentaho-kettle
fdlNoItems.top = new FormAttachment( 50 );
wlNoItems.setLayoutData( fdlNoItems );
wlNoItems.setVisible( false );
wRenameOutput );
} else {
wlNoItems.setVisible( true );
wFieldsComposite.setVisible( false );
wRemoveButton.setEnabled( false );
代码示例来源:origin: pentaho/pentaho-kettle
fd.right = new FormAttachment( middle, -margin );
wlSSL.setLayoutData( fd );
wlSSL.setVisible( true );
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private void createFiller(Composite composite, int h_span) {
Label filler= new Label(composite, SWT.NONE);
filler.setVisible(false);
filler.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, h_span, 1));
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private Label createSeparator(Composite parent) {
Label separator= new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);
separator.setFont(parent.getFont());
separator.setVisible(false);
GridData gd= new GridData();
gd.horizontalAlignment= GridData.FILL;
gd.verticalAlignment= GridData.BEGINNING;
gd.verticalIndent= 4;
separator.setLayoutData(gd);
return separator;
}
内容来源于网络,如有侵权,请联系作者删除!