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

x33g5p2x  于2022-01-23 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(170)

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

Label.setToolTipText介绍

暂无

代码示例

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

/**
  * setter for the tooltip
  *
  * @param string
  *          text
  */
 public void setToolTip( String text, Widget widget ) {
  switch ( widget ) {
   case LABEL:
    getLabel().setToolTipText( text );
    break;
   case INPUT:
    getInput().setToolTipText( text );
    break;
   default:
    break;
  }
 }
}

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

public LabelText( Composite composite, int textStyle, String labelText, String toolTipText, int middle,
 int margin ) {
 super( composite, SWT.NONE );
 props.setLook( this );
 FormLayout formLayout = new FormLayout();
 formLayout.marginWidth = 0;
 formLayout.marginHeight = 0;
 this.setLayout( formLayout );
 wText = new Text( this, textStyle );
 FormData fdText = new FormData();
 fdText.left = new FormAttachment( middle, margin );
 fdText.right = new FormAttachment( 100, 0 );
 wText.setLayoutData( fdText );
 wText.setToolTipText( toolTipText );
 wLabel = new Label( this, SWT.RIGHT );
 props.setLook( wLabel );
 wLabel.setText( labelText );
 FormData fdLabel = new FormData();
 fdLabel.left = new FormAttachment( 0, 0 );
 fdLabel.right = new FormAttachment( middle, 0 );
 fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER );
 wLabel.setLayoutData( fdLabel );
 wLabel.setToolTipText( toolTipText );
}

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

private void minMaxExtraView() {
 // What is the state?
 //
 boolean maximized = sashForm.getMaximizedControl() != null;
 if ( maximized ) {
  // Minimize
  //
  sashForm.setMaximizedControl( null );
  minMaxButton.setImage( GUIResource.getInstance().getImageMaximizePanel() );
  minMaxButton.setToolTipText( BaseMessages
   .getString( PKG, "JobGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) );
 } else {
  // Maximize
  //
  sashForm.setMaximizedControl( extraViewComposite );
  minMaxButton.setImage( GUIResource.getInstance().getImageMinimizePanel() );
  minMaxButton.setToolTipText( BaseMessages
   .getString( PKG, "JobGraph.ExecutionResultsPanel.MinButton.Tooltip" ) );
 }
}

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

private void minMaxExtraView() {
 // What is the state?
 //
 boolean maximized = sashForm.getMaximizedControl() != null;
 if ( maximized ) {
  // Minimize
  //
  sashForm.setMaximizedControl( null );
  minMaxButton.setImage( GUIResource.getInstance().getImageMaximizePanel() );
  minMaxButton
   .setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) );
 } else {
  // Maximize
  //
  sashForm.setMaximizedControl( extraViewComposite );
  minMaxButton.setImage( GUIResource.getInstance().getImageMinimizePanel() );
  minMaxButton
   .setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.MinButton.Tooltip" ) );
 }
}

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

fdLabel.top = new FormAttachment( wCombo, 0, SWT.CENTER );
wLabel.setLayoutData( fdLabel );
wLabel.setToolTipText( toolTipText );

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

fdLabel.top = new FormAttachment( wCombo, 0, SWT.CENTER );
wLabel.setLayoutData( fdLabel );
wLabel.setToolTipText( toolTipText );

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

fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER );
wLabel.setLayoutData( fdLabel );
wLabel.setToolTipText( toolTipText );

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

props.setLook( wlLogLevel );
wlLogLevel.setText( BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.LogLevel.Label" ) );
wlLogLevel.setToolTipText( BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.LogLevel.Tooltip" ) );
FormData fdlLogLevel = new FormData();
fdlLogLevel.top = new FormAttachment( 0, 10 );

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

fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER );
wLabel.setLayoutData( fdLabel );
wLabel.setToolTipText( toolTipText );

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

wlStepPerfMaxSize.setToolTipText( BaseMessages.getString( PKG, "TransDialog.StepPerformanceMaxSize.Tooltip" ) );
props.setLook( wlStepPerfMaxSize );
FormData fdlStepPerfMaxSize = new FormData();

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

wlLogLevel.setToolTipText( BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.LogLevel.Tooltip" ) );
props.setLook( wlLogLevel );
FormData fdlLogLevel = new FormData();
lblStartJob.setToolTipText( BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.StartCopy.Tooltip" ) );
props.setLook( lblStartJob );
FormData fd_lblStartJob = new FormData();

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

closeButton.setImage( GUIResource.getInstance().getImageClosePanel() );
closeButton
 .setToolTipText( BaseMessages.getString( PKG, "JobGraph.ExecutionResultsPanel.CloseButton.Tooltip" ) );
FormData fdClose = new FormData();
fdClose.right = new FormAttachment( 100, 0 );
minMaxButton.setImage( GUIResource.getInstance().getImageMaximizePanel() );
minMaxButton
 .setToolTipText( BaseMessages.getString( PKG, "JobGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) );
FormData fdMinMax = new FormData();
fdMinMax.right = new FormAttachment( closeButton, -Const.MARGIN );

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

closeButton.setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.CloseButton.Tooltip" ) );
FormData fdClose = new FormData();
fdClose.right = new FormAttachment( 100, 0 );
minMaxButton.setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) );
FormData fdMinMax = new FormData();
fdMinMax.right = new FormAttachment( closeButton, -Const.MARGIN );

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

wlSharedObjectsFile.setLayoutData( fdlSharedObjectsFile );
wSharedObjectsFile = new TextVar( jobMeta, wSettingsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER );
wlSharedObjectsFile.setToolTipText( BaseMessages.getString( PKG, "JobDialog.SharedObjectsFile.Tooltip" ) );
wSharedObjectsFile.setToolTipText( BaseMessages.getString( PKG, "JobDialog.SharedObjectsFile.Tooltip" ) );
props.setLook( wSharedObjectsFile );

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

wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "JobDialog.LogTimeout.Tooltip" ) );
props.setLook( wlLogTimeout );
FormData fdlLogTimeout = new FormData();

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

wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "JobDialog.LogTimeout.Tooltip" ) );
props.setLook( wlLogTimeout );
FormData fdlLogTimeout = new FormData();

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

wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) );
props.setLook( wlLogTimeout );
FormData fdlLogTimeout = new FormData();

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

wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) );
props.setLook( wlLogTimeout );
FormData fdlLogTimeout = new FormData();

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

wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) );
props.setLook( wlLogTimeout );
FormData fdlLogTimeout = new FormData();

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

final Label wicon = new Label( this, SWT.RIGHT );
PropsUI.getInstance().setLook( wicon );
wicon.setToolTipText( BaseMessages.getString( PKG, "StyledTextComp.tooltip.InsertVariable" ) );
wicon.setImage( image );
wicon.setLayoutData( new FormDataBuilder().top().right( 100, 0 ).result() );

相关文章