本文整理了Java中org.eclipse.swt.widgets.Text.setVisible()
方法的一些代码示例,展示了Text.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:setVisible
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void enableFields() {
wHashfield.setEnabled( wHashcode.getSelection() );
wHashfield.setVisible( wHashcode.getSelection() );
wlHashfield.setEnabled( wHashcode.getSelection() );
}
代码示例来源:origin: pentaho/pentaho-kettle
void refreshObject() {
int index = list.getSelectionIndex();
if ( index == -1 ) {
return;
}
if ( check.getSelection() ) {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
PrintStream s = new PrintStream( stream );
errors[index].printStackTrace( s );
text.setText( stream.toString() );
text.setVisible( true );
canvas.setVisible( false );
} else {
canvas.setVisible( true );
text.setVisible( false );
canvas.redraw();
}
}
代码示例来源:origin: caoxinyu/RedisClient
@Override
public void widgetSelected(SelectionEvent e) {
if (currentText) {
imageType.setEnabled(true);
textType.setEnabled(false);
if (text != null && !text.isDisposed()) {
text.setVisible(false);
text.dispose();
}
label = new Label(grpValue, SWT.NONE);
label.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
label.setAlignment(SWT.CENTER);
tranformImage(imageType, label);
currentText = false;
}
}
});
代码示例来源:origin: pentaho/pentaho-kettle
text.setVisible( false );
layout();
代码示例来源: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
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
wHashcode.setSelection( input.useHash() );
wHashfield.setEnabled( input.useHash() );
wHashfield.setVisible( input.useHash() );
wlHashfield.setEnabled( input.useHash() );
代码示例来源:origin: pentaho/pentaho-kettle
logDisplayText = new Text( sash, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.READ_ONLY );
spoon.props.setLook( logDisplayText );
logDisplayText.setVisible( true );
代码示例来源:origin: pentaho/pentaho-kettle
logDisplayText = new Text( sash, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.READ_ONLY );
spoon.props.setLook( logDisplayText );
logDisplayText.setVisible( true );
代码示例来源:origin: pentaho/pentaho-kettle
wText.setVisible( true );
代码示例来源:origin: pentaho/pentaho-kettle
fdHelpLabel.bottom = new FormAttachment( 100, 0 );
wlHelpLabel.setLayoutData( fdHelpLabel );
wlHelpLabel.setVisible( false );
代码示例来源:origin: pentaho/pentaho-kettle
fdHelpLabel.bottom = new FormAttachment( 100, 0 );
wlHelpLabel.setLayoutData( fdHelpLabel );
wlHelpLabel.setVisible( false );
代码示例来源:origin: pentaho/pentaho-kettle
fdHelpLabel.bottom = new FormAttachment( 100, 0 );
wlHelpLabel.setLayoutData( fdHelpLabel );
wlHelpLabel.setVisible( false );
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
public void setNewContextRoot(String newContextRoot) {
if (newContextRoot != null && newContextRoot.length() > 1) {
newContextRootText.setText(newContextRoot);
} else {
newContextRootLabel.setVisible(false);
newContextRootText.setVisible(false);
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible) {
fPluginText.setVisible(visible);
fPluginText.setFocus();
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
public void setVisible(boolean visible) {
if (fLabel != null)
fLabel.setVisible(visible);
if (fText != null)
fText.setVisible(visible);
if (fBrowse != null)
fBrowse.setVisible(visible);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
private void showHideDelayAmountWidgets() {
final boolean visible = (action == GroupElementPostLaunchAction.DELAY || action == GroupElementPostLaunchAction.OUTPUT_REGEXP);
fActionParamLabel.setVisible(visible);
fActionParamWidget.setVisible(visible);
if (action == GroupElementPostLaunchAction.DELAY) {
fActionParamLabel.setText(DebugUIMessages.GroupLaunchConfigurationSelectionDialog_9);
} else if (action == GroupElementPostLaunchAction.OUTPUT_REGEXP) {
fActionParamLabel.setText(DebugUIMessages.GroupLaunchConfigurationSelectionDialog_regexp);
}
fActionParamLabel.getParent().layout();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
/**
* Sets hint text to be displayed and requests the layout
*
* @param toDisplay
*/
private void setHintTextToDisplay(boolean toDisplay) {
GridData data = (GridData) hintText.getLayoutData();
data.exclude = !toDisplay;
hintText.setVisible(toDisplay);
hintText.requestLayout();
this.displayHintText = toDisplay;
}
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
@Override
public void enable() {
boolean mvValue = (null != selectedCP) && (selectedCP.isMultiValued());
valueText.setVisible((null != selectedCP) && (!selectedCP.isMultiValued()));
valueTextCombo.setVisible((null != selectedCP) && (!selectedCP.isMultiValued()));
addButton.setEnabled(mvValue);
int selected = valueTable.getSelectionIndex();
editButton.setEnabled(mvValue && selected > -1);
removeButton.setEnabled(mvValue && selected > -1);
upButton.setEnabled(mvValue && selected > 0);
downButton.setEnabled(mvValue && (selected > -1)
&& (selected < (valueTable.getItemCount() - 1)));
valueText.getParent().redraw();
}
代码示例来源:origin: com.eclipsesource.tabris/tabris
private void createText( Composite uiParent ) {
if( text == null ) {
text = new Text( uiParent, SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL );
text.setData( RWT.CUSTOM_VARIANT, CUSTOM_VARIANT_TABRIS_UI );
text.setLayoutData( createRowData( TEXT_WIDTH, SWT.DEFAULT, false ) );
text.setVisible( false );
text.addListener( SWT.DefaultSelection, new TextDefaultSelectionListener() );
text.addFocusListener( new TextFocusListener() );
}
}
内容来源于网络,如有侵权,请联系作者删除!