public void setEditable( boolean editable ) { wText.setEditable( editable ); }
public void setEditable( boolean editable ) { wText.setEditable( editable ); }
@Override protected Composite initDataTabItem() { Composite composite = super.initDataTabItem(); inputKey.setEditable(false); return composite; }
private void setWarningText( String message, int maxTextWidth ) { description = new Text( shell, SWT.MULTI | SWT.LEFT | SWT.WRAP | SWT.NO_FOCUS | SWT.HIDE_SELECTION ); description.setText( message ); description.setEditable( false ); FormData fdlDesc = new FormData(); fdlDesc.left = new FormAttachment( warningIcon, margin ); // Text should be right of the icon and at the top fdlDesc.top = new FormAttachment( 0, 0 ); fdlDesc.width = maxTextWidth; description.setLayoutData( fdlDesc ); props.setLook( description ); }
@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; } } });
text.setEditable(false); text.setText(oldFavorite.getFavorite());
else text = new Text(table, SWT.NONE); text.setEditable(edit); Listener textListener = new Listener() { public void handleEvent(final Event e) {
text.setEditable(false); text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); text.setText(value);
wDirectory.setEditable( false ); fdDirectory = new FormData(); fdDirectory.left = new FormAttachment( middle, 0 );
fdDesc.bottom = new FormAttachment( 100, -50 ); wDesc.setLayoutData( fdDesc ); wDesc.setEditable( false );
wDirectory.setEditable( false ); fdDirectory = new FormData(); fdDirectory.left = new FormAttachment( middle, 0 );
text.setEditable(false);
fdDesc.bottom = new FormAttachment( 100, -50 ); wDesc.setLayoutData( fdDesc ); wDesc.setEditable( !readonly );
fdKey.top = new FormAttachment( wlTodo, Const.MARGIN ); wKey.setLayoutData( fdKey ); wKey.setEditable( false ); fdMain.bottom = new FormAttachment( wKey, 150 + Const.MARGIN ); wMain.setLayoutData( fdMain ); wMain.setEditable( false ); fdSource.bottom = new FormAttachment( wClose, -Const.MARGIN ); wSource.setLayoutData( fdSource ); wSource.setEditable( false ); fdValue.bottom = new FormAttachment( wSource, -Const.MARGIN ); wValue.setLayoutData( fdValue ); wValue.setEditable( true );
fdDesc.bottom = new FormAttachment( 100, -50 ); wDesc.setLayoutData( fdDesc ); wDesc.setEditable( !readonly );
fdJobFilename.right = new FormAttachment( 100, 0 ); wJobFilename.setLayoutData( fdJobFilename ); wJobFilename.setEditable( false ); wJobFilename.setBackground( GUIResource.getInstance().getColorLightGray() ); props.setLook( wDirectory ); wDirectory.setToolTipText( BaseMessages.getString( PKG, "JobDialog.Directory.Tooltip" ) ); wDirectory.setEditable( false ); wDirectory.setEnabled( false ); fdDirectory = new FormData(); wCreateUser = new Text( wJobComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wCreateUser ); wCreateUser.setEditable( false ); wCreateUser.addModifyListener( lsMod ); FormData fdCreateUser = new FormData(); wCreateDate = new Text( wJobComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wCreateDate ); wCreateDate.setEditable( false ); wCreateDate.addModifyListener( lsMod ); FormData fdCreateDate = new FormData(); wModUser = new Text( wJobComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wModUser ); wModUser.setEditable( false ); wModUser.addModifyListener( lsMod ); FormData fdModUser = new FormData();
wlLocal.setEditable( false ); props.setLook( wlLocal ); wlLocal.setText( BaseMessages.getString( PKG, "DefaultRunConfigurationDialog.Text.Local" ) ); wlPentaho.setEditable( false ); props.setLook( wlPentaho ); wlPentaho.setText( BaseMessages.getString( PKG, "DefaultRunConfigurationDialog.Text.Pentaho" ) );
fdTransFilename.right = new FormAttachment( 100, 0 ); wTransFilename.setLayoutData( fdTransFilename ); wTransFilename.setEditable( false ); wTransFilename.setBackground( GUIResource.getInstance().getColorLightGray() ); wDirectory.setEditable( false ); wDirectory.setEnabled( false ); FormData fdDirectory = new FormData(); wCreateUser = new Text( wTransComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wCreateUser ); wCreateUser.setEditable( false ); wCreateUser.addModifyListener( lsMod ); FormData fdCreateUser = new FormData(); wCreateDate = new Text( wTransComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wCreateDate ); wCreateDate.setEditable( false ); wCreateDate.addModifyListener( lsMod ); FormData fdCreateDate = new FormData(); wModUser = new Text( wTransComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wModUser ); wModUser.setEditable( false ); wModUser.addModifyListener( lsMod ); FormData fdModUser = new FormData(); wModDate = new Text( wTransComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wModDate );
fdRegExScriptCompile.right = new FormAttachment( 100, 0 ); wRegExScriptCompile.setLayoutData( fdRegExScriptCompile ); wRegExScriptCompile.setEditable( false ); wRegExScriptCompile.setFont( guiresource.getFontNote() );
wlHelpLabel.setEditable( false ); wlHelpLabel.setText( "Hallo" ); props.setLook( wlHelpLabel );