Java Code Examples for org.netbeans.swing.tabcontrol.TabData#getTooltip()

The following examples show how to use org.netbeans.swing.tabcontrol.TabData#getTooltip() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TabTable.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public String getToolTipText( MouseEvent event ) {
    int row = rowAtPoint( event.getPoint() );
    int col = columnAtPoint( event.getPoint() );
    if( row >= 0 && col >= 0 ) {
        if( isCloseButtonHighlighted( row, col ) ) {
            return NbBundle.getMessage( TabTable.class, "BtnClose_Tooltip" );
        }
        TabData td = ( TabData ) getValueAt( row, col );
        if( null != td ) {
            return td.getTooltip();
        }
    }
    return super.getToolTipText( event );
}
 
Example 2
Source File: DocumentSwitcherTable.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public Item( SwitcherTableItem.Activatable activatable, String name, String htmlName,
        TabData tab, boolean active, ProjectProxy project ) {
    super( activatable, name, htmlName, tab.getIcon(), active, tab.getTooltip() );
    this.tabData = tab;
    this.project = project;
    isSeparator = false;
}
 
Example 3
Source File: AbstractTabDisplayer.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private void updateFullPath() {
    if( !lblFullPath.isVisible() || null == controller )
        return;
    String text = null;
    int selIndex = controller.getSelectedIndex();
    if( selIndex >= 0 && selIndex < tabModel.size() ) {
        TabData tab = tabModel.getTab( selIndex );
        if( null != tab ) {
            text = tab.getTooltip();
        }
    }
    lblFullPath.setText( text );
}